/* ============================================================
   DEMO HORIZON — MAIN STYLESHEET
   Demo Horizon Law Firm — © 2026 NG-STARs
   Pan-African Business Law Firm
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* body alone is not enough on iOS Safari — mirror the guard here */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: #ffffff;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

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

a {
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   2. CSS VARIABLES
   ============================================================ */
:root {
    /* Brand palette */
    --font-heading: 'Crimson Pro', serif;
    --font-body: 'Jost', sans-serif;
    --navy: #1B3A5C;
    --gold: #C8A882;
    --gold-light: #d4b593;
    --teal: #2C5F6F;
    --burgundy: #8B2635;
    --cream: #F8F6F3;
    --warm-gray: #9B8B7E;
    --dark: #1A1A2E;
    --gray: #6B7280;
    --light-gray: #E5E7EB;

    /* Layout */
    --container: 1400px;
    --nav-height: 90px;

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 8rem;

    /* Radius & shadow */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 25px 70px rgba(27, 58, 92, 0.12);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
}

p {
    line-height: 1.8;
}

.serif {
    font-family: var(--font-heading);
}

/* ============================================================
   4. NAVIGATION
   ============================================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-gray);
    z-index: 1000;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.99);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.logo-nav {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Language switcher */
.lang-btn {
    padding: 0.55rem 1rem;
    border: 2px solid var(--navy);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--navy);
    background: transparent;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.lang-btn:hover {
    background: var(--navy);
    color: #fff;
}

.lang-btn .lang-opt {
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

.lang-btn .lang-opt.active {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--gold);
}

.lang-btn .lang-sep {
    opacity: 0.35;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--navy);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

/* ============================================================
   5. HERO SLIDESHOW
   ============================================================ */
.hero-slideshow {
    margin-top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    min-height: 600px;
    position: relative;
    overflow: hidden;
    background: var(--navy);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.4s ease, visibility 1.4s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.slide-bg svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Stronger overlay to ensure white text is always legible on real photos */
    background: linear-gradient(
        135deg,
        rgba(13, 25, 45, 0.68) 0%,
        rgba(27, 58, 92, 0.55) 50%,
        rgba(13, 33, 55, 0.72) 100%
    );
    pointer-events: none;
}

/* Slide 1 — African savannah at dusk */
.slide-1 .slide-bg {
    background-image: url('../images/slides/slide1-savanna.jpg');
    background-size: cover;
    background-position: center 30%;
}

/* Slide 2 — African landscape / river horizon */
.slide-2 .slide-bg {
    background-image: url('../images/slides/slide2-river.jpg');
    background-size: cover;
    background-position: center center;
}

/* Slide 3 — African architecture / city */
.slide-3 .slide-bg {
    background-image: url('../images/slides/slide3-architecture.jpg');
    background-size: cover;
    background-position: center 40%;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 3rem;
    color: #fff;
    width: 100%;
}

.slide-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(200, 168, 130, 0.18);
    border: 1px solid rgba(200, 168, 130, 0.4);
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 30px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.slide h1,
.slide h2 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.08;
    max-width: 880px;
    margin-bottom: 1.8rem;
}

.slide-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    max-width: 700px;
    margin-bottom: 2.8rem;
    line-height: 1.8;
    opacity: 0.95;
}

.slide-cta {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* Slide indicators */
.slide-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    border: none;
    padding: 0;
}

.indicator.active {
    background: var(--gold);
    width: 70px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    padding: 1.05rem 2.6rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200, 168, 130, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--navy);
}

