/* ==========================================================================
   Slack Tide Charters, Westport WA
   Design and build by Rooted Coast Design (rootedcoastdesign.com)
   Plain CSS, no framework, no build step.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --bg: #f1ecdf;
  --panel: #e7e0ce;
  --card: #fffefa;
  --ink: #1c2b33;
  --ink-2: rgba(28, 43, 51, 0.74);
  --ink-3: rgba(28, 43, 51, 0.68); /* was 0.52 — failed WCAG AA (3.1:1) on small text */
  --dark: #16232b;
  --dark-2: #1e303a;
  --on-dark: #f2efe6;
  --on-dark-2: rgba(242, 239, 230, 0.72);
  --on-dark-3: rgba(242, 239, 230, 0.62); /* was 0.5 — too faint for small text on dark */
  --accent: #bf5233;
  --accent-text: #a34428; /* darker accent for small text; #bf5233 was 3.8-4.2:1 on light backgrounds */
  --accent-light: #d97e5b;
  --accent-dim: rgba(191, 82, 51, 0.1);
  --line: rgba(28, 43, 51, 0.14);
  --line-dark: rgba(242, 239, 230, 0.16);

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;

  /* Shape and rhythm */
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1140px;
  --shadow-sm: 0 2px 4px rgba(22, 35, 43, 0.06), 0 14px 30px rgba(22, 35, 43, 0.13);
  --shadow: 0 6px 12px rgba(22, 35, 43, 0.08), 0 20px 44px rgba(22, 35, 43, 0.18);
  --shadow-lg: 0 24px 60px rgba(22, 35, 43, 0.24);
  --header-h: 76px;
}

/* ---------- Reset and base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { color: var(--ink-2); }

ul { list-style: none; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--on-dark);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

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

.section-dark p { color: var(--on-dark-2); }

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.9rem;
}

.section-dark .eyebrow,
.page-hero .eyebrow { color: var(--accent-light); } /* dark-red accent was unreadable on dark photos */

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

.lede {
  font-size: 1.1rem;
  margin-top: 1rem;
}

.script-note {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--accent-text);
  transform: rotate(-1.5deg);
  display: inline-block;
}

/* Small handwritten studio credits sprinkled through the pages */
.rc-note {
  margin-top: 1.6rem;
}

