﻿/* =========================================
1. VARIABLES & RESET
========================================= */
/* Fonts are loaded via <link rel="preconnect"> + <link> in each page <head> (faster than a CSS font import). */
:root {
    --color-primary: #4A2C1D;
    --color-secondary: #6D4C3D;
    --color-accent: #A87F2F;
    --color-accent-hover: #8C6826;
    --color-bg: #F9F7F4;
    --color-white: #FFFFFF;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #E5E0DB;
    --footer-bg-start: #3E2315;
    --footer-bg-end: #1A0F08;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 4px;
    --transition: all 0.3s ease-in-out;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background-color: var(--color-bg); color: var(--color-text); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.2; font-weight: 600; }
svg { max-width: 100%; }

/* =========================================
2. UTILITIES & LAYOUT
========================================= */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 var(--spacing-sm); }
.section { padding: var(--spacing-lg) 0; }
.section-header { text-align: center; margin-bottom: var(--spacing-lg); max-width: 800px; margin-left: auto; margin-right: auto; }
.section-subtitle { display: block; font-family: var(--font-body); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 2px; color: var(--color-accent); margin-bottom: var(--spacing-xs); font-weight: 600; }
.section-title { font-size: 2.5rem; margin-bottom: var(--spacing-sm); color: var(--color-primary); }
.section-desc { color: var(--color-text-light); font-size: 1.1rem; }
.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.text-white-80 { color: rgba(255, 255, 255, 0.8) !important; }
.bg-light { background-color: var(--color-bg); }
.bg-white { background-color: var(--color-white); }
.section-compact { padding: var(--spacing-md) 0; }
.mt-40 { margin-top: 40px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; border-radius: var(--border-radius); cursor: pointer; transition: var(--transition); border: 1px solid transparent; gap: 10px; }
.btn-primary { background-color: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }
.btn-primary:hover { background-color: var(--color-accent-hover); border-color: var(--color-accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background-color: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary:hover { background-color: var(--color-primary); color: var(--color-white); transform: translateY(-2px); }
.btn-white { background-color: var(--color-white); color: var(--color-primary); border-color: var(--color-white); }
.btn-white:hover { background-color: transparent; color: var(--color-white); }
.btn-outline-white { background-color: transparent; color: var(--color-white); border-color: rgba(255, 255, 255, 0.6); }
.btn-outline-white:hover { background-color: var(--color-white); color: var(--color-primary); border-color: var(--color-white); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 0.8rem; }

/* Icons */
.icon-box { width: 60px; height: 60px; background-color: rgba(194, 153, 64, 0.1); color: var(--color-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: var(--spacing-sm); font-size: 1.5rem; flex-shrink: 0; }
.icon-box svg { width: 28px; height: 28px; fill: currentColor; flex-shrink: 0; }

/* Logo fallback */
.logo-fallback-text { display: none; font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-primary); font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; line-height: 1.1; }
.header.scrolled .logo-fallback-text { color: var(--color-primary); }
.logo img.hidden { display: none; }
.logo img.hidden ~ .logo-fallback-text { display: block; }
.logo-fallback-white { color: var(--color-white) !important; }

/* =========================================
3. HEADER & NAVIGATION
========================================= */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: transparent; transition: var(--transition); padding: 20px 0; }
.header:has(.nav-menu.active) { z-index: 999; }
.header.scrolled { background-color: rgba(20, 14, 10, 0.08); backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); padding: 20px 0; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; z-index: 1002; position: relative; background-color: var(--color-white); border-radius: 6px; padding: 4px 10px; box-shadow: var(--shadow-sm); max-width: fit-content; }
.logo img, .logo svg { height: 42px; width: auto; object-fit: contain; transition: var(--transition); flex-shrink: 0; }
.desktop-nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--color-white); position: relative; }
.header.scrolled .nav-link { color: var(--color-white); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55); }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: var(--color-accent); transition: var(--transition); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.header-cta { padding: 10px 24px; font-size: 0.85rem; }
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; z-index: 1001; width: 44px; height: 44px; background: transparent; border: none; }
.hamburger span { width: 24px; height: 2px; background-color: var(--color-white); transition: var(--transition); border-radius: 1px; }
.header.scrolled .hamburger span { background-color: var(--color-white); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); }

