/* ==========================================================
   DYNSTF website theme — built on Bootstrap 5.3
   Colours: navy #0B2545 · teal #0F6E69 · gold #C9A227
   ========================================================== */

:root {
  --navy: #0B2545;
  --navy-deep: #081A33;
  --navy-soft: #13405F;
  --teal: #0F6E69;
  --teal-light: #9FE3DC;
  --mint: #E8F4F3;
  --gold: #C9A227;
  --gold-light: #E5C55A;
  --cream: #FBF5E2;
  --ink: #1B2A3A;
  --muted: #4A5868;
  --line: #E3E8EE;
  --soft: #F4F7FA;

  --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color: var(--teal);
  --bs-link-color-rgb: 15, 110, 105;
  --bs-link-hover-color: var(--navy);
  --bs-link-hover-color-rgb: 11, 37, 69;
  --bs-border-radius: .75rem;
}

body { font-family: var(--bs-body-font-family); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; box-shadow: none;
}
.skip-link { position: absolute; z-index: 2000; left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; border-radius: .5rem; }
.text-navy { color: var(--navy) !important; }
.text-teal { color: var(--teal) !important; }
.text-muted-ink { color: var(--muted) !important; }
.text-gold-light { color: var(--gold-light) !important; font-style: italic; }
.bg-soft { background: var(--soft); }
.bg-mint { background: var(--mint); }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy) !important; color: #fff; }
.bg-teal { background: var(--teal) !important; color: #fff; }

/* ---------- Type ---------- */
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .75rem; }
.bg-navy .eyebrow, .hero .eyebrow, .page-banner .eyebrow { color: var(--gold-light); }
.section-title { font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); line-height: 1.2; letter-spacing: -.02em; color: var(--navy); margin-bottom: 1rem; }
.bg-navy .section-title, .bg-teal .section-title { color: #fff; }
.display-title { font-weight: 600; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 1.25rem; }
.lead-soft { font-size: clamp(1rem, .95rem + .35vw, 1.2rem); line-height: 1.7; color: #D7E1EC; max-width: 44rem; }
.body-lg { font-size: clamp(1rem, .96rem + .2vw, 1.1rem); line-height: 1.8; color: var(--muted); }
.ph { color: var(--muted); font-style: italic; }

/* ---------- Layout ---------- */
html, body { overflow-x: clip; }
@media (max-width: 991.98px) {
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
  .row.g-5, .row.gy-5 { --bs-gutter-y: 2.25rem; }
}
.section { padding: clamp(4rem, 3rem + 5vw, 7rem) 0; }
.section-sm { padding: clamp(3rem, 2.5rem + 3vw, 5rem) 0; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .8rem 1.6rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-gold { background: var(--gold); color: var(--navy); border: 1px solid var(--gold); font-weight: 700; }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-light); color: var(--navy); border-color: var(--gold-light); }
.btn-navy { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-soft); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; border: 1px solid var(--teal); }
.btn-teal:hover, .btn-teal:focus { background: #0B5955; color: #fff; }
.btn-outline-navy { color: var(--navy); border: 1px solid #C9D3DE; background: #fff; }
.btn-outline-navy:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline-soft { color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-outline-soft:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: ' →'; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-deep); color: #D7E1EC; font-size: .82rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .navbar { padding: .6rem 0; }
.brand-logo { height: 56px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.brand-sub { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.navbar-toggler { border: 1px solid var(--line); border-radius: .75rem; padding: .35rem .6rem; font-size: 1.6rem; color: var(--navy); }
.navbar-toggler:focus { box-shadow: none; }
.site-header .nav-link { color: var(--ink); font-weight: 500; font-size: .95rem; padding: .55rem .7rem !important; border-radius: .5rem; }
.site-header .nav-link:hover { color: var(--teal); }
.site-header .nav-link.active { color: var(--teal); font-weight: 700; }
.dropdown-menu { border: 1px solid var(--line); border-radius: .9rem; padding: .5rem; box-shadow: 0 18px 40px -20px rgba(11,37,69,.35); }
.dropdown-item { border-radius: .5rem; padding: .55rem .9rem; font-weight: 500; }
.dropdown-item.active, .dropdown-item:active { background: var(--mint); color: var(--teal); }
@media (min-width: 1200px) {
  .site-header .nav-link.active { box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
}
@media (max-width: 1199.98px) {
  .navbar-collapse { border-top: 1px solid var(--line); margin-top: .6rem; padding: .6rem 0 .9rem; }
  .site-header .nav-link { padding: .75rem .25rem !important; border-bottom: 1px solid var(--soft); border-radius: 0; }
  .dropdown-menu { border: 0; box-shadow: none; padding: 0 0 .5rem 1rem; }
}
@media (max-width: 575.98px) {
  .brand-logo { height: 44px; }
  .brand-name { font-size: .92rem; }
  .brand-sub { font-size: .56rem; letter-spacing: .1em; }
}

/* ---------- Orbit decoration ---------- */
.orbit { position: absolute; pointer-events: none; opacity: .18; background-repeat: no-repeat; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%235FD3C9' stroke-width='1.2'%3E%3Cellipse cx='300' cy='300' rx='260' ry='100'/%3E%3Cellipse cx='300' cy='300' rx='260' ry='100' transform='rotate(60 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='260' ry='100' transform='rotate(120 300 300)'/%3E%3Ccircle cx='300' cy='300' r='190'/%3E%3Ccircle cx='300' cy='300' r='290'/%3E%3C/g%3E%3Ccircle cx='300' cy='300' r='16' fill='%23C9A227'/%3E%3Ccircle cx='560' cy='300' r='8' fill='%235FD3C9'/%3E%3Ccircle cx='170' cy='525' r='8' fill='%23C9A227'/%3E%3C/svg%3E");
  width: 760px; height: 760px; right: -160px; top: -100px; }
.orbit-sm { width: 560px; height: 560px; right: -180px; top: -220px; }
@media (max-width: 767.98px) { .orbit { width: 460px; height: 460px; right: -200px; top: -80px; } }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0; }
.hero .tag { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-light); border: 1px solid rgba(159,227,220,.4); padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1.5rem; }
.hero-sub { font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); font-weight: 500; color: var(--gold-light); margin-bottom: 1.25rem; }
.hero-emblem { width: min(440px, 88%); filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); }
.hero-dates { color: #B9C7D6; font-size: .95rem; letter-spacing: .04em; }

/* ---------- Page banner ---------- */
.page-banner { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.page-banner .breadcrumb { --bs-breadcrumb-divider-color: #9FB0C3; --bs-breadcrumb-item-active-color: var(--teal-light); font-size: .9rem; margin-bottom: 1rem; }
.page-banner .breadcrumb a { color: var(--teal-light); text-decoration: none; }
.jump-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.jump-links a { color: #fff; text-decoration: none; font-weight: 600; font-size: .88rem; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid rgba(159,227,220,.45); }
.jump-links a:hover { background: rgba(255,255,255,.08); }

/* ---------- Cards ---------- */
.card-soft { background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.75rem; height: 100%; }
.card-soft h3, .card-soft .h5 { color: var(--navy); font-weight: 600; }
.card-dark { background: rgba(255,255,255,.04); border: 1px solid rgba(229,197,90,.35); border-radius: 1.25rem; padding: 1.75rem; height: 100%; color: #fff; }
.lift { transition: transform .2s ease, box-shadow .2s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(11,37,69,.35); }
a.card-soft { display: block; text-decoration: none; color: var(--ink); }
.icon-tile { width: 56px; height: 56px; border-radius: 1rem; background: var(--navy); color: var(--gold-light); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.icon-tile.mint { background: var(--mint); color: var(--teal); }
.icon-tile.gold { background: var(--gold); color: var(--navy); }
.num { font-size: 1.6rem; font-weight: 600; color: #C9D3DE; }

/* ---------- Photos ---------- */
.photo-frame { border-radius: 1.25rem; overflow: hidden; background: var(--navy); }
.photo-frame img { width: 100%; height: 100%; }
.photo-ph { border-radius: 1.25rem; overflow: hidden; }
.photo-ph > div { color: #3A4858; }
.photo-ph-teal { background: #DCEBEA; }
.photo-ph-blue { background: #E7ECF3; }
.photo-ph-gold { background: #F6EED3; }
.photo-ph-navy { background: var(--navy-soft); }
.photo-ph-navy > div { color: #C7D3E0; }
.portrait-arch { border-radius: 200px 200px 1.5rem 1.5rem; border: 3px solid var(--gold-light); overflow: hidden; background: var(--navy); }
.portrait-arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; display: block; }
figcaption, .caption { font-size: .85rem; color: var(--muted); }

/* ---------- Quote ---------- */
.quote-block { background: var(--cream); border-radius: 1.5rem; padding: clamp(1.75rem, 1rem + 3vw, 3.25rem); }
.quote-block blockquote { font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem); font-weight: 500; line-height: 1.45; color: var(--navy); margin: 0 0 1rem; }
.quote-block .bi { font-size: 2.4rem; color: var(--gold); line-height: 1; }

/* ---------- Timelines ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline > li { position: relative; padding-left: 4.5rem; padding-bottom: 2.25rem; }
.timeline > li::before { content: ''; position: absolute; left: 1.6rem; top: 3.5rem; bottom: 0; width: 2px; background: var(--line); }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 0; width: 3.3rem; height: 3.3rem; border-radius: 50%; background: var(--navy); border: 3px solid var(--gold-light); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.timeline .year { font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--teal); }
.timeline h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 600; color: var(--navy); margin: .3rem 0 .6rem; }
.timeline p { color: var(--muted); line-height: 1.8; }
.milestone { background: #fff; border-radius: 1.25rem; padding: 1.6rem; height: 100%; border-top: 4px solid var(--gold); box-shadow: 0 10px 30px -22px rgba(11,37,69,.45); }
.milestone .year { font-weight: 700; color: var(--teal); font-size: 1.5rem; line-height: 1; }
.milestone h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin: .7rem 0 .5rem; }
.milestone p { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.65; }

/* ---------- Chips / pills ---------- */
.chip { display: inline-block; padding: .5rem 1rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(229,197,90,.35); color: #fff; font-size: .9rem; font-weight: 500; }
.chip-light { background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
.pill { font: inherit; font-size: .88rem; font-weight: 600; padding: .6rem 1.15rem; border-radius: 999px; background: #fff; color: var(--ink); border: 1px solid #C9D3DE; min-height: 44px; }
.pill:hover { border-color: var(--teal); }
.pill.active, .pill[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.nav-pills .nav-link { border-radius: 999px; border: 1px solid #C9D3DE; background: #fff; color: var(--ink); font-weight: 600; padding: .6rem 1.2rem; min-height: 44px; }
.nav-pills .nav-link.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 575.98px) {
  .filter-bar, .nav-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .filter-bar .pill, .nav-pills .nav-link { white-space: nowrap; flex-shrink: 0; }
}

/* ---------- Gallery ---------- */
.g-item figure { margin: 0; }
.g-item figcaption { margin-top: .75rem; display: flex; justify-content: space-between; gap: .75rem; }
.g-item figcaption strong { color: var(--navy); font-weight: 600; font-size: .95rem; }
.g-item .badge-year { white-space: nowrap; font-size: .75rem; font-weight: 700; color: var(--teal); background: var(--mint); border-radius: 999px; padding: .25rem .65rem; height: fit-content; }
.video-btn { position: relative; display: block; width: 100%; border: 0; padding: 0; background: none; text-align: left; }
.play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.play span { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* ---------- Tables ---------- */
.table-soft { margin: 0; }
.table-soft th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); font-weight: 700; padding: 1rem 1.25rem; background: #fff; }
.table-soft td { padding: 1rem 1.25rem; color: var(--muted); vertical-align: middle; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; overflow: hidden; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 1.5rem; padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem); box-shadow: 0 30px 60px -40px rgba(11,37,69,.35); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.form-control, .form-select { border-radius: .8rem; padding: .8rem 1rem; border-color: #C9D3DE; }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 .2rem rgba(15,110,105,.15); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: 2rem; padding: clamp(2rem, 1.25rem + 3.5vw, 4.5rem); position: relative; overflow: hidden; }
.cta-band .section-title { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C7D3E0; padding: clamp(3.5rem, 2.5rem + 3vw, 5rem) 0 2rem; font-size: .95rem; }
.footer-logo { height: 72px; width: auto; }
.footer-name { color: #fff; font-weight: 600; line-height: 1.35; }
.footer-heading { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: #C7D3E0; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: .7rem; }
.footer-contact .bi { color: var(--gold-light); }
.social { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #2A4366; display: inline-flex; align-items: center; justify-content: center; color: #C7D3E0; text-decoration: none; }
.social:hover { color: #fff; border-color: #fff; }
.footer-bottom { border-top: 1px solid #1E3556; margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .8rem; color: #9FB0C3; }

.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 1030; text-decoration: none; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { color: var(--navy); background: var(--gold-light); }

@media (prefers-reduced-motion: reduce) {
  .lift, .back-to-top { transition: none; }
  .lift:hover { transform: none; }
  html { scroll-behavior: auto; }
}
