/* ================================================================
   SUNNYBANK FLOWERS – CORE DESIGN SYSTEM (BASE)
   Lower-level variables, resets, and foundational layout elements.
   ================================================================ */

:root {
    /* 🎨 BRAND SYNC - BOTANICAL EMERALD */
    --sb-emerald-deep: #1C4D44;
    --sb-emerald: #245E53;
    --sb-emerald-light: #307567;
    --sb-gold: #C5A059;
    --sb-gold-light: #E8D8B0;
    --sb-white: #FFFFFF;
    --sb-text: var(--sb-white);
    --sb-bg: var(--sb-emerald-deep);
    
    --pad: clamp(1rem, 3vw, 2.5rem);
    --max: 1200px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    
    /* 📏 TYPOGRAPHIC TOKENS */
    --h1: clamp(2.5rem, 6vw, 4.5rem);
    --h2: clamp(2rem, 5vw, 3.5rem);
    --h3: clamp(1.5rem, 4vw, 2rem);
    --body: 1.1rem;

    /* 🎨 2027 UPGRADE ACCENTS */
    --sb-studio-white: var(--sb-white);
    --sb-studio-sage: #B9C4AF;
    --sb-studio-text: #0B2C24;

    --sb-glass: rgba(255, 255, 255, 0.05); 
    --sb-glass-border: rgba(255, 255, 255, 0.18);
    --sb-text-muted: #E0E6ED;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 20px;
    --sb-section-pad: clamp(30px, 5vw, 60px);

    /* 🎨 INTERACTION DEPTH */
    --sb-perspective: 1200px;

    /* 📏 SPACING SYSTEM */
    --spacing-xs: 8px;
    --spacing-sm: clamp(0.8rem, 1.5vw, 1rem);
    --spacing-md: clamp(1rem, 2vw, 1.5rem);
    --spacing-lg: clamp(1.5rem, 3vw, 2rem);
    --spacing-xl: clamp(1.5rem, 2vw, 2.5rem);
    --spacing-2xl: clamp(2rem, 4vw, 3rem);
    --spacing-3xl: clamp(40px, 5vw, 80px);
    --spacing-4xl: clamp(60px, 8vw, 120px);

    /* 🎯 SECTION GAPS */
    --gap-small: clamp(0.8rem, 2vw, 1.5rem);
    --gap-medium: clamp(1.2rem, 2vw, 1.8rem);
    --gap-large: clamp(1.5rem, 3vw, 2.5rem);

    /* 🎨 DIVIDERS */
    --divider-thin: 1px;
    --divider-medium: 2px;
    --divider-border: 1px solid var(--sb-glass-border);
    --divider-gradient: linear-gradient(to right, transparent, var(--sb-gold), transparent);

    /* 📍 SECTION DIVIDER */
    --section-divider-height: 2px;
    --section-divider-width: 40px;
    --section-gap: 28px;
}

*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

body {
    background: var(--sb-bg);
    color: var(--sb-text);
    font-family: var(--font-sans);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* 🌀 2027 MESH GRADIENT BG */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(54, 133, 117, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(197, 160, 89, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(28, 77, 68, 1) 0%, rgba(19, 53, 47, 1) 100%);
    animation: sb-mesh-move 25s infinite alternate ease-in-out;
}

@keyframes sb-mesh-move {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(20px, -20px); }
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
}

/* ── CONTAINER ─────────────────────────────── */
.sb-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ── UTILITIES ─────────────────────────────── */
.sb-section-light {
    background: #FFFFFF;
    color: var(--sb-studio-text);
}
.sb-section-light h2, .sb-section-light h1 { color: var(--sb-studio-text); }
.sb-section-light p { color: rgba(11, 44, 36, 0.85); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sb-w-100 { width: 100%; }
.center { text-align: center; }
.v-center { display: flex; align-items: center; }
.all-center { display: flex; align-items: center; justify-content: center; }

/* 🕯️ LOADING ENGINE */
#sb-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(11, 44, 36, 0.85); /* Deep Sage frost */
    backdrop-filter: blur(40px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s var(--ease);
}

#sb-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(0) !important;
}

