/* ==========================================================================
   CSS Variables & Root Tokens
   ========================================================================== */
   :root {
    /* Brand Colors */
    --color-primary: #2D5A27;   /* Forest Green */
    --color-secondary: #C5A028; /* Muted Gold */
    --color-accent: #F4F1DE;    /* Cream/Beige */
    
    /* Extended Palette */
    --color-white: #FFFFFF;
    --color-off-white: #F9F9F9;
    --color-dark: #111111;
    --color-text-main: #2D5A27; /* Dark green for text on light bg */
    --color-text-light: #F4F1DE; /* Cream for text on dark bg */
    --color-whatsapp: #25D366;

    /* Typography */
    --font-primary: 'Sora', sans-serif; /* Headings */
    --font-secondary: 'Lora', serif;    /* Body */
    
    /* Fluid Typography Scales */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(2rem, 1.7rem + 1.5vw, 2.5rem);
    --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(3rem, 2.5rem + 3.5vw, 5rem);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;

    /* Layout */
    --container-max-width: 1400px;
    --container-padding: clamp(16px, 4vw, 64px);
    --header-height: 80px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: initial; /* Lenis handles smooth scroll */
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Lenis required styles */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: inherit;
}

p {
    margin-bottom: var(--space-sm);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

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

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.section-inner {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-inline: var(--container-padding);
}

.edge-to-edge {
    width: 100vw;
    max-width: 100vw;
    margin-inline: 0;
    padding-inline: 0;
}

.text-center { text-align: center; }
.text-gold { color: var(--color-secondary); }
.text-white { color: var(--color-white); }
.text-primary { color: var(--color-primary); }
.bg-primary { background-color: var(--color-primary); }
.bg-accent { background-color: var(--color-accent); }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.mr-2 { margin-right: 0.5rem; }

.font-weight-bold { font-weight: 700; }

.rounded-image { border-radius: var(--border-radius-md); overflow: hidden; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-base);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-primary:hover {
    background-color: #1e3d1a;
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}
.btn-secondary:hover {
    background-color: #a38421;
    color: var(--color-white);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-primary);
}
.btn-accent:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: var(--color-white);
}
.btn-whatsapp:hover {
    background-color: #1ebe57;
    color: var(--color-white);
}

.full-width { width: 100%; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    /* Default transparent for hero overlay */
    background-color: transparent; 
}

.site-header.scrolled,
.site-header.solid-bg {
    background-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-inline: var(--container-padding);
}

/* Logo Logic */
.logo-container a {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 48px;
    width: auto;
}

/* Default state (transparent header over dark hero) -> Show Dark Logo (which is light colored) */
.site-header .base-logo { display: none; }
.site-header .dark-logo { display: block; }

/* Scrolled or Solid state (cream background) -> Show Base Logo (dark green) */
.site-header.scrolled .base-logo,
.site-header.solid-bg .base-logo { display: block; }
.site-header.scrolled .dark-logo,
.site-header.solid-bg .dark-logo { display: none; }

/* Navigation Links */
.main-nav {
    display: none; /* Hidden on mobile by default */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white); /* Default for transparent header */
    position: relative;
}

.site-header.scrolled .nav-links a,
.site-header.solid-bg .nav-links a {
    color: var(--color-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.action-icon {
    font-size: 1.25rem;
    color: var(--color-white);
    position: relative;
}

.site-header.scrolled .action-icon,
.site-header.solid-bg .action-icon {
    color: var(--color-primary);
}

.cart-icon .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-white);
    cursor: pointer;
}

.site-header.scrolled .mobile-menu-toggle,
.site-header.solid-bg .mobile-menu-toggle {
    color: var(--color-primary);
}

/* Mobile Menu Overlay */
.main-nav.mobile-active {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-accent);
    flex-direction: column;
    padding: 2rem var(--container-padding);
    box-shadow: var(--shadow-md);
}

.main-nav.mobile-active .nav-links {
    flex-direction: column;
    gap: 1.5rem;
}

.main-nav.mobile-active .nav-links a {
    color: var(--color-primary);
    font-size: var(--text-lg);
}

/* Desktop Nav */
@media (min-width: 1024px) {
    .mobile-menu-toggle { display: none; }
    .main-nav { display: block; }
    
    /* Reorder for desktop: Nav - Logo - Actions */
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
    .main-nav { justify-self: start; }
    .logo-container { justify-self: center; }
    .header-actions { justify-self: end; }
    
    .logo-img { max-height: 56px; }
}

/* ==========================================================================
   Home Page Sections
   ========================================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17,17,17,0.4) 0%, rgba(17,17,17,0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 var(--container-padding);
    max-width: 800px;
}

.hero-title {
    font-size: var(--text-5xl);
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Promise Section */
.promise-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-accent);
}

