/* Hallmark · shape: Index (kept directory, recomposed) · genre: editorial · theme: brand · redesign: full
 * paper: oklch(97% 0.013 85) · accent: oklch(50% 0.09 174) · display: Playfair Display · body: Inter · hero: Banner · nav: masthead · footer: colophon · signature: the five offices as a ruled directory
 * axes: paper/serif/teal · posture: restrained · contrast: pass · fold: pass · draw: da36a3 · hero-review: skipped (redesign) · finish-review: subagent · 6 findings · 6 resolved · gap: none · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V5 · weakest: P, a hub page leans generic; led with the office directory (the reason to come) not a stock hero */
/* Hallmark · waive 83 · five office photos and two doctor portraits carry the practice · the real doctors and patient are the page material */
/* Hallmark · waive 49b · five real street addresses each two lines at 320px · a full street address cannot shorten */
/* Hallmark · reworded the hero, section and office heads · 54 names the eyebrow, 58 names the screen, 67 names the tracked caps; every address, phone and hours kept verbatim */
/* Hallmark · dropped "Visit Website" · 19 names it a stock second action beside the primary */
/* Hallmark · dismissed render · the Gotham Book woff serves 200; the shot caught the font-display swap frame, Inter loads first in the stack */
@import url("./tokens.css");
@import url("./base.css");

@font-face {
  font-family: 'Gotham Book';
  src: url('fonts/gotham-book-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---- Masthead (kept: logo, one action) ---- */
.masthead {
  position: sticky; top: 0; z-index: var(--z-sticky-nav);
  background: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
  min-height: 72px;
}
.wordmark { display: inline-flex; }
.logo { height: 48px; width: auto; }

/* ---- Buttons: one filled primary (accent), one ruled secondary ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--space-lg);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  letter-spacing: 0; line-height: 1; border-radius: var(--radius-card);
  border: var(--rule-hair) solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); }
.btn--primary:active { background: var(--color-accent-2); transform: translateY(1px); }
/* Two-tone focus ring: dark ring + paper halo, clears 3:1 on both paper and accent surfaces */
.btn--primary:focus-visible, .office-phone:focus-visible, .tst-dot:focus-visible {
  outline: 2px solid var(--color-focus); outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-focus-halo);
}
.btn--secondary { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn--secondary:hover { background: color-mix(in oklab, var(--color-accent) 10%, transparent); }
.btn--secondary:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 var(--space-md); }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.tst-close { margin-top: var(--space-lg); text-align: center; }

/* ---- Hero (Banner: copy left, photo right; directory peeks above fold) ---- */
.hero { padding-block: var(--space-2xl) var(--space-3xl); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl); align-items: center;
}
.hero-head { max-width: 16ch; }
.hero-sub { margin-top: var(--space-lg); color: var(--color-ink-2); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero-trust { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }
.stars { color: var(--color-star); letter-spacing: 0.1em; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; height: auto; max-height: 64svh; object-fit: cover; border-radius: var(--radius-card); border: var(--rule-hair) solid var(--color-rule); }
.hero-figure figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

/* ---- Section head ---- */
section { padding-block: var(--section-gap); }
.section-head { max-width: 62ch; margin-bottom: var(--space-2xl); }
.section-head .lead { margin-top: var(--space-md); color: var(--color-muted); }
.band { background: var(--color-paper-2); }

/* ---- Office directory (signature: a ruled list, not cards) ---- */
.office-list { list-style: none; margin: 0; padding: 0; }
.office {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: var(--space-xl); align-items: start;
  padding-block: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.office:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.office h3 { font-size: var(--text-title); color: var(--color-accent); }
.office-blurb { margin-top: var(--space-2xs); color: var(--color-ink-2); font-size: var(--text-sm); }
.office-addr { margin-top: var(--space-sm); }
.office-addr a { color: var(--color-ink-2); text-decoration: none; border-bottom: var(--rule-hair) solid var(--color-rule); }
.office-addr a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.office-hours { margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }
.office-call { text-align: right; }
.office-phone {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-xl); color: var(--color-accent); text-decoration: none;
}
.office-phone:hover { color: var(--color-accent-2); }
.office-sub { display: block; margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.office-sub a { color: var(--color-muted); text-decoration: none; }
.office-sub a:hover { color: var(--color-accent); }
.office-actions { display: flex; gap: var(--space-xs); justify-content: flex-end; margin-top: var(--space-md); }

/* ---- Founders (kept: two portraits, two sub-sites) ---- */
.founders-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); }
.founder { margin: 0; }
.founder-link { display: block; text-decoration: none; }
.founder img { width: 100%; height: auto; aspect-ratio: 730 / 640; object-fit: cover; border-radius: var(--radius-card); border: var(--rule-hair) solid var(--color-rule); transition: border-color var(--dur-micro) var(--ease-out); }
.founder-link { color: inherit; text-decoration: none; }
.founder-link:hover img { border-color: var(--color-accent); }
.founder figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.founder-link:hover figcaption { color: var(--color-accent); text-decoration: underline; text-underline-offset: 0.2em; }

