/**
 * Coffman Services - Main Stylesheet
 * 
 * Modern, premium CSS for a home services landing page.
 * Mobile-first responsive design with CSS custom properties.
 * 
 * Table of Contents:
 *   1. CSS Custom Properties (Design Tokens)
 *   2. Reset & Base
 *   3. Typography
 *   4. Layout & Container
 *   5. Buttons
 *   6. Top Bar
 *   7. Header / Navbar
 *   8. Hero Section
 *   9. Services Section
 *  10. Construction & Remodel Section
 *  11. Why Coffman Section
 *  12. Final CTA Section
 *  13. Footer
 *  14. Animations & Utilities
 *  15. Responsive Breakpoints
 * 
 * @package CoffmanServices
 * @since 1.0.0
 */

/* ═══════════════════════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ═══════════════════════════════════════════════════════════ */
:root {
    /* Primary Colors */
    --color-primary:        #1B2A4A;
    --color-primary-dark:   #111D35;
    --color-primary-light:  #2A3F6B;

    /* Accent Colors */
    --color-accent:         #E8A838;
    --color-accent-dark:    #D49520;
    --color-accent-light:   #F5C76B;

    /* Neutral Colors */
    --color-bg:             #FFFFFF;
    --color-bg-alt:         #F7F8FA;
    --color-bg-dark:        #0F1A2E;
    --color-text:           #2D3748;
    --color-text-light:     #718096;
    --color-text-inverse:   #FFFFFF;
    --color-border:         #E2E8F0;

    /* Semantic */
    --color-success:        #48BB78;

    /* Typography */
    --font-heading:         'Outfit', sans-serif;
    --font-body:            'Inter', sans-serif;

    --fs-xs:    0.75rem;    /* 12px */
    --fs-sm:    0.875rem;   /* 14px */
    --fs-base:  1rem;       /* 16px */
    --fs-md:    1.125rem;   /* 18px */
    --fs-lg:    1.25rem;    /* 20px */
    --fs-xl:    1.5rem;     /* 24px */
    --fs-2xl:   2rem;       /* 32px */
    --fs-3xl:   2.5rem;     /* 40px */
    --fs-4xl:   3rem;       /* 48px */
    --fs-5xl:   3.75rem;    /* 60px */

    --fw-normal:  400;
    --fw-medium:  500;
    --fw-semi:    600;
    --fw-bold:    700;
    --fw-extra:   800;

    --lh-tight:   1.2;
    --lh-normal:  1.6;
    --lh-relaxed: 1.8;

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

    /* Border Radius */
    --radius-sm:  0.375rem;
    --radius-md:  0.5rem;
    --radius-lg:  0.75rem;
    --radius-xl:  1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg:  0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl:  0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-accent: 0 4px 20px rgba(232, 168, 56, 0.35);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;

    /* Layout */
    --container-max:  1200px;
    --header-height:  80px;
}


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

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.nav-overlay-active {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

svg.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════
   3. TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--color-primary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-extra);
    margin-bottom: var(--space-md);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-lg);
}

.section-subtitle {
    font-size: var(--fs-md);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--lh-relaxed);
}


/* ═══════════════════════════════════════════════════════════
   4. LAYOUT & CONTAINER
   ═══════════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}


/* ═══════════════════════════════════════════════════════════
   5. BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-weight: var(--fw-semi);
    font-size: var(--fs-sm);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232, 168, 56, 0.45);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-text-inverse);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--fs-base);
    border-radius: var(--radius-lg);
}


/* ═══════════════════════════════════════════════════════════
   6. TOP BAR
   ═══════════════════════════════════════════════════════════ */
.topbar {
    background: var(--color-primary-dark);
    color: var(--color-text-inverse);
    font-size: var(--fs-xs);
    padding: var(--space-xs) 0;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.topbar-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
}

.topbar-social a:hover {
    color: var(--color-accent);
}

.topbar-social svg {
    width: 16px;
    height: 16px;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.topbar-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.8);
    font-weight: var(--fw-medium);
    letter-spacing: 0.02em;
}

.topbar-link:hover {
    color: var(--color-accent);
}

.topbar-link svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}


