/* The Foot and Ankle Specialists — site styles
   Tokens sampled from the live site; layout follows design/home-mockup.html */

/* Roboto Slab, self-hosted. Served from Google Fonts the headings silently fell
   back to Georgia for anyone behind an ad-blocker or privacy extension, which is
   a large share of visitors. These are the same variable-font files Google serves
   (Apache 2.0 — see assets/fonts/LICENSE.txt); one file covers 400/500/700. */
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-slab-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-slab-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy:     #1f3e7c;
  --blue:     #3257b8;
  --blue-lt:  #5e86c9;
  --gold:     #f2b705;
  --butter:   #fdf0a8;
  --butter-2: #fbe36b;
  --sky:      #cfe0f0;
  --ink:      #38383c;
  --ink-soft: #5a5d68;
  --card:     #e9ecf2;
  --page:     #ffffff;
  --rule:     #e4e8f0;

  --slab: "Roboto Slab", Georgia, "Times New Roman", serif;
  --sans: "PPMori", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shell: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- layout ---------- */

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

section { padding: 56px 0; }
section.tight { padding: 40px 0; }

/* the yellow/blue blob ground from Why Choose Us */
.blobs { position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, #fdfcf4 0%, #f4f7fb 100%); }
.blobs::before, .blobs::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px);
  pointer-events: none;
}
.blobs::before {
  width: 620px; height: 620px; left: -140px; top: -180px;
  background: radial-gradient(circle at 40% 40%, var(--butter-2), var(--butter) 62%, rgba(253,240,168,0) 70%);
  opacity: .85;
}
.blobs::after {
  width: 720px; height: 720px; right: -220px; bottom: -260px;
  background: radial-gradient(circle at 50% 50%, var(--sky), rgba(207,224,240,0) 68%);
  opacity: .9;
}

/* ---------- header ---------- */