.btn-dark {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.btn-dark:hover {
    background: var(--teal);
    border-color: var(--teal);
    transform: translateY(-2px);
}

/* ============================================================
   6. STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--navy);
    color: #fff;
    padding: 3.5rem 0;
}

.stats-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.4rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* ============================================================
   7. SECTIONS COMMUNES
   ============================================================ */
.section {
    padding: var(--space-2xl) 3rem;
}

.section--cream { background: var(--cream); }
.section--white { background: #fff; }

.section-header {
    max-width: var(--container);
    margin: 0 auto 5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-header.left {
    text-align: left;
    margin-bottom: 4rem;
}

.section-label {
    color: var(--gold);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.9;
}

.section-header.left .section-description {
    margin: 0;
}

/* Skip-to-content (accessibilité clavier) — masqué jusqu'au focus */
.dh-skiplink {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--navy);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 0 0 6px 0;
    font-weight: 600;
    text-decoration: none;
}
.dh-skiplink:focus { left: 0; }

/* Page header (interior pages) */
.page-header {
    margin-top: var(--nav-height);
    min-height: 300px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 3.5rem 3rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
}

.page-header--burgundy {
    background: linear-gradient(135deg, var(--navy) 0%, var(--burgundy) 100%);
}

.page-header--teal {
    background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
}

.page-header__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    pointer-events: none;
}

/* ── Hero photo — background image chosen in Admin → Contenu des pages ─────
   The picture itself comes from an inline style attribute written by
   cb_bg() (so it beats every page-level `background:` shorthand); this class
   only adds the readability veil and the stacking context around it.
   Without an image configured, the class is absent and nothing changes. */
.hero-photo {
    position: relative;
}

.hero-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 25, 45, 0.74) 0%,
        rgba(27, 58, 92, 0.58) 50%,
        rgba(13, 33, 55, 0.78) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Content above the veil — the decorative SVG art stays below it, dimmed
   so it reads as a texture over the photo instead of competing with it. */
.hero-photo > *:not(svg) {
    position: relative;
    z-index: 2;
}

/* Same z-index as the veil + later in paint order → the art stays visible
   on top of the photo, at a lower opacity so it reads as a texture. */
.hero-photo .page-header__svg {
    z-index: 1;
    opacity: 0.35;
}

/* ── Admin-replaceable visuals ────────────────────────────────────────────────
   Emitted by cb_photo() in place of a container's inline SVG artwork. The
   containers are all position:relative / overflow:hidden, so covering them
   takes one rule. No z-index: veils (::after) and content layers declare their
   own and keep painting above the photo. */
.cb-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* Containers whose gradient is only a placeholder behind the artwork: once a
   photo is in, the gradient would show through transparent PNGs. */
.founder-image.has-photo,
.media-box.has-photo {
    background: var(--navy);
}

.page-header-content {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    color: #fff;
    position: relative;
    z-index: 2;
}

.page-header-content.center {
    text-align: center;
}

.page-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(200, 168, 130, 0.18);
    border: 1px solid rgba(200, 168, 130, 0.4);
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 30px;
    margin-bottom: 1.8rem;
    backdrop-filter: blur(10px);
}

.page-header h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.4rem;
    max-width: 850px;
}

.page-header-content.center h1 {
    margin-inline: auto;
}

.page-header p {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    max-width: 720px;
    opacity: 0.95;
    line-height: 1.8;
}

.page-header-content.center p {
    margin-inline: auto;
}

/* Two-column intro */
.split {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.prose h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1.8rem;
}

.prose p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 1.4rem;
}

.media-box {
    height: 500px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--cream) 0%, rgba(200, 168, 130, 0.12) 100%);
}

.media-box svg {
    width: 78%;
    height: 78%;
}

/* Image showcase */
.image-showcase {
    min-height: 560px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
}

.image-showcase__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    pointer-events: none;
}

.image-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 58, 92, 0.7) 0%, rgba(44, 95, 111, 0.7) 100%);
}

.image-showcase-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 4rem 3rem;
}

.image-showcase h2 {
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 1.6rem;
}

.image-showcase p {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* CTA section */
.cta-section {
    padding: var(--space-2xl) 3rem;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--navy) 100%);
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 1.4rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.6rem;
    opacity: 0.95;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   8. EXPERTISE CARDS
   ============================================================ */
.expertise {
    position: relative;
}

.expertise::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(248, 246, 243, 0.5) 100%);
    pointer-events: none;
}

.expertise-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.expertise-card {
    background: #fff;
    border: 1px solid var(--light-gray);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-md);
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--navy), var(--teal), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--navy);
}

