/* ==========================================================
   Dr. Jay Mathur, DO — site styles
   Colors and sizes are set once here and used everywhere.
   To change a color site-wide, edit it in :root below.
   ========================================================== */

:root {
  --navy: #12306b;        /* headings, header text, dark sections */
  --navy-dark: #0c2152;
  --orange: #e8731a;      /* buttons and accents */
  --orange-dark: #c95f0f;
  --teal: #1a9cc4;        /* small accents, from the logo swoosh */
  --cream: #fbf7f1;       /* warm page background */
  --sand: #f3ece2;        /* alternate section background */
  --white: #ffffff;
  --text: #24304a;        /* body text: dark, high contrast */
  --muted: #4c5a72;
  --line: #e3dccf;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.25rem;          /* about 20px: large and easy to read */
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: #e9eef8; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 0.6rem;
}
.section--navy .eyebrow { color: #ffb070; }

.lead { font-size: 1.4rem; color: var(--muted); max-width: 46rem; }
.section--navy .lead { color: #d3ddef; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Accessibility: visible focus outline for keyboard users */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white); padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 56px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange:hover { background: var(--orange-dark); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.section--navy .btn--outline { border-color: var(--white); color: var(--white); }
.section--navy .btn--outline:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--orange);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand img { width: 62px; height: auto; }
.brand-name {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy); line-height: 1.1;
}
.brand-tag {
  display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-dark); margin-top: 0.2rem;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  display: block; padding: 0.6rem 0.85rem; border-radius: 8px;
  font-size: 1.1rem; font-weight: 600; text-decoration: none; color: var(--navy); white-space: nowrap;
}
.site-nav a:hover { background: var(--sand); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--orange-dark); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.site-nav .nav-call { margin-left: 0.5rem; }
.site-nav .nav-call a { background: var(--orange); color: var(--white); border-radius: 999px; padding: 0.65rem 1.2rem; box-shadow: none; }
.site-nav .nav-call a:hover { background: var(--orange-dark); }

.menu-toggle {
  display: none;
  font: inherit; font-size: 1.1rem; font-weight: 700; color: var(--navy);
  background: var(--sand); border: 2px solid var(--navy); border-radius: 10px;
  min-height: 52px; padding: 0.5rem 1rem; cursor: pointer;
}

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 4px solid var(--orange); box-shadow: 0 12px 24px rgba(12,33,82,0.12); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.75rem 1.25rem 1.25rem; gap: 0.25rem; }
  .site-nav a { font-size: 1.3rem; padding: 0.9rem 1rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); }
  .site-nav .nav-call { margin: 0.5rem 0 0; }
  .site-nav .nav-call a { text-align: center; }
  .brand-name { font-size: 1.3rem; }
  .brand img { width: 52px; }
}
@media (max-width: 480px) {
  .header-inner { min-height: 72px; }
  .brand { gap: 0.5rem; }
  .brand img { width: 44px; }
  .brand-name { font-size: 1.1rem; white-space: nowrap; }
  .brand-tag { display: none; }
  .menu-toggle { padding: 0.4rem 0.75rem; min-height: 48px; }
}

/* ---------- New-patient banner ---------- */
.notice {
  background: var(--navy); color: var(--white);
  text-align: center; font-size: 1.1rem; font-weight: 600; padding: 0.7rem 1rem;
}
.notice strong { color: #ffb070; }

/* ---------- Hero (top of home page) ---------- */
.hero { background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%); padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero-photo { position: relative; isolation: isolate; margin: 0; }
.hero-photo img { border-radius: 22px; box-shadow: 0 24px 50px rgba(12,33,82,0.18); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; width: 100%; }
.hero-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 3px solid var(--orange); border-radius: 22px; z-index: -1;
}
.hero-photo figcaption { margin-top: 1.4rem; font-size: 1.05rem; color: var(--muted); text-align: center; }
.hero-photo figcaption strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }

.trust-list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; color: var(--muted); font-size: 1.05rem; font-weight: 600; }
.trust-list li::before { content: "✓"; color: var(--orange); font-weight: 800; margin-right: 0.45rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 320px; margin-inline: auto; }
  .hero-photo::before { inset: 12px -12px -12px 12px; }
}

