/* ===========================================================
   Personhours - design tokens & base
   =========================================================== */

:root {
  /* Color - brand palette: navy #012653, teal #10d0d0, gray #ababab, black #151515 */
  --navy-950: #011833;
  --navy-900: #012653;
  --navy-800: #486383;
  --navy-700: #8597ac;
  --teal-500: #10d0d0;
  --teal-600: #0eb6b6;
  --brand-gray: #ababab;
  --cream-50: #faf8f3;
  --cream-100: #f3efe4;
  --ink-900: #151515;
  --ink-600: #4b5563;
  --ink-400: #8a93a3;
  --white: #ffffff;
  --line: rgba(21, 21, 21, 0.09);
  --line-on-dark: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(14, 37, 64, 0.06);
  --shadow-md: 0 12px 32px rgba(14, 37, 64, 0.12);
  --shadow-lg: 0 24px 64px rgba(8, 22, 39, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

/* Browser surfaces, themed rather than left as defaults */

::selection {
  background: var(--teal-500);
  color: var(--navy-950);
}

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
}

html {
  scrollbar-color: var(--navy-800) var(--cream-100);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--cream-100);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-800);
  border-radius: 999px;
  border: 3px solid var(--cream-100);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--teal-500);
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--navy-950);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--navy-950);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section {
  position: relative;
}

.section-pad {
  padding-block: clamp(64px, 9vw, 128px);
}

.section-head {
  max-width: 860px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-head p {
  color: var(--ink-600);
  font-size: 17px;
  max-width: 560px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center p {
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--navy-800);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--teal-500);
  color: var(--navy-950);
}

.btn-accent:hover {
  background: var(--teal-600);
  box-shadow: var(--shadow-md);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: var(--line-on-dark);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--navy-900);
  background: rgba(14, 37, 64, 0.04);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===========================================================
   Header
   =========================================================== */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(250, 248, 243, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(14, 37, 64, 0.06);
}

.site-header:not(.is-scrolled) .brand img {
  filter: brightness(0) invert(1);
}

.site-header:not(.is-scrolled) .main-nav a {
  color: rgba(255, 255, 255, 0.82);
}

.site-header:not(.is-scrolled) .main-nav a:hover {
  color: var(--white);
}

.site-header:not(.is-scrolled) .header-actions .btn-primary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
  color: var(--white);
}

.site-header:not(.is-scrolled) .header-actions .btn-primary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.site-header:not(.is-scrolled) .nav-toggle {
  color: var(--white);
}

@media (max-width: 900px) {
  .site-header:not(.is-scrolled) .main-nav {
    background: var(--navy-950);
  }

  .site-header:not(.is-scrolled) .main-nav a {
    border-bottom-color: var(--line-on-dark);
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 32px;
  width: auto;
  transition: filter 0.3s var(--ease);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a:not(.main-nav-cta) {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-600);
  position: relative;
  padding-block: 4px;
  transition: color 0.25s var(--ease);
}

.main-nav a:not(.main-nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--teal-500);
  transition: right 0.3s var(--ease);
}

.main-nav a:not(.main-nav-cta):hover {
  color: var(--navy-950);
}

.main-nav a:not(.main-nav-cta):hover::after {
  right: 0;
}

.main-nav-cta {
  display: none;
  justify-content: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--navy-950);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream-50);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 28px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a:not(.main-nav-cta) {
    width: 100%;
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav-cta {
    display: flex;
    margin-top: 20px;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* ===========================================================
   Hero
   =========================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 132px 72px;
  overflow: hidden;
  background: var(--navy-950);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 78% 28%, rgba(16, 208, 208, 0.16), transparent 70%),
    var(--navy-950);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(1, 24, 51, 0.82) 0%, rgba(1, 24, 51, 0.55) 45%, rgba(1, 24, 51, 0.15) 75%, rgba(1, 24, 51, 0.25) 100%),
    linear-gradient(to top, rgba(1, 24, 51, 0.5) 0%, transparent 30%),
    rgba(1, 38, 83, 0.3);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 700px;
}

.hero-copy > * {
  opacity: 0;
  animation: heroRise 1s var(--ease) forwards;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.06;
  margin-bottom: 26px;
  text-wrap: balance;
  animation-delay: 0.1s;
}

.hero h1 .accent {
  color: var(--teal-500);
}