.expertise-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    transition: transform 0.4s var(--ease), background 0.4s ease;
    flex-shrink: 0;
}

.expertise-icon svg {
    width: 38px;
    height: 38px;
    stroke: var(--gold);
    fill: none;
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.08) rotate(4deg);
    background: linear-gradient(135deg, var(--teal) 0%, var(--gold) 100%);
}

.expertise-card:hover .expertise-icon svg {
    stroke: #fff;
}

.expertise-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
}

.expertise-card p {
    color: var(--gray);
    font-size: 0.98rem;
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

.expertise-services {
    margin-bottom: 1.6rem;
    display: grid;
    gap: 0.6rem;
}

.expertise-services li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.5;
}

.expertise-services li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
}

.expertise-link {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease, color 0.3s ease;
    font-size: 0.95rem;
    margin-top: auto;
}

.expertise-link:hover {
    gap: 1rem;
    color: var(--navy);
}

/* Why-us strip (3 differentiators) */
.why-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.why-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.why-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.why-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ============================================================
   VALUES CARDS (about)
   ============================================================ */
.values-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.value-card {
    background: #fff;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}

.value-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.8rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--ease), background 0.4s ease;
}

.value-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--gold);
    fill: none;
}

.value-card:hover .value-icon {
    transform: scale(1.08) rotate(8deg);
    background: linear-gradient(135deg, var(--teal) 0%, var(--gold) 100%);
}

.value-card:hover .value-icon svg {
    stroke: #fff;
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ============================================================
   9. REGIONS MAP
   ============================================================ */
.regions-map {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 4rem;
    align-items: start;
}

.regions-content h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 1.6rem;
}

.regions-content > p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.regions-list li {
    padding: 1.6rem 2rem;
    background: #fff;
    border-left: 4px solid var(--gold);
    margin-bottom: 1.2rem;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.regions-list li:hover {
    transform: translateX(12px);
    box-shadow: 0 8px 30px rgba(27, 58, 92, 0.1);
    border-left-color: var(--navy);
}

.regions-list li strong {
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.regions-list li span {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Map visual container */
/* Map container — landscape world map */
.regions-visual {
    background: linear-gradient(135deg, #0B1A2E 0%, #1B3A5C 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 1.2rem;
    aspect-ratio: 2 / 1;
    min-height: 320px;
}

.regions-visual svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Standalone full-width map (regions page) */
.map-stage {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0B1A2E 0%, #1B3A5C 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(27, 58, 92, 0.35);
}

.map-stage svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Animated map markers */
.map-marker .marker-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: pulse 2.6s ease-out infinite;
}

.map-marker:nth-child(2) .marker-pulse { animation-delay: 0.4s; }
.map-marker:nth-child(3) .marker-pulse { animation-delay: 0.8s; }
.map-marker:nth-child(4) .marker-pulse { animation-delay: 1.2s; }
.map-marker:nth-child(5) .marker-pulse { animation-delay: 1.6s; }
.map-marker:nth-child(6) .marker-pulse { animation-delay: 2s; }

.map-marker .marker-dot {
    transition: r 0.3s ease, fill 0.3s ease;
    cursor: pointer;
}

.map-marker:hover .marker-dot {
    fill: #fff;
}

.map-marker .marker-label {
    fill: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.map-marker:hover .marker-label {
    opacity: 1;
}

/* Region cards grid */
.region-cards {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.region-card {
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.4s ease;
}

.region-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}

.region-flag {
    font-size: 2.6rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.region-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.region-type {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(27, 58, 92, 0.08);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: 1.2rem;
}

.region-card p {
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 1.2rem;
    font-size: 0.96rem;
}

.region-contact {
    padding-top: 1.2rem;
    border-top: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--teal);
    font-weight: 500;
}

/* ============================================================
   10. TIMELINE
   ============================================================ */
.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--teal) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 3.5rem;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 22px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--gold);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--navy);
    z-index: 2;
}

.timeline-content {
    background: var(--cream);
    padding: 2.2rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(27, 58, 92, 0.1);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.3rem;
    line-height: 1;
}

