/* =========================================================
   NoFly Med Concierge — design system
   Navy #0b2233 · Teal #0e7490 · Sand #efe4d2 · Off-white #fbfaf7 · Coral #d1495b
   ========================================================= */

:root {
  --navy: #0b2233;
  --navy-700: #12324a;
  --teal: #0e7490;
  --teal-600: #0c6178;
  --teal-100: #d7eef3;
  --sand: #efe4d2;
  --offwhite: #fbfaf7;
  --coral: #d1495b;
  --coral-100: #f7e0e3;

  --ink: #0b2233;
  --ink-soft: #40525f;
  --line: #e4ddce;
  --line-soft: #eee7da;
  --white: #ffffff;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(11, 34, 51, 0.06), 0 1px 2px rgba(11, 34, 51, 0.04);
  --shadow-md: 0 6px 20px rgba(11, 34, 51, 0.08);
  --shadow-lg: 0 18px 44px rgba(11, 34, 51, 0.14);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--offwhite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; font-weight: 700; }

p { margin: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 1000; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .95rem 1.5rem; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .6rem 1rem; font-size: .92rem; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.08rem; }

.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-600); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-100); }

/* On dark hero, ghost needs light styling */
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark { border-radius: 7px; }
.brand-name { font-size: 1.06rem; color: var(--navy); display: inline-flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.brand-sub { color: var(--teal); font-weight: 700; }

.main-nav { display: none; margin-left: auto; gap: 1.5rem; }
.main-nav a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.main-nav a:hover { color: var(--teal); }

.header-cta { display: none; }

.nav-toggle {
  margin-left: auto; display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: .5rem; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex; flex-direction: column; gap: .25rem;
  padding: .75rem var(--gutter) 1.25rem;
  border-bottom: 1px solid var(--line-soft); background: var(--offwhite);
}
.mobile-nav a { padding: .7rem .25rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line-soft); }
.mobile-nav a:last-child { border: 0; margin-top: .5rem; }
.mobile-nav .btn { color: #fff; }

/* ============ HERO ============ */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: url("/assets/hero-ferry-harbor-sunset.jpg") center/cover no-repeat;
  background-color: var(--navy);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,34,51,.55) 0%, rgba(11,34,51,.72) 55%, rgba(11,34,51,.88) 100%),
    linear-gradient(90deg, rgba(11,34,51,.75) 0%, rgba(11,34,51,.30) 100%);
}
.hero-grid {
  display: grid; gap: 2rem;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--navy);
  background: var(--sand); padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); max-width: 16ch; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); margin-top: 1.1rem; max-width: 46ch; color: rgba(255,255,255,.92); }
.hero-sub strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.6rem; }
.fine-print { font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; max-width: 52ch; }
.hero .fine-print { color: rgba(255,255,255,.78); }

/* proof card */
.proof-card {
  background: rgba(251,250,247,.97); color: var(--ink);
  border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.4);
  border-top: 4px solid var(--teal);
}
.proof-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.proof-lead { font-weight: 700; font-size: 1.05rem; margin-top: .35rem; color: var(--navy); }
.proof-intro { font-size: .9rem; color: var(--ink-soft); margin-top: .9rem; }
.proof-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .45rem; }
.proof-list li { font-size: .92rem; padding-left: 1.4rem; position: relative; }
.proof-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px;
  background: var(--teal); border-radius: 2px;
}
.proof-list span { font-weight: 700; color: var(--navy); }
.proof-flag {
  margin-top: 1rem; font-size: .86rem; font-weight: 500;
  background: var(--coral-100); color: #8a2733;
  border-left: 3px solid var(--coral); padding: .65rem .8rem; border-radius: 0 var(--radius) var(--radius) 0;
}

/* ============ SECTION SHELL ============ */
.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section-alt { background: var(--white); border-block: 1px solid var(--line-soft); }
.section-eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .55rem;
}
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--navy); max-width: 22ch; }
.section-lead { margin-top: .9rem; max-width: 60ch; color: var(--ink-soft); font-size: 1.05rem; }

/* teal underline accent */
.section-eyebrow::after {
  content: ""; display: block; width: 40px; height: 3px; background: var(--teal);
  margin-top: .55rem; border-radius: 2px;
}