.hero-lede {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.76);
  max-width: 560px;
  margin-bottom: 40px;
  animation-delay: 0.32s;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation-delay: 0.5s;
}

@media (max-width: 900px) {
  .hero {
    padding-block: 124px 80px;
  }
  .hero-scrim {
    background:
      linear-gradient(to bottom, rgba(1, 24, 51, 0.45) 0%, rgba(1, 24, 51, 0.7) 100%),
      rgba(1, 38, 83, 0.3);
  }
}

/* ===========================================================
   Statement banner
   =========================================================== */

/* Same even navy shade as the other photo sections (slightly stronger
   here because this photo is brighter); text stays left-aligned */
.statement {
  background:
    linear-gradient(rgba(1, 24, 51, 0.86), rgba(1, 24, 51, 0.9)),
    url("../assets/statement-bg.jpg") center 30% / cover no-repeat;
  background-color: var(--navy-950);
  color: var(--white);
  padding-block: clamp(72px, 10vw, 120px);
}

@media (max-width: 767px) {
  .statement {
    background-image:
      linear-gradient(rgba(1, 24, 51, 0.86), rgba(1, 24, 51, 0.9)),
      url("../assets/statement-bg-mobile.jpg");
  }
}

.statement h2 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
  text-wrap: balance;
}

.statement p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  max-width: 620px;
}

/* ===========================================================
   Growth statement
   =========================================================== */

.growth {
  background:
    linear-gradient(rgba(1, 24, 51, 0.76), rgba(1, 24, 51, 0.86)),
    url("../assets/support-bg.jpg") center / cover no-repeat;
  color: var(--white);
  text-align: center;
}

@media (max-width: 767px) {
  .growth {
    background-image:
      linear-gradient(rgba(1, 24, 51, 0.8), rgba(1, 24, 51, 0.88)),
      url("../assets/support-bg-mobile.jpg");
  }
}

.growth .section-head h2 {
  color: var(--white);
}

.growth .section-head {
  margin-bottom: 32px;
}

.growth .section-head p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

.growth .section-head p + p {
  margin-top: 16px;
}

.growth-emphasis {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--white);
  max-width: 640px;
  margin-inline: auto;
  text-wrap: balance;
}

/* Short teal rule above the closing line, matching the eyebrow accent */
.growth-emphasis::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 0 auto 24px;
  background: var(--teal-500);
}

/* ===========================================================
   Services - five equal-width cards: 3 + 2 (centred) on desktop,
   2 + 2 + 1 (centred) on tablet, stacked on mobile. Equal widths
   keep the descriptions to the same number of lines. Each card
   spans four subgrid rows (top, title, description, points) so
   those parts line up across a row.
   =========================================================== */

.services {
  background: var(--cream-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.services-grid .service-card {
  grid-column: span 2;
}

.services-grid .service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--teal-500);
}

.service-card {
  position: relative;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: 36px 32px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

/* Teal rule that draws across the top edge on hover */
.service-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--teal-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 38, 83, 0.16);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--teal-500);
}

.service-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: 0.04em;
}

.service-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--ink-600);
  font-size: 15px;
  line-height: 1.6;
}

.service-points {
  align-self: end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.service-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-950);
}

/* Small teal tick */
.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 5px;
  border-left: 1.6px solid var(--teal-600);
  border-bottom: 1.6px solid var(--teal-600);
  transform: rotate(-45deg);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .services-grid .service-card:nth-child(4) {
    grid-column: span 2;
  }
  .services-grid .service-card:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-grid .service-card,
  .services-grid .service-card:nth-child(n) {
    grid-column: auto;
  }
  .service-card {
    padding: 32px 26px 28px;
  }
}

/* ===========================================================
   Process
   =========================================================== */

.process {
  background: var(--cream-100);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 28px;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 24px;
  right: -24px;
  height: 1px;
  background: var(--line);
}

.process-step:last-child::before {
  display: none;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--teal-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--ink-600);
  font-size: 14.5px;
}

