/* GBY Post Surgical Pain Management — shared styles. Mobile-first. */
:root {
  /* Brand palette sampled from the official logo: teal #0A6C6B, cyan #70C9CF, grey #C4C8C9 */
  --brand-teal: #0A6C6B;
  --brand-cyan: #70C9CF;
  --brand-grey: #C4C8C9;
  --ink: #143233;
  --ink-soft: #3A5555;
  --ink-faint: #5A7171;
  --paper: #ffffff;
  --cream: #F3F8F8;
  --sand: #E6EEEE;
  --teal-950: #063837;
  --teal-900: #085958;
  --teal-800: #0A6C6B;
  --teal-700: #0A6C6B;
  --teal-600: #0C7A79;
  --teal-500: #70C9CF;
  --teal-300: #A8DEE2;
  --teal-100: #D7F0F2;
  --teal-50: #EBF7F8;
  --line: #D3E4E4;
  --line-strong: #B5CFCF;
  --copper: #8d4f2a;
  --copper-bg: #f8efe6;
  --white: #ffffff;
  --focus: #0A6C6B;
  --shadow-sm: 0 1px 2px rgba(6, 56, 55, 0.07);
  --shadow-md: 0 10px 30px rgba(6, 56, 55, 0.10);
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space: clamp(1rem, 2.2vw, 1.5rem);
  --radius: 1rem;
  --header-h: 5.15rem;
  --max: 72rem;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 0.75rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--teal-900); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  background: var(--teal-900);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
}
.skip-link:focus { top: 0.75rem; color: var(--white); }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.section { padding: 3.5rem 0; }
@media (min-width: 800px) { .section { padding: 5rem 0; } }
.section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-weight: 520;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--teal-950);
}
.section-lead {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.section--tint { background: var(--teal-50); }
.section--paper { background: var(--paper); }
.section--deep {
  background: var(--brand-teal);
  color: #e8f6f6;
}
.section--deep .section-title { color: var(--white); }
.section--deep .section-kicker { color: var(--teal-300); }
.section--deep .section-lead { color: #c5dbd8; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-teal);
  color: var(--white);
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(6, 56, 55, 0.28); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.45rem;
}
.logo {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}
.logo-img {
  display: block;
  height: 3.4rem;
  width: auto;
  max-width: min(17.5rem, 64vw);
}
@media (min-width: 900px) {
  .logo-img { height: 4.25rem; max-width: 21rem; }
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle-bars { display: block; width: 1.1rem; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
@media (min-width: 900px) { .nav-toggle { display: none; } }
.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--brand-teal);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 0.5rem 1rem 1.1rem;
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--white);
  font-weight: 550;
  padding: 0.55rem 0.4rem;
  border-radius: 0.4rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,0.14); }
