:root {
  --navy: #1e2d3b;
  --navy-light: #2a3f52;
  --navy-dark: #151f2a;
  --gold: #edcd1f;
  --gold-dark: #877512;
  --white: #ffffff;
  --cream: #f7f4eb;
  --stone: #eef1f4;
  --text: #23313c;
  --text-light: #5d6c78;
  --border: #d7dee5;
  --shadow: 0 20px 60px rgba(21, 31, 42, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --container-max: 1200px;
  --container-px: clamp(1.25rem, 4vw, 2rem);
  --section-py: clamp(3rem, 8vw, 6rem);
  --header-height: 84px;
  --font-heading: "Montserrat", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --transition: 220ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, #f8f7f2 0%, #fff 18%, #fff 100%);
  line-height: 1.6;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.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;
}

.container {
  width: min(100%, var(--container-max));
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section { padding: var(--section-py) 0; }
.section--alt { background: var(--stone); }
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

h1, h2, h3 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  line-height: 1.1;
  color: var(--navy);
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; color: var(--text-light); }
ul { margin: 0; padding-left: 1.2rem; color: var(--text-light); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0.65rem 1rem; font-size: 0.9rem; }
.btn-full { width: 100%; }
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: #f5da45; }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-light); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }

.emergency-bar {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
}

.emergency-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 45, 59, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled { box-shadow: 0 14px 40px rgba(21, 31, 42, 0.16); }
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand img { width: 180px; }
.site-nav { justify-self: center; }
.nav-list,
.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-item { position: relative; }
.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.nav-link:hover,
.nav-trigger:hover,
.nav-link.is-active { color: var(--white); }
.nav-trigger svg,
.text-link svg,
.footer-contact svg,
.social-links svg { width: 1rem; height: 1rem; flex: none; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  display: grid;
  gap: 0.2rem;
  min-width: 240px;
  padding: 0.7rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 0.85rem;
  color: var(--navy);
  border-radius: 12px;
}

.dropdown-menu a:hover { background: var(--stone); }
.site-actions { display: flex; align-items: center; gap: 1rem; }
.utility-links { display: flex; gap: 0.8rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }
.header-ctas { display: flex; gap: 0.65rem; }
.nav-toggle,
.mobile-nav { display: none; }

.hero {
  position: relative;
  min-height: min(84vh, 860px);
  color: var(--white);
  background: var(--navy-dark);
}

.hero-media,
.hero-image,
.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image,
.hero-video { object-fit: cover; }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 26, 46, 0.86) 0%, rgba(15, 26, 46, 0.58) 42%, rgba(15, 26, 46, 0.4) 100%),
    radial-gradient(circle at top right, rgba(237, 205, 31, 0.18), transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(84vh, 860px);
  max-width: 760px;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero h1,
.hero .hero-copy { color: var(--white); }
.hero-copy { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

.section-header {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.split--wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.stack,
.button-stack { display: grid; gap: 1rem; }
.button-stack--center { justify-content: center; }

.callout,
.sidebar-card,
.form-card,
.info-card,
.project-card,
.team-card,
.logo-card,
.blog-card,
.stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.callout,
.sidebar-card,
.form-card { padding: 1.4rem; }
.callout--alert { border-color: #d84747; background: #fff4f4; }
.sidebar-note { margin-top: 1rem; font-weight: 600; }

.card-grid,
.project-grid,
.team-grid,
.logo-grid,
.blog-grid {
  display: grid;
  gap: 1.4rem;
}

.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.logo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.info-card,
.project-card,
.blog-card { overflow: hidden; }
.info-card img,
.project-card img,
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.info-card__body,
.project-card__body,
.blog-card__body,
.team-card__body { padding: 1.2rem; }

.project-card__body ul { margin-top: 1rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--navy);
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy);
}

.prose,
.article {
  max-width: 760px;
}

.bullet-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.contact-list,
.social-links {
  display: grid;
  gap: 0.9rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.contact-list li,
.footer-contact li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid .full { grid-column: 1 / -1; }
.form-grid label,
.radio-fieldset {
  display: grid;
  gap: 0.45rem;
}

.form-grid span,
.radio-fieldset legend {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfcfd;
  color: var(--text);
}

textarea { resize: vertical; }
input:focus,
textarea:focus {
  outline: 2px solid rgba(237, 205, 31, 0.45);
  outline-offset: 2px;
  border-color: var(--gold-dark);
}

.radio-fieldset {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.radio-fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1rem;
}

.form-status:empty { display: none; }
.form-status {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-weight: 600;
}

.form-status.is-success { background: #e9f8ef; color: #0b6b38; }
.form-status.is-error { background: #fff0f0; color: #a12626; }
.form-status strong { color: inherit; }
.hp-field { position: absolute; left: -9999px; }
.is-emergency { border-color: #d84747; box-shadow: 0 0 0 3px rgba(216, 71, 71, 0.12); }

.team-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.team-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.team-card details summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
}

.logo-card {
  display: grid;
  place-items: center;
  padding: 1rem;
  min-height: 180px;
  text-align: center;
}

.logo-card img {
  max-height: 90px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.blog-tab {
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}

.blog-tab.is-active { background: var(--navy); color: var(--white); }
.blog-search input { min-width: 260px; }
.meta { font-size: 0.9rem; color: var(--gold-dark); font-weight: 700; }
.gallery-stack { display: grid; gap: 1rem; }
.gallery-stack img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery-stack__image { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--gold-dark);
}

.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 2rem;
  padding: 3rem var(--container-px);
}

.site-footer h3,
.site-footer a,
.footer-bottom p { color: var(--white); }
.footer-logo { width: 180px; margin-bottom: 1rem; }
.footer-links { display: grid; gap: 0.7rem; }
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom__inner div {
  display: flex;
  gap: 1rem;
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  gap: 0.75rem;
  padding: 0.8rem var(--container-px) calc(0.8rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 30px rgba(21, 31, 42, 0.14);
  transform: translateY(120%);
  transition: transform var(--transition);
}

.mobile-cta.is-visible { transform: translateY(0); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav,
  .site-actions { display: none; }
  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-content: center;
    justify-items: center;
    border: 0;
    background: transparent;
  }

  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
  }

  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 26, 46, 0.6);
    padding: 5rem 1rem 1rem;
  }

  .mobile-nav.is-open { display: block; }
  .mobile-nav__panel {
    height: calc(100vh - 6rem);
    overflow: auto;
    padding: 1.25rem;
    background: var(--white);
    border-radius: 28px;
  }

  .mobile-links,
  .mobile-submenu,
  .mobile-utility { display: grid; gap: 0.9rem; }
  .mobile-links > a,
  .mobile-submenu a,
  .mobile-utility a,
  .mobile-group summary {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--navy);
    font-weight: 700;
  }

  .mobile-group summary { cursor: pointer; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .emergency-bar__inner,
  .footer-bottom__inner,
  .blog-toolbar { flex-direction: column; align-items: start; }
  .split,
  .split--wide,
  .stats-grid,
  .project-grid,
  .team-grid,
  .footer-grid,
  .form-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .card-grid,
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content { min-height: 74vh; padding-top: 4rem; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; }
  body { padding-bottom: 5.5rem; }
}

@media (max-width: 480px) {
  .card-grid,
  .logo-grid { grid-template-columns: 1fr; }
  .brand img { width: 150px; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.2rem); }
}