@media (max-width: 640px) {
  .process-steps {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
  .process-step::before {
    display: none;
  }
}

/* ===========================================================
   About
   =========================================================== */

.about .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.about-copy {
  display: flex;
  flex-direction: column;
}

.about-copy h2 {
  margin-bottom: 14px;
}

.about-copy p {
  color: var(--ink-600);
  font-size: 16px;
  margin-bottom: 16px;
}

.about-image {
  margin-top: 32px;
  width: 100%;
  flex: 1;
  min-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-value {
  padding-block: 26px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
}

.about-value:last-child {
  border-bottom: 1px solid var(--line);
}

.about-value-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-value-icon svg {
  width: 20px;
  height: 20px;
  color: var(--navy-800);
}

.about-value h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.about-value p {
  color: var(--ink-600);
  font-size: 14.5px;
}

@media (max-width: 900px) {
  .about .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===========================================================
   CTA banner
   =========================================================== */

.cta-banner {
  background:
    linear-gradient(rgba(1, 24, 51, 0.8), rgba(1, 24, 51, 0.88)),
    url("../assets/cta-bg.jpg?v=3") center 30% / cover no-repeat;
  color: var(--white);
  padding-block: clamp(72px, 9vw, 112px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 50% 0%, rgba(16, 208, 208, 0.16), transparent 70%);
}

.cta-banner .container {
  position: relative;
}

@media (max-width: 767px) {
  .cta-banner {
    background-image:
      linear-gradient(rgba(1, 24, 51, 0.82), rgba(1, 24, 51, 0.9)),
      url("../assets/cta-bg-mobile.jpg?v=3");
  }
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 18px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 36px;
  font-size: 16px;
}

.cta-banner .hero-ctas {
  justify-content: center;
}

/* ===========================================================
   Footer
   =========================================================== */

.site-footer {
  background: var(--cream-100);
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand .brand img {
  height: 36px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  max-width: 280px;
  text-wrap: pretty;
}

.footer-brand p {
  color: var(--ink-600);
  font-size: 14.5px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: var(--navy-950);
}

.footer-col ul li {
  margin-bottom: 12px;
  color: var(--ink-600);
  font-size: 14.5px;
}

.footer-col a {
  color: inherit;
  transition: color 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--navy-900);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-600);
  font-size: 14.5px;
  margin-bottom: 14px;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--teal-500);
  flex-shrink: 0;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.social-row svg {
  width: 16px;
  height: 16px;
  color: var(--navy-900);
}

.social-row a:hover {
  background: var(--navy-950);
  border-color: var(--navy-950);
  transform: translateY(-2px);
}

.social-row a:hover svg {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  font-size: 13.5px;
  color: var(--ink-400);
  text-align: center;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   Booking page
   =========================================================== */

/* Starts below the fixed 84px header so the light header doesn't sit
   over the dark photo */
.booking-hero {
  margin-top: 84px;
  padding-block: 72px;
  background:
    linear-gradient(rgba(1, 24, 51, 0.8), rgba(1, 24, 51, 0.88)),
    url("../assets/booking-bg.jpg") center 35% / cover no-repeat;
  background-color: var(--navy-950);
  text-align: center;
}

@media (max-width: 767px) {
  .booking-hero {
    background-image:
      linear-gradient(rgba(1, 24, 51, 0.82), rgba(1, 24, 51, 0.9)),
      url("../assets/booking-bg-mobile.jpg");
  }
}

.booking-hero h1 {
  color: var(--white);
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 14px;
}

.booking-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-inline: auto;
  font-size: 16px;
}

.booking-wrap {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 56px;
}

.booking-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
}

.form-section + .form-section {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.form-section h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-900);
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  margin-bottom: 20px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-950);
  margin-bottom: 8px;
}

.field label .req {
  color: var(--teal-500);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--cream-50);
  color: var(--ink-900);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 4px rgba(20, 58, 99, 0.1);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%234b5563' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 38px;
}

.form-actions {
  margin-top: 32px;
}

.form-note {
  font-size: 13px;
  color: var(--ink-400);
  margin-top: 16px;
  text-align: center;
}

.form-alt {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.form-alt p {
  font-size: 14px;
  color: var(--ink-600);
  flex: 1;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  background: rgba(46, 125, 87, 0.1);
  color: #1e6b48;
}

.form-status.error {
  background: rgba(180, 35, 24, 0.08);
  color: #a3261b;
}

.booking-form button[type="submit"][disabled] {
  opacity: 0.7;
  cursor: wait;
}

/* Spam trap field, kept off screen rather than display:none so bots still see it */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
}

.booking-back svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-alt {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
