/* ============================================
   WOLTERS DESIGN — Custom Stylesheet
   ============================================

   Color Palette: "Terre Belge"
   ─────────────────────────────
   Background     #F8F6F2   warm cream
   Alt bg         #F0EDE8   deeper cream (process section)
   Dark           #0F0F0F   near-black
   Dark card      #1A1A1A   card surfaces on dark bg
   Accent         #C75B2A   terracotta copper
   Accent hover   #A84A22   darker terracotta
   Green          #2C5545   Belgian forest green
   Border light   #E0DCD7   subtle dividers
   Border dark    #2A2A2A   dividers on dark bg
   Muted text     #6B6560   warm grey

   Font Pairing
   ─────────────
   Display: Syne 700–800    — bold geometric character
   Body:    Inter 300–500   — clean Swiss readability

   Design Direction: "Refined Contrast"
   Swiss-grid influence + bold typographic hierarchy
   ============================================ */


/* ───────────────────────────────────────────
   0. CSS CUSTOM PROPERTIES
   ─────────────────────────────────────────── */

:root {
    /* Colors */
    --color-bg:          #F8F6F2;
    --color-bg-alt:      #F0EDE8;
    --color-dark:        #0F0F0F;
    --color-dark-card:   #1A1A1A;
    --color-text:        #1A1A1A;
    --color-text-light:  #F8F6F2;
    --color-text-muted:  #6B6560;
    --color-accent:      #C75B2A;
    --color-accent-hover:#A84A22;
    --color-green:       #2C5545;
    --color-border:      #E0DCD7;
    --color-border-dark: #2A2A2A;

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Spacing */
    --section-py: clamp(80px, 10vw, 160px);

    /* Easing */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s var(--ease-in-out);
    --transition-slow: 0.6s var(--ease-out);

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}


/* ───────────────────────────────────────────
   1. RESET & BASE
   ─────────────────────────────────────────── */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle film-grain overlay for premium texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.02;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

::selection {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

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

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

/* Accessible focus state */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}


/* ───────────────────────────────────────────
   2. TYPOGRAPHY
   ─────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.text-lg {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    line-height: 1.65;
}

.text-accent { color: var(--color-accent); }


/* ───────────────────────────────────────────
   3. BUTTONS
   ─────────────────────────────────────────── */

.btn {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    padding: 0.875rem 2rem;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}
.btn-accent:hover,
.btn-accent:focus-visible {
    background-color: var(--color-accent-hover);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(199, 91, 42, 0.3);
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-text);
}
.btn-outline-dark:hover {
    background: var(--color-text);
    color: var(--color-text-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
}

.btn-arrow {
    transition: transform var(--transition-base);
}
.btn:hover .btn-arrow {
    transform: translateX(4px);
}


/* ───────────────────────────────────────────
   4. SECTION SHARED STYLES
   ─────────────────────────────────────────── */

.section {
    padding: var(--section-py) 0;
    position: relative;
}

.section-dark {
    background-color: var(--color-dark);
    color: var(--color-text-light);
}

.section-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}
.section-dark .section-subtitle {
    color: rgba(248, 246, 242, 0.6);
}


/* ───────────────────────────────────────────
   5. NAVIGATION
   ─────────────────────────────────────────── */

.navbar {
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease-out);
    z-index: 1050;
}

/* Solid background on scroll */
.navbar.scrolled {
    background-color: rgba(248, 246, 242, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 var(--color-border);
}

.navbar-brand { font-family: var(--font-display); }

.brand-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.navbar-brand:hover { color: var(--color-text); }

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    color: var(--color-text) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

/* Animated underline on hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 1.5px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}
.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Custom hamburger toggle */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none !important;
    box-shadow: none !important;
}
.navbar-toggler:focus {
    box-shadow: none !important;
}

.toggler-line {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--color-text);
    transition: all var(--transition-base);
    transform-origin: center;
}

.navbar-toggler.active .toggler-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}
.navbar-toggler.active .toggler-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Offcanvas mobile menu styling */
@media (max-width: 991.98px) {
    .offcanvas {
        background-color: var(--color-bg) !important;
        border-left: 1px solid var(--color-border) !important;
        width: 100% !important;
        max-width: 400px;
    }

    .offcanvas-header {
        border-bottom: 1px solid var(--color-border);
        padding: 1.25rem 1.5rem;
    }

    .offcanvas-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem 1.5rem;
    }

    .offcanvas-body .navbar-nav {
        margin-bottom: 2rem;
    }

    .offcanvas-body .nav-link {
        font-size: 1.3rem;
        font-family: var(--font-display);
        font-weight: 700;
        padding: 0.75rem 0 !important;
    }
    .offcanvas-body .nav-link::after {
        left: 0;
        right: 0;
    }

    .offcanvas-body .btn-accent {
        margin-left: 0 !important;
        width: 100%;
        justify-content: center;
    }
}


