/* =====================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
===================================================== */
:root {
    --primary: #111111;
    --primary-mid: #2a2a2a;
    --accent: #ffd700;
    --white: #ffffff;
    --off-white: #f4f6f8;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --font: 'Montserrat', sans-serif;
    --header-h: 72px;
    --transition: 0.25s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
    --gold: #c79e5c;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =====================================================
   TYPOGRAPHY HELPERS
===================================================== */
.section-title {
    color: var(--primary);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-light);
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.section-banner {
    background: var(--primary);
    color: var(--accent);
    text-align: center;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* =====================================================
   LAYOUT CONTAINER
===================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* =====================================================
   HEADER
===================================================== */
#header-placeholder {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
}

header {
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    transition: height var(--transition), box-shadow var(--transition), background-color var(--transition);
}

header.sticky {
    height: 64px;
    box-shadow: var(--shadow-md);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1.5px;
    line-height: 1.25;
    text-transform: uppercase;
}

.logo-text small {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: color var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--gold);
}

nav a.active {
    color: var(--gold);
}

nav a.active::after {
    width: 100%;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    padding: 4px;
    line-height: 0;
}

.mobile-nav {
    display: flex; /* Keep flex layout, control display state with opacity and pointer-events for smooth transitions */
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(17, 17, 17, 0.45); /* Elegant dark backdrop to contrast the white slats */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    flex-direction: column;
    padding: 0; /* No padding so slats line up perfectly */
    gap: 0; /* No gaps so they look like adjacent shutter slats */
    border-top: 1px solid var(--border);
    overflow-y: auto;
    align-items: stretch;
    perspective: 1200px; /* 3D Depth Context for rotation */
    
    /* Fade/Blur transition when closing */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.mobile-nav a {
    display: block;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 22px 40px; /* Generous vertical padding to feel like premium slats */
    border-bottom: 1px solid var(--border);
    background: var(--white);
    text-align: left;
    
    /* 3D Shutter/Slat properties */
    transform-origin: top;
    transform: rotateX(-90deg); /* Start rotated flat/invisible */
    opacity: 0;
    backface-visibility: hidden;
    
    /* Smooth close transition */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.3s ease, 
                color var(--transition), 
                background-color var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--gold);
}

/* Shutter Slats Animation when menu opens */
.mobile-nav.open a {
    animation: shutterOpen 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

/* Staggered animation delays for the shutter slats */
.mobile-nav.open a:nth-child(1) { animation-delay: 0.04s; }
.mobile-nav.open a:nth-child(2) { animation-delay: 0.10s; }
.mobile-nav.open a:nth-child(3) { animation-delay: 0.16s; }
.mobile-nav.open a:nth-child(4) { animation-delay: 0.22s; }
.mobile-nav.open a:nth-child(5) { animation-delay: 0.28s; }
.mobile-nav.open a:nth-child(6) { animation-delay: 0.34s; }

@keyframes shutterOpen {
    0% {
        transform: rotateX(-90deg);
        opacity: 0;
        background-color: var(--off-white);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
        background-color: var(--white);
    }
}

/* =====================================================
   WHATSAPP FLOATING BUTTON
===================================================== */
#whatsapp-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    background-color: #25d366;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
}

#whatsapp-button:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: var(--white);
}

#whatsapp-button img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    transition: margin-right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-text {
    display: inline-block;
    max-width: 120px;
    opacity: 1;
    transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Collapsed State */
#whatsapp-button.collapsed {
    padding: 12px;
    max-width: 48px;
}

#whatsapp-button.collapsed img {
    margin-right: 0;
}

#whatsapp-button.collapsed .whatsapp-text {
    max-width: 0;
    opacity: 0;
}

/* Expand on Hover when Collapsed */
#whatsapp-button.collapsed:hover {
    padding: 12px 24px;
    max-width: 220px;
}

#whatsapp-button.collapsed:hover img {
    margin-right: 10px;
}

#whatsapp-button.collapsed:hover .whatsapp-text {
    max-width: 120px;
    opacity: 1;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 30px 0;
    border-top: 1px solid var(--primary-mid);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 24px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.footer-contact-list li i {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 3px;
    width: 16px;
    height: 16px;
}

.footer-contact-list li a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-contact-list li a:hover {
    color: var(--white);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-socials a {
    font-size: 13px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}

.footer-socials a i {
    width: 16px;
    height: 16px;
}

.footer-socials a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--gold);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* =====================================================
   PRODUCT CARDS (CONSOLIDATED)
===================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.product-card-img {
    position: relative;
    overflow: hidden;
    height: 240px;
    cursor: pointer;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.04);
}

.product-card-body {
    padding: 24px;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}

.product-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.product-card-body p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* =====================================================
   TESTIMONIALS (CONSOLIDATED)
===================================================== */
.testimonials-section {
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.testimonials-section .section-title {
    color: var(--gold);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
    justify-content: center;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 36px;
    border-left: 4px solid var(--gold);
    text-align: left;
}

.testimonial-card p {
    font-size: 14px;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 16px;
    opacity: 0.9;
}

.testimonial-author {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
   CONTACT SECTION & FORM (CONSOLIDATED)
===================================================== */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
    margin-bottom: 60px;
}

.contact-info h3 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.contact-info ul {
    margin-bottom: 40px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 14.5px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-info li i {
    flex-shrink: 0;
    color: var(--gold);
    margin-top: 4px;
    width: 20px;
    height: 20px;
}

.contact-info li strong {
    display: block;
    color: var(--primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    font-family: var(--font);
    font-size: 13.5px;
    margin-bottom: 24px;
    transition: border-color var(--transition), background-color var(--transition);
    outline: none;
    background: var(--off-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    background: var(--white);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 36px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    width: 100%;
}

.contact-form button:hover {
    background: var(--gold);
    transform: translateY(-2px);
    color: var(--primary);
}

/* =====================================================
   RESPONSIVE BASE BREAKPOINTS
===================================================== */
@media (max-width: 960px) {
    header {
        padding: 0 30px;
    }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-split {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }

    nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .container {
        padding: 44px 20px;
    }

    .product-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    #whatsapp-button {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 12px;
        max-width: 200px;
    }

    #whatsapp-button img {
        width: 20px;
        height: 20px;
    }

    #whatsapp-button.collapsed {
        padding: 10px;
        max-width: 40px;
    }

    #whatsapp-button.collapsed img {
        margin-right: 0;
    }

    #whatsapp-button.collapsed .whatsapp-text {
        max-width: 0;
        opacity: 0;
    }

    #whatsapp-button.collapsed:hover {
        padding: 10px 20px;
        max-width: 200px;
    }

    #whatsapp-button.collapsed:hover img {
        margin-right: 10px;
    }

    #whatsapp-button.collapsed:hover .whatsapp-text {
        max-width: 120px;
        opacity: 1;
    }

    footer {
        padding: 60px 0 30px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