.timeline-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.timeline-content p {
    color: var(--gray);
    line-height: 1.8;
}

/* ============================================================
   11. TEAM / FOUNDER CARDS
   ============================================================ */
.founder-section {
    padding: var(--space-2xl) 3rem;
    background: var(--navy);
    color: #fff;
}

.founder-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 5rem;
    align-items: center;
}

.founder-image {
    width: 100%;
    max-width: 400px;
    height: 500px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--gold) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.founder-image svg {
    width: 70%;
    height: 70%;
}

.founder-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    pointer-events: none;
}

.founder-content h2 {
    color: var(--gold);
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 0.8rem;
}

.founder-title {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.8rem;
    font-weight: 500;
}

.founder-bio {
    font-size: 1.08rem;
    line-height: 1.9;
    margin-bottom: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
}

.credentials {
    margin-top: 2.2rem;
    padding-top: 2.2rem;
    border-top: 1px solid rgba(200, 168, 130, 0.3);
}

.credentials h4 {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.credentials ul {
    display: grid;
    gap: 0.7rem;
}

.credentials li {
    padding-left: 1.6rem;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}

.credentials li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* ============================================================
   OFFICES (about + contact)
   ============================================================ */
.offices-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.office-card {
    background: var(--cream);
    padding: 3.2rem 3rem;
    border-radius: var(--radius-lg);
    border-left: 6px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.office-card:hover {
    transform: translateX(12px);
    box-shadow: 0 20px 60px rgba(27, 58, 92, 0.1);
    border-left-color: var(--teal);
}

/* Contact variant: map on top, no left border */
.office-card.media {
    padding: 0;
    border-left: none;
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.office-card.media:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.office-map {
    height: 280px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
}

.office-map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.office-card.media .office-content {
    padding: 2.8rem 3rem 3rem;
}

.office-badge {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    background: var(--navy);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: 1.4rem;
}

.office-card h3 {
    font-size: 1.9rem;
    margin-bottom: 1.6rem;
}

.office-details {
    display: grid;
    gap: 1.2rem;
}

.office-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.office-detail-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.office-detail-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--teal);
    fill: none;
}

.office-detail strong {
    color: var(--navy);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.office-detail p {
    color: var(--gray);
    line-height: 1.7;
}

/* ============================================================
   12. INSIGHTS BLOG
   ============================================================ */
.categories-bar {
    background: #fff;
    border-bottom: 1px solid var(--light-gray);
    padding: 1.3rem 3rem;
    position: sticky;
    top: var(--nav-height);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.categories-container {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: thin;
}

.category-btn {
    padding: 0.55rem 1.4rem;
    background: transparent;
    border: 2px solid var(--light-gray);
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover,
.category-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* Featured article */
.featured-container {
    max-width: var(--container);
    margin: 0 auto;
}

.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.featured-article:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.featured-image {
    min-height: 460px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
}

.featured-image svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.featured-content {
    padding: 3.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-category,
.article-category {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: var(--navy);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: 1.3rem;
    width: fit-content;
}

.featured-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 1.3rem;
    line-height: 1.2;
}

.featured-meta,
.article-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: var(--gray);
}

.featured-meta {
    margin-bottom: 1.3rem;
}

.featured-meta span,
.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.featured-meta svg,
.article-meta svg {
    width: 16px;
    height: 16px;
    stroke: var(--gold);
    fill: none;
}

.featured-excerpt {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.8rem;
    font-size: 1.05rem;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.featured-link:hover {
    gap: 1.2rem;
    color: var(--navy);
}

/* Articles grid + sidebar */
.content-with-sidebar {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.article-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}

.article-card.hidden,
.featured-article.hidden,
.featured-section.hidden {
    display: none;
}

/* Empty state shown when a category filter matches no article */
.articles-empty {
    display: none;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--gray);
    font-size: 1.05rem;
    border: 1px dashed var(--light-gray);
    border-radius: var(--radius-lg);
}

.articles-empty.show {
    display: block;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(27, 58, 92, 0.1);
    border-color: var(--gold);
}

.article-image {
    display: block;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
}

.article-image svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.article-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
    line-height: 1.3;
}

.article-content h3 a {
    color: inherit;
    text-decoration: none;
}

.article-content h3 a:hover {
    color: var(--teal);
}

.article-excerpt {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
    flex: 1;
}

.article-meta {
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
    font-size: 0.84rem;
    justify-content: space-between;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 90px);
    align-self: start;
}

.sidebar-widget {
    background: #fff;
    padding: 2.2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--light-gray);
}