/* ───────────────────────────────────────────
   6. HERO SECTION
   ─────────────────────────────────────────── */

.hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg);
    padding-top: 80px; /* account for fixed nav */
}

/* Animated gradient blob — adds visual depth */
.hero-shape {
    position: absolute;
    width: clamp(300px, 50vw, 700px);
    height: clamp(300px, 50vw, 700px);
    background:
        radial-gradient(ellipse at 30% 40%, rgba(199, 91, 42, 0.25), transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(44, 85, 69, 0.18), transparent 60%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(80px);
    right: -10%;
    top: 15%;
    animation: morphShape 20s ease-in-out infinite;
    will-change: border-radius, transform;
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
    }
    33% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(60deg) scale(1.05);
    }
    66% {
        border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
        transform: rotate(-30deg) scale(0.98);
    }
}

.hero-content {
    padding: clamp(40px, 8vh, 100px) 0;
}

.hero-logo {
    width: clamp(200px, 30vw, 320px);
    height: auto;
    margin-bottom: 2.5rem;
}

.hero-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.hero-title {
    font-weight: 800;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero-title em {
    font-style: italic;
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Scroll-down indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-line {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50%      { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
}


/* ───────────────────────────────────────────
   7. MARQUEE STRIP
   ─────────────────────────────────────────── */

.marquee-strip {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    padding: 1.25rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    gap: 2rem;
    animation: marqueeScroll 30s linear infinite;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.marquee-dot {
    color: var(--color-accent);
    font-size: 0.5rem;
    display: flex;
    align-items: center;
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause marquee on reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    .hero-shape    { animation: none; }
    .scroll-line   { animation: none; }
}


/* ───────────────────────────────────────────
   8. ABOUT SECTION
   ─────────────────────────────────────────── */

.section-about .about-content p {
    margin-bottom: 1.25rem;
    color: var(--color-text-muted);
}
.section-about .about-content .text-lg {
    color: var(--color-text);
    font-weight: 400;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.stat-number {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--color-text);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: var(--color-accent);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}


/* ───────────────────────────────────────────
   9. SERVICES SECTION
   ─────────────────────────────────────────── */

.service-card {
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

/* Accent fill slides up on hover */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--color-accent);
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out);
    z-index: 0;
}
.service-card:hover::before {
    transform: translateY(0);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.service-number {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    color: var(--color-border-dark);
    display: block;
    margin-bottom: 1.5rem;
    transition: color var(--transition-base);
}
.service-card:hover .service-number {
    color: rgba(248, 246, 242, 0.3);
}

.service-title {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-desc {
    font-size: 0.95rem;
    color: rgba(248, 246, 242, 0.6);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    transition: color var(--transition-base);
}
.service-card:hover .service-desc {
    color: rgba(248, 246, 242, 0.9);
}

.service-arrow {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s var(--ease-out);
    display: block;
}
.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* ───────────────────────────────────────────
   10. PORTFOLIO SECTION
   ─────────────────────────────────────────── */

.portfolio-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 16 / 10;
    width: 100%;
    min-height: 280px;
    background-color: var(--color-dark);
}

.portfolio-item-square {
    aspect-ratio: 1 / 1;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}
.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.05) 60%,
        transparent 100%
    );
    color: white;
    opacity: 1;
    transition: background var(--transition-slow);
}
.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        transparent 100%
    );
}

.portfolio-category {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.portfolio-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: white;
    transform: translateY(0);
    transition: transform 0.5s var(--ease-out);
    margin-bottom: 0;
}
.portfolio-item:hover .portfolio-name {
    transform: translateY(-4px);
}


/* ───────────────────────────────────────────
   11. PROCESS SECTION
   ─────────────────────────────────────────── */

.section-process {
    background-color: var(--color-bg-alt);
}

.process-step {
    padding: 2rem 0;
    height: 100%;
    position: relative;
}

.process-number {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 5vw, 4rem);
    line-height: 1;
    color: var(--color-border);
    display: block;
    margin-bottom: 1.5rem;
    transition: color 0.4s var(--ease-out);
}
.process-step:hover .process-number {
    color: var(--color-accent);
}