.site-header {
  background: #fbfcfe; border-bottom: 1px solid #eef0f4;
  position: sticky; top: 0; z-index: 50;
}
.site-header .shell {
  display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: block; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { display: block; height: 52px; width: auto; }

.navlinks { display: flex; gap: 18px; margin-left: auto; font-size: .86rem; flex-wrap: wrap; }
.navlinks a { color: var(--ink); }
.navlinks a[aria-current="page"] { color: var(--navy); font-weight: 600; }

.navtoggle {
  display: none; margin-left: auto; background: transparent; border: 1px solid var(--rule);
  border-radius: 2px; padding: 8px 12px; font: inherit; font-size: .85rem; color: var(--navy);
  cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block; background: var(--blue); color: #fff; font-weight: 600;
  font-size: .84rem; padding: 10px 18px; border-radius: 2px; white-space: nowrap;
  border: 1px solid var(--blue); cursor: pointer; font-family: inherit;
}
.btn:hover { background: #2a4a9e; border-color: #2a4a9e; text-decoration: none; color: #fff; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: #eef2fb; color: var(--blue); }
.btn.gold { background: var(--gold); color: #2b2200; border-color: var(--gold); }
.btn.gold:hover { background: #d9a504; border-color: #d9a504; color: #2b2200; }
.btn.lg { font-size: .92rem; padding: 12px 22px; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- headings ---------- */

h1, h2 {
  font-family: var(--slab); font-weight: 500; color: var(--navy);
  line-height: 1.15; margin: 0 0 14px; text-wrap: balance;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 2.05rem; }
h1 em, h2 em { font-style: normal; color: var(--blue-lt); }

h3 { font-family: var(--slab); font-weight: 500; color: var(--navy); font-size: 1.15rem; margin: 0 0 8px; }
h4 { font-family: var(--slab); font-weight: 500; color: var(--navy); font-size: .98rem; margin: 4px 0; }

.lede { margin: 0 0 26px; max-width: 68ch; color: var(--ink-soft); font-size: .99rem; }

.eyebrow {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--navy); background: #dbe5f6; display: inline-block;
  padding: 4px 9px; border-radius: 2px; margin-bottom: 12px;
}

.fineprint { font-size: .86rem; color: var(--ink-soft); margin: 12px 0 0; }

/* ---------- page hero ---------- */

.hero h1 { font-size: 2.8rem; margin-bottom: 16px; }
.hero .lede { font-size: 1.04rem; }

.pagehead { padding: 44px 0 36px; }
.pagehead h1 { margin-bottom: 10px; }
.pagehead .lede { margin-bottom: 0; }

/* ---------- grids and cards ---------- */

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card {
  background: #fff; border-left: 4px solid var(--blue); padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(16,24,40,.08);
}
.card.y { border-left-color: var(--gold); }
.card h3 { font-size: 1rem; margin: 0 0 6px; }
.card p { margin: 0 0 8px; font-size: .91rem; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card a.more { font-size: .85rem; font-weight: 600; }

a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; box-shadow: 0 2px 10px rgba(16,24,40,.14); }
a.card:hover h3 { color: var(--blue); }

.plain { background: var(--card); border-left: 0; padding: 20px 22px; }

/* cards that lead with an illustration */
.card.media img {
  display: block; width: 100%; height: auto; margin: 0 0 14px;
  border-radius: 5px; background: #eef3fa;
}

/* video */
.videowrap { margin: 0; max-width: 820px; }
.videowrap video {
  display: block; width: 100%; height: auto; border-radius: 6px;
  background: #0d1117; box-shadow: 0 2px 14px rgba(16,24,40,.16);
}
.videowrap figcaption { margin-top: 10px; }

/* ---------- process steps ---------- */

.steps { margin-top: 26px; counter-reset: s; }
.step { position: relative; padding-left: 44px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.step p { margin: 0; font-size: .88rem; color: var(--ink-soft); }

/* ---------- reviews ---------- */

.revhead { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.review { background: #fff; padding: 22px 20px 18px; position: relative; box-shadow: 0 1px 3px rgba(16,24,40,.10); }
.review::before {
  content: "\201C"; position: absolute; top: -6px; left: -6px;
  font-family: var(--slab); font-size: 2.6rem; color: var(--blue); line-height: 1;
}
.quote { font-size: .9rem; margin: 0 0 12px; }
.who { font-size: .85rem; font-weight: 700; color: var(--ink); margin: 0; }
.rating { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.rating .stars { color: var(--blue); letter-spacing: 2px; font-size: 1rem; }
.rating .n { font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.googlemark { font-family: var(--slab); font-size: 2.6rem; font-weight: 700; line-height: 1; justify-self: end; }
.googlemark i { font-style: normal; }
.g-b { color: #4285f4; } .g-r { color: #ea4335; } .g-y { color: #fbbc05; } .g-g { color: #34a853; }

/* ---------- tables ---------- */

table { width: 100%; border-collapse: collapse; font-size: .89rem; }
td, th { padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; }
tr:last-child td { border-bottom: 0; }
td:first-child, th:first-child { color: var(--navy); font-weight: 600; white-space: nowrap; }

/* ---------- split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.split.wide-left { grid-template-columns: 1.35fr 1fr; }

/* ---------- lists ---------- */

.ticks { list-style: none; padding: 0; margin: 0 0 4px; }
.ticks li {
  position: relative; padding-left: 24px; margin-bottom: 7px; font-size: .91rem; color: var(--ink-soft);
}
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue-lt);
}

/* ---------- condition blocks (Common Problems) ---------- */

.condition { scroll-margin-top: 90px; padding: 28px 0; border-top: 1px solid var(--rule); }
.condition:first-of-type { border-top: 0; }
.condition h2 { font-size: 1.55rem; margin-bottom: 6px; }
.condition h4 { margin-top: 16px; font-size: .92rem; text-transform: uppercase; letter-spacing: .07em; color: var(--blue); }
.condition p { font-size: .93rem; }
.backlink { font-size: .82rem; font-weight: 600; display: inline-block; margin-top: 12px; }

/* ---------- FAQ ---------- */

.faq { background: #fff; border-left: 4px solid var(--blue-lt); padding: 0; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(16,24,40,.08); }
.faq summary {
  cursor: pointer; padding: 14px 18px; font-family: var(--slab); color: var(--navy);
  font-size: .96rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--blue); font-weight: 700; }
.faq[open] summary::after { content: "\2013"; }
.faq p { margin: 0; padding: 0 18px 16px; font-size: .91rem; color: var(--ink-soft); }

/* ---------- form ---------- */

.form { background: #fff; padding: 24px; box-shadow: 0 1px 3px rgba(16,24,40,.10); border-left: 4px solid var(--gold); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid #c9d2e2; border-radius: 2px;
  font: inherit; font-size: .92rem; color: var(--ink); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.req { color: #b3261e; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */

.site-footer { background: var(--navy); color: #dfe6f4; padding: 44px 0 28px; margin-top: 8px; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.site-footer .grid { gap: 28px; }
.site-footer p, .site-footer li { font-size: .88rem; color: #c7d2e8; margin: 0 0 6px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footbar {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18);
  font-size: .8rem; color: #a9b8d6; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split.wide-left { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  /* Keep the sticky bar to one compact row: logo, book button, menu toggle.
     The nav itself drops below only when opened. */
  .site-header .shell { flex-wrap: wrap; gap: 10px; }
  .brand img { height: 44px; }
  .site-header .btn { order: 2; margin-left: auto; font-size: .78rem; padding: 9px 13px; }
  .navtoggle { display: block; order: 3; margin-left: 0; }
  .navlinks {
    display: none; width: 100%; margin-left: 0; flex-direction: column; gap: 0;
    order: 4; border-top: 1px solid var(--rule); padding-top: 8px;
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 9px 2px; font-size: .95rem; }

  .g2, .g3, .g4, .split, .revhead { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  section { padding: 38px 0; }
  .googlemark { justify-self: start; }
}

@media print {
  .site-header, .site-footer, .cta, .navtoggle { display: none; }
  .blobs::before, .blobs::after { display: none; }
  body { color: #000; }
}