.sidebar-widget h3 {
    font-size: 1.4rem;
    margin-bottom: 1.3rem;
}

.recent-post-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-item a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.recent-post-item a:hover {
    color: var(--teal);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.3rem;
}

.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.topic-tag {
    display: inline-block;
    text-decoration: none;
    padding: 0.45rem 1rem;
    background: var(--cream);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topic-tag:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.newsletter-widget {
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    color: #fff;
    border: none;
}

.newsletter-widget h3 {
    color: var(--gold);
}

.newsletter-widget p {
    margin-bottom: 1.3rem;
    opacity: 0.9;
    line-height: 1.7;
}

.newsletter-form input {
    width: 100%;
    padding: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    width: 100%;
    padding: 0.95rem;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.newsletter-feedback {
    margin-top: 0.8rem;
    font-size: 0.88rem;
    color: var(--gold);
    display: none;
}

.newsletter-feedback.show {
    display: block;
}

/* ============================================================
   13. CONTACT FORM
   ============================================================ */
.contact-container {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
}

.contact-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.4rem;
}

.contact-info > p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2.6rem;
}

.contact-methods {
    display: grid;
    gap: 1.6rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 1.8rem;
    background: var(--cream);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-method:hover {
    transform: translateX(10px);
    border-left-color: var(--teal);
    box-shadow: 0 10px 30px rgba(27, 58, 92, 0.08);
}

.contact-method-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--gold);
    fill: none;
}

.contact-method-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.contact-method-content p {
    color: var(--gray);
    line-height: 1.7;
}

.contact-method-content a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-method-content a:hover {
    color: var(--navy);
}

.contact-form {
    background: var(--cream);
    padding: 3.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
}

.contact-form h3 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    margin-bottom: 1.3rem;
}