.promise-section .section-title {
    font-family: var(--font-secondary); /* Using Lora for editorial feel here as per mockup */
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
}

.promise-section .lead-text {
    font-size: var(--text-2xl);
    font-weight: 500;
    margin-bottom: var(--space-md);
    color: var(--color-dark);
}

.promise-section .body-text {
    font-size: var(--text-base);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.promise-image-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.promise-image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Collections Section */
.collections-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-accent);
}

.collections-section .section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-lg);
    letter-spacing: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-image {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: var(--color-off-white);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.card-content {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: var(--text-sm);
    color: #555;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--text-lg);
    margin-bottom: 1.5rem;
}

/* Story Section */
.story-section {
    padding: var(--space-lg) 0;
    background-color: var(--color-accent);
}

.image-trio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .image-trio-grid { grid-template-columns: repeat(3, 1fr); }
}

.trio-item img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-accent);
}

.testimonials-section .section-title {
    font-family: var(--font-secondary);
    font-size: var(--text-4xl);
    margin-bottom: var(--space-lg);
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .testimonial-card { flex: 0 0 calc(50% - 1rem); }
}

@media (min-width: 1024px) {
    .testimonial-card { flex: 0 0 calc(33.333% - 1.33rem); }
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.user-name {
    font-size: var(--text-base);
    margin-bottom: 0;
}

.user-role {
    font-size: var(--text-xs);
    color: #666;
}

.stars {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.testimonial-text {
    font-size: var(--text-sm);
    font-style: italic;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
}

.dot.active {
    background-color: var(--color-primary);
}

/* Journal Snippet */
.journal-snippet-section {
    padding: var(--space-lg) 0 var(--space-xl);
    background-color: var(--color-accent);
}

.journal-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .journal-card { flex-direction: row; align-items: center; }
    .journal-image { width: 40%; }
    .journal-content { width: 60%; padding: 3rem; }
}

.journal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
}

.journal-content {
    padding: 2rem;
}

.journal-title {
    font-size: var(--text-2xl);
    margin-bottom: 1rem;
}

.journal-excerpt {
    font-size: var(--text-base);
    margin-bottom: 1.5rem;
}

.text-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */
.page-padding-top {
    padding-top: var(--header-height);
}

.page-hero {
    padding: var(--space-xl) 0;
}

.page-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-sm);
}

.page-subtitle {
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.contact-content-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-accent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr 1fr; }
}

.card-style {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.section-title-small {
    font-size: var(--text-2xl);
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

/* Forms */
.standard-form .form-group {
    margin-bottom: 1.5rem;
}

.standard-form label {
    display: block;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.standard-form input,
.standard-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    background-color: var(--color-off-white);
    transition: border-color 0.3s ease;
}

.standard-form input:focus,
.standard-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Contact Info Blocks */
.info-title {
    font-size: var(--text-xl);
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.info-text {
    font-size: var(--text-base);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.detail-heading {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.detail-text {
    font-size: var(--text-sm);
    color: #555;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 2rem var(--container-padding);
}

.footer-decorative-border {
    border: 2px solid var(--color-secondary);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl) 0 var(--space-md);
}

.newsletter-block {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    padding: 0 1rem;
}

.footer-heading {
    font-size: var(--text-xl);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 600px) {
    .input-group { flex-direction: row; }
    .input-group input { flex-grow: 1; margin-bottom: 0; }
    .input-group button { width: auto; }
}

.input-group input {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-size: var(--text-base);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-logo {
    max-height: 44px;
    margin-bottom: 1rem;
    /* Ensure base logo is visible on dark bg if it's light, but contract says use base logo unless dark/warm. 
       Wait, base logo is dark green. Footer is dark green. It won't be visible.
       Contract: "In footer, use base logo unless footer background is dark/warm."
       Footer IS dark green. So I should use the dark-theme logo here too for visibility.
       Let's override the src via CSS or just use the dark logo URL directly in HTML for footer.
       Actually, I used the base logo URL in HTML. I will apply a filter to make it white if it's an SVG, 
       or better, just use the dark logo URL in the HTML for the footer.
       Let me adjust the HTML to use the dark logo in the footer.
       Wait, I can't change HTML now. I'll use CSS filter to invert or brightness if needed, 
       but the contract says "use base logo unless footer background is dark/warm". 
       Since footer is dark, I *should* have used dark logo. 
       I will use CSS to swap them if I included both, but I only included base.
       Let's use CSS filter to make it readable: `filter: brightness(0) invert(1);` for the base logo in footer. */
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: var(--text-sm);
    opacity: 0.8;
}

.footer-subheading {
    font-size: var(--text-lg);
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: var(--text-sm);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--color-white);
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--color-secondary);
}

.payment-icons i {
    font-size: 2rem;
    margin-right: 0.5rem;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: var(--text-xs);
    opacity: 0.6;
}