/* Ports First Aid. Design tokens and layout, built from the Claude Design handoff.
   Fluid sizes use vw (the page is full width). Breakpoints: 1060px (header phone), 760px (mobile). */

:root {
  --bg: #ffffff;
  --alt: #f7f2eb;
  --ink: #12263f;
  --muted: #4a5a70;
  --line: rgba(18, 38, 63, 0.12);
  --line-strong: rgba(18, 38, 63, 0.3);
  --red: #c8102e;
  --red-hover: #a30c25;
  --red-on-dark: #e8384f;
  --on-dark: #f7f2eb;
  --on-dark-muted: #bac4d2;
  --hero-img-bg: #1b3352;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --pad-x: clamp(20px, 4vw, 64px);
  --pad-y: clamp(48px, 6vw, 88px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}

section[id] { scroll-margin-top: 90px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 50;
  background: var(--red); color: #fff; padding: 12px 16px;
}
.skip:focus { left: 8px; color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; }
.section { padding: var(--pad-y) var(--pad-x); }
.bg-white { background: var(--bg); }
.bg-cream { background: var(--alt); }
.bg-navy { background: var(--ink); color: var(--on-dark); }

.eyebrow {
  margin: 0 0 12px;
  font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
}

h1, h2, h3 { margin: 0; }
h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4vw, 56px); line-height: 1.1; text-wrap: balance;
}
h2.h2-mid { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.12; }
p { text-wrap: pretty; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 5vw, 80px);
}
.split.center { align-items: center; }
.split.top { align-items: start; }

.photo { width: 100%; object-fit: cover; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--red); color: #fff; border: 0; border-radius: 4px;
  font: 600 16px var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--red-hover); color: #fff; }
.btn-lg { min-height: 56px; font-size: 17px; }
.btn-outline-light { background: transparent; border: 2px solid #fff; transition: background .2s; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 64px);
  height: clamp(64px, 5.8vw, 84px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-text {
  font-weight: 600; font-size: clamp(13px, 1vw, 15px); letter-spacing: .28em; white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav a.nav-link {
  text-decoration: none; font-weight: 500; font-size: 16px; color: var(--ink); padding: 8px 0;
}
.nav a.nav-link:hover { color: var(--red); }
.nav a.nav-phone {
  text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink); white-space: nowrap;
  padding: 8px 0 8px clamp(20px, 2.4vw, 40px); border-left: 1px solid var(--line);
}
.nav a.nav-phone:hover { color: var(--red); }

.menu-btn {
  display: none;
  width: 48px; height: 48px; margin-right: -8px;
  place-content: center; gap: 5px;
  background: transparent; border: 0; border-radius: 4px; color: var(--ink); cursor: pointer;
}
.menu-btn span {
  display: block; width: 24px; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 4px 20px 16px; }
.mobile-menu a {
  display: flex; align-items: center; min-height: 56px;
  border-bottom: 1px solid var(--line);
  text-decoration: none; font-weight: 500; font-size: 18px; color: var(--ink);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--ink); color: #fff; }
.hero-img {
  position: relative; order: 2; min-height: 100%; overflow: hidden; background: var(--hero-img-bg);
}
.hero-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 35%;
}
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18, 38, 63, .45) 0%, rgba(18, 38, 63, 0) 22%);
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(540px, 44vw, 660px);
  padding: clamp(36px, 6vw, 96px) clamp(20px, 4vw, 64px) clamp(40px, 6vw, 96px)
    max(clamp(20px, 4vw, 64px), calc(50vw - 640px + clamp(16px, 4vw, 64px)));
}
.hero-text > div { max-width: 600px; }
.hero .eyebrow { color: var(--on-dark-muted); margin-bottom: clamp(14px, 1.6vw, 22px); }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 5.6vw, 84px); line-height: 1.04; letter-spacing: -.01em;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; }
.hero-lede {
  margin: clamp(18px, 2vw, 28px) 0 0; max-width: 540px;
  font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; max-width: 520px;
  margin-top: clamp(26px, 3vw, 40px);
}
.hero-actions .btn { flex: 1 1 200px; }

/* Trust strip */
.trust {
  background: var(--alt); border-bottom: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px) var(--pad-x);
}
.trust ul {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1200px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(14px, 3vw, 40px);
}
.trust li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; font-size: 16px; line-height: 1.4; }
.trust li::before {
  content: ""; width: 7px; height: 7px; background: var(--red); flex: none; transform: translateY(-2px);
}

