:root {
  --navy: #0b2545;
  --navy-hover: #163a66;
  --white: #ffffff;
  --light: #f3f6f9;
  --text: #0b2545;
  --muted: #4b5d72;
  --line: #d8e0e8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Button */

.button {
  display: inline-block;
  padding: 12px 22px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--navy);
  border-radius: 4px;
}

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

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

.button-light:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.button-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.button-outline-light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: block;
  text-decoration: none;
}

.logo img {
  display: block;
  width: auto;
  height: 42px;
}

.footer-logo {
  display: block;
  width: auto;
  height: 40px;
  margin-bottom: 14px;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--navy);
}

.nav-dropdown-toggle svg {
  transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 540px;
  padding-top: 21px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.nav .dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.nav .dropdown-panel a:hover,
.nav .dropdown-panel a[aria-current="page"] {
  background: var(--light);
}

.nav .dropdown-panel .dropdown-all {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  font-weight: 600;
}

.nav .dropdown-panel .dropdown-all:hover {
  background: none;
  text-decoration: underline;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover {
  color: var(--navy);
}

/* Hero */

.hero,
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
}

.hero {
  padding: 96px 0 160px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 46px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 19px;
  color: #c9d5e3;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-image img {
  width: 100%;
  border-radius: 6px;
}

.hero-link {
  display: inline-block;
  color: var(--white);
  font-weight: 600;
  text-underline-offset: 4px;
}

.hero-link:hover {
  color: #c9d5e3;
}

.hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: block;
  width: 100%;
  height: 110px;
}

/* Booking page */

.book-hero {
  padding: 72px 0 150px;
}

.book-intro {
  max-width: 640px;
  margin-bottom: 36px;
}

.book-intro h1 {
  margin-bottom: 12px;
}

.hero .book-intro p {
  margin-bottom: 0;
}

.book-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.book-notes h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.book-notes p {
  color: var(--muted);
}

.book-notes a {
  color: var(--navy);
  font-weight: 600;
}

.booking-card {
  background: var(--white);
  color: var(--text);
  border-radius: 12px;
  overflow: hidden;
  scroll-margin-top: 24px;
}

.booking-embed {
  position: relative;
  min-height: 560px;
  padding: 4px 0 12px;
}

.hero .booking-fallback {
  max-width: none;
  margin: 0;
  padding: 24px;
  font-size: 16px;
  color: var(--muted);
}

.booking-fallback a {
  color: var(--navy);
  font-weight: 600;
}

/* Sections */

.section {
  padding: 80px 0;
}

.section-light {
  background: var(--light);
}

.section h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.section-intro {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
}

/* Services */

.section .services-heading {
  margin-bottom: 40px;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 32px;
}

.service img {
  width: 100%;
  margin-bottom: 18px;
}

.service h3 {
  font-size: clamp(16px, 1.45vw, 19px);
  margin-bottom: 8px;
}

.service p {
  color: var(--muted);
  font-size: 16px;
}

/* Contact */

.contact {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0;
}

.contact h2 {
  font-size: 34px;
  margin-bottom: 16px;
}

.contact p {
  max-width: 560px;
  margin-bottom: 32px;
  color: #c9d5e3;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #9fb2c8;
  font-size: 15px;
}

/* Smaller screens */