/* ═══════════════════════════════════════════════════════════
   7. HEADER / NAVBAR
   ═══════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
    height: var(--header-height);
}

.site-header.header-scrolled {
    box-shadow: var(--shadow-md);
    height: 64px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    /* Dark background to make white logo visible on white header */
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    padding: 8px 18px;
    border-radius: var(--radius-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.logo:hover .logo-img {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-list li a {
    display: block;
    padding: var(--space-xs) var(--space-md);
    font-family: var(--font-heading);
    font-weight: var(--fw-medium);
    font-size: var(--fs-base);
    color: var(--color-text);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-list li a:hover {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}

.nav-list li a.nav-cta {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-primary-dark);
    font-weight: var(--fw-semi);
    padding: var(--space-xs) var(--space-lg);
}

.nav-list li a.nav-cta:hover {
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
    box-shadow: var(--shadow-accent);
    transform: translateY(-1px);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
}

.lang-switcher a {
    color: var(--color-text-light);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}

.lang-divider {
    color: var(--color-border);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    transform-origin: center;
}

.mobile-toggle.is-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.is-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ═══════════════════════════════════════════════════════════
   8. HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    /*
     * HERO BACKGROUND IMAGE
     * ─────────────────────────────────────────────
     * Replace the URL below with your actual hero image.
     * The dark overlay (.hero-overlay) sits on top to ensure
     * text readability regardless of image brightness.
     *
     * Example:  url('../images/hero-bg.jpg')
     */
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Fallback color if image hasn't loaded yet */
    background-color: var(--color-primary-dark);
    color: var(--color-text-inverse);
    overflow: hidden;
}

/* Dark opacity overlay — sits on top of the background image */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 26, 46, 0.85) 0%,
        rgba(27, 42, 74, 0.80) 50%,
        rgba(42, 63, 107, 0.75) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-5xl) 0;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    letter-spacing: 0.2em;
    color: var(--color-accent);
    background: rgba(232, 168, 56, 0.12);
    border: 1px solid rgba(232, 168, 56, 0.25);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
}

.hero-title {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-extra);
    color: var(--color-text-inverse);
    margin-bottom: var(--space-xl);
    line-height: 1.15;
}

.hero-title span {
    color: var(--color-accent);
    display: inline;
}

.hero-subtitle {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}


/* ═══════════════════════════════════════════════════════════
   9. SERVICES SECTION
   ═══════════════════════════════════════════════════════════ */
.services {
    padding: var(--space-5xl) 0;
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, rgba(27, 42, 74, 0.06), rgba(27, 42, 74, 0.12));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.service-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--color-primary);
    transition: stroke var(--transition-base);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}

.service-card:hover .service-icon svg {
    stroke: var(--color-accent);
}

.service-card-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-sm);
}

.service-card-text {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-lg);
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-weight: var(--fw-semi);
    font-size: var(--fs-sm);
    color: var(--color-accent-dark);
    transition: all var(--transition-fast);
}

.service-card-link:hover {
    color: var(--color-primary);
    gap: var(--space-sm);
}

.service-card-link svg {
    transition: transform var(--transition-fast);
}

.service-card-link:hover svg {
    transform: translateX(4px);
}


/* ═══════════════════════════════════════════════════════════
   10. CONSTRUCTION & REMODEL SECTION (Vibrant Card Style)
   ═══════════════════════════════════════════════════════════ */
.remodel-services {
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, #EEF2F7 100%);
}

/* Vibrant accent color for remodel cards */
.remodel-service-card::before {
    background: linear-gradient(90deg, #10B981, #34D399) !important;
}

.remodel-service-card:hover {
    border-color: #10B981;
}

.remodel-service-card .service-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.16));
}

.remodel-service-card .service-icon svg {
    stroke: #059669;
}

.remodel-service-card:hover .service-icon {
    background: linear-gradient(135deg, #059669, #10B981);
}

.remodel-service-card:hover .service-icon svg {
    stroke: #FFFFFF;
}

.remodel-service-card .service-card-link {
    color: #059669;
}

.remodel-service-card .service-card-link:hover {
    color: var(--color-primary);
}

/* Grid: 5 cards — 3 top + 2 bottom centered */
.remodel-services-grid {
    gap: var(--space-xl);
}


/* ═══════════════════════════════════════════════════════════
   11. WHY COFFMAN SECTION
   ═══════════════════════════════════════════════════════════ */
.why-coffman {
    padding: var(--space-5xl) 0;
    background: var(--color-bg);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.why-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.why-card:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
}

.why-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, rgba(232, 168, 56, 0.1), rgba(232, 168, 56, 0.2));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.why-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-accent-dark);
}