/* Courses */
.courses-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px;
  margin-bottom: clamp(24px, 2.6vw, 36px);
}
.courses-head > p { margin: 0; max-width: 440px; color: var(--muted); }
.courses-body {
  display: grid; grid-template-columns: 4fr 7fr; gap: clamp(20px, 2.4vw, 32px); align-items: start;
}
.courses-photo {
  aspect-ratio: 3 / 4; object-position: center 45%; position: sticky; top: 110px;
}
.course-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}
.course-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(20px, 2vw, 26px); transition: border-color .2s;
}
.course-card:hover { border-color: var(--line-strong); }
.course-card h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(23px, 1.9vw, 27px); line-height: 1.2; text-wrap: balance;
}
.course-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.course-card p.for { font-size: 15px; line-height: 1.5; color: var(--ink); }
.course-card p.for span { color: var(--muted); }
.course-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.course-len { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.btn-book {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px;
  border: 1.5px solid var(--line-strong); border-radius: 4px;
  font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none;
  transition: border-color .2s;
}
.btn-book:hover { border-color: var(--red); color: var(--ink); }
.course-card.cta {
  justify-content: space-between; gap: 22px;
  background: var(--ink); color: var(--on-dark); border-color: var(--ink);
  padding: clamp(22px, 2.4vw, 30px);
}
.course-card.cta:hover { border-color: var(--ink); }
.cta-top { display: grid; gap: 12px; }
.cta-label { font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.course-card.cta h3 { font-size: clamp(24px, 2vw, 28px); color: var(--on-dark); }
.course-card.cta p { color: var(--on-dark-muted); }
.course-card.cta .btn { min-height: 52px; align-self: start; }

/* How I teach */
.teach-text { display: grid; gap: 20px; max-width: 560px; }
.teach-text p { margin: 0; }
.photo-4x5 { max-width: 520px; justify-self: center; aspect-ratio: 4 / 5; }

/* Booking steps */
.steps { padding: clamp(36px, 4vw, 56px) var(--pad-x); }
.steps-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(20px, 3vw, 48px); align-items: start;
}
.steps h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; color: var(--on-dark); }
.step { display: flex; gap: 14px; align-items: baseline; }
.step-num {
  font-family: var(--serif); font-size: 30px; line-height: 1; color: #fff;
  border-bottom: 3px solid var(--red); padding-bottom: 4px;
}
.step h3 { margin: 0 0 4px; font-weight: 600; font-size: 17px; }
.step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--on-dark-muted); }

/* About */
.about-text { display: grid; gap: 20px; max-width: 600px; }
.about-text p { margin: 0; }
.about-id { display: flex; align-items: center; gap: 16px; }
.about-id img {
  width: 76px; height: 76px; flex: none; border-radius: 50%;
  object-fit: cover; object-position: center 30%; border: 3px solid var(--alt);
}
.about-id .eyebrow { margin: 0; }
.about-id small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.about-block { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.about-block h3 { font-weight: 600; font-size: 15px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 15px; line-height: 1.4;
}
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
}
.badge img { height: 36px; width: auto; }
.badge .div { align-self: stretch; width: 1px; background: var(--line); }
.badge .name { font-size: 12px; line-height: 1.3; color: var(--muted); max-width: 150px; }
.badge .name.strong { font: 700 15px/1 var(--sans); letter-spacing: .06em; color: var(--ink); max-width: none; }

/* Testimonials */
.reviews { display: grid; gap: clamp(20px, 2.4vw, 28px); }
.reviews h2 { font-size: clamp(30px, 3vw, 44px); }
.review {
  margin: 0; display: grid; gap: 12px;
  padding: clamp(18px, 2vw, 24px);
  border-top: 3px solid var(--red); border-radius: 0 0 6px 6px; background: #fff;
}
.review blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 1.4vw, 20px); line-height: 1.5; text-wrap: pretty;
}
.review figcaption { font-size: 15px; line-height: 1.5; }
.review figcaption strong { display: block; font-weight: 600; }
.review figcaption span { color: var(--muted); }
.photo-sling { max-width: 480px; justify-self: center; aspect-ratio: 4 / 5; object-position: center 25%; }

/* FAQ */
.faq-intro { display: grid; gap: 16px; align-content: start; }
.faq-intro .eyebrow { margin: 0; }
.faq-intro p { margin: 0; color: var(--muted); max-width: 400px; }
.faq-intro p a { color: var(--ink); font-weight: 600; }
.faq-intro p a:hover { color: var(--red); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-q {
  width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 0; background: transparent; border: 0; color: var(--ink);
  font: 600 18px/1.4 var(--sans); text-align: left; cursor: pointer;
}
.faq-icon {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--line-strong);
  font-size: 20px; font-weight: 400; line-height: 1;
  transition: transform .35s ease;
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 48px 22px 0; color: var(--muted); }

