:root {
  --navy: #0f2b46;
  --gold: #c9a227;
  --white: #ffffff;
  --cream: #f7f4eb;
  --text: #243342;
  --muted: #66727e;
  --border: #d9dee3;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 43, 70, 0.10);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

.section {
  padding: 96px 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
  line-height: 1.15;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  max-width: 850px;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

p {
  margin-top: 0;
}

.eyebrow,
.section-label {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Accessibility */

.skip-link {
  position: fixed;
  left: 10px;
  top: 10px;
  transform: translateY(-150%);
  background: var(--navy);
  color: #fff;
  padding: 10px;
  z-index: 9999;
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 43, 70, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--navy);
  letter-spacing: 0.13em;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-navigation a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.93rem;
}

.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 10px 18px;
  border-radius: 999px;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px;
  background: var(--navy);
}

/* Hero / website cover
   cover.png lives inside images/services/ */
.hero {
  position: relative;
  padding: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 20, 34, 0.86) 0%,
      rgba(5, 20, 34, 0.72) 45%,
      rgba(5, 20, 34, 0.38) 100%
    ),
    url("images/services/cover.png") center center / cover no-repeat;
}

.hero-overlay {
  min-height: 660px;
  display: flex;
  align-items: center;
  padding: 105px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 70px;
}

.hero-copy h1 {
  color: white;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.28);
}

.hero-intro {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  background: var(--navy);
  color: white;
}

.button-secondary {
  border-color: var(--navy);
  color: var(--navy);
}

.hero .button-primary {
  background: var(--gold);
  color: #132a3e;
}

.hero-contact-button {
  color: white;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.hero-contact-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-panel {
  background: rgba(15, 43, 70, 0.92);
  color: white;
  border-top: 6px solid var(--gold);
  padding: 38px;
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(6px);
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.hero-logo-button {
  display: block;
  width: min(100%, 250px);
  margin: 0 auto 24px;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: white;
  cursor: zoom-in;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-logo-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.hero-logo-button:focus-visible,
.logo-lightbox-close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-grid strong,
.hero-stat-grid span {
  display: block;
}

.hero-stat-grid strong {
  color: var(--gold);
  font-size: 1.15rem;
}

.hero-stat-grid span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Logo lightbox */

.logo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(3, 12, 20, 0.88);
}

.logo-lightbox.is-open {
  display: grid;
}

.logo-lightbox-image {
  width: min(760px, 86vw);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 18px;
  background: white;
  padding: 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.logo-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Trust strip */

.trust-strip {
  background: var(--gold);
  color: white;
}

.trust-grid {
  min-height: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  text-align: center;
  font-weight: 800;
}

/* General sections */

.two-column,
.locations-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
}

.prose {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-tinted {
  background: var(--cream);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading > p:last-child {
  color: var(--muted);
}

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  overflow: hidden;
  padding: 0 30px 30px;
  background: white;
  border: 1px solid rgba(15, 43, 70, 0.08);
  border-radius: var(--radius);
  min-height: 270px;
  box-shadow: 0 8px 28px rgba(15, 43, 70, 0.05);
}

.service-image {
  display: block;
  width: calc(100% + 60px);
  max-width: none;
  height: 220px;
  margin: 0 -30px 24px;
  object-fit: cover;
}

.service-card > span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

.service-card p {
  color: var(--muted);
}

/* Locations */

.location-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.location-list li {
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  color: var(--navy);
  font-weight: 700;
}

/* Training */

.section-navy {
  background: var(--navy);
  color: white;
}

.section-navy h2,
.section-navy h3 {
  color: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}


.feature-image {
  display: block;
  width: 100%;
  height: 260px;
  margin: 0 0 24px;
  border-radius: 14px;
  object-fit: cover;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-card:hover .feature-image {
  transform: scale(1.02);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}


.feature-card p {
  color: rgba(255, 255, 255, 0.8);
}

.small-note {
  font-size: 0.88rem;
}

/* Contact */

.contact-details {
  font-style: normal;
}

.contact-details a {
  font-weight: 700;
  color: var(--navy);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 34px;
  background: var(--cream);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
}

.contact-form textarea {
  resize: vertical;
}

.consent-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--muted) !important;
  font-size: 0.82rem;
}

.consent-row input {
  margin-top: 4px;
}

.form-hidden {
  position: absolute;
  left: -9999px;
}

.form-status {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}

/* Footer */

.site-footer {
  background: #091c2e;
  color: rgba(255, 255, 255, 0.76);
  padding: 36px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
}

.site-footer a {
  color: white;
}

/* Legal pages */

.legal-page {
  padding: 80px 0;
}

.legal-content {
  max-width: 820px;
}

.legal-warning {
  padding: 18px;
  border-left: 4px solid var(--gold);
  background: var(--cream);
}

/* Tablet */

@media (max-width: 940px) {
  .menu-button {
    display: block;
  }

  .primary-navigation {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    background: white;
    padding: 24px;
  }

  .primary-navigation.is-open {
    display: grid;
    gap: 18px;
  }

  .hero-overlay {
    min-height: auto;
    padding: 90px 0 75px;
  }

  .hero-grid,
  .two-column,
  .locations-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-panel {
    max-width: 520px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */

@media (max-width: 640px) {

  .feature-image {
    height: 220px;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    background-position: 58% center;
  }

  .hero-overlay {
    padding: 72px 0 60px;
    background: rgba(5, 20, 34, 0.18);
  }

  .brand small {
    display: none;
  }

  .service-grid,
  .feature-grid,
  .location-list,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    padding: 20px 0;
    gap: 12px;
  }

  .hero-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-panel {
    padding: 28px 22px;
  }

  .hero-logo-button {
    width: min(100%, 210px);
  }

  .contact-form {
    padding: 24px;
  }

  .logo-lightbox {
    padding: 20px;
  }

  .logo-lightbox-image {
    width: 92vw;
    padding: 16px;
  }
}
