/* ========================================
   HUMANICARE — Premium Design
   Editorial warmth · Refined spacing
   ======================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/dm-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/poppins-latin-300.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/poppins-latin-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/poppins-latin-500.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/poppins-latin-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design Tokens ---------- */
:root {
    /* Palette — warm & premium */
    --navy: #1B3A4B;
    --navy-light: #2D5F7A;
    --navy-deep: #122830;
    --terra: #C47A4A;
    --terra-dark: #A06235;
    --terra-light: #E8C4A8;
    --terra-pale: #F5E6D8;
    --sage: #B5C9AE;
    --sage-light: #E1EBDD;
    --sage-dark: #8AAB82;
    --cream: #FAF7F2;
    --stone: #F0EBE3;
    --white: #ffffff;
    --text: #1A1D1F;
    --text-secondary: #5A5E63;
    --border: #E2DCD4;
    --border-light: #EDE8E1;

    /* Typography */
    --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-pad: clamp(60px, 8vw, 120px);
    --container-pad: clamp(20px, 4vw, 40px);
    --container-max: 1120px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration: 0.35s;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(26, 29, 31, 0.04), 0 1px 2px rgba(26, 29, 31, 0.06);
    --shadow-md: 0 4px 12px rgba(26, 29, 31, 0.06), 0 2px 4px rgba(26, 29, 31, 0.04);
    --shadow-lg: 0 12px 40px rgba(26, 29, 31, 0.08), 0 4px 12px rgba(26, 29, 31, 0.04);
    --shadow-accent: 0 4px 20px rgba(196, 122, 74, 0.2);

    /* Radii */
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.75;
    color: var(--text);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--terra); }
ul { list-style: none; }

/* ---------- Scroll animations ---------- */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
[data-animate]:nth-child(2) { transition-delay: 0.08s; }
[data-animate]:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Shared ---------- */
.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--terra);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-intro {
    margin-top: 16px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
}

.section-rule {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: clamp(40px, 5vw, 64px) 0;
}

section[id] { scroll-margin-top: 72px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    letter-spacing: 0.2px;
}

.btn--primary {
    background-color: var(--terra-dark);
    color: var(--white);
    border-color: var(--terra-dark);
    box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--border);
}
.btn--ghost:hover {
    border-color: var(--navy);
    background-color: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--full { width: 100%; }

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 72px;
    z-index: 100;
    background-color: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow var(--duration) var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.header__logo img { height: 42px; width: auto; }

.header__nav { display: none; }
.header__menu { display: flex; gap: 32px; }

.header__link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}
.header__link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1.5px;
    background: var(--terra);
    transition: width var(--duration) var(--ease);
}
.header__link:hover { color: var(--terra); }
.header__link:hover::after { width: 100%; }

.header__cta {
    display: none;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--terra-dark);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--terra-light);
    transition: all var(--duration) var(--ease);
}
.header__cta:hover {
    background-color: var(--terra-pale);
    color: var(--terra-dark);
    border-color: var(--terra);
}

/* Burger */
.header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px; height: 28px;
    background: none; border: none;
    cursor: pointer; padding: 0;
}
.header__burger span {
    display: block;
    width: 100%; height: 2px;
    background-color: var(--navy);
    border-radius: 1px;
    transition: all 0.2s var(--ease);
}
.header__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.header__nav.active {
    display: block;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background-color: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    padding: 16px var(--container-pad);
}
.header__nav.active .header__menu {
    flex-direction: column;
    gap: 0;
}
.header__nav.active .header__link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
}

@media (min-width: 768px) {
    .header__nav { display: block; }
    .header__cta { display: flex; }
    .header__burger { display: none; }
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 75% 30%, rgba(196, 122, 74, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 20% 80%, rgba(181, 201, 174, 0.1) 0%, transparent 60%),
        linear-gradient(170deg, var(--cream) 0%, #F5EFE6 50%, var(--cream) 100%);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) var(--container-pad);
}

.hero__label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8B4E21;
    margin-bottom: 16px;
    padding: 6px 16px;
    background-color: var(--terra-pale);
    border-radius: var(--radius-pill);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 8px;
}

.hero__subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 500;
    color: var(--terra);
    margin-bottom: 24px;
}

.hero__text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.85;
}

.hero__content { text-align: center; }

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

/* Photo */
.hero__visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero__photo {
    position: relative;
    z-index: 1;
}
.hero__photo img {
    width: clamp(240px, 50vw, 360px);
    height: clamp(240px, 50vw, 360px);
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero__decor {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(calc(-50% + 16px));
    width: clamp(240px, 50vw, 360px);
    height: clamp(240px, 50vw, 360px);
    border: 2px solid var(--terra-light);
    border-radius: var(--radius-xl);
    z-index: 0;
}

@media (min-width: 768px) {
    .hero__inner {
        grid-template-columns: 1.1fr 1fr;
        gap: 64px;
    }
    .hero__content { text-align: left; }
    .hero__actions { flex-direction: row; }
    .hero__text { margin-left: 0; margin-right: auto; }
}

@media (min-width: 1024px) {
    .hero__inner { gap: 80px; }
}

/* ========================================
   STATS
   ======================================== */
.stats {
    background-color: var(--navy);
    position: relative;
}

.stats__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(32px, 4vw, 48px) var(--container-pad);
}

.stat {
    text-align: center;
    padding: 16px 0;
}

.stat__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--terra-light);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 6px;
}

