/* 
   =========================================
   MOBILE-FIRST STYLESHEET
   Boutique Curtains Business
   =========================================
*/

:root {
    /* Color Palette - Boutique/Neutral/Elegant */
    --primary-color: #8c7b75; /* Taupe/Earth Tone */
    --secondary-color: #2c2c2c; /* Charcoal */
    --accent-color: #d4af37; /* Gold/Brass for premium feel */
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    
    /* Spacing & Sizes */
    --container-padding: 20px;
    --section-gap: 60px;
    --border-radius: 8px;
    --header-height: 70px;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

/* Reset & Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base size, minimum readability */
    scroll-padding-top: calc(var(--header-height));
}

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

.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 4px;
    z-index: 2000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 10px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1.2;
}

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

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    padding: 0 var(--container-padding);
    width: 100%;
    max-width: 1200px; /* Will only apply on desktop */
    margin: 0 auto;
}

.section {
    padding: var(--section-gap) 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px; /* Slightly rectangular for elegance */
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    min-height: 48px; /* Touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #25D366; /* WhatsApp Green for primary CTA */
    color: var(--white);
}

.btn-primary:hover {
    background-color: #1ebc59;
}

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

.btn-secondary:hover {
    background-color: #000;
}

/* Sticky Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Nav Controls (Lang + Hamburger) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.lang-toggle:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-menu {
    position: fixed;
    left: -100%;
    top: var(--header-height);
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    height: calc(100vh - var(--header-height));
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    overflow-y: auto;
    padding-bottom: 50px;
}

.nav-menu.active {
    left: 0;
}

.nav-item {
    margin: 20px 0;
}

.nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-color);
    display: block;
    padding: 10px; /* Increase touch area */
}

.btn-nav {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
}

/* Hamburger */
.hamburger {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px; /* Touch target */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary-color);
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    margin-top: var(--header-height);
    padding: 60px 20px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/placeholder.svg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    min-height: 80vh; /* Looks good on phone */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero .subheadline {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 320px;
}

/* Services */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: 20px;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cols on mobile for gallery usually works better */
    gap: 10px;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.gallery-item img:hover {
    opacity: 0.9;
}

/* Why Us */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 3px;
}

/* Process */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: center;
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    aspect-ratio: 1 / 1;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Testimonials */
.testimonials-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.testimonial .quote {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial .author {
    font-weight: 700;
    color: var(--secondary-color);
}

/* FAQ Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    color: var(--secondary-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

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

.accordion-header.active i {
    transform: rotate(180deg);
}

/* Contact */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background-color: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-radius: var(--border-radius);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 25px 0 15px;
    text-align: center;
    border-top: 3px solid var(--accent-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.footer-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-links a {
    color: var(--white);
    font-size: 1.6rem;
    margin: 0 12px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.dev-signature {
    font-size: 0.8rem;
    color: var(--text-light);
}

.dev-signature a {
    color: var(--white);
    font-weight: 700;
    transition: color 0.3s;
    padding-top: 0px;
}

.dev-signature a:hover {
    color: var(--accent-color);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.floating-instagram {
    position: fixed;
    bottom: 20px;
    right: 95px; /* 20px (right) + 60px (width) + 15px (gap) */
    width: 60px;
    height: 60px;
    background: #d62976; /* Instagram simplified color */
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d62976 60%, #285AEB 90%);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.floating-instagram:hover {
    transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    backdrop-filter: blur(2px);
}

.lightbox-content {
    display: block;
    width: auto;
    max-width: min(92vw, 980px);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    transform: scale(0.98);
    cursor: zoom-in;
    background-color: #111;
    touch-action: pan-y;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox.zoomed .lightbox-content {
    transform: scale(1.6);
    cursor: zoom-out;
    box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px; /* larger touch target */
}

/* =========================================
   RESPONSIVE QUERIES (Tablet & Desktop)
   Mobile-first: Min-width triggers
   ========================================= 
*/

/* Tablet (≥ 768px) */
@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-cta {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }

    .contact-grid {
        flex-direction: row;
    }

    .contact-info, .contact-map {
        flex: 1;
    }
    
    /* Move Language Toggle to the right of menu in desktop? 
       Actually, keep it simple. It's inside nav-controls.
       We need to make sure nav-controls doesn't obscure the Menu in Desktop.
    */
}

/* Desktop (≥ 1024px) */
@media (min-width: 1024px) {
    /* Layout Adjustments */
    .section {
        padding: 100px 0;
    }

    .hamburger {
        display: none;
    }
    
    .nav-controls {
        order: 2;
        margin-left: 30px; /* Space between Menu and Lang */
    }
    
    .logo {
        order: 0;
    }

    .nav-menu {
        display: flex; /* Critical Fix */
        order: 1;
        position: static;
        flex-direction: row;
        align-items: center;
        height: auto;
        width: auto;
        background: transparent;
        box-shadow: none;
        padding-bottom: 0;
        gap: 30px; /* Clean gap between items */
        margin-left: auto;
    }
    
    .nav-item {
        margin: 0; /* Let gap handle spacing */
    }
    
    .nav-link {
        font-size: 1.05rem;
        font-weight: 500;
        position: relative;
        padding: 5px 0; /* Reduce padding to ensure hover line is close */
        color: var(--secondary-color);
    }
    
    /* Remove hover effect from Button style link to avoid double border/line */
    .nav-link.btn-nav {
        padding: 12px 28px;
        color: white;
    }
    .nav-link.btn-nav::after {
        display: none;
    }

    /* Desktop Hover Effect for Standard Nav Links */
    .nav-link:not(.btn-nav)::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0px;
        left: 0;
        background-color: var(--accent-color);
        transition: width 0.3s;
    }

    .nav-link:not(.btn-nav):hover::after {
        width: 100%;
    }

    /* Hero Tuning */
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero .subheadline {
        font-size: 1.5rem;
    }

    /* Grid Expansions */
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Card Hover Lift */
    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .features-list {
        flex-direction: row;
    }
    
    .process-steps {
        flex-direction: row;
    }

    .testimonials-wrapper {
        flex-direction: row;
    }
    
    .testimonial {
        flex: 1;
    }

    /* Footer Desktop */
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 10px;
        gap: 5px; /* Closer spacing for desktop */
    }

    .footer-content > p {
        flex: auto;
        text-align: left;
    }

    .dev-signature {
        flex: auto;
        text-align: left;
        margin-top: 0;
    }
}