.rc-note a {
  color: inherit;
  text-decoration: underline dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.rc-note a:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-solid {
  background: var(--accent);
  color: #fff;
}

.btn-solid:hover {
  background: var(--accent-light);
  color: #fff;
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

.btn-light {
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.btn-light:hover { color: var(--on-dark); border-color: var(--accent-light); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(22, 35, 43, 0.85);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(22, 35, 43, 0.97);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--on-dark);
  text-decoration: none;
  line-height: 1.1;
}

.logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.logo:hover { color: var(--on-dark); }

.logo img {
  display: block;
  height: 46px;
  width: auto;
  transition: transform 0.2s ease;
}

.logo:hover img { transform: scale(1.04); }

.site-nav ul {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.site-nav a {
  color: var(--on-dark-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.site-nav a:hover { color: var(--on-dark); }

.site-nav a[aria-current="page"] {
  color: var(--on-dark);
  box-shadow: 0 2px 0 var(--accent);
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
}

.site-nav .nav-cta:hover { background: var(--accent-light); box-shadow: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 110;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--on-dark);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (overlay masthead) ---------- */
/* Full-bleed photo, no gradient — the copy lives on a solid panel instead
   of floating centered over the image, and that panel deliberately breaks
   the photo's bottom edge and overlaps the stats strip below it. */
.hero {
  position: relative;
  min-height: 76vh;
  color: var(--ink);
  overflow: visible;
  padding-top: var(--header-h);
}

.hero-bg,
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(22, 35, 43, 0.93) 8%, rgba(22, 35, 43, 0.74) 55%, rgba(22, 35, 43, 0.45) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-shadow: 0 1px 3px rgba(10, 18, 23, 0.45);
}

.page-hero-content .btn { text-shadow: none; }

.page-hero h1 { color: #fff; }

.page-hero .lede {
  color: var(--on-dark);
  max-width: 560px;
}

/* The panel that replaces the old centered hero-content block */
.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Two stacked cards: cream headline card, dark detail card offset beneath it */
.hero-stack {
  position: absolute;
  left: 0;
  bottom: -6.5rem;
  z-index: 3;
  max-width: 660px;
}

.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero-panel-main {
  max-width: 600px;
  padding: 2.5rem 3rem 2.75rem;
}

.hero-panel-sub {
  max-width: 560px;
  margin: 1.1rem 0 0 3.5rem;
  padding: 2rem 2.5rem 2.25rem;
  background: var(--dark);
  border-color: rgba(242, 239, 230, 0.3);
  border-top-color: var(--accent);
}

.hero-panel .eyebrow { color: var(--accent-text); }

.hero-panel h1 { color: var(--ink); margin-bottom: 0; }

.hero-panel .lede {
  color: var(--on-dark-2);
  font-size: 1.1rem;
  max-width: 480px;
}

.hero-panel-sub .hero-meta { color: var(--on-dark-3); }

.hero-panel-sub .btn-ghost {
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.hero-panel-sub .btn-ghost:hover { border-color: var(--accent-light); color: var(--on-dark); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-meta {
  margin-top: 2.2rem;
  font-size: 0.88rem;
  color: var(--ink-3);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 46vh;
  color: var(--on-dark);
  overflow: hidden;
  padding: calc(var(--header-h) + 6.5rem) 0 3.5rem;
}

.page-hero h1 { color: #fff; }

.page-hero .lede {
  color: var(--on-dark);
  max-width: 560px;
}

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--dark);
  color: var(--on-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  /* Extra top clearance so the stat numbers sit below the hero card stack
     that overlaps down into this strip, rather than under it. */
  padding: 9rem 0 2.2rem;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-light);
}

.stat span {
  font-size: 0.85rem;
  color: var(--on-dark-2);
}

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split.reverse > .split-media { order: 2; }

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  width: 100%;
}

.split-body h2 { margin-bottom: 1rem; }

.split-body p + p { margin-top: 1rem; }

.split-body .btn { margin-top: 1.6rem; }

.checklist {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-2);
}

.section-dark .checklist li { color: var(--on-dark-2); }

/* Reused site glyph: a small coiled dock line, standing in for every
   checkmark/bullet mark instead of mixing icon styles. Defined once here
   and reused on .price-features below. */
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.15rem;
  height: 1.15rem;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='5.3'/%3E%3Ccircle cx='12' cy='15.7' r='4.3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='5.3'/%3E%3Ccircle cx='12' cy='15.7' r='4.3'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* ---------- Cards and grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.card h3 { margin-bottom: 0.6rem; }

.svc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.svc-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.svc-card-body {
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc-card-body h3 { margin-bottom: 0.4rem; }

.svc-price {
  font-family: var(--font-display);
  color: var(--accent-text);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.svc-card-body p { font-size: 0.95rem; flex: 1; }

.svc-card-body .text-link { margin-top: 1rem; }

.text-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-text);
  text-decoration: none;
}

.text-link::after { content: " \2192"; }

.text-link:hover { text-decoration: underline; }

/* ---------- Pricing (services page) ---------- */
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.price-tag {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.4rem 0 0.2rem;
}

.price-tag small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-3);
}

.price-meta {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-bottom: 1.1rem;
}

.price-features {
  display: grid;
  gap: 0.55rem;
  margin: 0.4rem 0 1.5rem;
  flex: 1;
}

.price-features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.93rem;
  color: var(--ink-2);
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1rem;
  height: 1rem;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='5.3'/%3E%3Ccircle cx='12' cy='15.7' r='4.3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='5.3'/%3E%3Ccircle cx='12' cy='15.7' r='4.3'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

/* Dock-ticket perforation: separates the trip header (badge, name, price)
   from the details, like tearing a stub off a boarding pass. The notches
   punch through the card's edge using the page background color, so this
   only reads correctly on cards sitting directly on --bg (not --panel). */
.ticket-tear {
  position: relative;
  height: 0;
  margin: 0 -2rem 1.3rem;
  border-top: 2px dashed var(--line);
}

.ticket-tear::before,
.ticket-tear::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 14px;
  height: 14px;
  background: var(--bg);
  border-radius: 50%;
}

.ticket-tear::before { left: -7px; }
.ticket-tear::after { right: -7px; }

.disclaimer {
  font-size: 0.85rem;
  color: var(--ink-3);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  margin-top: 2rem;
  max-width: 720px;
}

/* ---------- Rooted Coast callout card ---------- */
.rc-callout {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent);
}

.rc-callout .rc-kicker {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--accent-light);
  display: block;
  margin-bottom: 0.35rem;
}

.rc-callout p {
  color: var(--on-dark-2);
  max-width: 560px;
  font-size: 0.98rem;
}

.rc-callout strong { color: var(--on-dark); }

