/* GLOBAL DESIGN SYSTEM */
:root {
    /* Colors */
    --color-black: #000000;
    --color-dark: #0a0a0a;
    --color-dark-grey: #1a1a1a;
    --color-white: #ffffff;
    --color-white-off: #f8f8f8;
    --color-text-dark: #e0e0e0;
    --color-text-light: #121212;
    --color-border-light: #eaeaea;
    --color-border-dark: #333333;

    /* Typography */
    --font-heading: 'Segoe UI Black', 'Arial Black', 'Inter', Impact, sans-serif;
    --font-main: 'Inter', sans-serif;
    --font-body: 'Aptos', 'Segoe UI', Arial, sans-serif;
    
    /* Spacing */
    --spacing-huge: 160px;
    --spacing-large: 120px;
    --spacing-medium: 80px;
    --spacing-small: 40px;

    /* Constants */
    --nav-height: 80px;
    --transition-speed: 0.8s;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-black);
    color: var(--color-text-dark);
    line-height: 1.6;
    letter-spacing: -0.02em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* TYPOGRAPHY SYSTEM ENFORCEMENT */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
}

/* SECTION STRICT TYPOGRAPHY ROLES */
.section-hero p { font-family: var(--font-main); }
.section-about h3 { font-family: var(--font-main); }
.section-about p { font-family: 'Aptos', sans-serif !important; }
.section-transition { font-family: var(--font-body); }
.section-testimonial .quote { font-family: var(--font-main); }
.section-testimonial .author, .section-testimonial .role { font-family: var(--font-body); }
.section-contact .contact-grid { font-family: var(--font-main); }

/* Headings: Bold, large, clean */
h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}
h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}
/* Subheadings: Medium weight */
h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 24px;
    opacity: 0.8;
}
h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}
/* Body: Regular weight */
p {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Tonal Overrides per Section */
/* Hero: bold and aspirational */
.hero-content h1 { font-weight: 800; letter-spacing: -0.05em; }
.hero-content p { font-weight: 500; font-size: 1.5rem; }
/* About: calm and human */
.about-content p { font-weight: 300; line-height: 1.8; }

/* GRID SYSTEM (12 Column) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-12 { grid-column: span 12; }

/* THEMES & SMOOTH BLENDING */
.theme-dark {
    background-color: var(--color-black);
    color: var(--color-white);
    position: relative;
}

.theme-light {
    background-color: var(--color-white);
    color: var(--color-black);
    position: relative;
}

.theme-footer {
    background-color: var(--color-dark-grey);
    color: var(--color-white);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 18px; /* Strict proportional overrides */
    border-radius: 40px;
    font-family: var(--font-body); /* Set explicitly */
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.05em;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--color-border-light);
    transform: translateY(-2px);
}

.theme-light .btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
}

.theme-light .btn-primary:hover {
    background-color: var(--color-dark-grey);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.125rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-black);
    color: var(--color-black);
}

.btn-outline:hover {
    background: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* PLACEHOLDER IMAGES (For strict JSON slot requirements) */
.placeholder-box {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.875rem;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.theme-dark .placeholder-box {
    background-color: #1a1a1a;
    color: #555;
}

/* PROMO BANNER */
.promo-banner {
    background-color: #059669; /* Balanced Medium Emerald Green */
    color: white;
    text-align: center;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-main);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    margin: 0;
    line-height: 1.4;
    transition: transform 0.3s ease;
}

/* JS Triggered Class for Header Hide */
body.nav-up .promo-banner {
    transform: translateY(-100%);
}
body.nav-up .navbar {
    top: 0;
}

.theme-light .promo-banner, .theme-footer .promo-banner {
    background-color: #059669; /* Force green universally */
    color: #fff;
}

/* 1. NAVBAR */
.navbar {
    position: fixed;
    top: var(--banner-height, 40px); /* Dynamic offset tracking banner height */
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: top 0.3s ease, background 0.3s, border-color 0.3s, color 0.3s;
    color: var(--color-white);
}

.navbar.scrolled-light {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--color-black);
}

.navbar.scrolled-light .logo, 
.navbar.scrolled-light .nav-links a,
.navbar.scrolled-light #searchIconBtn,
.navbar.scrolled-light #mobileMenuBtn {
    color: var(--color-black);
}

.navbar.scrolled-light .brand-logo {
    filter: invert(0);
}