.why-card:hover .why-card-icon {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    transform: scale(1.1);
}

.why-card:hover .why-card-icon svg {
    stroke: var(--color-text-inverse);
}

.why-card-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-sm);
}

.why-card-text {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: var(--lh-relaxed);
    max-width: 320px;
    margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════════
   12. FINAL CTA SECTION
   ═══════════════════════════════════════════════════════════ */
.final-cta {
    position: relative;
    padding: var(--space-5xl) 0;
    background:
        linear-gradient(135deg,
            var(--color-primary-dark) 0%,
            var(--color-primary) 50%,
            var(--color-primary-light) 100%
        );
    color: var(--color-text-inverse);
    text-align: center;
    overflow: hidden;
}

.final-cta-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 80%, rgba(232, 168, 56, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(42, 63, 107, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.final-cta-content {
    position: relative;
    z-index: 2;
}

.final-cta-title {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-extra);
    color: var(--color-text-inverse);
    margin-bottom: var(--space-lg);
}

.final-cta-text {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: var(--lh-relaxed);
}

.final-cta-financing {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(232, 168, 56, 0.15);
    border: 1px solid rgba(232, 168, 56, 0.3);
    color: var(--color-accent-light);
    font-family: var(--font-heading);
    font-weight: var(--fw-semi);
    font-size: var(--fs-md);
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2xl);
    text-decoration: none;
    transition: all var(--transition-base);
}

a.final-cta-financing:hover {
    background: rgba(232, 168, 56, 0.25);
    border-color: rgba(232, 168, 56, 0.5);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    color: var(--color-accent-light);
}

.final-cta-financing svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent);
}

.final-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.final-cta-tagline {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}


/* ═══════════════════════════════════════════════════════════
   13. FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: var(--space-4xl) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

.footer-title {
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    color: var(--color-text-inverse);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
}

.footer-about-text {
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    color: rgba(255, 255, 255, 0.6);
}

/* Footer Logo */
.footer-logo {
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.footer-logo-img {
    height: auto;
    max-height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.footer-logo:hover .footer-logo-img {
    opacity: 1;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-links a::before {
    content: '→';
    font-size: var(--fs-xs);
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: var(--space-xs);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: var(--fs-sm);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-accent);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-base);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: var(--space-3xl);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.4);
}


/* ═══════════════════════════════════════════════════════════
   13a. LEGAL PAGES (Privacy Policy, Terms & Conditions)
   ═══════════════════════════════════════════════════════════ */
.legal-page {
    padding: var(--space-4xl) 0 var(--space-5xl);
    background: var(--color-bg);
    min-height: 60vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-title {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-extra);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.legal-updated {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.legal-content h2 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid rgba(232, 168, 56, 0.2);
}

.legal-content p {
    font-size: var(--fs-base);
    color: var(--color-text);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-md);
}

.legal-content ul {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.legal-content ul li {
    font-size: var(--fs-base);
    color: var(--color-text);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-xs);
    list-style: disc;
}

.legal-content ul li strong {
    color: var(--color-primary);
}

.legal-content a {
    color: var(--color-accent-dark);
    font-weight: var(--fw-medium);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--color-primary);
}

.legal-contact {
    list-style: none !important;
    padding-left: 0 !important;
    background: var(--color-bg-alt);
    padding: var(--space-xl) !important;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-accent);
}

.legal-contact li {
    list-style: none !important;
    margin-bottom: var(--space-xs) !important;
}


/* ═══════════════════════════════════════════════════════════
   13b. COOKIE PRIVACY NOTICE
   ═══════════════════════════════════════════════════════════ */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(15, 26, 46, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(232, 168, 56, 0.2);
    padding: var(--space-lg) 0;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
}

.cookie-notice.cookie-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-notice-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.cookie-notice-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

.cookie-notice-icon {
    flex-shrink: 0;
    color: var(--color-accent);
}

.cookie-notice-content p {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.85);
    line-height: var(--lh-normal);
    margin: 0;
}

.cookie-notice-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.cookie-notice-actions .btn {
    padding: 0.5rem 1.25rem;
    font-size: var(--fs-sm);
    white-space: nowrap;
}

