/* MD Support — mdsupport.ai
   Editorial, clinical, quiet. Navy ink on warm paper, one teal accent. */

:root {
  --ink: #12283a;
  --ink-2: #33475a;
  --ink-3: #4f6478;
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --white: #ffffff;
  --line: #e1ddd2;
  --line-dark: rgba(255, 255, 255, 0.18);
  --teal: #0e7c66;
  --teal-dark: #0a5f4e;
  --gold: #b98a2e;
  --serif: "STIX Two Text", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
  --radius: 3px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.42rem; line-height: 1.3; }

.lede {
  font-size: clamp(1.13rem, 1.7vw, 1.32rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 42em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--teal);
  vertical-align: middle;
  margin-right: 10px;
}

em.accent { font-style: italic; color: var(--teal); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 16px 32px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-align: center;
}

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #0c1c29; }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-outline-light { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.text-link {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--teal);
  border-bottom: 1px solid transparent;
}
.text-link:hover { border-bottom-color: var(--teal); }
.text-link::after { content: "\2009\2192"; }

/* ---------- Utility bar + header ---------- */

.utility {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.87rem;
  letter-spacing: 0.02em;
}
.utility .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 16px;
}
.utility a:hover { color: #fff; }
.utility .u-right { display: flex; gap: 22px; align-items: center; }
.utility .u-note { color: rgba(255,255,255,0.55); }
@media (max-width: 720px) {
  .utility .u-note, .utility .u-email { display: none; }
}

header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo .dot { color: var(--teal); }
.logo small {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 9px;
  position: relative;
  top: -2px;
}

nav.main { display: flex; align-items: center; gap: 30px; }
nav.main > a, nav.main .has-drop > button {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-2);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  padding: 26px 0;
  position: relative;
}
nav.main > a:hover, nav.main .has-drop:hover > button { color: var(--ink); }
nav.main > a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 20px;
  height: 2px;
  background: var(--teal);
}
nav.main .caret {
  display: inline-block;
  margin-left: 6px;
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.has-drop { position: relative; }
.drop {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(18, 40, 58, 0.12);
  min-width: 320px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.drop a {
  display: block;
  padding: 13px 14px;
  border-radius: 4px;
}
.drop a:hover { background: var(--paper); }
.drop a strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}
.drop a span {
  display: block;
  font-size: 0.89rem;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.45;
}
.drop .drop-foot {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding: 12px 14px 6px;
  font-size: 0.85rem;
}

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
}
.header-phone span { color: var(--ink-3); font-weight: 400; }
.header-cta .btn { padding: 13px 24px; font-size: 0.93rem; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; left: 0; right: 0; }
.nav-toggle span::after { top: 7px; left: 0; right: 0; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
body.nav-open .mobile-nav { display: block; }
.mobile-nav a {
  display: block;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  font-weight: 500;
  font-size: 1.05rem;
}
.mobile-nav a.sub { padding-left: 42px; font-weight: 400; color: var(--ink-2); font-size: 0.95rem; }
.mobile-nav .m-cta { padding: 18px 24px 26px; border-top: 1px solid var(--line); }

@media (max-width: 980px) {
  nav.main, .header-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero (video) ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-media video.on { opacity: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(78deg, rgba(9, 24, 37, 0.88) 0%, rgba(9, 24, 37, 0.62) 44%, rgba(9, 24, 37, 0.28) 100%);
}
.hero .wrap { position: relative; z-index: 2; }

.hero-inner {
  padding: clamp(90px, 13vh, 170px) 0 clamp(56px, 8vh, 110px);
  max-width: 780px;
}
.hero h1 { color: #fff; margin: 0 0 22px; }
.hero .lede { color: rgba(255, 255, 255, 0.82); margin-bottom: 36px; }
.hero .eyebrow { color: #8fd6c6; }
.hero .eyebrow::before { background: #8fd6c6; }

.hero-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-dark);
}
.hero-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 30px;
}
.hero-strip .stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 500;
  color: #fff;
}
.hero-strip .stat span {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  display: block;
  max-width: 24em;
}
@media (max-width: 720px) {
  .hero-strip .wrap { grid-template-columns: 1fr; gap: 16px; }
  .hero-strip .stat b { font-size: 1.6rem; display: inline-block; margin-right: 10px; }
  .hero-strip .stat span { display: inline; }
}

/* Inner-page hero */
.hero.compact .hero-inner { padding: clamp(70px, 10vh, 120px) 0 clamp(60px, 9vh, 110px); }

.crumbs {
  position: relative;
  z-index: 2;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
  padding-top: 28px;
}
.crumbs a:hover { color: #fff; }
.crumbs .sep { margin: 0 8px; color: rgba(255,255,255,0.35); }

/* ---------- Sections ---------- */

section { padding: clamp(64px, 9vw, 110px) 0; }
section.tight { padding: clamp(48px, 6vw, 72px) 0; }
section.on-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.on-ink { background: var(--ink); color: #fff; }
section.on-ink .lede { color: rgba(255,255,255,0.78); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { margin-bottom: 16px; }
.section-head .lede { font-size: 1.16rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.split.rev > .split-media { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.rev > .split-media { order: 0; }
}

.split-media img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(18, 40, 58, 0.18);
}
.split-media { position: relative; }
.split-media .tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(9, 24, 37, 0.82);
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
}
.pillar {
  padding: clamp(28px, 3.5vw, 46px);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease;
}
.pillar:first-child { border-left: none; }
.pillar:hover { background: #fdfcf9; }
.pillar .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 22px;
}
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--ink-2); font-size: 1.04rem; flex: 1; }
.pillar ul {
  list-style: none;
  margin: 18px 0 26px;
  font-size: 0.98rem;
  color: var(--ink-2);
}
.pillar ul li {
  padding: 7px 0 7px 22px;
  position: relative;
  border-top: 1px solid var(--paper-2);
}
.pillar ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--teal);
  border-bottom: 1.6px solid var(--teal);
  transform: rotate(-45deg);
}
@media (max-width: 940px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: none; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: none; }
}