.rc-callout .btn { flex-shrink: 0; }

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--dark-2);
  color: var(--on-dark);
  text-align: center;
}

.quote-band blockquote {
  max-width: 760px;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.4;
  font-style: italic;
}

/* Global `p` color rule would otherwise paint these dark-on-dark */
.quote-band blockquote p { color: var(--on-dark); }

.quote-band cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--on-dark-3);
}

/* ---------- Testimonials ---------- */
.t-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.t-stars {
  color: var(--accent);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
}

.t-card blockquote {
  font-size: 0.97rem;
  color: var(--ink-2);
  flex: 1;
}

.t-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.t-card cite span {
  display: block;
  font-weight: 400;
  color: var(--ink-3);
  font-size: 0.82rem;
}

.t-featured {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(2rem, 5vw, 3rem);
}

.t-featured blockquote p {
  font-size: 1.05rem;
}

.t-featured blockquote p + p { margin-top: 1rem; }

/* ---------- Card depth system ----------
   Layered resting shadow, hover lift, and an accent bar that
   sweeps across the top of the card on hover. */
.card,
.svc-card,
.price-card,
.t-card {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card::before,
.svc-card::before,
.price-card::before,
.t-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 2;
}

.card:hover,
.svc-card:hover,
.price-card:hover,
.t-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card:hover::before,
.svc-card:hover::before,
.price-card:hover::before,
.t-card:hover::before {
  transform: scaleX(1);
}

.price-card.featured:hover { box-shadow: var(--shadow-lg); }

.svc-card img { transition: transform 0.4s ease; }

.svc-card:hover img { transform: scale(1.05); }

/* Depth for the remaining surfaces */
.acc-item { box-shadow: var(--shadow-sm); }

.email-capture,
.info-card { box-shadow: var(--shadow); }

.gallery-item { box-shadow: var(--shadow-sm); }

.t-featured { box-shadow: var(--shadow); }

/* ---------- Gallery ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-btn:hover { border-color: var(--accent); color: var(--accent); }

.filter-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  margin: 0;
}

.gallery-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  transition: transform 0.35s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  background: linear-gradient(rgba(22, 35, 43, 0) 0%, rgba(22, 35, 43, 0.55) 45%, rgba(22, 35, 43, 0.92) 100%);
}

.gallery-item.hidden { display: none; }

/* ---------- Process timeline ----------
   Steps are cards hung off a dashed "course line", numbered with
   buoy-style badges. On wide screens they zigzag left and right. */
.timeline {
  list-style: none;
  position: relative;
  max-width: 900px;
  counter-reset: step;
  display: grid;
  gap: 1.8rem;
  padding-left: 3.9rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: 1.35rem;
  border-left: 2px dashed rgba(191, 82, 51, 0.4);
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -3.9rem;
  top: 1.1rem;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 5px var(--bg), 0 4px 10px rgba(22, 35, 43, 0.25);
  transition: transform 0.25s ease;
}

.step:hover::before { transform: scale(1.12); }

/* Caret pointing from the card back to the course line */
.step::after {
  content: "";
  position: absolute;
  top: 1.75rem;
  left: -7px;
  width: 12px;
  height: 12px;
  background: var(--card);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

.step h3 { margin-bottom: 0.45rem; }

.step p { font-size: 0.97rem; }

.timeline { max-width: 760px; }

/* ---------- Accordion (FAQ) ---------- */
.accordion {
  max-width: 800px;
  display: grid;
  gap: 0.9rem;
}

.acc-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.acc-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
}

.acc-trigger:hover { color: var(--accent); }

.acc-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  position: relative;
  transition: transform 0.25s ease;
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  top: 50%;
  left: 50%;
}

.acc-icon::before {
  width: 0.7rem;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.acc-icon::after {
  width: 1.5px;
  height: 0.7rem;
  transform: translate(-50%, -50%);
}

.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }

.acc-panel {
  padding: 0 1.4rem 1.3rem;
  font-size: 0.97rem;
}

.acc-panel[hidden] { display: none; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.form-field label .req { color: var(--accent); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}

.form-note {
  font-size: 0.83rem;
  color: var(--ink-3);
  margin-top: 0.8rem;
}

.form-success {
  background: var(--accent-dim);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  margin-top: 1.2rem;
  color: var(--ink);
  font-weight: 500;
}

.form-success[hidden] { display: none; }

/* ---------- Info card (contact) ---------- */
.info-card {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 2.2rem;
  height: fit-content;
}

.info-card h3 {
  color: #fff;
  margin-bottom: 1.2rem;
}

/* Set like a tide table: a dashed rule between each entry and tabular
   figures on the numbers, instead of a plain stacked definition list. */
.info-card dl { display: grid; }

.info-card dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px dashed var(--line-dark);
}