.cookie-decline {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.cookie-decline:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile cookie layout */
@media (max-width: 640px) {
    .cookie-notice-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-notice-content {
        flex-direction: column;
    }

    .cookie-notice-actions {
        width: 100%;
        justify-content: center;
    }
}


/* ═══════════════════════════════════════════════════════════
   14. ANIMATIONS & UTILITIES
   ═══════════════════════════════════════════════════════════ */

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for grids */
.services-grid .service-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card.reveal:nth-child(3) { transition-delay: 0.2s; }

.remodel-services-grid .remodel-service-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.remodel-services-grid .remodel-service-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.remodel-services-grid .remodel-service-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.remodel-services-grid .remodel-service-card.reveal:nth-child(5) { transition-delay: 0.32s; }

.why-grid .why-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.why-grid .why-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.why-grid .why-card.reveal:nth-child(4) { transition-delay: 0.3s; }


/* ═══════════════════════════════════════════════════════════
   15. RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════ */

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

    .remodel-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: var(--fs-4xl);
    }

    .final-cta-title {
        font-size: var(--fs-3xl);
    }
}

/* ─── Desktop (≥ 768px) ───────────────────────────────── */
@media (min-width: 768px) {
    .hero {
        min-height: 700px;
    }

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

    .section-title {
        font-size: var(--fs-3xl);
    }
}

/* ─── Large Desktop (≥ 1024px) ────────────────────────── */
@media (min-width: 1024px) {

    /* Services: 3 columns */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Remodel: match services 3-col */
    .remodel-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Why: 4 columns */
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Footer: 4 columns */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }

    /* Hero */
    .hero-title {
        font-size: var(--fs-5xl);
    }

    .hero-subtitle {
        font-size: var(--fs-lg);
    }

    .final-cta-title {
        font-size: var(--fs-4xl);
    }
}

/* ─── Mobile (< 768px) ───────────────────────────────── */
@media (max-width: 767px) {

    /* Hide topbar on small screens to save space */
    .topbar {
        display: none;
    }

    /* Mobile navigation */
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-slow);
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.nav-open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
        width: 100%;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list li a {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--fs-base);
        width: 100%;
        border-radius: var(--radius-md);
    }

    .nav-list li a.nav-cta {
        text-align: center;
        margin-top: var(--space-md);
    }

    .lang-switcher {
        margin-top: var(--space-xl);
        padding-top: var(--space-lg);
        border-top: 1px solid var(--color-border);
        width: 100%;
        justify-content: center;
    }

    /* Overlay when nav is open */
    body.nav-overlay-active::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
    }

    /* Hero adjustments */
    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding: var(--space-4xl) 0 var(--space-5xl);
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 6px 14px;
    }

    .hero-title {
        font-size: var(--fs-2xl);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* CTA adjustments */
    .final-cta-title {
        font-size: var(--fs-2xl);
    }

    .final-cta-financing {
        font-size: var(--fs-sm);
        flex-direction: column;
        text-align: center;
    }

    .final-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .final-cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ─── Accessibility: Reduced Motion ───────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   16. OUR PROJECTS GALLERY & LIGHTBOX
   ═══════════════════════════════════════════════════════════ */

/* Projects Page Header */
.projects-page-header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    padding: var(--space-md) 0 var(--space-sm);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--color-text-inverse);
    box-shadow: inset 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.projects-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 150%, rgba(232, 168, 56, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.projects-header-content {
    position: relative;
    z-index: 2;
}

.projects-title {
    font-size: var(--fs-3xl);
    color: var(--color-text-inverse);
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.projects-subtitle {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    line-height: var(--lh-relaxed);
}

.projects-divider {
    margin: 0 auto;
}

/* Gallery Grid */
.projects-section {
    background-color: var(--color-bg-alt);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-2xl);
    padding: var(--space-xl) 0;
}

/* Stack Card */
.project-card {
    position: relative;
    cursor: pointer;
    perspective: 1000px;
    height: 300px;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: -15px;
    background: radial-gradient(circle at 50% 50%, rgba(232, 168, 56, 0.15) 0%, transparent 70%);
    opacity: 0;
    border-radius: 50%;
    transition: opacity var(--transition-base);
    z-index: 0;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
}

.project-stack {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-stack {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
}

.stack-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
    border: 3px solid #fff;
}

.stack-img-0 {
    z-index: 3;
    transform: translateZ(25px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.stack-img-1 {
    z-index: 2;
    transform: translate(8px, -8px) translateZ(10px) rotate(3deg);
    opacity: 0.9;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.stack-img-2 {
    z-index: 1;
    transform: translate(16px, -16px) translateZ(0) rotate(5deg);
    opacity: 0.7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.project-card:hover .stack-img-1 {
    transform: translate(14px, -14px) translateZ(12px) rotate(5deg);
    opacity: 1;
}

.project-card:hover .stack-img-2 {
    transform: translate(28px, -28px) translateZ(0) rotate(9deg);
    opacity: 0.85;
}

.project-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(to top, rgba(15, 26, 46, 0.95) 0%, rgba(15, 26, 46, 0.5) 40%, rgba(15, 26, 46, 0) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl);
    color: var(--color-text-inverse);
    transform: translateZ(30px);
}

.project-overlay h3 {
    color: var(--color-text-inverse);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-xs);
    font-weight: var(--fw-bold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.project-overlay span {
    font-size: var(--fs-sm);
    color: var(--color-accent);
    font-weight: var(--fw-semi);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 26, 46, 0.96);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: var(--space-md);
}

.lightbox-close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    background: transparent;
    border: none;
    color: var(--color-text-inverse);
    font-size: var(--fs-3xl);
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    opacity: 1;
    color: var(--color-accent);
    transform: scale(1.1);
}

.lightbox-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-2xl) 0;
    margin-top: var(--space-2xl);
    min-height: 0;
}

.lightbox-img-container {
    height: 100%;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-main-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    user-select: none;
    animation: zoomIn 0.3s ease-out;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-inverse);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all var(--transition-base);
    z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
}

