/* ==========================================
   OG KOMBUCHA - DESIGN SYSTEM & STYLESHEET
   ========================================== */

/* --- CSS Variables --- */
:root {
    --bg-canvas: #F9F6EE;
    --bg-card: #F2EEE5;
    --bg-card-alt: #FAF7F2;
    --color-green-primary: #254E34;
    --color-green-hover: #1A3A26;
    --color-green-light: #E7EFE9;
    --color-text-dark: #1F2420;
    --color-text-body: #576056;
    --color-text-muted: #828B80;
    --color-border: #E3DDD0;
    --color-border-focus: #254E34;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-pill: 9999px;
    --radius-lg: 28px;
    --radius-md: 16px;
    --radius-sm: 12px;
    
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
    --shadow-md: 0 12px 32px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 48px rgba(0,0,0,0.1);
    
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    background-color: var(--bg-canvas);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    user-select: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-green-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(37, 78, 52, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 78, 52, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-large {
    font-size: 1.05rem;
    padding: 1rem 2.4rem;
}

.btn-secondary {
    background-color: #F7F4EB;
    color: var(--color-text-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.btn-secondary .arrow-icon {
    margin-left: 8px;
    transition: transform 0.25s ease;
}

.btn-secondary:hover .arrow-icon {
    transform: translateX(4px);
}

.btn-block {
    width: 100%;
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--color-green-primary);
    color: var(--color-green-primary);
}

.btn-outline:hover {
    background-color: var(--color-green-light);
}

/* --- Navigation Header --- */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(249, 246, 238, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    height: 52px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover .header-logo {
    transform: scale(1.03);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 3rem 2.5rem 6rem;
    max-width: 1320px;
    margin: 0 auto;
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
}

.hero-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
    z-index: 2;
}

.hero-text-col {
    max-width: 580px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.eyebrow-line {
    width: 28px;
    height: 1.5px;
    background-color: var(--color-green-primary);
}

.eyebrow-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-green-primary);
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.12;
    color: var(--color-text-dark);
    margin-bottom: 1.8rem;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Hero Cards Visual Stack */
.hero-visual-col {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-cards-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
}

.hero-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    background-color: var(--bg-card);
}

.hero-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(0,0,0,0.14);
}

.card-tall {
    width: 220px;
    height: 440px;
}

.card-tall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-short {
    width: 200px;
    height: 380px;
    margin-top: 50px; /* Staggered effect matching UI mockup */
}

.card-short img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Background Decorative Elements */
.bg-leaf {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

.bg-leaf-left {
    top: 5%;
    left: -20px;
    width: 260px;
}

.bg-leaf-right {
    bottom: 5%;
    right: 10px;
    width: 180px;
}

.bg-bubbles {
    position: absolute;
    top: 40%;
    left: 48%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid #D8E2D4;
}

.bubble-1 { width: 32px; height: 32px; top: -60px; left: -20px; }
.bubble-2 { width: 22px; height: 22px; top: -20px; left: 15px; }
.bubble-3 { width: 14px; height: 14px; top: 15px; left: -35px; }
.bubble-4 { width: 18px; height: 18px; top: 40px; left: 30px; }


/* --- Feature Banner Section --- */
.banner-section {
    padding: 3rem 2.5rem;
    max-width: 1320px;
    margin: 0 auto;
}

.banner-container {
    width: 100%;
}

.banner-card {
    position: relative;
    width: 100%;
    min-height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.banner-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(25, 36, 26, 0.52) 0%, rgba(18, 26, 19, 0.65) 100%);
    backdrop-filter: blur(2px);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #FFFFFF;
    max-width: 680px;
    padding: 3.5rem 2rem;
}

.banner-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.banner-title {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: #FFFFFF;
}

.banner-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    margin-bottom: 2.2rem;
}


/* --- Early Access Form Section --- */
.form-section {
    position: relative;
    padding: 5rem 2.5rem 7rem;
    max-width: 1320px;
    margin: 0 auto;
}

.bg-leaf-form-left {
    top: 20%;
    left: 20px;
    width: 220px;
}

.bg-leaf-form-right {
    top: 15%;
    right: 20px;
    width: 220px;
}

.form-container {
    position: relative;
    z-index: 2;
    max-width: 580px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2.8rem;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.18;
    color: var(--color-text-dark);
    margin-bottom: 1.2rem;
}

.form-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-body);
    line-height: 1.5;
}

.form-card {
    background-color: var(--bg-canvas);
    border-radius: var(--radius-lg);
    padding: 0;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-left: 2px;
}

.form-group input {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    background-color: var(--bg-card);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.75;
}

.form-group input:focus {
    background-color: #FFFFFF;
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 4px rgba(37, 78, 52, 0.12);
}

.form-group.has-error input {
    border-color: #D32F2F;
    background-color: #FFF8F8;
}

.error-msg {
    font-size: 0.85rem;
    color: #D32F2F;
    display: none;
    margin-left: 2px;
}

.form-group.has-error .error-msg {
    display: block;
}

/* Button Loading Spinner */
.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.is-loading .btn-text {
    display: none;
}

.btn.is-loading .btn-spinner {
    display: inline-block;
}

.form-footer-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.8rem;
    font-size: 0.95rem;
    color: var(--color-text-body);
}

.shield-icon {
    width: 18px;
    height: 18px;
    color: var(--color-green-primary);
}

/* Success Feedback State */
.success-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    animation: fadeIn 0.4s ease;
}

.hidden {
    display: none !important;
}

.success-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-green-light);
    color: var(--color-green-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.success-state h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text-dark);
    margin-bottom: 0.8rem;
}

.success-state p {
    color: var(--color-text-body);
    margin-bottom: 1.8rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 2.5rem 2.5rem;
    text-align: center;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-logo {
    height: 44px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}


/* ==========================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .banner-title {
        font-size: 2.8rem;
    }
    
    .form-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 868px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3.5rem;
    }
    
    .hero-text-col {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .eyebrow {
        justify-content: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual-col {
        margin-top: 1rem;
    }
    
    .card-tall {
        width: 190px;
        height: 380px;
    }
    
    .card-short {
        width: 170px;
        height: 330px;
        margin-top: 40px;
    }
}

@media (max-width: 640px) {
    .header-container {
        padding: 0.8rem 1.5rem;
    }
    
    .header-logo {
        height: 42px;
    }
    
    #navCta {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .hero-section {
        padding: 2rem 1.5rem 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .banner-section {
        padding: 1.5rem 1.2rem;
    }
    
    .banner-card {
        min-height: 420px;
    }
    
    .banner-title {
        font-size: 2.2rem;
    }
    
    .banner-text {
        font-size: 1rem;
    }
    
    .form-section {
        padding: 3.5rem 1.2rem 5rem;
    }
    
    .form-title {
        font-size: 2.1rem;
    }
    
    .bg-leaf {
        display: none; /* Hide background SVGs on small screens for maximum speed & focus */
    }
}
