/* ==========================================================================
   Footing Practice Partners — styling modeled on coronishealth.com
   Font: Instrument Sans · Palette: navy #083161 / blue #2365b0
   ========================================================================== */

:root {
  /* Brand palette (sampled from Coronis Health) */
  --navy:        #083161;
  --navy-deep:   #021b39;
  --blue:        #2365b0;
  --blue-bright: #356fde;
  --blue-tint:   #4881ee;
  --alice:       #f0f8ff;
  --blue-soft:   #beddff;

  /* Untitled-UI gray scale (as used by Coronis) */
  --ink:    #101828;
  --body:   #475467;
  --muted:  #667085;
  --line:   #eaecf0;
  --line-2: #d0d5dd;
  --soft:   #f9fafb;
  --white:  #ffffff;

  /* Buttons */
  --btn:       #2365b0;
  --btn-hover: #051c38;

  --container: 1140px;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(16,24,40,.06), 0 12px 28px -12px rgba(8,49,97,.18);
  --shadow-lg: 0 24px 60px -20px rgba(8,49,97,.30);
  --ease:      cubic-bezier(.16,.84,.44,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(24px, 4vw, 40px); }
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--alice { background: var(--alice); }
.section--soft  { background: var(--soft); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; }
.section-head p { font-size: 19px; color: var(--muted); }
.lead { font-size: 19px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease),
              transform .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--btn);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(35,101,176,.6);
}
.btn--primary:hover { background: var(--btn-hover); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--navy); background: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--alice); transform: translateY(-2px); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__menu { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), var(--blue-bright));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(8,49,97,.55);
}
.brand__name { font-weight: 700; color: var(--ink); font-size: 18px; letter-spacing: -0.01em; }
.brand__name span { color: var(--blue); }