.stat__label {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.5px;
}

.stat__divider {
    width: 40px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 8px 0;
}

@media (min-width: 768px) {
    .stats__inner {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }
    .stat { flex: 1; padding: 0 32px; }
    .stat__divider {
        width: 1px;
        height: 48px;
        margin: 0;
    }
}

/* ========================================
   SERVICES
   ======================================== */
.services {
    padding: var(--section-pad) 0;
    background-color: var(--white);
}

.services__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.services__header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 72px);
}
.services__header .section-intro { margin-left: auto; margin-right: auto; }

/* Individual service */
.service {
    position: relative;
    padding-left: 0;
}

.service__number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--border-light);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.service__head {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.service__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
}
.service__icon--warm {
    background-color: var(--terra-pale);
    color: var(--terra-dark);
}
.service__icon--sage {
    background-color: var(--sage-light);
    color: var(--sage-dark);
}

.service__title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.service__intro {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Feature cards */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.feature {
    background-color: var(--cream);
    padding: clamp(20px, 3vw, 28px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--duration) var(--ease);
}
.feature:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.feature__text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Tags */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-list__title {
    width: 100%;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--terra-dark);
    background-color: var(--terra-pale);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.2px;
}
.tag--sage {
    color: var(--sage-dark);
    background-color: var(--sage-light);
}

@media (min-width: 768px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    padding: var(--section-pad) 0;
    background-color: var(--stone);
}

.about__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.about__header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.about__intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: clamp(48px, 6vw, 72px);
}

.about__photo img {
    width: 200px; height: 240px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

.about__lead {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.3rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: 16px;
}

.about__text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .about__intro {
        grid-template-columns: 220px 1fr;
        gap: 48px;
        align-items: start;
    }
    .about__photo img {
        width: 220px; height: 280px;
        margin: 0;
    }
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: clamp(40px, 6vw, 56px);
    position: relative;
}

/* Ligne verticale */
.timeline::before {
    content: '';
    position: absolute;
    left: 11px; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--terra-light), var(--sage), var(--border));
}

.timeline__item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    position: relative;
}

.timeline__marker {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid var(--terra);
    background-color: var(--white);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.timeline__item:nth-child(2) .timeline__marker { border-color: var(--sage-dark); }
.timeline__item:nth-child(3) .timeline__marker { border-color: var(--navy-light); }

.timeline__content h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.timeline__content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 8px;
}
.timeline__content p:last-child { margin-bottom: 0; }
.timeline__content strong { color: var(--text); }

/* Skills */
.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.skill-pill {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--navy);
    background-color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration) var(--ease);
}
.skill-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--terra-light);
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    padding: var(--section-pad) 0;
    background-color: var(--white);
}

.contact__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.contact__header {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 48px);
}
.contact__header .section-intro { margin-left: auto; margin-right: auto; }

/* Contact chips */
.contact__bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: clamp(32px, 5vw, 48px);
}

.contact-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background-color: var(--cream);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--duration) var(--ease);
}
.contact-chip svg { color: var(--terra); flex-shrink: 0; }
.contact-chip:hover {
    border-color: var(--terra-light);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .contact__bar {
        flex-direction: row;
        justify-content: center;
    }
    .contact-chip { flex: 1; max-width: 280px; }
}

/* Form */
.form {
    max-width: 640px;
    margin: 0 auto;
    background-color: var(--cream);
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form__field { margin-bottom: 16px; }

.form__field label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form__field input,
.form__field textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text);
    background-color: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
}
.form__field input:focus,
.form__field textarea:focus {
    outline: none;
    border-color: var(--terra);
    box-shadow: 0 0 0 3px rgba(196, 122, 74, 0.1);
}
.form__field input::placeholder,
.form__field textarea::placeholder {
    color: #bbb;
    font-weight: 300;
}
.form__field textarea {
    resize: vertical;
    min-height: 120px;
}

.form__notice {
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
}
.form__notice a {
    text-decoration: underline;
    color: var(--navy);
}

/* Form status messages */
.form-status {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-top: 16px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-status--success {
    background-color: var(--sage-light);
    color: #2E5E28;
    border: 1px solid var(--sage);
}

.form-status--error {
    background-color: #FDF0EE;
    color: #C62828;
    border: 1px solid #F5C6CB;
}

@media (min-width: 768px) {
    .form__row { grid-template-columns: 1fr 1fr; }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--navy-deep);
    color: var(--white);
    padding: clamp(40px, 6vw, 64px) 0 24px;
}

.footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer__brand img {
    height: 40px; width: auto;
    margin-bottom: 12px;
}
.footer__brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 280px;
}

.footer__col h3 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--terra-light);
    margin-bottom: 12px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 6px; }
.footer__col a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--duration) var(--ease);
}
.footer__col a:hover { color: var(--white); }

.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}
.footer__bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer__legal { display: flex; gap: 20px; }
.footer__legal a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
    transition: color var(--duration) var(--ease);
}
.footer__legal a:hover { color: var(--white); }

.footer__credit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}
.footer__credit a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
    transition: color var(--duration) var(--ease);
}
.footer__credit a:hover { color: var(--white); }

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease), background-color var(--duration) var(--ease);
    z-index: 90;
}
.back-to-top.visible {
    opacity: 0.7;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    opacity: 1;
    background-color: var(--terra-dark);
}

@media (min-width: 768px) {
    .footer__top { grid-template-columns: 2fr 1fr 1fr; }
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}