.contact-form > p {
    color: var(--gray);
    margin-bottom: 2.2rem;
    line-height: 1.7;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    color: var(--dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 168, 130, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    width: 100%;
    padding: 1.1rem;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(27, 58, 92, 0.2);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    font-size: 0.88rem;
    color: var(--gray);
    margin-top: 1rem;
    text-align: center;
    line-height: 1.6;
}

.form-feedback {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    text-align: center;
    display: none;
}

.form-feedback.show {
    display: block;
}

.form-feedback.success {
    background: rgba(44, 95, 111, 0.12);
    color: var(--teal);
    border: 1px solid rgba(44, 95, 111, 0.3);
}

/* Business hours */
.hours-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hours-container h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.hours-container > p {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.hours-card {
    background: var(--cream);
    padding: 2.4rem;
    border-radius: var(--radius-md);
    border-top: 4px solid var(--gold);
}

.hours-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    text-align: left;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-day {
    font-weight: 600;
    color: var(--navy);
}

.hours-time {
    color: var(--gray);
}

.hours-tz {
    margin-top: 1.4rem;
    color: var(--gray);
    font-size: 0.9rem;
    text-align: left;
}

/* ============================================================
   14. FOOTER
   ============================================================ */
footer {
    background: var(--navy);
    color: #fff;
    padding: 5rem 3rem 2rem;
}

.footer-content {
    max-width: var(--container);
    margin: 0 auto 3.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand img {
    height: 96px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.4rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 2.2rem;
    max-width: 360px;
}

.footer-offices {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.office-mini {
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.office-mini:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--teal);
}

.office-mini strong {
    color: var(--gold);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.6rem;
}

.office-mini p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.6rem;
    color: var(--gold);
}

.footer-section ul li {
    margin-bottom: 0.9rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding-top: 2.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ============================================================
   15. ANIMATIONS & KEYFRAMES
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s var(--ease);
    will-change: transform, opacity;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(3.2); opacity: 0; }
    100% { transform: scale(3.2); opacity: 0; }
}

@keyframes gridMove {
    from { transform: translateY(0); }
    to   { transform: translateY(-40px); }
}

@keyframes float {
    0%   { transform: translateY(0) translateX(0); opacity: 0.4; }
    50%  { transform: translateY(-26px) translateX(10px); opacity: 1; }
    100% { transform: translateY(0) translateX(0); opacity: 0.4; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes sway {
    0%, 100% { transform: rotate(-1.5deg); }
    50%      { transform: rotate(1.5deg); }
}

@keyframes waveShift {
    from { transform: translateX(0); }
    to   { transform: translateX(-120px); }
}

/* Hero decorative particles */
.particle {
    transform-box: fill-box;
    transform-origin: center;
    animation: float 7s ease-in-out infinite;
}

.particle:nth-child(2n) { animation-duration: 9s; animation-delay: 1s; }
.particle:nth-child(3n) { animation-duration: 11s; animation-delay: 2s; }
.particle:nth-child(4n) { animation-duration: 8s; animation-delay: 0.5s; }

.acacia-canopy {
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: sway 9s ease-in-out infinite;
}

.water-wave {
    animation: waveShift 14s linear infinite;
}

.grid-drift {
    animation: gridMove 12s linear infinite;
}

/* ============================================================
   16. RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .nav-container { padding: 0 2rem; }

    .stats-container { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }

    .expertise-grid,
    .values-grid,
    .region-cards { grid-template-columns: repeat(2, 1fr); }

    .why-grid { grid-template-columns: 1fr; gap: 2rem; }

    .regions-map,
    .split,
    .founder-container,
    .offices-grid,
    .contact-container,
    .featured-article,
    .content-with-sidebar,
    .hours-grid { grid-template-columns: 1fr; gap: 3rem; }

    .founder-image { max-width: 100%; margin: 0 auto; }

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

    .sidebar { position: static; }

    .footer-content { grid-template-columns: 1fr 1fr; gap: 3rem; }

    /* Timeline collapses to single rail on the left */
    .timeline::before { left: 20px; }
    .timeline-item { grid-template-columns: 1fr; gap: 0; padding-left: 3.5rem; }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 1;
        text-align: left;
    }
    .timeline-dot { left: 20px; }
}

/* ============================================================
   17. RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    .nav-container { padding: 0 1.4rem; }

    .menu-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1rem 1.5rem 2rem;
        border-bottom: 1px solid var(--light-gray);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-links li:last-child {
        border-bottom: none;
        padding-top: 1rem;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.05rem;
    }

    .nav-links a::after { display: none; }

    .stats-container { grid-template-columns: 1fr; gap: 2rem; }

    .expertise-grid,
    .values-grid,
    .region-cards,
    .articles-grid { grid-template-columns: 1fr; }

    .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }

    .section { padding: 4.5rem 1.4rem; }
    .page-header { padding: 3rem 1.4rem; min-height: 220px; }
    .founder-section,
    .cta-section { padding: 4.5rem 1.4rem; }
    .categories-bar { padding: 1rem 1.4rem; }

    .slide-content { padding: 0 1.4rem; }
    .slide-cta .btn { width: 100%; }

    .featured-content,
    .contact-form,
    .office-card { padding: 2rem 1.6rem; }

    .footer-bottom { flex-direction: column; text-align: center; }

    /* Animated geographic-presence map: below 768px the 2:1 canvas becomes
       unreadable and its fixed min-height overflows narrow screens. Let the
       map keep a legible width and swipe horizontally inside its card. */
    .regions-visual {
        aspect-ratio: auto;
        min-height: 0;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .map-stage {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 1.2rem;
    }

    .regions-visual svg,
    .map-stage svg {
        min-width: 640px;
        width: 640px;
        height: auto;
    }
}

/* ============================================================
   18. UTILITIES
   ============================================================ */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.no-scroll { overflow: hidden; }

/* ============================================================
   ACCESSIBILITY — REDUCED MOTION
   ============================================================ */


/* ============================================================
   VISUAL DEPTH ENHANCEMENTS
   ============================================================ */

/* Subtle grain texture for cream sections */
.section--cream {
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 28px,
            rgba(200, 168, 130, 0.045) 28px,
            rgba(200, 168, 130, 0.045) 29px
        );
}