.lightbox-prev {
    left: var(--space-xl);
}

.lightbox-next {
    right: var(--space-xl);
}

.lightbox-carousel-wrapper {
    height: 100px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: var(--space-md);
    display: flex;
    align-items: flex-end;
}

.lightbox-carousel {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-xs);
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) rgba(255, 255, 255, 0.1);
    scroll-behavior: smooth;
    width: 100%;
    justify-content: center;
}

.lightbox-carousel::-webkit-scrollbar {
    height: 6px;
}

.lightbox-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

.lightbox-carousel::-webkit-scrollbar-thumb {
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
}

.lightbox-thumb {
    height: 70px;
    min-width: 100px;
    max-width: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-sizing: border-box;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all var(--transition-base);
}

.lightbox-thumb:hover {
    opacity: 0.8;
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--color-accent);
    transform: scale(1.05);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .lightbox-prev { left: var(--space-sm); width: 40px; height: 40px; }
    .lightbox-next { right: var(--space-sm); width: 40px; height: 40px; }
    .lightbox-close { top: var(--space-md); right: var(--space-md); }
    .project-card { height: 250px; }
}

/* ═══════════════════════════════════════════════════════════
   17. FLOATING FINANCE WIDGET
   ═══════════════════════════════════════════════════════════ */
.finance-widget {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(calc(100% - 0px));
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9900;
    display: flex;
    align-items: stretch;
}

.finance-widget .finance-widget-panel {
    display: none;
}

.finance-widget.active {
    transform: translateY(-50%) translateX(0);
}

.finance-widget.active .finance-widget-panel {
    display: block;
}

.finance-widget-tab {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border: none;
    padding: var(--space-md) var(--space-sm);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    cursor: pointer;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    font-size: var(--fs-sm);
    letter-spacing: 0.05em;
    transition: background var(--transition-base), padding var(--transition-base);
}

.finance-widget-tab span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.finance-widget-tab:hover {
    background: var(--color-accent-light);
    padding-right: var(--space-md);
}

.finance-widget-panel {
    background: var(--color-bg);
    padding: var(--space-md);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
    border-right: none;
    width: 180px;
    text-align: center;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.finance-widget-close {
    position: absolute;
    top: 5px;
    left: 10px;
    background: transparent;
    border: none;
    font-size: var(--fs-2xl);
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.finance-widget-close:hover {
    color: var(--color-primary);
}

.finance-widget-img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    width: 160px;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    margin: var(--space-sm) auto var(--space-md);
}

.finance-widget-btn {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-sm);
    justify-content: center;
}