/* Service detail lists */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.svc {
  background: var(--white);
  padding: clamp(26px, 3vw, 38px);
}
.svc h3 { font-size: 1.28rem; margin-bottom: 10px; }
.svc p { font-size: 1.02rem; color: var(--ink-2); }
.svc .k {
  font-size: 0.77rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 14px;
}
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }

/* Numbered process */
.steps { counter-reset: step; max-width: 860px; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(18px, 4vw, 48px);
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 1.06rem; max-width: 40em; }
.step .meta {
  font-size: 0.83rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
}

/* Stat band */
.stat-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(30px, 5vw, 60px);
}
.stat-big { border-top: 2px solid var(--teal); padding-top: 22px; }
.stat-big b {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.4rem);
  font-weight: 500;
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-big .stat-title { font-weight: 600; display: block; margin-bottom: 6px; }
.stat-big p { color: var(--ink-2); font-size: 1.03rem; max-width: 30em; }
section.on-ink .stat-big p { color: rgba(255,255,255,0.8); }
@media (max-width: 640px) { .stat-band { grid-template-columns: 1fr; } }

/* Case studies */
.case {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(34px, 5vw, 54px) 0;
  border-top: 1px solid var(--line);
}
.case:last-of-type { border-bottom: 1px solid var(--line); }
.case .case-side .spec {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
  margin-bottom: 12px;
  display: block;
}
.case .case-side .loc {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.case dl { display: grid; gap: 18px; }
.case dt {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}
.case dd { color: var(--ink-2); font-size: 1.06rem; max-width: 52em; }
.case .outcome {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  padding: 18px 22px;
  border-radius: 3px;
}
.case .outcome li { margin-left: 18px; color: var(--ink); font-size: 1.03rem; padding: 4px 0; }
@media (max-width: 820px) { .case { grid-template-columns: 1fr; } }

/* Specialties marquee-ish row */
.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.spec-list span {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.95rem;
  padding: 10px 20px;
  color: var(--ink-2);
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 54px) clamp(28px, 5vw, 70px);
}
.why h3 { margin-bottom: 10px; font-size: 1.32rem; }
.why p { color: var(--ink-2); font-size: 1.04rem; }
.why .why-rule {
  width: 34px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 18px;
}
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }

