/* ==========================================================================
   Skiatook Family Clinic — shared stylesheet
   Palette derives from Behr "Morning Zen" S380-2 (#CBCDB9), the lobby color.
   Morning Zen carries surfaces; a deep pine drawn from the same hue family
   carries text and controls so every pairing clears WCAG AA (4.5:1).
   ========================================================================== */

:root {
  /* Morning Zen and its tints — surfaces only */
  --mz:        #CBCDB9;   /* Behr S380-2, the lobby wall */
  --mz-wash:   #F0F2E9;   /* lightest section band */
  --mz-mid:    #E2E5D8;
  --mz-deep:   #D6D9C7;

  /* Deep pine family — text, headings, controls (10:1+ on white) */
  --pine:      #2F4739;
  --pine-dark: #253028;
  --pine-soft: #4A6151;

  --ink:       #253028;   /* body text, 13.7:1 on white */
  --ink-soft:  #4B5A50;   /* secondary text, 7.1:1 on white */
  --clay:      #8C5A3C;   /* sparing accent, 5.8:1 on white */

  --white:     #FFFFFF;
  --rule:      #D8DCD2;

  --maxw: 1120px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(37, 48, 40, .07), 0 8px 24px rgba(37, 48, 40, .05);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--pine);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
strong { color: var(--pine-dark); }

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

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--pine); color: #fff; padding: .7rem 1.1rem;
  z-index: 200; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--pine);
}
.brand-tag { font-size: .78rem; color: var(--ink-soft); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.nav a {
  padding: .5rem .7rem; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-size: .95rem; font-weight: 500;
}
.nav a:hover { background: var(--mz-wash); color: var(--pine); }
.nav a[aria-current="page"] {
  background: var(--mz-mid); color: var(--pine-dark); font-weight: 600;
}
.header-phone {
  font-weight: 600; color: var(--pine); text-decoration: none;
  white-space: nowrap; padding: .5rem .7rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .78rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-secondary:hover { background: var(--pine); color: #fff; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.section-wash { background: var(--mz-wash); }
.section-mid  { background: var(--mz-mid); }
.section + .section { border-top: 1px solid var(--rule); }
.section-wash + .section-wash, .section-mid + .section-mid { border-top: 0; }

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
/* Constrain line length without re-centering the column: the section keeps the
   same left edge as every other section, only the text runs narrower. */
.measure { max-width: 68ch; }
.wrap.measure { max-width: var(--maxw); }
.wrap.measure > * { max-width: 68ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .1em; font-size: .78rem;
  font-weight: 700; color: var(--pine-soft); margin-bottom: .6rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(168deg, var(--mz) 0%, var(--mz-mid) 48%, var(--mz-wash) 100%);
  padding: clamp(2.8rem, 7vw, 5.2rem) 0 clamp(2.4rem, 5vw, 4rem);
}
.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: clamp(1.08rem, 2.2vw, 1.28rem); color: var(--ink); }
.hero-logo { width: 128px; height: 128px; border-radius: 50%; margin-bottom: 1.4rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { border-color: var(--pine-soft); }
.card-link:hover h3 { color: var(--pine-dark); }

/* ---------- Info strip (hours / address / phone) ---------- */
.infostrip { background: var(--pine); color: #fff; }
.infostrip .wrap {
  display: grid; gap: 1.5rem; padding-top: 1.9rem; padding-bottom: 1.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.infostrip h2, .infostrip h3 { color: #fff; font-size: 1rem; margin-bottom: .4rem; }
.infostrip p, .infostrip li { color: #EDF1EC; margin-bottom: .2em; }
.infostrip a { color: #fff; }
.infostrip ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Document list ---------- */
.doclist { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.doc {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.35rem 1.5rem; box-shadow: var(--shadow);
}
.doc-icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px;
  background: var(--mz-mid); color: var(--pine);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.doc-body { flex: 1 1 auto; min-width: 0; }
.doc-body h3 { margin: 0 0 .25rem; font-size: 1.08rem; }
.doc-body p { margin: 0 0 .7rem; color: var(--ink-soft); font-size: .95rem; }
.doc-meta { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Notice blocks (required postings) ---------- */
.notice {
  background: var(--white); border: 1px solid var(--rule);
  border-left: 5px solid var(--pine); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.notice h2, .notice h3 { margin-top: 0; }
.notice ol { padding-left: 1.25em; }
.notice :last-child { margin-bottom: 0; }

.callout {
  background: var(--mz-mid); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin: 1.6rem 0;
}
.callout :last-child { margin-bottom: 0; }

/* ---------- Crisis / help box ---------- */
.crisis {
  background: var(--pine); color: #fff; border-radius: var(--radius);
  padding: 1.5rem 1.7rem; margin: 1.8rem 0;
}
.crisis h3 { color: #fff; margin-top: 0; }
.crisis a { color: #fff; font-weight: 600; }
.crisis p:last-child { margin-bottom: 0; }

/* ---------- Team ---------- */
.person { text-align: left; }
.person .role {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--pine-soft); font-weight: 700; margin-bottom: .3rem;
}
.person h3 { margin: 0 0 .3rem; }

/* ---------- Definition rows (hours etc.) ---------- */
.rows { margin: 0; }
.rows div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid var(--rule);
}
.rows div:last-child { border-bottom: 0; }
.rows dt { font-weight: 600; margin: 0; }
.rows dd { margin: 0; text-align: right; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-dark); color: #DCE3DD;
  padding: 3rem 0 1.6rem; margin-top: 0;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.site-footer a { color: #fff; }
.site-footer .grid { gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16); margin-top: 2.2rem; padding-top: 1.2rem;
  font-size: .86rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35em; }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .header-inner { justify-content: center; text-align: center; }
  .nav { justify-content: center; width: 100%; order: 3; }
  .header-phone { order: 2; }
}
@media (max-width: 560px) {
  .brand-name { font-size: 1.06rem; }
  .brand img { width: 44px; height: 44px; }
  .nav a { padding: .45rem .55rem; font-size: .9rem; }
  .doc { flex-direction: column; gap: .8rem; }
  .rows div { flex-direction: column; gap: .1rem; }
  .rows dd { text-align: left; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .btn-row, .skip, .crisis { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .section { padding: .6rem 0; border: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
