/*
Theme Name:  Sand City Hub
Theme URI:   https://sandcityhub.com
Author:      Sand City Hub
Author URI:  https://sandcityhub.com
Description: A clean, Elementor-ready WordPress theme for Sand City Hub — coastal-artsy vibes, built for community and creativity.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sand-city-hub
Tags:        elementor, one-column, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      8.0
*/

/* -----------------------------------------------
   CSS CUSTOM PROPERTIES — Sand City Hub Palette
----------------------------------------------- */
:root {
    --sch-sand:      #F5F0E1;
    --sch-ocean:     #4A90A4;
    --sch-seafoam:   #A2D2C9;
    --sch-charcoal:  #3D3D3D;
    --sch-dune:      #C4A882;
    --sch-white:     #FFFFFF;
    --sch-off-white: #FAFAF7;

    --sch-font-heading: 'Playfair Display', Georgia, serif;
    --sch-font-body:    'Montserrat', Arial, sans-serif;

    --sch-radius:    8px;
    --sch-shadow:    0 4px 20px rgba(74, 144, 164, 0.12);
    --sch-transition: 0.3s ease;
}

/* -----------------------------------------------
   RESET & BASE
----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--sch-font-body);
    background-color: var(--sch-sand);
    color: var(--sch-charcoal);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--sch-ocean); text-decoration: none; transition: color var(--sch-transition); }
a:hover { color: var(--sch-dune); }

img { max-width: 100%; height: auto; display: block; }

/* -----------------------------------------------
   TYPOGRAPHY
----------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sch-font-heading);
    color: var(--sch-charcoal);
    line-height: 1.25;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1.25rem; }

/* -----------------------------------------------
   LAYOUT WRAPPERS
----------------------------------------------- */
.sch-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sch-section {
    padding: 80px 0;
}

/* -----------------------------------------------
   HEADER
----------------------------------------------- */
#sch-header {
    background: var(--sch-white);
    box-shadow: 0 2px 12px rgba(61, 61, 61, 0.08);
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

.sch-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.sch-logo a {
    font-family: var(--sch-font-heading);
    font-size: 1.5rem;
    color: var(--sch-ocean);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sch-logo a:hover { color: var(--sch-dune); }

/* -----------------------------------------------
   NAVIGATION
----------------------------------------------- */
.sch-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.sch-nav ul li a {
    font-family: var(--sch-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sch-charcoal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all var(--sch-transition);
}

.sch-nav ul li a:hover,
.sch-nav ul li.current-menu-item a {
    color: var(--sch-ocean);
    border-bottom-color: var(--sch-seafoam);
}

/* Hamburger — mobile */
.sch-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.sch-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--sch-charcoal);
    transition: all var(--sch-transition);
    border-radius: 2px;
}

/* -----------------------------------------------
   MAIN CONTENT
----------------------------------------------- */
#sch-main {
    min-height: 60vh;
}

.sch-page-content {
    padding: 60px 0;
}

/* Elementor full-width fix */
.elementor-section.elementor-section-full_width {
    padding: 0;
}

/* -----------------------------------------------
   FOOTER
----------------------------------------------- */
#sch-footer {
    background: var(--sch-charcoal);
    color: rgba(255, 255, 255, 0.75);
    padding: 40px 24px;
    text-align: center;
    font-size: 0.875rem;
    font-family: var(--sch-font-body);
}

#sch-footer a {
    color: var(--sch-seafoam);
}

#sch-footer a:hover {
    color: var(--sch-white);
}

.sch-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* -----------------------------------------------
   BUTTONS