/* Contact */
.contact-info { display: grid; gap: 18px; align-content: start; }
.contact-info .eyebrow { margin: 0; }
.contact-info > p { margin: 0; color: var(--muted); max-width: 440px; }
.contact-list { margin: 8px 0 0; display: grid; border-top: 1px solid var(--line); }
.contact-list div {
  display: grid; grid-template-columns: minmax(80px, 110px) 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.contact-list dt {
  font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding-top: 3px;
}
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--red); }
.contact-list a.big { font-weight: 600; font-size: 20px; text-decoration: none; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(24px, 3vw, 40px);
}
form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field label .req { color: var(--red); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: 4px;
  background: #fff; color: var(--ink); font: 400 17px var(--sans);
}
.field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; min-height: 0; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { min-height: 58px; padding: 0 32px; font-size: 17px; width: 100%; }
.form-submit:disabled { opacity: .7; cursor: progress; }
.form-error {
  margin: 0; padding: 12px 16px; border-left: 3px solid var(--red);
  background: rgba(200, 16, 46, .06); font-size: 15px; line-height: 1.5;
}
.form-error a { font-weight: 600; }
.form-sent { display: grid; gap: 14px; padding: 20px 0; }
.form-sent .bar { width: 40px; height: 3px; background: var(--red); }
.form-sent h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; }
.form-sent p { margin: 0; color: var(--muted); }
.link-btn {
  justify-self: start; min-height: 48px; padding: 0; background: none; border: 0; color: var(--ink);
  font: 600 15px var(--sans); text-decoration: underline; text-underline-offset: 5px; cursor: pointer;
}
[hidden] { display: none !important; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(48px, 5vw, 72px) var(--pad-x) clamp(28px, 3vw, 40px); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: clamp(36px, 4vw, 52px); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo div { display: grid; gap: 3px; }
.footer-logo .t1 { font-weight: 600; font-size: 14px; letter-spacing: .28em; }
.footer-logo .t2 { font-weight: 500; font-size: 11px; letter-spacing: .22em; color: var(--on-dark-muted); }
.footer-tag { margin: 0; font-family: var(--serif); font-style: italic; font-size: 20px; }
.footer-col { display: grid; gap: 2px; align-content: start; }
.footer-col h2 {
  margin: 0 0 6px; font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); line-height: 1.65;
}
.footer-col a {
  display: flex; align-items: center; min-height: 40px;
  color: var(--on-dark); text-decoration: none; font-size: 16px; overflow-wrap: anywhere;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col a.phone { font-weight: 600; }
.footer-col p { margin: 6px 0 0; font-size: 15px; color: var(--on-dark-muted); }
.footer-col p + p { margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--on-dark-muted);
}
.footer-bottom a { color: var(--on-dark); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .legal { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 4px; }
.footer-bottom .credit::before {
  content: ""; display: inline-block; vertical-align: middle; width: 1px; height: 14px;
  margin-right: 14px; background: rgba(255, 255, 255, .28);
}
.footer-bottom .credit a {
  color: var(--on-dark); font-weight: 600; letter-spacing: .02em; text-decoration: none;
  border-bottom: 1.5px solid var(--red-on-dark); padding-bottom: 1px; transition: border-color .2s, color .2s;
}
.footer-bottom .credit a:hover { color: #fff; border-bottom-color: #fff; }
@media (max-width: 519px) { .footer-bottom .credit::before { display: none; } }
.footer-spacer { display: none; height: 24px; }

/* Mobile action bar */
.mobile-bar {
  display: none; position: sticky; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1.3fr; gap: 10px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 16px;
}
.mobile-bar .call { border: 1.5px solid var(--line-strong); color: var(--ink); }
.mobile-bar .book { background: var(--red); color: #fff; }

/* Scroll reveal. Only hidden when JS is running, and never under reduced motion. */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal].no-anim { transition: none; }

/* Breakpoints */
@media (max-width: 1059px) { .nav a.nav-phone { display: none; } }

@media (max-width: 759px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .mobile-menu.open { display: grid; }
  .header-inner { padding: 0 16px; }

  .hero { grid-template-columns: 1fr; }
  .hero-img { order: 0; min-height: 0; aspect-ratio: 6 / 5; }
  .hero-img img { object-position: 55% 40%; }
  .hero-img::after { background: linear-gradient(180deg, rgba(18, 38, 63, 0) 70%, rgba(18, 38, 63, .55) 100%); }
  .hero-text { min-height: 0; padding: 36px 20px 40px; }

  .courses-body { grid-template-columns: 1fr; }
  .courses-photo { aspect-ratio: 4 / 3; position: static; }
  .photo-sling { aspect-ratio: 1 / 1; }

  .footer-spacer { display: block; }
  .mobile-bar { display: grid; }
}

@media (max-width: 380px) {
  .logo { gap: 8px; }
  .logo-text { font-size: 12px; letter-spacing: .2em; }
  .logo svg { width: 28px; height: 20px; }
  .header-inner { gap: 12px; }
  .header-inner > .btn { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
