/* ============================================================
   ABMT — Association of Biodynamic Massage Therapists
   Site stylesheet
   ============================================================ */

:root {
  --navy-950: #0f2b3d;
  --navy-900: #17435f;
  --navy-800: #205a7d;
  --blue-700: #2b7c9f;
  --blue-600: #3391ba;
  --blue-500: #40a2cb;
  --blue-100: #d9edf5;
  --blue-050: #eef7fb;
  --accent-700: #366da7;
  --accent-600: #40a2cb;
  --accent-100: #e2ecf8;
  --sky-300: #8fd0e8;
  --cream: #f7fafc;
  --paper: #ffffff;
  --ink: #2f3a42;
  --ink-soft: #64707a;
  --line: #dfe7ed;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(23, 67, 95, 0.06), 0 2px 8px rgba(23, 67, 95, 0.06);
  --shadow-md: 0 2px 6px rgba(23, 67, 95, 0.07), 0 10px 30px rgba(23, 67, 95, 0.10);
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--navy-900);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.35rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

a { color: var(--blue-700); text-decoration-color: rgba(64, 162, 203, 0.45); text-underline-offset: 3px; }
a:hover { color: var(--accent-700); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-900); color: #fff; padding: 10px 18px; z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

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

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 24px;
  max-width: var(--wrap); margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { flex: none; }
.brand-text { line-height: 1.2; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem; color: var(--accent-700);
  letter-spacing: 0.04em; display: block;
}
.brand-sub {
  display: block; font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-soft); font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 420px) { .brand-sub { white-space: normal; max-width: 24ch; } }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 11px; cursor: pointer; color: var(--navy-900);
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.site-nav li { position: relative; }

.site-nav a, .site-nav .nav-parent {
  display: block; padding: 9px 12px; font-size: 0.93rem; font-weight: 500;
  color: var(--navy-900); text-decoration: none; border-radius: 9px;
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
  white-space: nowrap;
}
.site-nav a:hover, .site-nav .nav-parent:hover,
.site-nav li:focus-within > .nav-parent { background: var(--blue-100); color: var(--navy-900); }

.site-nav a[aria-current="page"] { background: var(--navy-800); color: #fff; }

.nav-parent .caret { display: inline-block; margin-left: 5px; transition: transform 0.2s; font-size: 0.7em; }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 8px;
  display: none; flex-direction: column; gap: 1px;
}
.dropdown a { padding: 9px 12px; border-radius: 8px; font-weight: 450; white-space: normal; }
li.open > .dropdown { display: flex; }
li.open > .nav-parent .caret { transform: rotate(180deg); }

.nav-cta {
  margin-left: 10px;
}
.site-nav .nav-cta a {
  background: var(--accent-600); color: #fff; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
}
.site-nav .nav-cta a:hover { background: var(--accent-700); color: #fff; }

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

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: var(--font-body);
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-600); color: #fff; }
.btn-primary:hover { background: var(--accent-700); color: #fff; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--blue-600); }
.btn-outline:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--blue-100); color: var(--navy-900); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(143, 208, 232, 0.28), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(64, 162, 203, 0.45), transparent 55%),
    linear-gradient(150deg, var(--navy-900), var(--navy-800) 55%, var(--blue-700));
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='240' viewBox='0 0 1200 240' preserveAspectRatio='none'%3E%3Cpath d='M0 190 C 200 120, 400 250, 600 180 S 1000 90, 1200 170 L1200 240 L0 240 Z' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E") bottom center / 100% 240px no-repeat;
}
.hero-inner { position: relative; padding: 96px 24px 110px; max-width: var(--wrap); margin: 0 auto; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lede { font-size: 1.2rem; max-width: 56ch; color: rgba(255, 255, 255, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 650;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-600); margin-bottom: 14px;
}
.hero .eyebrow { color: var(--sky-300); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero-badges span {
  font-size: 0.83rem; font-weight: 550; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
}

/* Page hero (interior pages) */
.page-hero {
  color: #fff;
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(143, 208, 232, 0.25), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-800) 60%, var(--blue-700));
}
.page-hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 64px 24px 58px; }
.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero p { max-width: 62ch; color: rgba(255, 255, 255, 0.86); font-size: 1.12rem; margin: 0; }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 18px; color: rgba(255, 255, 255, 0.7); }
.breadcrumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

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

.section { padding: 76px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-green { background: var(--blue-050); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 2px; }
.card p:last-child { margin-bottom: 0; }

.card-link {
  display: block; text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-500); color: inherit; }
.card-link .more { color: var(--accent-700); font-weight: 600; font-size: 0.95rem; }

