/* =========================================================
   LEDIA Group Inc.
   Official brand system — oxblood & crimson red, navy & steel
   blue, cool white. Typeface: Montserrat (per brand guide).
   Palette source: LEDIA Color Codes & Clearspace guide.
     #6f0e10 oxblood · #b41f27 crimson · #04334a navy
     #6b9ebd steel blue · #f5f7fc cool white
   ========================================================= */

/* ---------- Type ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ---------- Tokens ---------- */
:root {
    /* --- Official brand palette --- */
    --oxblood:         #6f0e10;
    --crimson:         #b41f27;
    --navy:            #04334a;
    --steel:           #6b9ebd;
    --coolwhite:       #f5f7fc;

    /* --- Semantic mappings (names kept stable across the codebase) ---
       The site was built around burgundy/gold/cream variable names.
       They now resolve to the official brand colors so every existing
       rule re-themes automatically. */

    /* "burgundy" family -> brand reds + navy for the darkest inks */
    --burgundy:        #6f0e10;   /* primary brand red (oxblood) */
    --burgundy-deep:   #5a0b0d;   /* deeper oxblood for hovers */
    --burgundy-ink:    #04334a;   /* navy — dark sections/ink bands */
    --burgundy-shade:  #0a2f42;   /* navy shade */
    --burgundy-mid:    #143d52;   /* navy mid */

    /* accent family (was gold) -> crimson as the bright accent */
    --gold:            #b41f27;   /* crimson — the bright accent */
    --gold-light:      #c8323a;   /* lighter crimson */

    /* steel blue — a secondary accent for variety */
    --steel-accent:    #6b9ebd;
    --steel-deep:      #4d7e9c;

    /* surfaces (was cream) -> cool white family */
    --cream:           #f5f7fc;   /* primary surface */
    --cream-soft:      #eef1f8;   /* slightly deeper surface */
    --cream-line:      #dde3ee;   /* hairline borders */
    --cream-mute:      #c4d2e0;   /* muted text on dark */

    /* ink (text) */
    --ink:             #04334a;   /* navy as primary text color */
    --ink-soft:        #3a5666;   /* softened navy */
    --ink-mute:        #6e8696;   /* muted slate */
    --ink-faint:       #a6b8c6;   /* faint slate */

    /* Type — Montserrat across the brand (per official guide) */
    --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --container:     1280px;
    --container-tight: 1080px;
    --gutter:        clamp(20px, 4vw, 48px);
    --section-pad:   clamp(56px, 8vw, 96px);

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

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream-soft);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* ---------- Typographic primitives ---------- */
.eyebrow {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.eyebrow--ink { color: var(--burgundy); }

.display {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--cream);
}

.display em {
    color: var(--gold);
    font-style: normal;
    font-weight: 700;
}

.headline {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.015em;
}

.lede {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--cream-mute);
    font-weight: 300;
}

.serif-italic {
    font-family: var(--font-display);
    font-style: italic;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--tight {
    max-width: var(--container-tight);
}

/* ---------- Sections ---------- */
.section {
    padding: var(--section-pad) 0;
}

.section--cream { background: var(--cream); border-top: 1px solid var(--cream-line); }
.section--soft  { background: var(--cream-soft); }
.section--ink   { background: var(--burgundy-ink); color: var(--cream); }
.section--burgundy { background: var(--burgundy); color: var(--cream); }
.section--deep  { background: var(--burgundy-deep); color: var(--cream); }

/* =========================================================
   NAVIGATION  (light bar, official logo)
   ========================================================= */
.nav {
    background: rgba(245, 247, 252, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--cream-line);
}

.nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.2s var(--ease);
}

.nav__brand:hover { opacity: 0.85; }

.nav__brand-logo {
    height: 46px;
    width: auto;
    display: block;
}

.nav__brand-text {
    display: none; /* logo image already includes the wordmark */
}

.nav__brand-mark,
.nav__brand-tag,
.nav__brand-arrow { display: none; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.nav__link {
    font-size: 12px;
    color: var(--ink);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.78;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav__link:hover { opacity: 1; color: var(--burgundy); }

.nav__link[aria-current="page"] {
    opacity: 1;
    color: var(--burgundy);
    border-bottom-color: var(--gold);
}

.nav__menu {
    display: none;
    background: none;
    border: 1px solid var(--burgundy);
    color: var(--burgundy);
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    font-weight: 600;
}

@media (max-width: 1000px) {
    .nav__brand-logo { height: 38px; }
    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--coolwhite);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        border-top: 1px solid var(--gold);
        border-bottom: 1px solid var(--cream-line);
    }
    .nav__links.is-open { display: flex; }
    .nav__link { padding: 14px var(--gutter); width: 100%; }
    .nav__menu { display: inline-flex; }
}

/* =========================================================
   HERO / PAGE HEADER
   ========================================================= */
.hero {
    background: var(--burgundy);
    color: var(--cream);
    padding: clamp(72px, 12vw, 128px) 0 clamp(120px, 16vw, 180px);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(107, 158, 189, 0.08), transparent 70%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
}

/* On the dark oxblood hero, lift low-contrast accents toward cool white */
.hero .eyebrow { color: var(--steel-accent); }
.hero__lede { color: var(--cream-mute); }

.hero__title {
    font-size: clamp(40px, 7vw, 72px);
    max-width: 14ch;
    margin: 18px 0 22px;
}

.hero__title--short { max-width: 12ch; }

.hero__lede {
    max-width: 52ch;
    margin-bottom: 36px;
}