.nav__links { display: flex; align-items: center; gap: 34px; list-style: none; padding: 0; }
.nav__links a {
  color: var(--body);
  font-weight: 500;
  font-size: 16px;
  position: relative;
  transition: color .18s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--blue);
  transition: width .22s var(--ease);
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 14px; }

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  width: 44px; height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: var(--navy); border-radius: 2px; position: relative;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Dotted accent ---------- */
.dots {
  background-image: radial-gradient(var(--blue-soft) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 480px at 88% -8%, var(--alice), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 56px;
  align-items: center;
  /* only override vertical padding — keep the container's responsive horizontal padding */
  padding-top: 92px;
  padding-bottom: 100px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); color: var(--ink); margin-bottom: 22px; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--blue), var(--blue-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 20px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note { margin-top: 22px; font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.hero__note svg { flex: none; }

/* Hero mock dashboard card */
.hero__art { position: relative; }
.mock {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  z-index: 2;
}
.mock::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 20px; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.mock__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mock__title { font-weight: 700; color: var(--ink); font-size: 17px; }
.mock__date { font-size: 13px; color: var(--muted); }
.mock__stat { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.mock__stat b { font-size: 30px; color: var(--ink); letter-spacing: -.02em; }
.mock__delta { color: #067647; font-weight: 600; font-size: 14px; }
.mock__label { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.mock__chart { width: 100%; height: 78px; margin-bottom: 20px; }
.mock__list { list-style: none; padding: 0; display: grid; gap: 11px; }
.mock__list li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--body); }
.mock__check {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--alice); display: grid; place-items: center;
}
.mock__foot {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
/* floating chips behind/around mock */
.chip {
  position: absolute; z-index: 3;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 12px; padding: 12px 15px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px; color: var(--ink);
}
.chip svg { flex: none; }
.chip--tl { top: -22px; left: -26px; }
.chip--br { bottom: -24px; right: -22px; }
.chip > div > span { display: block; line-height: 1.25; }
.chip__sub { font-weight: 500; color: var(--muted); font-size: 12px; }

/* ---------- Logo / trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; padding: 30px 0; }
.trust__label { font-size: 14px; color: var(--muted); font-weight: 500; }
.trust__items { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.trust__item { display: flex; align-items: center; gap: 9px; color: var(--navy); font-weight: 600; font-size: 15px; }
.trust__item svg { color: var(--blue); }

/* ---------- Problem band ---------- */
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.problem h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 18px; }
.problem__list { list-style: none; padding: 0; display: grid; gap: 14px; }
.problem__list li {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
  color: var(--body); box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.problem__list .x {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fef3f2; color: #d92d20; display: grid; place-items: center; margin-top: 1px;
}

/* ---------- Service cards (What we do) ---------- */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-soft); }
.card__icon {
  width: 58px; height: 58px; border-radius: 15px;
  background: linear-gradient(135deg, var(--alice), var(--blue-soft));
  color: var(--navy); display: grid; place-items: center; margin-bottom: 22px;
}
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card p { color: var(--body); }
.card__list { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; }
.card__list li { display: flex; gap: 10px; align-items: center; color: var(--body); font-size: 15.5px; }
.card__list svg { color: var(--blue); flex: none; }

/* ---------- Built for podiatry (feature band) ---------- */
.feature {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #cdd8e6; position: relative; overflow: hidden;
}
.feature .dots {
  position: absolute; inset: 0; opacity: .10;
  background-image: radial-gradient(#9cc3ff 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.feature__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature h2 { color: #fff; font-size: clamp(28px, 3.8vw, 40px); margin-bottom: 18px; }
.feature p { color: #b8c6da; font-size: 19px; }
.feature__points { list-style: none; padding: 0; display: grid; gap: 18px; }
.feature__points li { display: flex; gap: 15px; align-items: flex-start; }
.feature__points .ic {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center; color: #9cc3ff;
}
.feature__points b { color: #fff; display: block; font-size: 17px; margin-bottom: 3px; }
.feature__points span { color: #adbdd2; font-size: 15.5px; }

/* ---------- How it works (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow);
}
.step__num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--alice); color: var(--blue); border: 1px solid var(--blue-soft);
  display: grid; place-items: center; font-weight: 700; font-size: 19px; margin-bottom: 20px;
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--body); font-size: 16px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 58px; right: -18px; width: 36px; height: 2px;
  background: linear-gradient(90deg, var(--blue-soft), transparent);
}

/* ---------- Team ---------- */
.team-grid { display: flex; justify-content: center; gap: 26px; }
.team-grid .member { flex: 0 1 440px; }
.member {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.member__avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 26px;
  letter-spacing: .02em; box-shadow: 0 10px 22px -10px rgba(8,49,97,.6);
}
.member__avatar.a1 { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.member__avatar.a2 { background: linear-gradient(135deg, var(--blue), var(--blue-bright)); }
.member__avatar.a3 { background: linear-gradient(135deg, var(--blue-bright), var(--blue-tint)); }
.member__avatar.a4 { background: linear-gradient(135deg, #2f6fbf, #5b8def); }
.member h3 { font-size: 19px; margin-bottom: 2px; }
.member__role { color: var(--blue); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.member p { color: var(--body); font-size: 15px; line-height: 1.55; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; }
.contact .lead { margin-bottom: 28px; }
.contact__points { list-style: none; padding: 0; display: grid; gap: 16px; }
.contact__points li { display: flex; gap: 13px; align-items: center; color: var(--body); }
.contact__points .ic {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: var(--alice); color: var(--navy); display: grid; place-items: center;
}
.contact__points b { color: var(--ink); display: block; font-size: 15px; }
.contact__points span { font-size: 14px; color: var(--muted); }

.form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 13px 14px; font-size: 16px; font-family: inherit;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .18s, box-shadow .18s;
}
.field input::placeholder { color: #98a2b3; }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(35,101,176,.12);
}
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form__msg {
  display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: #ecfdf3; color: #067647; border: 1px solid #abefc6; font-size: 15px; font-weight: 500;
}
.form__msg.show { display: block; }
.form__fine { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #9fb1c9; padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer .brand__name { color: #fff; }
.footer .brand__name span { color: var(--blue-soft); }
.footer__about { margin-top: 16px; max-width: 340px; font-size: 15px; color: #8ea2bd; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer a { color: #9fb1c9; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 26px; font-size: 14px; color: #76889f; }

/* ---------- Reveal on scroll (only when JS is active, so it degrades gracefully) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .problem__grid, .feature__grid, .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__art { max-width: 460px; margin: 0 auto; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: var(--shadow-lg); z-index: 40;
    transform: translateY(-130%); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .22s var(--ease), visibility 0s linear .3s;
  }
  body.menu-open .nav__links {
    transform: translateY(0); opacity: 1; visibility: visible;
    transition: transform .3s var(--ease), opacity .22s var(--ease), visibility 0s;
  }
  .nav__links a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__links a::after { display: none; }
  .nav__cta .btn--nav { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 680px) {
  .section { padding: 68px 0; }
  .cards-2, .form__row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .hero__grid { padding-top: 56px; padding-bottom: 70px; }
  .chip--tl { left: 0; top: -16px; }
  .chip--br { right: 0; bottom: -16px; }
  body { font-size: 16px; }
}