/* Quote */
.pull {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.pull blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.35;
  font-weight: 500;
}
.pull cite {
  display: block;
  margin-top: 26px;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.faq-side { position: sticky; top: 130px; }
.faq-side h2 { margin-bottom: 14px; }
.faq-side .side-note { color: var(--ink-2); font-size: 1.08rem; max-width: 26em; }
.faq-help {
  margin-top: 32px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  padding: 26px 28px;
  font-size: 0.99rem;
}
.faq-help b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 8px;
}
.faq-help .faq-help-links { margin-top: 16px; display: grid; gap: 6px; }
.faq-help .faq-help-links a { color: #fff; font-weight: 600; }
.faq-help .faq-help-links a:hover { color: #8fd6c6; }
.faq-help .faq-help-links span { color: rgba(255,255,255,0.45); font-weight: 400; }

.fq {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-bottom: 12px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.fq:hover { border-color: #cfc9ba; }
.fq[open] {
  background: var(--white);
  border-color: rgba(14, 124, 102, 0.45);
  box-shadow: 0 16px 38px rgba(18, 40, 58, 0.09);
}
.fq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 22px;
}
.fq summary::-webkit-details-marker { display: none; }
.fq-num {
  flex: none;
  min-width: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
}
.fq-q {
  flex: 1;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.26rem;
  line-height: 1.35;
}
.fq .fx {
  flex: none;
  align-self: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  background: var(--white);
  transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.fq .fx::before, .fq .fx::after {
  content: "";
  position: absolute;
  background: var(--ink-3);
  transition: background 0.2s ease;
}
.fq .fx::before { left: 8px; right: 8px; top: 13px; height: 1.6px; }
.fq .fx::after { top: 8px; bottom: 8px; left: 13px; width: 1.6px; }
.fq[open] .fx { transform: rotate(45deg); background: var(--teal); border-color: var(--teal); }
.fq[open] .fx::before, .fq[open] .fx::after { background: #fff; }
.fq-a { padding: 0 56px 0 66px; overflow: hidden; }
.fq-a p { padding-bottom: 24px; color: var(--ink-2); max-width: 44em; font-size: 1.04rem; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .fq-a { padding: 0 22px 0 22px; }
}

/* CTA banner */
.cta-banner {
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  padding: clamp(44px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: 40px;
  bottom: -140px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.82); max-width: 34em; font-size: 1.06rem; }
.cta-banner .cta-side { text-align: right; }
.cta-banner .cta-side .btn { margin-bottom: 14px; }
.cta-banner .cta-side .alt {
  display: block;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}
.cta-banner .cta-side .alt a { color: #fff; font-weight: 600; }
@media (max-width: 780px) {
  .cta-banner { grid-template-columns: 1fr; }
  .cta-banner .cta-side { text-align: left; }
}

/* ---------- Forms ---------- */

.form-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 48px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label.f {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 7px;
}
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 13px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.87rem; color: var(--ink-3); margin-top: 14px; max-width: 40em; }
.form-msg { margin-top: 16px; font-weight: 600; display: none; }
.form-msg.ok { display: block; color: var(--teal-dark); }
.form-msg.err { display: block; color: #a33a2a; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */

footer.site {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(56px, 7vw, 90px) 0 0;
  font-size: 0.98rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: clamp(30px, 5vw, 70px);
  padding-bottom: 54px;
}
footer .logo { color: #fff; margin-bottom: 18px; }
footer .logo small { color: rgba(255,255,255,0.5); }
.foot-blurb { max-width: 30em; color: rgba(255,255,255,0.7); font-size: 0.97rem; }
.foot-col h4 {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 18px;
}
.foot-col a { display: block; padding: 5px 0; color: rgba(255,255,255,0.78); }
.foot-col a:hover { color: #fff; }
.foot-col .fc-line { padding: 5px 0; color: rgba(255,255,255,0.78); }
.foot-col .fc-line b { color: #fff; font-weight: 600; }
.foot-compliance {
  border-top: 1px solid var(--line-dark);
  padding: 22px 0;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
  max-width: 72em;
}
.foot-legal {
  border-top: 1px solid var(--line-dark);
  padding: 20px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}
.foot-legal a { color: rgba(255,255,255,0.65); margin-left: 22px; }
.foot-legal a:first-child { margin-left: 0; }
.foot-legal a:hover { color: #fff; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Prose (privacy etc.) ---------- */

.prose { max-width: 760px; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { font-size: 1.4rem; margin: 2.2em 0 0.6em; }
.prose p { margin: 0 0 1.1em; color: var(--ink-2); }
.prose .updated { font-size: 0.85rem; color: var(--ink-3); margin-bottom: 2.4em; }

/* ---------- Mobile call bar ---------- */

.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 -10px 28px rgba(18, 40, 58, 0.22);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .callbar a {
    padding: 17px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
  }
  .callbar .cb-call { background: var(--ink); color: #fff; }
  .callbar .cb-book { background: var(--teal); color: #fff; }
  body:has(.callbar) { padding-bottom: 64px; }
  body:has(.callbar) footer.site { padding-bottom: 20px; }
}

/* ---------- Reveal ---------- */

.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; }
.rv.d2 { transition-delay: 0.16s; }
.rv.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