@media (max-width: 960px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner,
  .book-notes {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .nav {
    gap: 16px;
    font-size: 15px;
  }

  .nav .nav-process {
    display: none;
  }

  .logo img {
    height: 34px;
  }

  .book-hero {
    padding: 48px 0 100px;
  }

  .booking-embed {
    padding: 0 0 8px;
  }

  .section,
  .contact {
    padding: 56px 0;
  }

  .hero {
    padding: 56px 0 100px;
  }

  .hero-wave {
    height: 60px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .section h2,
  .contact h2 {
    font-size: 28px;
  }

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

/* Text link */

.text-link {
  font-weight: 600;
  color: var(--navy);
}

.text-link:hover {
  color: var(--navy-hover);
}

.service h3 a {
  text-decoration: none;
}

.service h3 a:hover {
  text-decoration: underline;
}

/* Service pages */

.page-hero {
  padding: 80px 0 150px;
}

.page-hero .eyebrow {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #9fb2c8;
  margin-bottom: 12px;
}

.page-hero .eyebrow a {
  text-decoration: none;
}

.page-hero .eyebrow a:hover {
  color: var(--white);
  text-decoration: underline;
}

.page-hero h1 {
  font-size: 44px;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 19px;
  color: #c9d5e3;
  margin-bottom: 32px;
  max-width: 520px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.split-center {
  align-items: center;
}

.split-faq {
  grid-template-columns: 1fr 1.7fr;
}

.split .section-intro {
  margin-bottom: 0;
}

.split-image {
  margin-top: 36px;
}

.split-image img,
.side-image img {
  width: 100%;
  border-radius: 6px;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--light);
  color: var(--navy);
  flex: none;
}

/* The problem */

.problem-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.problem-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.problem-item:last-child {
  padding-bottom: 0;
}

.problem-item h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.problem-item p {
  color: var(--muted);
}

/* What we build */

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

.section-dark .section-intro {
  color: #c9d5e3;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #24476f;
}

.feature {
  padding: 36px 32px 0 0;
}

.feature + .feature {
  padding-left: 32px;
  border-left: 1px solid #24476f;
}

.feature .icon-box {
  background: transparent;
  border: 1px solid #3a5f89;
  color: var(--white);
  margin-bottom: 20px;
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature p {
  color: #c9d5e3;
}

/* How it works */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 29px;
  left: 30px;
  right: calc((100% - 64px) / 3 - 30px);
  height: 2px;
  background: #b9c6d4;
}

.timeline-step {
  position: relative;
}

.timeline-number {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
}

.timeline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 56px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-cta p {
  font-size: 19px;
  font-weight: 600;
}

.timeline-step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.timeline-step p {
  color: var(--muted);
}

/* What changes for you */

.check-list {
  margin-top: 32px;
}

.check-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  margin-bottom: 26px;
}

.check-item:last-child {
  margin-bottom: 0;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
}

.check-item h3 {
  font-size: 19px;
  margin-bottom: 4px;
}

.check-item p {
  color: var(--muted);
}

/* Questions */

:root {
  interpolate-size: allow-keywords;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--navy-hover);
}

.faq-icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--navy);
  transition: transform 0.25s ease;
}

.faq-icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.faq-item[open] .faq-icon::after {
  transform: rotate(90deg);
}

.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
}

.faq-item[open]::details-content {
  block-size: auto;
}

.faq-answer {
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--muted);
  max-width: 640px;
}

/* Legal pages */

.legal {
  padding: 72px 0 96px;
}

.legal-inner {
  max-width: 760px;
}

.legal h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.legal .updated {
  color: var(--muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 12px;
}

.legal h3 {
  font-size: 19px;
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal p {
  margin-bottom: 16px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal .summary {
  background: var(--light);
  border-left: 3px solid var(--navy);
  padding: 20px 24px;
  margin-bottom: 8px;
}

.legal .summary p:last-child {
  margin-bottom: 0;
}

/* Footer columns */

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

.footer-top h4 {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--white);
}

.footer-top p {
  max-width: 320px;
}

.footer-name {
  display: block;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #1f4270;
  padding-top: 20px;
  padding-bottom: 20px;
}

@media (max-width: 960px) {
  .split,
  .split-faq {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .feature,
  .feature + .feature {
    padding: 28px 0;
    border-left: 0;
  }

  .feature + .feature {
    border-top: 1px solid #24476f;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .timeline::before {
    top: 30px;
    bottom: 40px;
    left: 29px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-step {
    padding-left: 84px;
  }

  .timeline-number {
    position: absolute;
    top: 0;
    left: 0;
  }

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

  .footer-top > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .legal {
    padding: 48px 0 64px;
  }

  .page-hero {
    padding: 48px 0 100px;
  }

  .page-hero h1,
  .legal h1 {
    font-size: 32px;
  }

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

  .nav {
    position: static;
  }

  .dropdown-menu {
    left: 16px;
    right: 16px;
    width: auto;
    padding-top: 0;
  }

  .dropdown-panel {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
