/* ==========================================================================
   The Foot Doctor — styles
   Palette: #881B20 maroon · #FEFFFF white · #00BFB2 aqua · #1A5E63 deep teal · #028090 teal
   ========================================================================== */

:root {
  --maroon: #881B20;
  --maroon-dark: #6B1418;
  --white: #FEFFFF;
  --aqua: #00BFB2;
  --teal-deep: #1A5E63;
  --teal: #028090;

  --ink: #17363A;
  --muted: #4E6B6E;
  --tint: #EEF7F7;
  --line: #D6E7E8;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 54, 58, .06), 0 8px 24px rgba(23, 54, 58, .08);
  --container: 1140px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--teal-deep); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--teal-deep); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .6em;
}
.eyebrow--light { color: var(--aqua); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.25em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn--accent { background: var(--maroon); color: var(--white); }
.btn--accent:hover { background: var(--maroon-dark); color: var(--white); }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-deep); color: var(--white); }
.btn--ghost { border-color: var(--teal); color: var(--teal-deep); background: transparent; }
.btn--ghost:hover { background: var(--teal); color: var(--white); }

/* Top bar & header ------------------------------------------------------- */
.topbar { background: var(--teal-deep); color: var(--white); font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--white); font-weight: 600; text-decoration: none; }
.topbar a:hover { color: var(--aqua); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--teal-deep); }
.brand__sub { font-size: .8rem; font-weight: 500; color: var(--teal); letter-spacing: .02em; }
.brand--light .brand__name { color: var(--white); }
.brand--light .brand__sub { color: var(--aqua); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.site-nav ul a { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: .25em 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--teal); border-bottom-color: var(--aqua); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: 8px;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--teal-deep);
  border-radius: 2px; transition: transform .2s, top .2s, opacity .2s; content: "";
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { left: 0; top: -7px; }
.nav-toggle__bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1200px 500px at 110% -10%, rgba(0, 191, 178, .16), transparent 60%),
    linear-gradient(180deg, var(--tint), var(--white));
  padding: clamp(40px, 7vw, 88px) 0;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }
.hero__media { position: relative; }
.hero__media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border-radius: calc(var(--radius) + 6px); background: var(--aqua); opacity: .25;
}
.hero__media img { position: relative; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }

/* Quick facts ------------------------------------------------------------ */
.quick { margin-top: -8px; position: relative; z-index: 2; }
.quick__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0; overflow: hidden;
}
.quick__item {
  display: flex; align-items: center; gap: 14px; padding: 22px 24px;
  text-decoration: none; color: var(--ink); line-height: 1.4;
}
.quick__item + .quick__item { border-left: 1px solid var(--line); }
.quick__item:hover { background: var(--tint); color: var(--ink); }
.quick__item strong { color: var(--teal-deep); }
.quick__icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0, 191, 178, .14); color: var(--teal);
}
.quick__icon svg { width: 22px; height: 22px; }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--teal-deep); color: var(--white); }
.section--dark h2 { color: var(--white); }
.section__head { max-width: 40em; margin-bottom: 2.5rem; }
.section__head p:last-child { color: var(--muted); }