.process-title {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.process-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Connecting lines between steps on desktop */
@media (min-width: 992px) {
    .process-step::after {
        content: '';
        position: absolute;
        top: 3.5rem;
        right: -1rem;
        width: 2rem;
        height: 1px;
        background-color: var(--color-border);
    }
    .process-grid .col-lg-3:last-child .process-step::after {
        display: none;
    }
}


/* ───────────────────────────────────────────
   12. TESTIMONIALS SECTION
   ─────────────────────────────────────────── */

.testimonial-card {
    background-color: var(--color-dark-card);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: transform 0.4s var(--ease-out);
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 0.8;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(248, 246, 242, 0.8);
    margin-bottom: 2rem;
}

.testimonial-author {
    border-top: 1px solid var(--color-border-dark);
    padding-top: 1.25rem;
}

.testimonial-name {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-role {
    display: block;
    font-size: 0.85rem;
    color: rgba(248, 246, 242, 0.5);
    margin-top: 0.25rem;
}


/* ───────────────────────────────────────────
   13. CONTACT SECTION
   ─────────────────────────────────────────── */

.contact-intro {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.contact-detail-value {
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-detail-value a {
    color: var(--color-text);
    border-bottom: 1px solid var(--color-accent);
    transition: color var(--transition-base);
}
.contact-detail-value a:hover {
    color: var(--color-accent);
}

.availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4CAF50;
    display: inline-block;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

/* Contact Form */
.contact-form {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: all var(--transition-base);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(199, 91, 42, 0.1);
    background-color: white;
}
.form-control::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.form-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}


/* ───────────────────────────────────────────
   14. FOOTER
   ─────────────────────────────────────────── */

.site-footer {
    padding: clamp(60px, 8vw, 100px) 0 0;
}

.footer-main {
    padding-bottom: clamp(40px, 6vw, 80px);
    border-bottom: 1px solid var(--color-border-dark);
}

.footer-logo {
    width: 160px;
    height: auto;
    margin-bottom: 1rem;
    filter: invert(1) brightness(1.8);
}

.footer-brand .brand-text {
    display: inline-block;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.85rem;
    color: rgba(248, 246, 242, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(248, 246, 242, 0.5);
    max-width: 300px;
    line-height: 1.7;
}

.footer-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a,
.footer-links span {
    font-size: 0.9rem;
    color: rgba(248, 246, 242, 0.5);
    transition: color var(--transition-base);
}
.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding: 2rem 0;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(248, 246, 242, 0.4);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}
.footer-legal a {
    font-size: 0.8rem;
    color: rgba(248, 246, 242, 0.4);
}
.footer-legal a:hover {
    color: var(--color-accent);
}


/* ───────────────────────────────────────────
   15. SCROLL-TRIGGERED ANIMATIONS
   ─────────────────────────────────────────── */

.anim {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-out);
}
.anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children within the same parent row */
.anim[data-delay="1"] { transition-delay: 0.12s; }
.anim[data-delay="2"] { transition-delay: 0.24s; }
.anim[data-delay="3"] { transition-delay: 0.36s; }
.anim[data-delay="4"] { transition-delay: 0.48s; }

/* Per-section stagger: each .anim sibling delays a bit more */
.row > .anim:nth-child(2) { transition-delay: 0.1s; }
.row > .anim:nth-child(3) { transition-delay: 0.2s; }
.row > .anim:nth-child(4) { transition-delay: 0.3s; }
.row > .anim:nth-child(5) { transition-delay: 0.4s; }
.row > .anim:nth-child(6) { transition-delay: 0.5s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .anim {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ───────────────────────────────────────────
   16. RESPONSIVE ADJUSTMENTS
   ─────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .hero-cta {
        flex-direction: column;
    }
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .portfolio-item {
        aspect-ratio: 4 / 3;
    }

    .footer-legal {
        justify-content: start;
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        display: flex;
        align-items: baseline;
        gap: 1rem;
    }
    .stat-label {
        margin-top: 0;
    }
}


/* ───────────────────────────────────────────
   17. LEGAL PAGES
   ─────────────────────────────────────────── */

.legal-page h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.legal-page h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-page h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-page p,
.legal-page li {
    color: var(--color-text-muted);
    line-height: 1.8;
}

.legal-page a:not(.btn) {
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
    transition: opacity var(--transition-base);
}
.legal-page a:not(.btn):hover {
    opacity: 0.7;
}

.legal-page ul {
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.legal-page li {
    margin-bottom: 0.4rem;
}

.legal-page .table {
    font-size: 0.9rem;
    margin: 1.5rem 0;
}
.legal-page .table th {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    border-bottom-color: var(--color-border);
}
.legal-page .table td {
    color: var(--color-text-muted);
    border-bottom-color: var(--color-border);
}