/* ---------- Cards and grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 6px 18px rgba(12,33,82,0.06);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; margin-bottom: 1rem; }
.card .icon svg { width: 28px; height: 28px; stroke: var(--navy); }

/* The two ways to receive care */
.option { display: flex; flex-direction: column; padding: 2.25rem; }
.option--member { border-top-color: var(--orange); }
.option--medicare { border-top-color: var(--teal); }
.option .tag { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.option h3 { font-size: 1.75rem; margin-top: 0.3rem; }
.option ul { padding-left: 0; list-style: none; margin: 0.5rem 0 1.5rem; }
.option li { padding-left: 1.8rem; position: relative; margin-bottom: 0.6rem; }
.option li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--orange); }
.option--medicare li::before { color: var(--teal); }
.option .btn { margin-top: auto; align-self: flex-start; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.checklist li { padding-left: 2.2rem; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0.1rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--orange); color: var(--white); font-size: 0.95rem; font-weight: 800;
  display: grid; place-items: center;
}
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr; } }

/* Two-column text + image block */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: 20px; box-shadow: 0 18px 40px rgba(12,33,82,0.15); }
.split--map { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 860px) { .split, .split--map { grid-template-columns: 1fr; } .split img { max-width: 360px; margin-inline: auto; } }

.quote-box {
  background: var(--white); border-left: 6px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem; font-size: 1.3rem; color: var(--navy);
}

/* Organization cards (About page) */
.org { display: flex; flex-direction: column; }
.org h3 { margin-bottom: 0.15em; }
.org-desc { color: var(--muted); font-size: 1.1rem; font-style: italic; margin-bottom: 0.9rem; }
.org-roles { list-style: none; padding: 0; margin: 0 0 1rem; }
.org-roles li { font-weight: 700; color: var(--navy); padding-left: 1.2rem; position: relative; margin-bottom: 0.25rem; }
.org-roles li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.org-tags { margin-top: auto; padding-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.org-tags span { font-size: 0.9rem; font-weight: 700; color: var(--navy); background: var(--sand); border-radius: 999px; padding: 0.25rem 0.8rem; }

/* Page title band (inner pages) */
.page-title { background: var(--white); padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-title h1 { margin-bottom: 0.3em; }

/* Background / credentials list on About page */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 1rem 0 1rem 1.5rem; border-left: 3px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 1.45rem; width: 15px; height: 15px; border-radius: 50%; background: var(--orange); }
.timeline strong { color: var(--navy); display: block; font-size: 1.2rem; }
.timeline span { color: var(--muted); }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.pill-row li { background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 1rem; font-weight: 600; color: var(--navy); font-size: 1.05rem; }

/* Comparison table (Services page) */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 1.1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--navy); color: var(--white); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.compare tbody th { color: var(--navy); width: 28%; background: var(--cream); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 3px solid var(--line); }
  .compare tbody th { background: var(--navy); color: var(--white); }
  .compare td::before { content: attr(data-label); display: block; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-dark); }
}

/* Map (Service Area page) */
.map-wrap { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; box-shadow: 0 8px 24px rgba(12,33,82,0.07); }
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-note { font-size: 1rem; color: var(--muted); text-align: center; margin: 0.75rem 0 0; }

/* Contact page */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .icon { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; }
.contact-item .icon svg { width: 26px; height: 26px; stroke: var(--navy); }
.contact-item .label { display: block; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-item .value { font-size: 1.35rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.contact-item a.value:hover { color: var(--orange-dark); text-decoration: underline; }
.form-embed { width: 100%; height: 1500px; border: 0; border-radius: 10px; background: var(--white); }
.big-phone { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.2rem); color: var(--navy); text-decoration: none; font-weight: 600; display: inline-block; }
.big-phone:hover { color: var(--orange-dark); }

/* Closing call-to-action band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 40rem; margin-inline: auto; }
.cta-band .lead { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #cfd8ea; padding: 3rem 0 6rem; font-size: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: 1.3rem; color: var(--white); margin-bottom: 0.6rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #ffb070; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.footer-brand img { width: 56px; background: var(--white); border-radius: 12px; padding: 6px; }
.footer-brand span { font-family: var(--serif); font-size: 1.4rem; color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.95rem; color: #a9b6cf; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .site-footer { padding-bottom: 3rem; } }

/* ---------- "Call" bar fixed to the bottom of phone screens ---------- */
.mobile-call { display: none; }
@media (max-width: 760px) {
  .mobile-call {
    display: flex; gap: 0.6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(12,33,82,0.12);
  }
  .mobile-call .btn { flex: 1; min-height: 54px; font-size: 1.1rem; padding: 0.6rem 0.8rem; }
}