/* Services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 20px; border-top: 4px solid var(--aqua);
  transition: box-shadow .2s, transform .2s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service:nth-child(3n+2) { border-top-color: var(--teal); }
.service:nth-child(3n) { border-top-color: var(--teal-deep); }
.service h3 { margin-bottom: .35em; }
.service p { color: var(--muted); margin: 0; font-size: 1rem; }
.services__note { margin-top: 2rem; color: var(--muted); }
.services__note p, .insurers__note p { margin: 0; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.person {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: start;
  background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.person__photo { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; border: 5px solid var(--white); box-shadow: 0 0 0 3px var(--aqua); }
.person__role { color: var(--maroon); font-weight: 600; margin-top: -.25em; }
.person p:last-child { color: var(--muted); margin-bottom: 0; }

/* Office */
.office { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.office__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 11 / 8; object-fit: cover; width: 100%; }
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.location h3 { margin-bottom: .4em; }
.location address { margin-bottom: .6rem; }
.location__hours { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.location__phone a { font-size: 1.2rem; font-weight: 700; color: var(--maroon); text-decoration: none; }
.location__phone a:hover { color: var(--maroon-dark); }
.maps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* Hours */
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hours p { color: rgba(254, 255, 255, .85); max-width: 30em; margin-bottom: 1.75rem; }
.hours__table { width: 100%; border-collapse: collapse; background: rgba(254, 255, 255, .06); border-radius: var(--radius); overflow: hidden; }
.hours__table th, .hours__table td { padding: 14px 22px; text-align: left; border-bottom: 1px solid rgba(254, 255, 255, .12); }
.hours__table tr:last-child th, .hours__table tr:last-child td { border-bottom: 0; }
.hours__table th { font-weight: 600; }
.hours__table td { text-align: right; color: rgba(254, 255, 255, .9); }
.hours__slot { display: block; }
.hours__loc { display: block; font-size: .8rem; color: var(--aqua); }
.hours__table tr.is-today { background: var(--teal); }
.hours__table tr.is-today .hours__loc { color: var(--white); }
.hours__table tr.is-today th::after {
  content: "Today"; margin-left: .6em; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; background: var(--aqua); color: var(--teal-deep); padding: 2px 8px; border-radius: 999px; vertical-align: middle;
}

/* Insurance */
.insurers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.insurers li {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 600; color: var(--teal-deep);
}
.insurers li::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--aqua);
}
.insurers__note { margin: 1.75rem 0 0; color: var(--muted); }

/* New patients */
.steps { list-style: none; margin: 0 0 3.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step { background: var(--tint); border-radius: var(--radius); padding: 26px 24px; }
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: var(--white); font-weight: 700; margin-bottom: 14px;
}
.step p { margin: 0; color: var(--muted); }

.forms__title { font-size: 1.5rem; }
.forms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.form-card:hover { border-color: var(--teal); box-shadow: var(--shadow); color: var(--ink); }
.form-card__icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 56px; border-radius: 6px;
  background: var(--maroon); color: var(--white); font-size: .75rem; font-weight: 700; letter-spacing: .05em;
}
.form-card__text { display: flex; flex-direction: column; flex: 1; line-height: 1.35; }
.form-card__text strong { color: var(--teal-deep); }
.form-card__text span { font-size: .92rem; color: var(--muted); }
.form-card__cta { font-weight: 600; color: var(--teal); white-space: nowrap; }
.forms__note { margin-top: 1.75rem; color: var(--muted); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: #133F43; color: rgba(254, 255, 255, .85); padding: 56px 0 24px; font-size: .98rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--aqua); }
.site-footer address + address { margin-top: 1em; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer__heading { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); margin-bottom: .9em; }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(254, 255, 255, .14);
  font-size: .85rem; color: rgba(254, 255, 255, .65);
}
.site-footer__legal p { margin: 0; }

/* Floating call button (mobile only) */
.call-fab { display: none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 20px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav ul a:hover { border-bottom-color: var(--line); }
  .site-nav__call { margin-top: 16px; }
}

@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .topbar { display: none; }


  .hero__inner, .office, .hours, .maps { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media::before { display: none; }
  .hero__media img { aspect-ratio: 16 / 9; }

  .quick { margin-top: 0; padding-top: 24px; }
  .quick__grid { grid-template-columns: 1fr; }
  .quick__item + .quick__item { border-left: 0; border-top: 1px solid var(--line); }

  .steps, .forms { grid-template-columns: 1fr; }
  .insurers { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr; }

  body { padding-bottom: 76px; }
  .call-fab {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
    background: var(--maroon); color: var(--white); text-decoration: none; font-weight: 700;
    padding: 14px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(136, 27, 32, .35);
  }
  .call-fab:hover { color: var(--white); background: var(--maroon-dark); }
}

@media (max-width: 600px) {
  .locations { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .insurers li { padding: 14px 16px; font-size: .95rem; }
  .person { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .person__photo { width: 160px; height: 160px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hours__table th, .hours__table td { padding: 12px 16px; }
  .brand__name { font-size: 1.2rem; }
  .form-card__cta { display: none; }
}