.sb-loader-content {
    text-align: center;
    animation: sb-loader-entry 1s var(--ease) forwards;
}

.sb-loader-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(197, 160, 89, 0.4));
}

@keyframes sb-loader-draw {
    0% { stroke-dashoffset: 200; opacity: 0; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -200; opacity: 0; }
}

@keyframes sb-loader-text {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-5px); opacity: 1; }
}

@keyframes sb-loader-entry {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* 🌀 2027 CONTENT REVEAL ENGINE - CENTER EXPANSION */
.sb-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.sb-reveal-child {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
}

/* ── LAYOUT DEFAULTS ───────────────────────── */
#sb-app {
    min-height: calc(100vh - 74px); /* Updated to match 24+50 header heights */
    padding-top: 73px; /* Overlap slightly to prevent subpixel gap below header */
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

@media (max-width: 768px) {
    #sb-app { padding-top: 64px; }
}

/* 🌀 ACCESSIBILITY - SKIP LINK */
.sb-skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    transition: all 0.3s var(--ease);
    z-index: 9999;
}

.sb-skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    padding: 1rem 2rem;
    background: var(--sb-gold);
    color: var(--sb-emerald-deep);
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    clip: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* ── UNIVERSAL HERO ENGINE ─────────────────── */
.sb-hero-global {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: clamp(40px, 5vw, 80px) var(--pad);
    margin-top: -73px;
}

.sb-hero-global .sb-container {
    z-index: 5;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sb-hero-logo-top {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
    z-index: 5;
    position: relative;
    text-align: center;
}

.sb-hero-global h1 {
    font-size: clamp(2.5rem, 6vw, var(--h1));
    color: var(--sb-white);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    line-height: 1.1;
    text-shadow: 0 12px 50px rgba(0,0,0,0.8), 0 4px 8px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4);
    font-family: 'Great Vibes', cursive;
}

.sb-hero-global h1 span {
    color: var(--sb-white) !important;
    font-family: 'Great Vibes', cursive;
}

.sb-hero-global p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    color: var(--sb-white);
    text-shadow: 0 8px 24px rgba(0,0,0,0.9), 0 2px 6px rgba(0,0,0,0.7);
    opacity: 0.95;
    line-height: 1.7;
}

.sb-hero-btns {
    display: flex;
    gap: var(--gap-small);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.sb-hero-global .sb-eyebrow,
.sb-hero-global .sb-kicker {
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 4px 16px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.5);
    color: var(--sb-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
}

.sb-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sb-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    color: transparent;
}

.sb-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(11, 44, 36, 0.4) 50%, rgba(11, 44, 36, 0.8) 100%);
    z-index: 2;
}

/* ✍️ SIGNATURE FONT UTILITY */
.sb-sig-font {
    font-family: 'Great Vibes', cursive;
    color: var(--sb-gold);
    font-size: 3rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .sb-hero-global {
        margin-top: -64px !important;
        padding-top: 110px !important;
    }
    .sb-hero-global:not(.sb-hero-small) {
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }
}

@media (max-width: 600px) {
    .sb-hero-global {
        margin-top: -64px !important;
        padding: 110px 1rem 40px !important;
    }
    .sb-hero-global h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .sb-hero-global p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    .sb-logo {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }
}

/* 🙈 WordPress Admin Bar Fail-safe Hide */
#wpadminbar {
    display: none !important;
}
html {
    margin-top: 0 !important;
}
* html body {
    margin-top: 0 !important;
}
@media screen and (max-width: 600px) {
    html {
        margin-top: 0 !important;
    }
}

/* 🛡️ Theme Hijacking Fail-safes: Hide native theme footers, headers, & sidebars when SPA is running */
footer:not(.sb-footer-luxe),
#footer:not(.sb-footer-luxe),
.site-footer:not(.sb-footer-luxe),
header:not(.sb-header):not(.sb-top-bar),
#header:not(.sb-header):not(.sb-top-bar),
.site-header:not(.sb-header):not(.sb-top-bar),
.theme-footer,
#colophon,
.sbf-mobile-panel,
.sbf-search-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

