/* =========================================================
   Greg Harper Coaching
   Palette: Sky Blue + White, one accent: Hot Pink
   ========================================================= */
:root {
  --sky: #0593c6;        /* brand surface */
  --sky-deep: #0479a8;   /* white text on this passes AA */
  --sky-ink: #04729f;    /* sky-coloured text/buttons on white (AA) */
  --sky-wash: #eef7fb;   /* light section tint */
  --pink: #d83995;       /* the one accent */
  --white: #fcffff;
  --ink: #0b1f2a;
  --muted: #4f6470;
  --line: #dce8ee;
  --glass: rgba(255, 255, 255, .14);
  --glass-line: rgba(255, 255, 255, .3);
  --ribs: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 7px);
  --radius: 24px;
  --radius-sm: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0 0 .5em; letter-spacing: -.035em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 300; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: var(--sky-ink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 8px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.sr-only, .hidden-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Glass surface (used on blue backgrounds) */
.glass {
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--sky-ink); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-secondary { background: var(--sky-wash); color: var(--sky-ink); border-color: #cfe6f1; }
.btn-secondary:hover { border-color: var(--sky-ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-glass { background: var(--glass); border-color: var(--glass-line); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); }

/* ============ Header ============ */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); transition: background-color .2s, border-color .2s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: var(--white); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.logo { display: block; text-decoration: none; flex: none; }
.logo img { height: 44px; width: auto; }
.logo-dark { display: none; }
.site-header.scrolled .logo-light { display: none; }
.site-header.scrolled .logo-dark { display: block; }
.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 5px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.site-nav a:not(.btn) { display: block; padding: 9px 15px; border-radius: 999px; color: #fff; text-decoration: none; font-size: .95rem; font-weight: 500; transition: background-color .15s; }
.site-nav a:not(.btn):hover { background: rgba(255, 255, 255, .18); }
.site-nav .btn { margin-left: 6px; min-height: 40px; padding: 0 18px; background: #fff; color: var(--ink); }
.site-nav .btn:hover { background: var(--ink); color: #fff; }
.site-header.scrolled .site-nav ul { background: var(--sky-wash); border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.scrolled .site-nav a:not(.btn) { color: var(--ink); }
.site-header.scrolled .site-nav a:not(.btn):hover { background: #fff; }
.site-header.scrolled .site-nav .btn { background: var(--sky-ink); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--glass-line); background: var(--glass); border-radius: 999px; cursor: pointer; }
  .site-header.scrolled .nav-toggle, .nav-toggle[aria-expanded="true"] { background: var(--sky-wash); border-color: var(--line); }
  .nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; }
  .site-header.scrolled .nav-toggle .bar, .site-header.scrolled .nav-toggle .bar::before, .site-header.scrolled .nav-toggle .bar::after,
  .nav-toggle[aria-expanded="true"] .bar::before, .nav-toggle[aria-expanded="true"] .bar::after { background: var(--ink); }
  .nav-toggle .bar::before, .nav-toggle .bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle .bar::before { top: -6px; } .nav-toggle .bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bar { background: transparent !important; }
  .nav-toggle[aria-expanded="true"] .bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar::after { transform: translateY(-6px) rotate(-45deg); }
  .site-header:has(.site-nav.open) { background: var(--white); border-color: var(--line); }
  .site-header:has(.site-nav.open) .logo-light { display: none; }
  .site-header:has(.site-nav.open) .logo-dark { display: block; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 24px; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul, .site-header.scrolled .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-nav a:not(.btn), .site-header.scrolled .site-nav a:not(.btn) { color: var(--ink); padding: 15px 4px; font-size: 1.15rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn, .site-header.scrolled .site-nav .btn { margin: 16px 0 0; width: 100%; min-height: 52px; background: var(--sky-ink); color: #fff; }
}

/* ============ Blurred motion background (hero + contact) ============ */
.hero, .section-blue { position: relative; overflow: hidden; background: var(--sky); color: #fff; isolation: isolate; }
.blur-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* Abstract motion-blurred figure (pink + white) on sky blue, like a long-exposure photo */
.blob {
  position: absolute; inset: -10%;
  background:
    radial-gradient(7% 17% at 52.5% 27%, #ffffff, transparent 70%),
    radial-gradient(10% 24% at 53% 46%, rgba(255, 228, 242, .95), transparent 72%),
    radial-gradient(14% 30% at 53.5% 70%, #e0409c, transparent 72%),
    radial-gradient(22% 40% at 58% 62%, rgba(232, 70, 160, .7), transparent 70%),
    radial-gradient(14% 30% at 47% 60%, rgba(255, 110, 185, .55), transparent 70%),
    radial-gradient(10% 50% at 62% 40%, rgba(255, 255, 255, .35), transparent 70%),
    radial-gradient(42% 70% at 6% 50%, rgba(2, 104, 160, .8), transparent 70%),
    radial-gradient(26% 42% at 92% 14%, rgba(70, 200, 245, .7), transparent 70%),
    radial-gradient(30% 40% at 38% 104%, rgba(2, 112, 170, .6), transparent 70%);
  filter: blur(34px) saturate(1.25); transform: scaleX(1.4);
}
.blur-bg--alt .blob { transform: scaleX(1.35) scaleY(-1) translateX(-6%); }
.blur-bg::after { content: ""; position: absolute; inset: 0; background: var(--ribs); }

/* ============ Hero ============ */
.hero { padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 0; min-height: min(100svh, 920px); display: flex; flex-direction: column; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 64px); align-items: center; flex: 1; }
.hello { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; font-weight: 600; font-size: .95rem; margin-bottom: 28px; }
.hello small { font-weight: 400; opacity: .85; margin-left: 4px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.hero h1 { max-width: 12ch; margin-bottom: .35em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 540px; color: rgba(255, 255, 255, .92); margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-panel { border-radius: var(--radius); padding: 12px; width: 100%; max-width: 380px; justify-self: end; }
.panel-photo { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3.4; margin-bottom: 14px; }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.panel-chip { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .82rem; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); flex: none; }
.panel-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; margin: 4px 6px 8px; }
.session { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .12) var(--ribs); border: 1px solid rgba(255, 255, 255, .2); margin-top: 8px; }
.session-day { display: block; font-size: .78rem; opacity: .85; }
.session-name { display: block; font-weight: 600; }
.session-tag { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); white-space: nowrap; }

.offers { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 72px); }
.offer { display: flex; align-items: flex-start; gap: 12px; padding: 22px 20px 28px 0; border-top: 1px solid rgba(255, 255, 255, .35); color: #fff; text-decoration: none; transition: border-color .15s; }
.offer + .offer { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .18); }
.offer:hover { border-top-color: var(--pink); }
.offer-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.offer-text { display: flex; flex-direction: column; font-weight: 600; line-height: 1.3; }
.offer-text small { font-weight: 400; opacity: .8; font-size: .88rem; margin-top: 2px; }

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { justify-self: start; max-width: 460px; }
  .offers { grid-template-columns: 1fr 1fr; }
  .offer:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .hero { padding-top: calc(var(--header-h) + 20px); }
  .hello { margin-bottom: 20px; }
  .hero-cta { flex-wrap: nowrap; gap: 10px; }
  .hero-cta .btn { flex: 1; padding: 0 14px; min-height: 52px; font-size: 1rem; }
  .hero-panel { padding: 10px; }
  .panel-photo { aspect-ratio: 16 / 10; }
  .offer { padding: 16px 12px 20px 0; gap: 10px; }
  .offer + .offer { padding-left: 12px; }
  .offer:nth-child(3) { padding-left: 0; }
  .offer-text { font-size: .95rem; }
}

/* ============ Sections ============ */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tint { background: var(--sky-wash); }
.section-head { max-width: 720px; margin: 0 0 clamp(36px, 5vw, 56px); }
.section-head p:last-child:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 10px; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.section-blue .eyebrow { background: var(--glass); border-color: var(--glass-line); color: #fff; }

/* ============ Coaching cards ============ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 24px; }
.card-featured { background: var(--sky-deep) var(--ribs); color: #fff; border-color: var(--sky-deep); }
.card-featured h3 { padding-right: 120px; }
.badge { position: absolute; top: 28px; right: 22px; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 22px; }
.amount { font-size: 3rem; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.per { color: var(--muted); }
.card-featured .per { color: rgba(255, 255, 255, .8); }
.checks { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; border-top: 1px solid var(--line); }
.card-featured .checks { border-color: rgba(255, 255, 255, .25); }
.checks li { position: relative; padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line); font-size: .98rem; }
.card-featured .checks li { border-color: rgba(255, 255, 255, .2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.card-featured .checks li::before { background: #fff; }
.card-featured .btn-primary { background: #fff; color: var(--ink); }
.card-featured .btn-primary:hover { background: var(--ink); color: #fff; }
.fine { text-align: center; color: var(--muted); font-size: .88rem; margin: 12px 0 0; }
.card-featured .fine { color: rgba(255, 255, 255, .8); }
.secure-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; margin: 28px 0 0; }
@media (max-width: 960px) { .cards-3 { grid-template-columns: 1fr; max-width: 560px; } .card-featured { order: -1; } }

/* ============ How I work ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps p { color: var(--muted); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 18px; background: var(--sky-wash); color: var(--sky-ink); font-weight: 600; border: 1px solid #cfe6f1; }
.tools-title { margin: clamp(48px, 6vw, 72px) 0 20px; font-size: 1.35rem; font-weight: 500; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.tool { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tool strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.tool p { margin: 0; color: var(--muted); font-size: .95rem; }
.tool-logo { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--brand); background: color-mix(in srgb, var(--brand) 11%, #fff); }
.tool-logo svg { width: 28px; height: 28px; }
@media (max-width: 860px) { .steps, .tools { grid-template-columns: 1fr; } }

/* ============ Plans ============ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 20px; background: #fff; transition: border-color .15s; }
.plan:hover { border-color: var(--sky); }
.plan-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
.plan-top { flex: 1; padding: 0 12px; }
.plan p { color: var(--muted); margin: 0; font-size: .98rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 500; color: var(--sky-ink); background: var(--sky-wash); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.plan-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 12px 0; border-top: 1px solid var(--line); }
.plan-price { font-size: 1.8rem; font-weight: 300; letter-spacing: -.03em; }
.plan-help { background: var(--sky-deep) var(--ribs); color: #fff; border: 0; justify-content: center; padding: 32px 28px; }
.plan-help p { color: rgba(255, 255, 255, .88); }
.plan-help .btn-outline { border-color: #fff; color: #fff; align-self: flex-start; }
.plan-help .btn-outline:hover { background: #fff; color: var(--ink); }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }

/* ============ About ============ */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: var(--radius); }
.about-text p:not(.eyebrow) { color: #33444f; }
.about-text .btn { margin-top: 8px; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 420px; } }

/* ============ Gallery ============ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sky-wash); aspect-ratio: 3 / 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: .85rem; }
.gallery figcaption::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.gallery-link { margin: 28px 0 0; }
.gallery-link a { font-weight: 500; text-decoration: none; display: inline-block; padding: 10px 0; }
.gallery-link a:hover { text-decoration: underline; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ============ Swim tips ============ */
.tips { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.tips-intro p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.tip-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tip { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); padding: 10px; transition: border-color .15s; }
.tip:hover { border-color: var(--sky); }
.tip-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sky); overflow: hidden; border-radius: 16px; }
.tip-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--pink); }
.play svg { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.tip-text { display: flex; flex-direction: column; gap: 4px; padding: 14px 8px 6px; }
.tip-text strong { font-size: 1.05rem; line-height: 1.3; font-weight: 600; }
.tip-text small { color: var(--sky-ink); font-weight: 500; font-size: .9rem; }
@media (max-width: 860px) { .tips { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .tip-list { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s; }
.faq details[open] { border-color: var(--sky); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--pink); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ============ Contact ============ */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-intro p:not(.eyebrow):not(.signoff) { color: rgba(255, 255, 255, .92); font-size: 1.1rem; }
.signoff { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 6px 18px 6px 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-weight: 600; line-height: 1.3; }
.signoff small { font-weight: 400; opacity: .85; }
.signoff .avatar { width: 44px; height: 44px; }
.contact-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 6px; }
.req { color: var(--pink); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 13px 16px; border: 1px solid #c9d9e1; border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .15s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--sky); }
.field input[aria-invalid="true"] { border-color: var(--pink); }
.error { color: #b0236f; font-size: .9rem; margin: 6px 0 0; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-inner p { margin: 0; }
.footer-inner p a { color: var(--muted); }
.footer-inner ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.footer-inner ul a { color: var(--muted); text-decoration: none; padding: 10px; display: inline-block; }
.footer-inner ul a:hover { color: var(--ink); }

/* ============ Thank-you page ============ */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 60px) 20px 80px; }
.thanks .icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center; background: var(--sky-wash); color: var(--sky-ink); }
.thanks p { color: var(--muted); max-width: 520px; margin-left: auto; margin-right: auto; }

/* ============ Motion preferences ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* =========================================================
   Hero version B: Greg in the background + photo slider
   ========================================================= */
.hero-b { padding-bottom: 0; }
.slider { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: -2; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.04); }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    var(--ribs),
    radial-gradient(30% 45% at 40% 70%, rgba(216, 57, 149, .45), transparent 70%),
    linear-gradient(0deg, rgba(4, 121, 168, .9) 0%, rgba(4, 121, 168, 0) 30%),
    linear-gradient(90deg, var(--sky-deep) 0%, var(--sky-deep) 34%, rgba(4, 121, 168, .82) 44%, rgba(5, 147, 198, .25) 64%, rgba(5, 147, 198, .08) 100%);
}
.hero-b-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 64px); align-items: end; flex: 1; padding-bottom: 8px; }
.hero-b .hero-text { align-self: center; }
.eyebrow-glass { background: var(--glass); border-color: var(--glass-line); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hero-side { justify-self: end; width: 100%; max-width: 340px; display: grid; gap: 14px; }
.stat-card { border-radius: var(--radius); padding: 20px 22px; background: rgba(3, 78, 118, .42); border-color: rgba(255, 255, 255, .28); }
.stat-label { display: flex; align-items: center; gap: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; opacity: .95; }
.stat-big { font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 300; letter-spacing: -.04em; line-height: 1; margin: 0 0 14px; }
.stat-rows { margin: 0; display: grid; gap: 6px; }
.stat-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: .9rem; }
.stat-rows dt { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; align-self: center; }
.stat-rows dd { margin: 0; }
.slider-ui { display: flex; align-items: center; gap: 8px; }
.slide-arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(3, 78, 118, .42); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background-color .15s; }
.slide-arrow:hover { background: rgba(255, 255, 255, .28); }
.slide-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bars { flex: 1; display: flex; gap: 6px; }
.bar-btn { flex: 1; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.bar-btn span { position: relative; display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.bar-btn span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.bar-btn.is-done span::after { transform: scaleX(1); }
.bar-btn.is-active span::after { animation: bar-fill var(--slide-ms, 5000ms) linear forwards; }
.slider.is-paused ~ .hero-b-grid .bar-btn.is-active span::after,
.hero-b.is-paused .bar-btn.is-active span::after { animation-play-state: paused; }
@keyframes bar-fill { to { transform: scaleX(1); } }

@media (max-width: 960px) {
  /* Photo is its own block on top; its bottom edge fades into the blue, text starts right below */
  .hero-b { --img-h: clamp(330px, 54svh, 560px); background: var(--sky-deep); padding-top: calc(var(--img-h) - 24px); }
  .slider { width: 100%; height: var(--img-h); bottom: auto; }
  .slider::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(4, 121, 168, .5) 0%, rgba(4, 121, 168, 0) 22%, rgba(4, 121, 168, 0) 58%, var(--sky-deep) 100%); }
  .hero-shade { background:
      var(--ribs),
      radial-gradient(45% 22% at 25% calc(var(--img-h) + 60px), rgba(216, 57, 149, .35), transparent 70%); }
  .hero-b-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-side { justify-self: start; max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .bar-btn.is-active span::after { animation: none; transform: scaleX(1); }
}

/* Slider dots: shown inside the photo on mobile, arrows/bars on desktop */
.slide-dots { display: none; }
@media (max-width: 960px) {
  .slider-ui { display: none; }
  .slide-dots {
    position: absolute; z-index: 2; right: 14px; top: calc(var(--img-h) - 24px - 56px);
    display: flex; padding: 0 4px; border-radius: 999px;
    background: rgba(3, 78, 118, .35); border: 1px solid rgba(255, 255, 255, .25);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .dot-btn { width: 26px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .dot-btn span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: width .2s, background-color .2s; }
  .dot-btn.is-active span { width: 18px; border-radius: 4px; background: #fff; }
}
