/* ==============================================
   LAYOUT — container, section, hero, grids, footer shell
   ============================================== */

/* ── Container ────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(var(--space-md), 5vw, var(--space-2xl));
}

/* ── Section ──────────────────────────────────── */
.section {
  padding-block: var(--space-3xl);
}
.section--sm   { padding-block: var(--space-2xl); }
.section--lg   { padding-block: var(--space-4xl); }
.section--alt  { background-color: var(--cream); }
.section--dark {
  background-color: var(--navy);
  color: var(--white);
  border-top: 0.25rem solid var(--orange);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

.section--teal {
  background-color: var(--lightblue);
}
.section--teal h2,
.section--teal h3,
.section--teal h4 { color: var(--navy); }

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--navy);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Fallback gradient when no image is present */
.hero__bg--placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, #2A4A60 50%, #1a3040 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 46, 61, 0.82) 0%,
    rgba(28, 46, 61, 0.55) 55%,
    rgba(232, 87, 26, 0.20) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 2.5rem;
  padding-bottom: var(--space-4xl);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-md);
}

.hero__title {
  color: var(--white);
  margin-bottom: var(--space-lg);
  /* max-width: 14ch; */
}

.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  /* max-width: 50ch; */
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* Brand hero — centred wordmark, no background image */
.hero--brand {
  justify-content: center;
}
.hero--brand .hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero--brand .hero__subtitle {
  max-width: 44ch;
  margin-inline: auto;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-xl);
  color: rgba(255,255,255,0.75);
}
.hero--brand .hero__actions {
  justify-content: center;
}

/* Inner page hero (shorter) */
.hero--page {
  min-height: 15rem;
  padding-block: var(--space-3xl);
}
.hero--page .hero__title { max-width: none; }

/* ── Split layout ─────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: stretch;
}
.split--reverse .split__media { order: -1; }

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--lightblue);
  min-height: 18.75rem;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Grid layouts ─────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

/* ── Footer shell ─────────────────────────────── */
.site-footer {
  background-color: var(--navy);
  color: rgba(255,255,255,0.75);
  padding-block: var(--space-3xl) var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 0.0625rem solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-xl);
}

.footer__brand {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: var(--space-md);
}
.footer__brand:hover { color: var(--orange); }

.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  max-width: 32ch;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--orange); }

.footer__address { font-style: normal; }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}
.footer__contact-icon {
  flex-shrink: 0;
  margin-top: 0.1875rem;
  color: var(--orange);
}
.footer__contact-item a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition-fast);
}
.footer__contact-item a:hover { color: var(--orange); }

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.footer__social-link:hover {
  background: var(--orange);
  color: var(--white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}
.footer__legal a {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  transition: color var(--transition-fast);
}
.footer__legal a:hover { color: rgba(255,255,255,0.75); }