/* ---- Testimonials (kept carousel, themed) ---- */
.tst-carousel { position: relative; }
.tst-track { display: flex; gap: var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding: var(--space-2xs) 0; }
.tst-track::-webkit-scrollbar { display: none; }
.tst-slide { flex: 0 0 85%; scroll-snap-align: center; background: var(--color-card); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-lg); margin: 0; display: flex; flex-direction: column; }
@media (min-width: 768px) { .tst-slide { flex: 0 0 calc((100% - var(--space-lg)) / 3); } }
.tst-stars { color: var(--color-star); letter-spacing: 0.1em; margin-bottom: var(--space-sm); font-size: var(--text-md); }
.tst-quote { color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.6; margin-bottom: var(--space-md); flex: 1 1 auto; }
.tst-cite { color: var(--color-accent); font-size: var(--text-sm); font-style: normal; }
.tst-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-pill);
  border: var(--rule-hair) solid var(--color-rule); background: var(--color-card); color: var(--color-accent);
  cursor: pointer;
}
.tst-nav:hover { background: var(--color-paper-2); }
.tst-nav:active { transform: translateY(calc(-50% + 1px)); }
.tst-prev { left: -8px; } .tst-next { right: -8px; }
@media (max-width: 767px) { .tst-prev { left: 0; } .tst-next { right: 0; } }
.tst-dots { display: flex; justify-content: center; gap: var(--space-xs); margin-top: var(--space-md); }
.tst-dot { width: 10px; height: 10px; border-radius: var(--radius-pill); border: none; background: var(--color-rule-2); cursor: pointer; padding: var(--space-xs); background-clip: content-box; }
.tst-dot[aria-current="true"] { background: var(--color-accent); }
.tst-pause { position: absolute; top: -52px; right: 0; background: none; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); color: var(--color-accent); font-size: var(--text-sm); padding: 0 var(--space-md); min-height: 44px; cursor: pointer; }

/* ---- Closing (kept: EN + ES) ---- */
.closing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl); }
.closing-block h2 { font-size: var(--text-title); }
.closing-block p { margin-top: var(--space-md); margin-bottom: var(--space-lg); color: var(--color-ink-2); }

/* ---- Footer (colophon) ---- */
.site-foot { background: var(--color-ink); color: var(--color-paper); padding-block: var(--space-2xl); padding-bottom: calc(var(--space-2xl) + var(--sticky-h)); }
.foot-line { color: var(--color-paper); }
.foot-links { margin-top: var(--space-md); display: flex; flex-wrap: wrap; gap: var(--space-md); }
.foot-links a { color: var(--color-paper); text-decoration: underline; text-underline-offset: 0.2em; }
.foot-links a:hover { text-decoration-thickness: 2px; }

/* ---- Skip link (no horizontal overflow) ---- */
.skip-link {
  position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-tooltip);
  background: var(--color-accent); color: var(--color-accent-ink);
  padding: var(--space-sm) var(--space-md); border-radius: var(--radius-card); text-decoration: none;
}
.skip-link:focus { top: var(--space-md); }

/* ---- Mobile sticky call (kept) ---- */
.sticky-call {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  background: var(--color-accent);
  padding: var(--space-sm) var(--space-md);
  padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
}
.sticky-call a { display: block; text-align: center; color: var(--color-accent-ink); font-weight: 600; text-decoration: none; min-height: 44px; line-height: 44px; }
@media (max-width: 767px) {
  .sticky-call { display: block; }
  body { padding-bottom: var(--sticky-h); }
}

/* ---- Responsive ---- */
@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .office { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .office-call { text-align: left; }
  .office-actions { justify-content: flex-start; }
}
@media (max-width: 40rem) {
  .founders-grid { grid-template-columns: minmax(0, 1fr); }
  .closing-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: var(--space-3xl); }
}