.icon-chip {
  width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-100); color: var(--blue-700); margin-bottom: 18px;
}
.icon-chip.clay { background: var(--accent-100); color: var(--accent-700); }
.icon-chip svg { width: 26px; height: 26px; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--blue-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b7c9f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

/* Prose (long-form pages) */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.sidebar .card { position: sticky; top: 96px; }
.sidebar h3 { font-size: 1.15rem; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { border-bottom: 1px solid var(--line); }
.sidebar li:last-child { border-bottom: none; }
.sidebar a { display: block; padding: 10px 2px; text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.sidebar a[aria-current="page"] { color: var(--accent-700); font-weight: 650; }

blockquote.pull {
  margin: 2em 0; padding: 26px 30px; border-left: 4px solid var(--sky-300);
  background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-800);
}
blockquote.pull cite { display: block; margin-top: 10px; font-family: var(--font-body); font-size: 0.9rem; font-style: normal; color: var(--ink-soft); }

.note {
  background: var(--accent-100); border: 1px solid #c9dcf0; border-radius: var(--radius);
  padding: 20px 24px; margin: 1.5em 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong:first-child { color: var(--accent-700); }

/* ---------- Video embeds ---------- */

.video-card { padding: 0; overflow: hidden; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--navy-950); }
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-card figcaption { padding: 18px 24px 20px; }
.video-card figcaption h3 { font-size: 1.15rem; margin-bottom: 4px; }
.video-card figcaption p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Partner logos ---------- */

.partner-row {
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; align-items: stretch;
  margin: 26px 0 18px;
}
.partner-row a {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 24px; display: flex; align-items: center;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.15s, border-color 0.15s;
}
.partner-row a:hover { box-shadow: var(--shadow-md); border-color: var(--blue-500); }
.partner-row img { height: 56px; width: auto; }

/* ---------- Download cards ---------- */

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dl-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; }
.dl-ico {
  flex: none; width: 46px; height: 46px; border-radius: 10px;
  background: var(--blue-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.05em;
}
.dl-card strong { font-size: 0.97rem; color: var(--navy-900); display: block; line-height: 1.35; }
.dl-meta { color: var(--ink-soft); font-size: 0.85rem; }

.article-list { list-style: none; padding: 0; margin: 0 0 1.6em; }
.article-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.article-list li:last-child { border-bottom: none; }
.article-list .by { color: var(--ink-soft); }
.article-list .dl-meta { white-space: nowrap; }

@media (max-width: 980px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .dl-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */

.cta-band {
  color: #fff; text-align: center;
  background:
    radial-gradient(800px 300px at 15% 120%, rgba(143, 208, 232, 0.30), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--blue-700));
}
.cta-band .section { padding: 80px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 58ch; margin: 0 auto 1.4em; }

/* ---------- Practitioner directory ---------- */

.region-grid .card-link { text-align: left; }
.region-grid .count { color: var(--ink-soft); font-size: 0.92rem; }

.practitioner-grid { grid-template-columns: repeat(3, 1fr); }

.pcard { display: flex; flex-direction: column; gap: 4px; padding: 26px 24px; }
.pcard .avatar {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 650; font-size: 1.15rem;
  color: #fff; background: linear-gradient(140deg, var(--blue-500), var(--navy-800));
  margin-bottom: 12px;
}
.pcard:nth-child(3n+2) .avatar { background: linear-gradient(140deg, var(--accent-700), #22496f); }
.pcard:nth-child(3n) .avatar { background: linear-gradient(140deg, #6bbcd9, var(--blue-600)); }
.pcard h3 { font-size: 1.18rem; margin-bottom: 2px; }
.pcard .ploc { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 10px; }
.pcard .pmeta { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.pcard .pmeta li { display: flex; gap: 9px; align-items: baseline; margin-bottom: 5px; overflow-wrap: anywhere; }
.pcard .pmeta svg { width: 14px; height: 14px; flex: none; transform: translateY(1px); color: var(--blue-600); }

.county-heading {
  margin: 54px 0 22px; padding-bottom: 10px; border-bottom: 2px solid var(--blue-100);
  display: flex; align-items: baseline; gap: 12px;
}
.county-heading:first-of-type { margin-top: 0; }
.county-heading h2 { margin: 0; font-size: 1.6rem; }
.county-heading span { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- News ---------- */

.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: none; }
.news-date { font-size: 0.9rem; font-weight: 650; color: var(--accent-700); text-transform: uppercase; letter-spacing: 0.06em; }
.news-item h3 { margin-bottom: 0.35em; }
.news-item p:last-child { margin-bottom: 0; }

.tag {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  background: var(--blue-100); color: var(--navy-800);
  padding: 3px 12px; border-radius: 999px; margin-bottom: 10px;
}
.tag.clay { background: var(--accent-100); color: var(--accent-700); }

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

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.95rem; color: var(--navy-900); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; width: 100%;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--blue-600); outline: none;
  box-shadow: 0 0 0 3px rgba(64, 162, 203, 0.20);
}
.form-status { display: none; margin-top: 18px; padding: 16px 20px; border-radius: 10px; font-weight: 550; }
.form-status.show { display: block; }
.form-status.info { background: var(--accent-100); color: var(--accent-700); border: 1px solid #c9dcf0; }

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; }
table.nice { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.nice th, table.nice td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.nice th { background: var(--navy-800); color: #fff; font-weight: 600; font-size: 0.95rem; }
table.nice tr:last-child td { border-bottom: none; }

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

.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.8); margin-top: 0; }
.footer-main {
  max-width: var(--wrap); margin: 0 auto; padding: 64px 24px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: var(--font-body); font-weight: 650; letter-spacing: 0.03em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, 0.55); }
.footer-about { font-size: 0.95rem; max-width: 40ch; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 20px 24px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 0.87rem; color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a { font-size: 0.87rem; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .grid-3, .grid-4, .practitioner-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar .card { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1150px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 0; }
  .site-nav a, .site-nav .nav-parent { width: 100%; text-align: left; padding: 13px 12px; font-size: 1.02rem; }
  .dropdown {
    position: static; box-shadow: none; border: none; border-left: 2px solid var(--blue-100);
    border-radius: 0; margin: 2px 0 6px 14px; padding: 0; min-width: 0;
  }
  .nav-cta { margin: 12px 0 0; }
  .site-nav .nav-cta a { text-align: center; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .practitioner-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 68px 24px 84px; }
  .section { padding: 56px 0; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
}