/* =========================================
MOBILE MENU OVERLAY
========================================= */
.nav-menu { display: none; }
@media (max-width: 991px) {
    .hamburger { display: flex; }
    .nav-menu { display: none; position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100vh; height: 100dvh; background-color: #FDFBF7; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 24px 28px 0; gap: 0; transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.15); z-index: 1010; overflow: hidden; }
    .nav-menu.active { display: flex; right: 0; }
    .header:has(.nav-menu.active) .logo, .header:has(.nav-menu.active) .hamburger { display: none; }
    .nav-menu .footer-logo { display: none !important; visibility: hidden !important; width: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
    .mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.07); flex-shrink: 0; gap: 15px; position: relative; z-index: 10; padding-top: 4px; }
    .mobile-logo-wrapper { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
    .mobile-logo-img { width: 45px; height: 45px; object-fit: contain; flex-shrink: 0; }
    .mobile-logo-text { display: flex; flex-direction: column; min-width: 0; }
    .mobile-logo-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-primary); font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mobile-logo-tagline { font-family: var(--font-body); font-size: 0.6rem; color: var(--color-accent); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px; }
    .close-menu-btn { background: none; border: none; cursor: pointer; padding: 8px; color: var(--color-primary); display: flex; align-items: center; justify-content: center; z-index: 1002; flex-shrink: 0; }
    .close-menu-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; }
    .nav-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 0; flex: 1 1 auto; min-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 16px; border-top: 0; isolation: isolate; overflow-y: auto; overflow-x: hidden; }
    .nav-item { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,0.05); text-decoration: none; color: var(--color-primary); transition: var(--transition); }
    .nav-item:hover { padding-left: 10px; color: var(--color-accent); }
    .nav-item-left { display: flex; align-items: center; gap: 20px; }
    .nav-item-icon { width: 22px; height: 22px; stroke: var(--color-accent); stroke-width: 1.5; fill: none; flex-shrink: 0; display: block; }
    .nav-item-icon * { fill: none; stroke: currentColor; }
    .nav-item-text { font-size: 1.1rem; font-weight: 500; font-family: var(--font-body); }
    .nav-item-arrow { width: 18px; height: 18px; stroke: #ccc; stroke-width: 2; fill: none; flex-shrink: 0; display: block; }
    .mobile-cta-container { margin-top: auto; padding-top: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); flex: 0 0 auto; position: sticky; bottom: 0; background-color: #FDFBF7; border-top: 1px solid rgba(0,0,0,0.06); }
    .btn-mobile-consultation { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background-color: var(--color-accent); color: var(--color-white); padding: 16px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; transition: var(--transition); }
    .btn-mobile-consultation:hover { background-color: var(--color-accent-hover); transform: translateY(-2px); }
    .btn-mobile-consultation svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; flex-shrink: 0; display: block; }
}
@media (max-width: 991px) {
    .desktop-nav-links { display: none; }
    .header-cta { display: none; }
    .logo { padding: 6px 12px; gap: 8px; }
    .logo img, .logo svg { height: 30px; }
    .logo-fallback-text { font-size: 0.95rem; }
    .hamburger { order: 0; margin-right: auto; }
    .logo { order: 1; position: absolute; left: 50%; transform: translateX(-50%); }
    .header .container { position: relative; }
}