/* ============ FLOW (main focus) ============ */
.flow-grid {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: none;
}
.flow-card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.flow-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.flow-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--teal-100); color: var(--teal);
  font-size: 1.5rem; font-weight: 800; border: 2px solid var(--teal);
  margin-bottom: 1rem;
}
.flow-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: .5rem; }
.flow-card p { color: var(--ink-soft); font-size: .98rem; }

.flow-cta { margin-top: 2.25rem; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.flow-cta .fine-print { margin-top: 0; }

/* ============ ROUTES ============ */
.route-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.route-card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.route-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.route-img { width: 100%; height: 200px; object-fit: cover; }
.route-img--ev {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-600) 100%);
  color: var(--sand);
}
.route-body { padding: 1.35rem 1.35rem 1.5rem; }
.route-tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-100); padding: .3rem .65rem; border-radius: 999px; margin-bottom: .6rem;
}
.route-body h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: .5rem; }
.route-body p { color: var(--ink-soft); font-size: .96rem; }

/* ============ TRUST ============ */
.trust-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.trust-card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--teal);
}
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px; background: var(--teal-100); color: var(--teal);
  margin-bottom: .9rem;
}
.trust-icon svg { width: 24px; height: 24px; }
.trust-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: .4rem; }
.trust-card p { color: var(--ink-soft); font-size: .95rem; }

/* ============ PRICING ============ */
.price-grid {
  margin-top: 2.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr;
  align-items: stretch;
}
.price-card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; position: relative;
}
.price-card--featured {
  border: 2px solid var(--teal); box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f5fbfc 100%);
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: .76rem; font-weight: 700;
  letter-spacing: .03em; padding: .35rem .9rem; border-radius: 999px; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.price-name { font-size: 1.15rem; color: var(--navy); }
.price-amount { font-size: 2.4rem; font-weight: 800; color: var(--navy); margin: .35rem 0 .1rem; letter-spacing: -0.02em; }
.price-desc { color: var(--ink-soft); font-size: .95rem; min-height: 3.4em; }
.price-features { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: .55rem; flex: 1; }
.price-features li { position: relative; padding-left: 1.5rem; font-size: .94rem; color: var(--ink); }
.price-features li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px;
  background: var(--teal); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.price-card .btn { width: 100%; margin-top: auto; }
.price-note { margin: 1.75rem auto 0; text-align: center; max-width: 60ch; }

/* ============ FAQ ============ */
.faq-list { margin-top: 2rem; display: grid; gap: .75rem; }
.faq-item {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.3rem;
  font-weight: 600; color: var(--navy); font-size: 1.03rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; width: 20px; height: 20px; flex: none;
  background: var(--teal); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 5v14M5 12h14' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.3rem; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item[open] .faq-answer { padding: 0 1.3rem 1.25rem; max-height: 400px; }
.faq-answer p { color: var(--ink-soft); font-size: .97rem; }

/* ============ FINAL CTA ============ */
.final-cta {
  background: var(--navy); color: #fff; text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.final-cta h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); max-width: 20ch; margin: 0 auto 1.6rem; }
.final-cta .fine-print { color: rgba(255,255,255,.7); margin: 1.1rem auto 0; text-align: center; }

/* ============ FOOTER ============ */
.site-footer { background: #071824; color: rgba(255,255,255,.82); padding-block: 3rem 1.5rem; }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.brand--footer .brand-name { color: #fff; }
.footer-tagline { margin-top: .9rem; font-size: .92rem; max-width: 46ch; color: rgba(255,255,255,.7); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { font-size: .92rem; color: rgba(255,255,255,.82); }
.footer-links a:hover { color: var(--teal-100); text-decoration: underline; }
.footer-bottom { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.footer-trust { font-size: .82rem; color: rgba(255,255,255,.6); max-width: 80ch; }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.5); margin-top: .6rem; }

/* ============ RESPONSIVE ============ */
@media (min-width: 620px) {
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-links { justify-content: flex-end; }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; padding-block: clamp(4rem, 9vw, 7rem); }
  .flow-grid { grid-template-columns: repeat(4, 1fr); }
  .route-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .price-card--featured { transform: translateY(-12px); }
  .flow-cta { flex-direction: row; align-items: center; }
  .flow-cta .fine-print { max-width: 40ch; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