----------------------------------------------- */
.sch-btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: var(--sch-radius);
    font-family: var(--sch-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--sch-transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.sch-btn-primary {
    background: var(--sch-ocean);
    color: var(--sch-white);
    border-color: var(--sch-ocean);
}

.sch-btn-primary:hover {
    background: transparent;
    color: var(--sch-ocean);
}

.sch-btn-seafoam {
    background: var(--sch-seafoam);
    color: var(--sch-charcoal);
    border-color: var(--sch-seafoam);
}

.sch-btn-seafoam:hover {
    background: transparent;
    color: var(--sch-charcoal);
    border-color: var(--sch-charcoal);
}

.sch-btn-outline {
    background: transparent;
    color: var(--sch-white);
    border-color: var(--sch-white);
}

.sch-btn-outline:hover {
    background: var(--sch-white);
    color: var(--sch-charcoal);
}

/* -----------------------------------------------
   WAVE DIVIDER
----------------------------------------------- */
.sch-wave-divider {
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.sch-wave-divider svg {
    display: block;
    width: 100%;
}

/* -----------------------------------------------
   ELEMENTOR CUSTOM WIDGET — COASTAL CTA BANNER
----------------------------------------------- */
.sch-coastal-cta {
    position: relative;
    background: linear-gradient(135deg, var(--sch-ocean) 0%, var(--sch-seafoam) 100%);
    border-radius: var(--sch-radius);
    padding: 60px 40px;
    text-align: center;
    overflow: hidden;
}

.sch-coastal-cta::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.sch-coastal-cta::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.sch-coastal-cta__eyebrow {
    font-family: var(--sch-font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.sch-coastal-cta__title {
    font-family: var(--sch-font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--sch-white);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.sch-coastal-cta__text {
    font-family: var(--sch-font-body);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

.sch-coastal-cta__btn {
    position: relative;
    z-index: 1;
}

/* -----------------------------------------------
   COMING SOON PAGE STYLES
----------------------------------------------- */
.sch-coming-soon-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--sch-sand);
    padding: 40px 24px;
    text-align: center;
}

.sch-coming-soon-wrap .sch-cs-badge {
    display: inline-block;
    background: var(--sch-seafoam);
    color: var(--sch-charcoal);
    font-family: var(--sch-font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 999px;
    margin-bottom: 28px;
}

.sch-coming-soon-wrap h1 {
    font-family: var(--sch-font-heading);
    font-size: clamp(2.8rem, 8vw, 5rem);
    color: var(--sch-ocean);
    line-height: 1.1;
    margin-bottom: 24px;
}

.sch-coming-soon-wrap p {
    font-family: var(--sch-font-body);
    font-size: 1.1rem;
    color: var(--sch-charcoal);
    max-width: 600px;
    line-height: 1.8;
    margin: 0 auto 40px;
}

.sch-coming-soon-wrap .sch-cs-wave {
    margin: 32px auto 0;
    opacity: 0.35;
}

/* -----------------------------------------------
   BLOG / ARCHIVE
----------------------------------------------- */
.sch-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.sch-post-card {
    background: var(--sch-white);
    border-radius: var(--sch-radius);
    overflow: hidden;
    box-shadow: var(--sch-shadow);
    transition: transform var(--sch-transition), box-shadow var(--sch-transition);
}

.sch-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(74, 144, 164, 0.18);
}

.sch-post-card__thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sch-post-card__body { padding: 24px; }
.sch-post-card__title { font-size: 1.15rem; margin-bottom: 8px; }
.sch-post-card__meta { font-size: 0.8rem; color: var(--sch-dune); margin-bottom: 12px; }
.sch-post-card__excerpt { font-size: 0.92rem; color: var(--sch-charcoal); }

/* -----------------------------------------------
   RESPONSIVE
----------------------------------------------- */
@media (max-width: 768px) {
    .sch-nav { display: none; }
    .sch-nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--sch-white); padding: 20px 24px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
    .sch-nav.is-open ul { flex-direction: column; gap: 16px; }
    .sch-menu-toggle { display: flex; }
    .sch-coastal-cta { padding: 40px 24px; }
    .sch-section { padding: 48px 0; }
}

@media (max-width: 480px) {
    .sch-header-inner { padding: 14px 16px; }
}