.header-cta,
.header-cta.btn { display: none; }
.header-cta.btn--primary {
  background: var(--white);
  color: var(--brand-teal);
}
.header-cta.btn--primary:hover { background: var(--brand-cyan); color: var(--teal-950); }
@media (min-width: 900px) {
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: 0.15rem; }
  .site-nav a { padding: 0.4rem 0.7rem; }
  .header-cta,
  .header-cta.btn { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn--primary { background: var(--teal-700); color: var(--white); }
.btn--primary:hover { background: var(--teal-900); color: var(--white); }
.btn--ghost { background: transparent; color: var(--teal-800); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--teal-50); color: var(--teal-900); }
.btn--on-dark { background: var(--white); color: var(--teal-900); }
.btn--on-dark:hover { background: var(--teal-50); color: var(--teal-950); }
.btn--ghost-on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn--ghost-on-dark:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(112, 201, 207, 0.32), transparent 55%),
    linear-gradient(180deg, #e7f5f5 0%, var(--cream) 100%);
  padding: 2.4rem 0 3rem;
}
@media (min-width: 800px) { .hero { padding: 3.4rem 0 4.2rem; } }
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}
.hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-serif);
  font-weight: 520;
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--teal-950);
}
.hero h1 em { font-style: italic; font-weight: 480; color: var(--brand-teal); }
.hero-lead {
  margin: 0 0 1.4rem;
  max-width: 38rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
}
.trust-line {
  margin: 1.4rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.trust-line strong { color: var(--teal-900); font-weight: 650; }
.hero-art {
  background: var(--brand-teal);
  border-radius: 1.4rem;
  padding: 1.4rem;
  color: #e8f3f2;
  box-shadow: var(--shadow-md);
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-art svg { width: 100%; height: auto; }
.hero-art-caption { margin: 1rem 0 0; font-size: 0.92rem; color: #c5dbd8; }

/* Cards and lists */
.card-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 560;
  color: var(--teal-900);
}
.card p { margin: 0; color: var(--ink-soft); }
.card-icon {
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.75rem;
  color: var(--teal-600);
}
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: inset 0 0 0 3px var(--teal-50);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.3rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--teal-800);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.08rem; color: var(--teal-900); }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* About */
.portrait {
  background: var(--teal-100);
  border: 1px dashed var(--line-strong);
  border-radius: 1.2rem;
  min-height: 18rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--ink-soft);
}
.cred-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.cred-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.7rem 0.9rem;
}
.cred-list strong { display: block; color: var(--teal-900); font-weight: 650; }
.cred-list span { display: block; color: var(--ink-faint); font-size: 0.92rem; }

/* FAQ */
.faq { display: grid; gap: 0.6rem; max-width: 48rem; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  color: var(--teal-900);
  padding: 0.95rem 1.1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--teal-600);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 1.1rem 1.05rem; color: var(--ink-soft); }
.faq-item .faq-body p { margin: 0 0 0.7rem; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* Forms */
.form {
  display: grid;
  gap: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; gap: 0.9rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--teal-900); }
.hint { font-weight: 450; color: var(--ink-faint); font-size: 0.85rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 0.55rem;
  padding: 0.65rem 0.75rem;
}
textarea { min-height: 8rem; resize: vertical; }
.form-note, .form-status { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.form-status[data-state="ok"] { color: var(--teal-700); }
.form-status[data-state="warn"] { color: var(--copper); }
.contact-facts { display: grid; gap: 0.9rem; }
.contact-facts dt { font-weight: 700; color: var(--teal-900); margin: 0; }
.contact-facts dd { margin: 0.15rem 0 0; color: var(--ink-soft); }

.placeholder {
  display: inline;
  background: var(--copper-bg);
  color: var(--copper);
  border-bottom: 1px dashed var(--copper);
  padding: 0 0.18em;
}

/* Footer */
.site-footer {
  background: var(--brand-teal);
  color: #e8f6f6;
  padding: 2.8rem 0 1.6rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 1.6rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 0.8fr 1fr; } }
.site-footer a { color: #e8f3f2; }
.site-footer h2, .site-footer h3 {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-300);
  font-weight: 700;
}
.footer-brand { display: inline-block; margin-bottom: 0.75rem; text-decoration: none; max-width: 18rem; }
.footer-brand img { width: 100%; height: auto; display: block; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.disclaimer {
  margin: 1.4rem 0 0;
  padding: 1rem 0 0;
  color: #b7cbc8;
  font-size: 0.88rem;
  line-height: 1.55;
}
.legal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
  color: #8ea8a6;
  font-size: 0.85rem;
}

.alert-box {
  background: var(--sand);
  border-left: 3px solid var(--teal-600);
  border-radius: 0 0.7rem 0.7rem 0;
  padding: 0.9rem 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.text-link { font-weight: 650; }

.card h2 { margin: 0 0 0.45rem; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 560; color: var(--teal-900); }
.privacy-page h2, main h2:not(.section-title) { font-family: var(--font-serif); font-size: 1.25rem; color: var(--teal-900); margin: 1.5rem 0 0.5rem; }