.info-card dt:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.info-card dd {
  color: var(--on-dark-2);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  margin-top: 0.4rem;
}

.info-card a { color: var(--on-dark); }

/* ---------- Email capture ---------- */
.email-capture {
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.email-form {
  display: flex;
  gap: 0.7rem;
}

.email-form input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--on-dark);
  text-align: center;
}

.cta-band h2 { color: #fff; max-width: 620px; margin-inline: auto; }

.cta-band p {
  max-width: 540px;
  margin: 1rem auto 0;
  color: var(--on-dark-2);
}

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

/* ---------- Credentials strip ---------- */
/* Credentials set like dock permit stamps rather than a plain trust list */
.cred-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem 1.25rem;
  padding: 2.4rem 0;
}

.cred-strip li {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid var(--accent-text);
  padding: 1.2rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent-text);
}

.cred-strip li::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--accent-text);
  border-radius: 50%;
  opacity: 0.4;
}

.cred-strip li:nth-child(odd) { transform: rotate(-2deg); }
.cred-strip li:nth-child(even) { transform: rotate(1.5deg); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark-2);
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand .logo { font-size: 1.2rem; }

.footer-brand .logo img { height: 108px; }

.footer-brand p {
  margin-top: 1rem;
  max-width: 300px;
  font-size: 0.9rem;
  color: var(--on-dark-3);
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line-dark);
  color: var(--on-dark-2);
  transition: all 0.2s ease;
}

.social-links a:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.social-links svg { width: 18px; height: 18px; fill: currentColor; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 1rem;
}

.footer-col ul { display: grid; gap: 0.55rem; }

.footer-col a {
  color: var(--on-dark-2);
  text-decoration: none;
}

.footer-col a:hover { color: var(--accent-light); }

.footer-col address {
  font-style: normal;
  display: grid;
  gap: 0.55rem;
  color: var(--on-dark-2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--on-dark-3);
}

.footer-bottom p { color: inherit; }

.footer-bottom a {
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: none;
}

.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Card texture ----------
   Paper-grain noise over card surfaces. Kept at the end of the
   stylesheet so no later `background:` shorthand wipes it out. */
.card,
.price-card,
.t-card,
.acc-item,
.t-featured,
.email-capture,
.svc-card-body,
.step {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.14'/%3E%3C/svg%3E");
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .svc-card:hover, .gallery-item:hover img,
  .card:hover, .price-card:hover, .t-card:hover, .svc-card:hover img,
  .step:hover, .step:hover::before, .logo:hover img { transform: none; }
  .card::before, .svc-card::before, .price-card::before, .t-card::before { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  /* The header's backdrop-filter makes it the containing block for
     fixed descendants, so `inset: 0` can't cover the viewport from
     here. Anchor the panel below the header instead. */
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--dark);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
  }

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

  .site-header:has(.site-nav.open) { background: var(--dark); }

  .site-nav ul {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .site-nav a { font-size: 1.2rem; }

  /* Below tablet width the panel is usually taller than the photo, so
     let it sit in normal flow and break the photo's bottom edge instead
     of hanging absolutely off a fixed-height hero. */
  .hero {
    min-height: 0;
    overflow: visible;
  }

  .hero-bg { position: relative; inset: auto; width: 100%; height: 46vh; min-height: 260px; }

  .hero-inner { position: relative; inset: auto; z-index: auto; }

  .hero-stack {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: -3rem;
    max-width: none;
  }

  .hero-panel { padding: 2rem 1.75rem 2.25rem; }

  .hero-panel-main { max-width: none; }

  .hero-panel-sub {
    max-width: none;
    margin: 0.9rem 0 0 0;
  }

  .stats-grid { padding-top: 2.2rem; }

  .page-hero {
    min-height: 0;
    padding: calc(var(--header-h) + 6rem) 0 2.8rem;
  }

  .split,
  .grid-2,
  .email-capture,
  .form-grid { grid-template-columns: 1fr; }

  .split.reverse > .split-media { order: 0; }

  .email-form { flex-direction: column; }

  .rc-callout { flex-direction: column; align-items: flex-start; }

  .cred-strip li { width: 120px; height: 120px; font-size: 0.62rem; padding: 0.9rem; }
}

@media (max-width: 540px) {
  .grid-3, .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}