/* MOBILE DROPDOWN (WhatsApp Style) */
.mobile-dropdown {
    display: none;
    position: absolute;
    right: 20px;
    top: calc(var(--nav-height) - 10px);
    width: 220px;
    background: #111; /* Default Dark Theme */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar.scrolled-light .mobile-dropdown {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mobile-dropdown a {
    padding: 16px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}

.navbar.scrolled-light .mobile-dropdown a {
    color: #000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-dropdown a:last-child {
    border-bottom: none;
}

.mobile-dropdown a:hover {
    background: rgba(255,255,255,0.05);
}

.navbar.scrolled-light .mobile-dropdown a:hover {
    background: rgba(0,0,0,0.03);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    background: transparent !important;
    border: none !important;
    padding: 0;
    box-shadow: none !important;
}

.brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    background: transparent;
    transition: filter var(--transition-speed) ease;
}

.theme-dark .brand-logo, 
.navbar:not(.scrolled-light) .brand-logo {
    filter: invert(1) brightness(200%);
}

.navbar.scrolled-light .brand-logo {
    filter: invert(0);
}

/* SEARCH BAR */
.nav-search-input {
    width: 100%;
    min-width: 200px;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    background: transparent;
    color: var(--color-white);
    font-size: 0.875rem;
    font-family: 'Aptos', var(--font-main);
    transition: all 0.3s ease;
    outline: none;
}
.nav-search-input::placeholder { color: rgba(255,255,255,0.6); }

.navbar.scrolled-light .nav-search-input {
    border-bottom: 1px solid rgba(0,0,0,0.3);
    color: var(--color-black);
}
.navbar.scrolled-light .nav-search-input::placeholder {
    color: rgba(0,0,0,0.5);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-white);
}

/* 2. HERO */
.section-hero {
    height: 100vh;
    padding-top: var(--banner-height, 40px); /* Offset for initial fixed layout */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 70%);
}

@media (max-width: 900px) {
    .section-hero {
        min-height: 100vh;
        height: 100vh;
        padding-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    mix-blend-mode: screen;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}
.hero-content p {
    margin-bottom: 40px;
    font-size: 1.25rem;
}

/* 3. ABOUT */
.section-about {
    padding: var(--spacing-huge) 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 10%;
}

.about-image {
    display: flex;
    align-items: center;
}

/* 4. TRANSITION (Signature Moment) */
.section-transition {
    background-image: url('images/transition.webp');
    background-attachment: fixed; 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 80vh; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.transition-vignette {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 30%, rgba(0,0,0,0.85) 100%);
    z-index: 1; pointer-events: none;
}

/* 4B. PRODUCTS INTRO */
.section-products-intro {
    padding: var(--spacing-medium) 0 0 0;
    text-align: center;
    z-index: 10;
}
.intro-content { max-width: 700px; margin: 0 auto; padding: 0 5%; }
.intro-content h2 { margin-bottom: 12px; }
.intro-content p { font-size: 1.25rem; font-weight: 300; opacity: 0.7; }

/* 5. PRODUCT GRID */
.section-products {
    padding: var(--spacing-huge) 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* forces consistent grid heights */
    gap: 24px;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.product-card .image-slot {
    width: 100%;
    height: 360px;
    padding: 20px 0;
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.product-card .image-slot img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    object-position: center;
    margin: auto;
    display: block;
    transition: transform 0.4s ease;
}

.product-card .image-slot:hover img {
    transform: scale(1.02);
}

.product-card:hover .image-slot {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); /* Soft shadow as requested */
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes button to bottom boundary dynamically */
    justify-content: flex-end;
}

.product-info h4 {
    margin-bottom: 4px;
    font-weight: 600; /* Clean & Commercial */
}

.product-info .price {
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: 24px;
}

/* 6. TESTIMONIAL CAROUSEL */
.section-testimonial { padding: var(--spacing-huge) 0; }
.testimonial-carousel {
    max-width: 800px; margin: 0 auto; position: relative; padding: 0 5%;
    overflow: hidden; /* Hide horizontal scroll */
}
.carousel-track {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}
.carousel-slide {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.carousel-slide.active-slide { 
    opacity: 1; 
    pointer-events: auto;
}
.carousel-slide .quote {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 300; line-height: 1.6; margin-bottom: 24px; color: var(--color-white);
}
.carousel-slide .author { font-size: 1.125rem; font-weight: 700; margin-bottom: 4px; }
.carousel-slide .role { font-size: 0.875rem; font-weight: 300; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.05em; }

.carousel-dots {
    display: flex; justify-content: center; gap: 12px; margin-top: 40px;
}
.carousel-dots .dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.2); border: none; cursor: pointer; transition: background 0.3s, transform 0.3s;
    padding: 0; margin: 0;
    box-sizing: border-box;
    aspect-ratio: 1/1;
    flex-shrink: 0;
}
.carousel-dots .dot.active {
    background: var(--color-white); transform: scale(1.2); outline: none;
}