/* =========================================
4. HERO SECTION
========================================= */
.hero { height: 100vh; min-height: 600px; position: relative; background-image: url('../images/hero.jpg'); background-image: -webkit-image-set(url('../images/hero.webp') type('image/webp'), url('../images/hero.jpg') type('image/jpeg')); background-image: image-set(url('../images/hero.webp') type('image/webp'), url('../images/hero.jpg') type('image/jpeg')); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--color-white); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)); }
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; opacity: 0; transform: translateY(30px); animation: fadeInUp 1s ease forwards 0.5s; }
.hero-tagline { font-family: var(--font-body); font-size: 0.9rem; letter-spacing: 3px; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--spacing-sm); display: block; }
.hero h1 { font-size: 4rem; color: var(--color-white); margin-bottom: var(--spacing-sm); line-height: 1.1; }
.hero p { font-size: 1.2rem; margin-bottom: var(--spacing-md); color: rgba(255, 255, 255, 0.9); max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.section-cta { background-color: var(--color-primary); }
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.since-badge { display: inline-block; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--color-accent); border: 1px solid var(--color-accent); padding: 6px 16px; border-radius: 20px; margin-bottom: 20px; font-weight: 500; }
.page-hero { height: 50vh; min-height: 400px; background-image: url('../images/hero.jpg'); background-image: -webkit-image-set(url('../images/hero.webp') type('image/webp'), url('../images/hero.jpg') type('image/jpeg')); background-image: image-set(url('../images/hero.webp') type('image/webp'), url('../images/hero.jpg') type('image/jpeg')); background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(74, 44, 29, 0.85); }
.page-hero-content { position: relative; z-index: 2; color: var(--color-white); }
.page-hero h1 { font-size: 3.5rem; color: var(--color-white); margin-bottom: 10px; }
.service-banner { display: inline-flex; align-items: center; gap: 12px; background-color: var(--color-white); border: 1px solid var(--color-border); padding: 14px 28px; border-radius: 50px; box-shadow: var(--shadow-sm); font-size: 0.95rem; color: var(--color-text); font-weight: 500; }
.service-banner svg { width: 22px; height: 22px; min-width: 22px; flex-shrink: 0; fill: var(--color-accent); }

/* =========================================
5. SERVICES SECTION
========================================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--color-white); padding: 40px 30px; border: 1px solid var(--color-border); transition: var(--transition); text-align: center; height: 100%; display: flex; flex-direction: column; align-items: center; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--color-primary); }
.service-card p { color: var(--color-text-light); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }

/* =========================================
6. OUR WORK / GALLERY SECTION
========================================= */
.gallery-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-preview-item { position: relative; overflow: hidden; border-radius: var(--border-radius); aspect-ratio: 1/1; background-color: var(--color-border); box-shadow: var(--shadow-sm); }
.gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.gallery-preview-item:hover img { transform: scale(1.05); }
.pure-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.pure-gallery-item { position: relative; overflow: hidden; border-radius: var(--border-radius); aspect-ratio: 4/3; background-color: var(--color-border); }
.pure-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.pure-gallery-item:hover img { transform: scale(1.05); }

/* =========================================
7. STATS SECTION
========================================= */
.stats-section { background-color: var(--color-primary); color: var(--color-white); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-item h3 { font-size: 3.5rem; color: var(--color-accent); margin-bottom: 5px; font-family: var(--font-body); font-weight: 700; letter-spacing: -1px; }
.stat-item p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; font-weight: 500; }

/* =========================================
8. PROCESS SECTION
========================================= */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.process-step { background: var(--color-white); padding: 30px; border: 1px solid var(--color-border); position: relative; transition: var(--transition); }
.process-step:hover { box-shadow: var(--shadow-sm); border-color: var(--color-accent); }
.step-number { font-family: var(--font-heading); font-size: 4rem; color: rgba(194, 153, 64, 0.2); position: absolute; top: 10px; right: 20px; line-height: 1; }
.process-step h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--color-primary); position: relative; z-index: 1; }
.process-step p { font-size: 0.95rem; color: var(--color-text-light); position: relative; z-index: 1; }

/* =========================================
9. ABOUT PAGE SPECIFIC
========================================= */
.about-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img-wrapper { position: relative; }
.about-img-wrapper img { border-radius: var(--border-radius); box-shadow: var(--shadow-md); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.value-card { background: var(--color-white); padding: 30px; border-left: 3px solid var(--color-accent); box-shadow: var(--shadow-sm); }
.value-card h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--color-primary); }