/* Section separator accent lines */
.section--white + .section--cream,
.section--cream + .section--white {
    box-shadow: inset 0 4px 0 0 rgba(200, 168, 130, 0.18);
}

/* Enhanced expertise card icon glow on hover */
.expertise-card:hover .expertise-icon {
    box-shadow: 0 8px 24px rgba(200, 168, 130, 0.28);
}

/* Deep card shadow on hover */
.expertise-card:hover,
.value-card:hover,
.article-card:hover,
.region-card:hover {
    box-shadow: 0 28px 72px rgba(27, 58, 92, 0.15),
                0 4px 16px rgba(200, 168, 130, 0.10);
}

/* Stats bar decorative border top */
.stats-bar {
    border-top: 4px solid var(--gold);
    position: relative;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
}

/* Stat number glow on scroll-in */
.stat-number {
    text-shadow: 0 0 28px rgba(200, 168, 130, 0.25);
}

/* Slide content text-shadow for legibility */
.slide h1,
.slide h2 {
    text-shadow: 0 2px 24px rgba(10, 25, 50, 0.6);
}
.slide-subtitle {
    text-shadow: 0 1px 12px rgba(10, 25, 50, 0.5);
}

/* Image showcase inner glow ring */
.image-showcase-content::before {
    content: '';
    position: absolute;
    inset: -60px;
    background: radial-gradient(ellipse at center, rgba(200, 168, 130, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.image-showcase-content {
    position: relative;
}

/* Page header depth line */
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
    opacity: 0.5;
}

/* Founder section gold accent line */
.founder-section {
    border-top: 4px solid var(--gold);
}

/* Region card hover — left accent flash */
.region-card:hover {
    border-color: var(--gold);
    border-left: 4px solid var(--gold);
}

/* Office card (about) accent glow */
.office-card:hover {
    box-shadow: 0 20px 60px rgba(27, 58, 92, 0.12),
                -4px 0 0 var(--teal);
}

/* Timeline dot pulse on hover */
.timeline-item:hover .timeline-dot {
    box-shadow: 0 0 0 6px rgba(200, 168, 130, 0.22),
                0 0 0 10px rgba(200, 168, 130, 0.10);
    background: var(--teal);
}

/* Footer brand p max-width fix */
.footer-brand p {
    max-width: 340px;
}

/* Better focus ring on interactive elements */
.expertise-card:focus-within,
.value-card:focus-within,
.region-card:focus-within {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Slide indicators gap fix & touch target */
.indicator {
    cursor: pointer;
    min-width: 40px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
}

/* Featured article category pill hover */
.featured-link:hover svg {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

/* Map stage decorative border */
.map-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(200, 168, 130, 0.18);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

/* Why-card number accent */
.why-number {
    background: linear-gradient(135deg, var(--gold) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }

    .slide {
        transition: opacity 0.3s ease;
    }
}

/* ============================================================
   Sous-menus de navigation (menus à deux niveaux, Admin → Site → Menus)
   ============================================================ */
.nav-links li.has-sub { position: relative; }
.nav-links .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover); padding: .5rem 0; list-style: none; margin: 0; display: none; z-index: 50; }
.nav-links li.has-sub:hover > .sub-menu, .nav-links li.has-sub:focus-within > .sub-menu { display: block; }
.nav-links .sub-menu li { display: block; }
.nav-links .sub-menu a { display: block; padding: .55rem 1.1rem; font-size: .9rem; color: var(--navy); white-space: nowrap; }
.nav-links .sub-menu a:hover { background: var(--cream); }
@media (max-width: 1024px) { .nav-links .sub-menu { position: static; display: block; box-shadow: none; padding: 0 0 0 1rem; background: transparent; } }