/* 7. FAQ */
.section-faq {
    padding: var(--spacing-huge) 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 5%;
}

.faq-container h2 {
    text-align: center;
    margin-bottom: 60px;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border-light);
}

.accordion-header {
    width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-black);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content p {
    padding-bottom: 24px;
}

/* 8. CONTACT */
.section-contact {
    padding: var(--spacing-large) 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    text-align: center;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.social-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 300;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.contact-details p {
    margin-bottom: 12px;
}

/* 9. FOOTER */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copy {
    font-size: 0.875rem;
    opacity: 0.4;
}

/* ANIMATIONS & EFFECTS */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .product-card .image-slot {
        height: 180px; /* Compress height for 2-col layout */
    }

    .product-title {
        font-family: var(--font-heading) !important;
        font-size: 1.15rem !important;
        font-weight: 900 !important;
        line-height: 1.2;
        margin-bottom: 4px;
    }
    
    .product-price {
        font-family: var(--font-main) !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        opacity: 0.7;
    }

    .card-actions {
        display: none !important; /* Hide buttons on mobile */
    }

    .section-hero .btn-large {
        width: max-content !important;
        display: inline-block !important;
        padding: 14px 40px !important;
        margin: 0 auto !important;
        border-radius: 50px !important;
        font-size: 1.05rem !important;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    #mobileMenuBtn {
        display: flex !important;
    }

    .nav-links {
        display: none; /* simple mobile nav approach for landing */
    }
    
    .section-transition {
        background-attachment: scroll !important; /* Fixes iOS zoom jump */
        background-size: cover !important; /* Eradicates black letterboxing natively */
        background-position: center center;
        height: 30vh; /* Scaled proportional container wrap */
    }
    
    .col-mobile-12 {
        grid-column: span 6; /* 2 columns on mobile instead of 1 */
    }
    
    .about-content {
        grid-column: span 12; /* Full width strictly for About section */
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
        order: 2; /* Force text to bottom */
    }

    .about-image {
        grid-column: span 12; /* Full width strictly for About section */
        order: 1; /* Force image to top */
        margin-bottom: 24px;
    }
    
    .footer-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .nav-container {
        padding: 0 15px;
    }

    .nav-right {
        gap: 12px !important; /* Tighten icons for better proportions */
    }

    #mobileMenuBtn {
        padding-left: 15px !important; /* Closer spacing for the hamburger */
    }

    .navbar .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        width: auto;
    }

    /* Prevent text wrapping if button text is long */
    .cta-nav {
        white-space: nowrap;
    }
}

/* 10. FLOATING WHATSAPP ICON */
.whatsapp-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeUpIn 0.5s ease 3s both; /* Delayed appearance */
}

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

.whatsapp-tooltip {
    background: #fff;
    color: #333;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.theme-dark .whatsapp-tooltip {
    background: #222;
    color: #fff;
    border: 1px solid #333;
}
.theme-dark .whatsapp-tooltip::after {
    border-color: transparent transparent transparent #222;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

@media (max-width: 900px) {
    .promo-banner {
        padding: 5px 12px;
        font-size: 0.75rem;
        line-height: 1.25;
    }
    .whatsapp-container {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-tooltip {
        display: none; /* Hide tooltip on mobile to avoid clutter */
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* 11. SEE MORE LINK */
.see-more-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-black);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 10px;
}

.theme-dark .see-more-link {
    color: var(--color-white);
}

.see-more-link:hover {
    opacity: 0.6;
    transform: translateX(5px);
}

/* 12. SOCIAL ICONS CLEAN UI */
.social-icons {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.social-icons .social-link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons .social-link:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

/* 13. GLOBAL IMAGE OVERRIDE */
.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
}

/* 14. PRODUCT CARD OUTLINE */
.product-card {
    border: 1px solid rgba(0,0,0,0.08); /* Clean minimalist boundary */
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-dark .product-card {
    border: 1px solid rgba(255,255,255,0.08);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