/* =========================================
10. CONTACT PAGE SPECIFIC
========================================= */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; background: var(--color-white); padding: 50px; box-shadow: var(--shadow-md); border-radius: var(--border-radius); }
.contact-info { display: flex; flex-direction: column; }
.contact-form-container { background: var(--color-bg); padding: 35px; border-radius: var(--border-radius); border: 1px solid var(--color-border); }
.contact-info-list { display: flex; flex-direction: column; gap: 30px; }
.contact-item { display: flex; gap: 20px; align-items: flex-start; }
.contact-icon { width: 50px; height: 50px; background: rgba(194, 153, 64, 0.1); color: var(--color-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-details h4 { font-size: 1.1rem; margin-bottom: 5px; color: var(--color-primary); }
.contact-details p, .contact-details a { color: var(--color-text-light); font-size: 0.95rem; }
.contact-form-group { margin-bottom: 20px; }
.contact-form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--color-primary); font-size: 0.9rem; }
.contact-form-group input, .contact-form-group select, .contact-form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--color-border); border-radius: var(--border-radius); font-family: var(--font-body); font-size: 1rem; transition: var(--transition); background: var(--color-bg); }
.contact-form-group input:focus, .contact-form-group select:focus, .contact-form-group textarea:focus { outline: none; border-color: var(--color-accent); background: var(--color-white); }
.map-section { height: 400px; width: 100%; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-section iframe { width: 100%; height: 100%; border: 0; }

/* =========================================
12. FOOTER
========================================= */
.footer { background: linear-gradient(to bottom, var(--footer-bg-start), var(--footer-bg-end)); color: rgba(255, 255, 255, 0.8); padding: 80px 0 30px; font-size: 0.95rem; border-top: 4px solid var(--color-accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.footer-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; position: static; background-color: var(--color-white); border-radius: 6px; padding: 4px 10px; box-shadow: var(--shadow-sm); max-width: fit-content; margin-bottom: 16px; }
.footer-logo img, .footer-logo svg { height: 42px; width: auto; object-fit: contain; transition: var(--transition); flex-shrink: 0; }
.footer-logo .logo-fallback-text { font-size: 1.3rem; }
.footer-col h4 { color: var(--color-white); font-size: 1.3rem; margin-bottom: 25px; font-family: var(--font-heading); position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background-color: var(--color-accent); }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); transition: var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--color-accent); transform: translateX(5px); }
.footer-contact li { margin-bottom: 20px; display: flex; gap: 15px; align-items: flex-start; color: rgba(255, 255, 255, 0.8); }
.footer-contact svg { fill: var(--color-accent); margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.footer-phone-list a { color: rgba(255, 255, 255, 0.8); }
.footer-phone-list a:hover { color: var(--color-accent); }
.footer-service-area { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.9); margin-top: 15px; margin-bottom: 15px; }
.footer-service-area svg { width: 16px; height: 16px; fill: var(--color-accent); margin-top: 0; }
.footer-working-hours { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; line-height: 1.5; }
.footer-working-hours strong { color: var(--color-accent); display: block; margin-bottom: 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-social { display: flex; gap: 14px; margin-top: 20px; justify-content: flex-start; }
.footer-social a, .social-whatsapp, .social-instagram { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: transparent; border: 1px solid rgba(194, 153, 64, 0.5); border-radius: 50%; transition: var(--transition); }
.footer-social a svg, .social-whatsapp svg, .social-instagram svg { width: 18px; height: 18px; fill: var(--color-accent); transition: var(--transition); }
.footer-social a:hover { transform: translateY(-3px); border-color: var(--color-accent); }
.social-whatsapp:hover { background: #25D366; border-color: #25D366; transform: translateY(-3px); }
.social-whatsapp:hover svg { fill: var(--color-white); }
.social-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; transform: translateY(-3px); }
.social-instagram:hover svg { fill: var(--color-white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
.footer-credit { margin-top: 8px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }
.footer-credit a { color: var(--color-accent); font-weight: 500; }
.footer-credit a:hover { text-decoration: underline; }

/* =========================================
13. ANIMATIONS
========================================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================
14. RESPONSIVE DESIGN
========================================= */
@media (max-width: 1200px) { .pure-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) {
    :root { --spacing-lg: 3rem; --spacing-xl: 4rem; }
    .hero h1 { font-size: 3rem; }
    .section-title { font-size: 2rem; }
    .about-content-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; padding: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .section-header { margin-bottom: 30px; }
    .section-title { font-size: 2rem; margin-bottom: 10px; }
    .section-desc { font-size: 1rem; }
    .hero { min-height: 500px; padding-top: 80px; }
    .hero h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero p { font-size: 1rem; margin-bottom: 20px; }
    .page-hero h1 { font-size: 2.2rem; }
    .btn { padding: 12px 24px; font-size: 0.8rem; width: 100%; max-width: 280px; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 10px; }
    .services-grid, .process-grid, .stats-grid, .values-grid { grid-template-columns: 1fr; gap: 20px; }
    .stat-item h3 { font-size: 2.5rem; margin-bottom: 0; }
    .stat-item p { font-size: 0.8rem; letter-spacing: 0; }
    .stats-section { padding: 40px 0; }
    .contact-wrapper { padding: 20px; gap: 30px; }
    .contact-form-container { padding: 20px; }
    .contact-info-list { gap: 20px; }
    .map-section { height: 250px; }
    .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pure-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .service-banner { font-size: 0.8rem; padding: 10px 18px; text-align: left; }

    /* Category Filters Mobile Layout */
    .category-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .category-btn[data-category="all"] { grid-column: 1 / -1; }
    .category-btn { width: 100%; justify-content: center; padding: 10px 16px; font-size: 0.85rem; }

    /* FOOTER - Spacing and alignment fixes only */
    .footer { padding: 24px 0 16px; background: var(--color-primary); }
    .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 0; }
    .footer-col:first-child { grid-column: 1 / -1; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 16px; margin-bottom: 12px; }
    .footer-logo { display: flex; justify-content: center; margin: 0 auto 8px; width: fit-content; }
    .footer-logo img, .footer-logo svg { height: 28px; margin: 0; }
    .footer-col:first-child p { font-size: 0.82rem; line-height: 1.35; max-width: 100%; margin: 0 0 8px 0; opacity: 0.8; }
    .footer-service-area { margin: 4px auto; padding: 5px 10px; font-size: 0.8rem; display: inline-block; }
    .footer-working-hours { margin: 8px 0; font-size: 0.82rem; }
    .footer-working-hours strong { font-size: 0.75rem; display: block; margin-bottom: 1px; }
    .footer-social { justify-content: center; margin-top: 8px; gap: 8px; }
    .social-whatsapp, .social-instagram { width: 32px; height: 32px; }
    .footer-col:nth-child(2) { grid-column: 1 / -1; text-align: center; }
    .footer-col:nth-child(3) { display: none; }
    .footer-col h4 { font-size: 0.9rem; margin-bottom: 8px; padding-bottom: 0; color: var(--color-accent); font-weight: 600; }
    .footer-col h4::after { display: none; }
    .footer-links li { margin-bottom: 3px; font-size: 0.8rem; line-height: 1.3; }
    .footer-links a { color: rgba(255,255,255,0.75); }
    .footer-col:nth-child(4) { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 12px; margin-top: 8px; text-align: center; }
    .footer-col:nth-child(4) h4 { text-align: center; margin-bottom: 8px; }
    .footer-contact { display: flex; flex-direction: column; gap: 3px; align-items: center; text-align: center; }
    .footer-contact li { margin-bottom: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.8rem; }
    .footer-contact svg { width: 14px; height: 14px; flex-shrink: 0; }
    .footer-bottom { padding-top: 12px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.7rem; opacity: 0.5; text-align: center; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-col:first-child, .footer-col:last-child { grid-column: auto; }
    .footer-contact { flex-direction: column; align-items: center; gap: 10px; }
    .gallery-preview-grid { grid-template-columns: 1fr; }
    .pure-gallery { grid-template-columns: 1fr; gap: 15px; }
}

/* =========================================
15. GALLERY LOAD MORE CONTROLS
========================================= */
.gallery-controls-container { width: 100%; max-width: 600px; margin: 60px auto 0; display: flex; flex-direction: column; align-items: center; gap: 20px; clear: both; }
.gallery-progress-text { font-family: var(--font-body); font-size: 0.9rem; color: var(--color-text-light); font-weight: 500; letter-spacing: 0.5px; }
.gallery-progress-bar-track { width: 100%; max-width: 300px; height: 6px; background-color: var(--color-border); border-radius: 3px; overflow: hidden; }
.gallery-progress-bar-fill { height: 100%; background-color: var(--color-accent); border-radius: 3px; width: 0%; transition: width 0.5s ease-out; }
.gallery-action-btn { min-width: 220px; }
.pure-gallery-item.is-hidden { display: none; }
.pure-gallery-item.fade-in-new { animation: galleryItemReveal 0.4s ease-out forwards; }
@keyframes galleryItemReveal { 0% { opacity: 0; transform: translateY(15px); } 100% { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) { .gallery-controls-container { margin-top: 40px; gap: 15px; } .gallery-action-btn { width: 100%; max-width: 280px; } }

/* =========================================
16. CATEGORY FILTER SECTION
========================================= */
.category-filter-section { padding: var(--spacing-md) 0 var(--spacing-sm); }
.filter-title { font-family: var(--font-heading); font-size: 2rem; color: var(--color-primary); text-align: center; margin-bottom: 20px; font-weight: 600; }
.category-filters { display: flex; justify-content: center; flex-wrap: nowrap; gap: 15px; }
.category-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--color-white); border: 1px solid var(--color-border); color: var(--color-primary); padding: 12px 24px; border-radius: 50px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: var(--transition); }
.category-btn:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.category-btn.active { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.btn-icon { font-size: 1.1rem; line-height: 1; }
.btn-text { font-size: 0.9rem; }
.pure-gallery-item.category-hidden { display: none !important; }
/* Category Filter Section - Mobile Layout */
@media (max-width: 768px) {
    .category-filters {display: grid;grid-template-columns: 1fr;gap: 10px;max-width: 300px;margin: 0 auto;}
     /* "All" button - full width, centered */
    .category-btn[data-category="all"] {grid-column: 1 / -1;width: 100%;justify-content: center;}
    /* Create 2x2 grid for the 4 category buttons */
    .category-btn[data-category="bedroom"],
    .category-btn[data-category="furniture"],
    .category-btn[data-category="kitchen"],
    .category-btn[data-category="wardrobe"] {width: 100%;justify-content: center;}
    /* Wrap the 4 buttons in a sub-grid */
    .category-filters {display: grid;grid-template-columns: 1fr 1fr;gap: 10px;max-width: 300px;margin: 0 auto;}
    /* "All" button spans both columns */
    .category-btn[data-category="all"] {grid-column: 1 / -1;}
    .category-btn {padding: 10px 16px;font-size: 0.85rem;}
    .btn-icon svg {width: 18px;height: 18px; }
}

/* =========================================
17. FLOATING WHATSAPP BUTTON
========================================= */
.whatsapp-float { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background-color: #25d366; color: #fff; border-radius: 50%; text-align: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); }
.whatsapp-float:active { transform: scale(0.95); }
.whatsapp-float svg { width: 32px; height: 32px; fill: currentColor; }
@media (max-width: 768px) {
    .whatsapp-float { bottom: 15px; right: 15px; width: 56px; height: 56px; }
    .whatsapp-float svg { width: 28px; height: 28px; }
}

/* =========================================
18. CONTACT FORM MESSAGES & STATES
========================================= */
.form-message { padding: 15px 20px; border-radius: var(--border-radius); margin-bottom: 25px; font-size: 0.95rem; font-weight: 500; text-align: center; animation: formMsgFadeIn 0.4s ease-out; }
.form-message-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
button[type="submit"]:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.contact-form-group input:invalid:not(:placeholder-shown),
.contact-form-group textarea:invalid:not(:placeholder-shown) { border-color: #dc3545; }
.contact-form-group input:valid:not(:placeholder-shown),
.contact-form-group textarea:valid:not(:placeholder-shown) { border-color: #28a745; }
@keyframes formMsgFadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Make preview links clickable */
.gallery-preview-link {display: block;text-decoration: none;cursor: pointer;transition: transform 0.3s ease;}
.gallery-preview-link:hover {transform: translateY(-5px);}
.gallery-preview-link:hover .gallery-preview-item {box-shadow: var(--shadow-md);}

/* =========================================
19. GALLERY PREVIEW SLIDESHOW
========================================= */
.gallery-preview-link {display: block;text-decoration: none;color: inherit;}
.gallery-preview-item.slideshow-card {position: relative;overflow: hidden;cursor: pointer;}
.slideshow-wrapper {position: relative;width: 100%;height: 100%;}
.slideshow-wrapper .slide {position: absolute;top: 0;left: 0;width: 100%;height: 100%;object-fit: cover;opacity: 0;transition: opacity 1s ease-in-out;}
.slideshow-wrapper .slide.active { opacity: 1;}
/* Category label overlay */
.category-label {position: absolute;bottom: 0;left: 0;right: 0;background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);color: var(--color-white);padding: 30px 15px 12px;display: flex;align-items: center;justify-content: center;gap: 8px;font-family: var(--font-body);font-size: 0.95rem;font-weight: 600;text-transform: uppercase;letter-spacing: 1.5px;z-index: 2;pointer-events: none;}
.category-label svg {fill: var(--color-accent);flex-shrink: 0;}
/* Slide indicator dots */
.slide-dots {position: absolute;bottom: 45px;left: 50%;transform: translateX(-50%);display: flex;gap: 6px;z-index: 3;pointer-events: none;}
.slide-dot {width: 6px;height: 6px;border-radius: 50%;background-color: rgba(255, 255, 255, 0.4);transition: all 0.3s ease;}
.slide-dot.active {background-color: var(--color-accent);width: 18px;border-radius: 3px;}
/* Hover effect on card */
.gallery-preview-link:hover .gallery-preview-item {box-shadow: var(--shadow-md);transform: translateY(-5px);}
.gallery-preview-item {transition: transform 0.3s ease, box-shadow 0.3s ease;}

/* =========================================
20. LIGHTBOX (popup gallery with prev/next)
========================================= */
.pure-gallery-item { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.92); opacity: 0; transition: opacity 0.25s ease; touch-action: none; }
.lightbox.open { display: flex; opacity: 1; }
.lightbox-img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); user-select: none; -webkit-user-drag: none; }
.lightbox-btn { position: absolute; background: rgba(255, 255, 255, 0.12); border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; z-index: 2; }
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; letter-spacing: 0.5px; font-family: var(--font-body); }
@media (max-width: 768px) {
    .lightbox-img { max-width: 96vw; max-height: 80vh; }
    .lightbox-btn { width: 42px; height: 42px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } }

/* =========================================
21. TESTIMONIALS
========================================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--border-radius); padding: 35px 30px; display: flex; flex-direction: column; gap: 16px; transition: var(--transition); }
.testimonial-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-accent); transform: translateY(-5px); }
.testimonial-stars { color: var(--color-accent); letter-spacing: 3px; font-size: 1rem; line-height: 1; }
.testimonial-card blockquote { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--color-text); font-style: italic; }
.testimonial-card figcaption { margin-top: auto; font-family: var(--font-heading); font-weight: 600; color: var(--color-primary); font-size: 1.05rem; }