.hero__meta {
    position: absolute;
    bottom: clamp(28px, 5vw, 56px);
    left: var(--gutter);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 11px;
    color: var(--cream-mute);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Page header — smaller hero for inner pages */
.page-header {
    background: var(--burgundy);
    color: var(--cream);
    padding: clamp(56px, 8vw, 88px) 0 clamp(110px, 14vw, 150px);
    position: relative;
    overflow: hidden;
}

.page-header__title {
    font-size: clamp(34px, 5vw, 52px);
    max-width: 16ch;
    margin: 14px 0 18px;
    color: var(--cream);
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
}

.page-header__lede {
    max-width: 50ch;
    font-size: 14px;
    line-height: 1.7;
    color: var(--cream-mute);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:hover { transform: translateY(-1px); }

.btn--gold {
    background: var(--gold);
    color: var(--burgundy-deep);
}
.btn--gold:hover { background: var(--gold-light); }

.btn--outline {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
}
.btn--outline:hover { background: var(--gold); color: var(--burgundy-deep); }

.btn--burgundy {
    background: var(--burgundy);
    color: var(--cream);
}
.btn--burgundy:hover { background: var(--burgundy-deep); }

/* Cream button — for use on the dark oxblood hero where crimson lacks contrast */
.btn--cream {
    background: var(--coolwhite);
    color: var(--burgundy);
}
.btn--cream:hover { background: #fff; color: var(--burgundy-deep); }

/* High-contrast outline for dark backgrounds */
.btn--outline-cream {
    background: transparent;
    border-color: var(--coolwhite);
    color: var(--coolwhite);
}
.btn--outline-cream:hover { background: var(--coolwhite); color: var(--burgundy); }

.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Inline link arrow */
.linkout {
    font-size: 11px;
    color: var(--burgundy);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.linkout:hover { color: var(--gold); }
.linkout--cream { color: var(--cream); }
.linkout--cream:hover { color: var(--gold); }

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section-head {
    margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
}

.section-head__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink);
    margin-top: 10px;
    max-width: 22ch;
}

/* =========================================================
   GRID HELPERS
   ========================================================= */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--asym-2 { grid-template-columns: 1.4fr 1fr; }
.grid--asym-2-rev { grid-template-columns: 1fr 1.4fr; }
.grid--feature { grid-template-columns: 1fr 2fr; }

@media (max-width: 900px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--asym-2, .grid--asym-2-rev, .grid--feature {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* =========================================================
   SERVICE PILLAR / CARD
   ========================================================= */
.pillar {
    background: #fff;
    padding: 28px 26px;
    border-top: 2px solid var(--burgundy);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pillar:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -24px rgba(74, 20, 24, 0.25);
}

.pillar__number {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pillar__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.pillar__tag {
    font-size: 10px;
    color: var(--ink-mute);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.pillar__title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 10px;
}

.pillar__title--lg { font-size: 22px; }

.pillar__body {
    font-size: 13px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.pillar__list {
    list-style: none;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.pillar__list li {
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.55;
    padding-left: 12px;
    border-left: 1px solid var(--gold);
}

.pillar__outcome {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 13px;
    color: var(--burgundy);
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--cream-line);
}

/* =========================================================
   PULL QUOTE BAND
   ========================================================= */
.pullquote {
    background: var(--burgundy-ink);
    color: var(--cream);
    padding: clamp(64px, 9vw, 96px) 0;
    position: relative;
}

.pullquote__mark {
    font-family: var(--font-display);
    font-size: clamp(96px, 14vw, 144px);
    color: var(--gold);
    line-height: 0.5;
    position: absolute;
    top: clamp(40px, 6vw, 60px);
    left: var(--gutter);
    user-select: none;
}

.pullquote__body {
    max-width: 60ch;
    margin-left: clamp(40px, 6vw, 80px);
    position: relative;
}

.pullquote__text {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.8vw, 28px);
    line-height: 1.4;
    font-style: italic;
    color: var(--cream);
}

.pullquote__attr {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 22px;
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
    background: var(--burgundy-ink);
    color: var(--cream);
    padding: clamp(40px, 6vw, 64px) 0;
}

.cta-band__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-band__title {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: 500;
    line-height: 1.25;
    max-width: 24ch;
}

.cta-band__title em {
    color: var(--gold);
    font-style: italic;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: #04222f;
    color: var(--cream);
    padding: 56px 0 28px;
    border-top: 1px solid rgba(107, 158, 189, 0.22);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer__brand-mark {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--cream);
    margin-bottom: 10px;
}

.footer__tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 14px;
}

.footer__about {
    font-size: 12px;
    line-height: 1.7;
    color: var(--cream-mute);
    max-width: 38ch;
}

.footer__col-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__list a {
    font-size: 13px;
    color: var(--cream-mute);
    transition: color 0.2s var(--ease);
}

.footer__list a:hover { color: var(--gold); }

.footer__bottom {
    border-top: 1px solid rgba(180, 31, 39, 0.14);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--cream-mute);
}

.footer__bottom em {
    color: var(--gold);
    font-style: normal;
    margin-right: 6px;
    letter-spacing: 2px;
}

@media (max-width: 900px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   UTILITIES
   ========================================================= */
.divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 18px 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Staggered entry animation for hero content */
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rise > * {
    opacity: 0;
    animation: rise 0.7s var(--ease) forwards;
}

.rise > *:nth-child(1) { animation-delay: 0.05s; }
.rise > *:nth-child(2) { animation-delay: 0.15s; }
.rise > *:nth-child(3) { animation-delay: 0.25s; }
.rise > *:nth-child(4) { animation-delay: 0.35s; }
.rise > *:nth-child(5) { animation-delay: 0.45s; }

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