/* ==========================================================================
   HDC CONSTRUCTION — base: tokens, typography, header, hero
   ========================================================================== */

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-regular.ttf') format('truetype');
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-bold.ttf') format('truetype');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy: #093179;
    --navy-950: #04132d;
    --navy-900: #061a3e;
    --blue: #1d4398;
    --blue-600: #0049af;
    --blue-soft: #eef3fb;
    --ink: #101d33;
    --body: #4b5a70;
    --muted: #7b889b;
    --line: #e4e9f0;
    --line-dark: rgba(255, 255, 255, .14);
    --bg: #f6f8fb;
    --white: #ffffff;
    --gold: #c9a227;
    --green: #25d366;
    --danger: #c0392b;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 22px 60px rgba(9, 49, 121, .12);
    --shadow-sm: 0 10px 30px rgba(9, 49, 121, .08);
    --font: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    --container: 1296px;
    --topbar-h: 42px;
    --header-main-h: 84px;
    --header-h: calc(var(--topbar-h) + var(--header-main-h));
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.nav-open,
body.modal-open { overflow: hidden; }

[hidden] { display: none !important; }

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease; }
a:hover { color: var(--blue-600); }
button { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    font-family: var(--font);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.025em;
    color: var(--ink);
}
h1 { font-size: clamp(34px, 4.4vw, 62px); }
h2 { font-size: clamp(28px, 3vw, 44px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
::selection { background: var(--navy); color: #fff; }

:focus-visible { outline: 3px solid rgba(29, 67, 152, .45); outline-offset: 3px; }

.container {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

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

.skip-link {
    position: fixed; top: -60px; left: 16px; z-index: 9999;
    background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 8px;
    font-size: 13px; font-weight: 700;
}
.skip-link:focus { top: 0; color: #fff; }

.section { padding: 100px 0; }
.section-sm { padding: 70px 0; }
.bg-soft { background: var(--bg); }
.bg-navy { background: var(--navy); color: rgba(255,255,255,.8); }
.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: all .25s ease;
}
.btn i { font-size: 12px; transition: transform .25s ease; }
.btn:hover i { transform: translateX(4px); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(9,49,121,.24); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: rgba(9,49,121,.28); }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: transparent; }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-lg { min-height: 52px; padding: 15px 30px; font-size: 13px; }
.btn-sm { min-height: 38px; padding: 9px 16px; font-size: 11px; }
.btn-block { width: 100%; }

.text-link {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--navy); border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.text-link:hover { color: var(--blue-600); border-color: currentColor; }
.text-link i { transition: transform .25s ease; }
.text-link:hover i { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   Section heading & eyebrow
   -------------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
    font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
    color: var(--blue);
}
.eyebrow > span { width: 30px; height: 1px; background: currentColor; display: inline-block; }
.eyebrow-light { color: rgba(255,255,255,.72); }
.eyebrow-light > span { background: rgba(255,255,255,.55); }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
    margin-bottom: 46px;
}
.section-head-copy { max-width: 760px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { margin: 0; max-width: 680px; color: var(--body); }
.section-head .section-link { flex: none; margin-bottom: 6px; }
.section-head.is-center { flex-direction: column; align-items: center; text-align: center; margin-bottom: 54px; }
.section-head.is-center .section-head-copy { margin-inline: auto; }
.section-head.is-center .eyebrow { justify-content: center; }
.video-section .section-head p,
.video-section .section-head h2 { color: #fff; }
.video-section .section-head p { color: rgba(255,255,255,.7); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    transition: background .35s ease, box-shadow .35s ease;
}

.topbar {
    height: var(--topbar-h);
    background: rgba(4, 17, 39, .45);
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.82);
    overflow: hidden;
    transition: height .35s ease, opacity .3s ease, background .35s ease;
    backdrop-filter: blur(6px);
}
.topbar-inner {
    height: var(--topbar-h);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    font-size: 11.5px;
}
.topbar-contact, .topbar-right, .topbar-socials { display: flex; align-items: center; gap: 16px; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.82); }
.topbar-contact a:hover { color: #fff; }
.topbar-contact i { color: rgba(255,255,255,.55); font-size: 11px; }
.topbar-sep { width: 1px; height: 13px; background: rgba(255,255,255,.18); }
.topbar-socials { gap: 12px; }
.topbar-socials a { color: rgba(255,255,255,.7); font-size: 12px; }
.topbar-socials a:hover { color: #fff; transform: translateY(-1px); }
.topbar-global { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.topbar-quote { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.topbar-quote i { font-size: 10px; transition: transform .25s ease; }
.topbar-quote:hover { color: #fff; }
.topbar-quote:hover i { transform: translateX(4px); }

.header-main {
    height: var(--header-main-h);
    background: linear-gradient(180deg, rgba(4, 17, 39, .58), rgba(4, 17, 39, .08) 75%, transparent);
    transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
.header-inner {
    height: var(--header-main-h);
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; transition: opacity .25s ease, transform .25s ease; }
.brand .logo-dark { display: none; }
.brand:hover img { transform: translateY(-1px); }

.site-header.is-scrolled { background: #fff; box-shadow: 0 10px 30px rgba(8, 30, 70, .08); }
.site-header.is-scrolled .topbar { height: 0; opacity: 0; border-bottom-color: transparent; }
.site-header.is-scrolled .header-main { background: #fff; }
.site-header.is-scrolled .logo-light { display: none; }
.site-header.is-scrolled .logo-dark { display: block; }
.site-header.is-scrolled .main-nav > .nav-list > li > a { color: var(--ink); }
.site-header.is-scrolled .main-nav > .nav-list > li > a:hover,
.site-header.is-scrolled .main-nav > .nav-list > li > a.is-active { color: var(--blue); }
.site-header.is-scrolled .submenu-toggle { color: var(--ink); }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }

body.nav-open .site-header { background: #fff; }
body.nav-open .logo-light { display: none; }
body.nav-open .logo-dark { display: block; }
body.nav-open .nav-toggle { opacity: 0; pointer-events: none; }

.main-nav { display: flex; align-items: center; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 34px); }
.nav-list > li { display: flex; align-items: center; position: relative; }
.nav-list > li > a {
    position: relative;
    display: inline-flex; align-items: center;
    padding: 31px 0;
    color: rgba(255,255,255,.92);
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    white-space: nowrap;
}
.nav-list > li > a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 24px;
    height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .3s ease;
}
.nav-list > li > a:hover, .nav-list > li > a.is-active { color: #fff; }
.nav-list > li > a:hover::after, .nav-list > li > a.is-active::after { transform: scaleX(1); }
.site-header.is-scrolled .nav-list > li > a::after { background: var(--blue); }

.submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 28px; padding: 0; margin-left: 2px;
    background: none; border: 0; color: rgba(255,255,255,.65);
    font-size: 9px; cursor: pointer;
}
.submenu-toggle:hover { color: #fff; }
.submenu-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.submenu-toggle i { transition: transform .25s ease; }

.submenu {
    position: absolute; top: calc(100% + 12px); left: -18px;
    min-width: 230px; padding: 10px;
    background: #fff; border-radius: 10px;
    box-shadow: 0 24px 60px rgba(6, 26, 62, .18);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 20;
}
.submenu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-list > li:hover > .submenu,
.nav-list > li:focus-within > .submenu,
.nav-list > li.is-open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li { margin: 0; }
.submenu a {
    display: flex; align-items: center; gap: 9px;
    padding: 10px 12px; border-radius: 6px;
    color: var(--ink); font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
}
.submenu a:hover { background: var(--blue-soft); color: var(--blue); }
.submenu a i { font-size: 9px; color: var(--blue); }

.has-mega { position: static !important; }
.mega-menu {
    left: 50%; top: calc(var(--topbar-h) + var(--header-main-h) + 8px);
    transform: translate(-50%, 10px);
    width: min(980px, calc(100vw - 48px));
    display: grid; grid-template-columns: 1.05fr 1.35fr .9fr;
    gap: 0; padding: 0;
    overflow: hidden;
}
.nav-list > li:hover > .mega-menu,
.nav-list > li:focus-within > .mega-menu,
.nav-list > li.is-open > .mega-menu { transform: translate(-50%, 0); }
.site-header.is-scrolled .mega-menu { top: calc(var(--header-main-h) + 8px); }
.mega-cats { padding: 30px 28px; display: flex; flex-direction: column; gap: 4px; }
.mega-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.mega-cats > a {
    padding: 9px 0; color: var(--ink); font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f0f3f8;
}
.mega-cats > a:last-child { border-bottom: 0; color: var(--blue); }
.mega-cats > a i { font-size: 9px; color: var(--blue); transition: transform .2s ease; }
.mega-cats > a:hover { color: var(--blue); padding-left: 3px; }
.mega-cats > a:hover i { transform: translateX(3px); }

.mega-feature { position: relative; min-height: 300px; background: var(--navy); color: #fff; overflow: hidden; }
.mega-feature img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: .5; }
.mega-feature > div { position: relative; z-index: 2; padding: 32px 28px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.mega-feature span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 6px; }
.mega-feature strong { font-size: 20px; line-height: 1.25; color: #fff; margin-bottom: 14px; }
.mega-feature a { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.mega-feature a:hover { color: var(--gold); }
.mega-links { padding: 30px 24px; border-left: 1px solid #eef1f6; display: flex; flex-direction: column; gap: 8px; }
.mega-links a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 8px; }
.mega-links a:hover { background: var(--blue-soft); }
.mega-links i { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.mega-links span { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.mega-links small { font-size: 10.5px; font-weight: 500; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-quote { letter-spacing: .08em; }
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .3s ease, background .3s ease; }
.nav-head, .nav-mobile-extra { display: none; }
.nav-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(4, 16, 38, .6); backdrop-filter: blur(2px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    max-height: 980px;
    background: var(--navy-950);
    overflow: hidden;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; display: flex; align-items: center; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-slide.is-active .hero-bg { animation: heroZoom 9s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(4,15,36,.9) 0%, rgba(4,15,36,.7) 42%, rgba(4,15,36,.22) 78%, rgba(4,15,36,.1) 100%),
        linear-gradient(0deg, rgba(4,15,36,.72) 0%, transparent 42%);
}
.hero-caption { position: relative; z-index: 3; padding-top: calc(var(--header-h) + 60px); padding-bottom: 120px; }
.hero-caption > * { max-width: 820px; }
.hero-caption h1 { color: #fff; font-size: clamp(38px, 4.5vw, 66px); line-height: 1.05; margin-bottom: 22px; }
.hero-caption p { color: rgba(255,255,255,.84); font-size: clamp(15px, 1.2vw, 17.5px); line-height: 1.8; max-width: 630px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-slide .eyebrow, .hero-slide h1, .hero-slide p, .hero-slide .hero-actions { opacity: 0; transform: translateY(26px); }
.hero-slide.is-active .eyebrow { animation: heroIn .8s .1s ease forwards; }
.hero-slide.is-active h1 { animation: heroIn .9s .22s ease forwards; }
.hero-slide.is-active p { animation: heroIn .9s .34s ease forwards; }
.hero-slide.is-active .hero-actions { animation: heroIn .9s .46s ease forwards; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.hero-controls-wrap { position: absolute; left: 0; right: 0; bottom: 38px; z-index: 5; }
.hero-controls { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hero-dots { display: flex; align-items: center; gap: 10px; }
.hero-dot { width: 48px; height: 18px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.hero-dot span { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(255,255,255,.35); transition: background .3s ease, height .3s ease; }
.hero-dot.is-active span { background: #fff; height: 3px; }
.hero-dot:hover span { background: rgba(255,255,255,.7); }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow {
    width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.04); color: #fff;
    border-radius: 50%; font-size: 13px; cursor: pointer; transition: all .25s ease;
}
.hero-arrow:hover { background: #fff; color: var(--navy); border-color: #fff; }

.hero-badge {
    position: absolute; right: max(32px, calc((100vw - var(--container)) / 2)); bottom: 110px; z-index: 4;
    display: flex; align-items: center; gap: 14px;
    padding: 16px 22px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px; backdrop-filter: blur(10px); color: #fff;
}
.hero-badge-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 16px; }
.hero-badge strong { display: block; font-size: 15px; color: #fff; line-height: 1.2; }
.hero-badge span { display: block; font-size: 10.5px; color: rgba(255,255,255,.65); letter-spacing: .04em; }

.hero-scroll {
    position: absolute; right: 24px; top: 48%; z-index: 4;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    color: rgba(255,255,255,.55); font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
    writing-mode: vertical-rl;
}
.hero-scroll:hover { color: #fff; }
.hero-scroll i { writing-mode: initial; animation: bounceDown 2s infinite; }
@keyframes bounceDown { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    min-height: 440px;
    display: flex; align-items: center;
    background: var(--navy-950);
    overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(4,17,39,.92) 0%, rgba(4,17,39,.72) 55%, rgba(4,17,39,.4) 100%),
                linear-gradient(0deg, rgba(4,17,39,.55), transparent 60%);
}
.page-hero-inner { position: relative; z-index: 2; padding-top: 130px; padding-bottom: 70px; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 3.8vw, 56px); margin-bottom: 16px; max-width: 850px; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 650px; font-size: 16px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; font-size: 11.5px; letter-spacing: .05em; }
.breadcrumbs a { color: rgba(255,255,255,.72); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: var(--gold); font-weight: 700; }
.breadcrumbs i { font-size: 8px; color: rgba(255,255,255,.4); }
.page-hero-curve { display: none; }

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
