/* Avondale Family Doctor — shared stylesheet for all pages */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0d2b4e;
  --navy-deep: #081c35;
  --blue: #2f6fe0;
  --blue-light: #5c93f0;
  --sky: #eaf2ff;
  --amber: #f0a23d;
  --amber-dark: #d4822a;
  --cream: #fbfaf7;
  --sand: #eef3fa;
  --ink: #142334;
  --muted: #5c6b7e;
  --line: #e1e8f2;
  --alert: #c0432e;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13, 43, 78, 0.06), 0 14px 32px rgba(13, 43, 78, 0.08);
  --shadow-lift: 0 20px 46px rgba(13, 43, 78, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

a { color: var(--blue); }
a:hover { color: var(--navy); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 { font-size: 3rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.95rem; margin: 0 0 0.9rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.4rem; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--amber);
  display: inline-block;
}

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 20; }
.skip-link:focus { left: 8px; }

/* Emergency bar */
.emergency {
  background: var(--navy-deep);
  color: #fff;
  text-align: center;
  font-size: 0.88rem;
  padding: 9px 16px;
  letter-spacing: 0.01em;
}
.emergency a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.emergency strong { color: var(--amber); }

/* Header and navigation */
.site-header { background: rgba(251, 250, 247, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(145deg, var(--blue), var(--navy));
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 26px; font-weight: 500; line-height: 1;
  box-shadow: var(--shadow);
}
.brand-text { font-family: 'Fraunces', serif; font-size: 1.32rem; font-weight: 500; line-height: 1.2; color: var(--navy); }
.brand-text small { display: block; font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.header-phone {
  text-decoration: none; font-weight: 700; color: #fff;
  background: var(--amber); padding: 11px 20px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(240, 162, 61, 0.35);
  transition: background 0.15s, transform 0.15s;
}
.header-phone:hover { background: var(--amber-dark); color: #fff; transform: translateY(-1px); }

.main-nav { border-top: 1px solid var(--line); }
.main-nav ul { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 4px; padding-top: 8px; padding-bottom: 8px; }
.main-nav a {
  display: block; padding: 8px 16px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.93rem;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover { background: var(--sand); color: var(--navy); }
.main-nav a.active { background: var(--navy); color: #fff; }

/* Hero areas */
.home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(175deg, var(--sand) 0%, var(--sky) 55%, var(--cream) 100%);
  padding: 84px 0 0;
}
.home-hero::before {
  content: "";
  position: absolute;
  top: -220px; right: -180px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(47,111,224,0.24), rgba(47,111,224,0) 68%);
}
.home-hero::after {
  content: "";
  position: absolute;
  bottom: -40px; left: -200px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(240,162,61,0.18), rgba(240,162,61,0) 70%);
}
.hero-dots {
  position: absolute; top: 40px; right: 60px;
  width: 140px; height: 90px;
  background-image: radial-gradient(var(--blue-light) 1.6px, transparent 1.6px);
  background-size: 16px 16px;
  opacity: 0.35;
  z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding-bottom: 60px; }
.home-hero h1 { font-size: 3.3rem; }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 46ch; }

.hero-wave { display: block; width: 100%; height: auto; margin-top: -2px; }

.page-hero { position: relative; overflow: hidden; background: linear-gradient(175deg, var(--sand) 0%, var(--sky) 100%); padding: 56px 0 46px; }
.page-hero::before {
  content: "";
  position: absolute;
  top: -150px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(47,111,224,0.20), rgba(47,111,224,0) 70%);
}
.page-hero p { position: relative; color: var(--muted); margin: 0; font-size: 1.1rem; max-width: 60ch; }

/* Sections */
.section { padding: 68px 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 640px; margin: 0 0 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Grids and cards */
.grid { display: grid; gap: 22px; align-items: start; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.highlight { border-left: 5px solid var(--amber); }
.alert { border-left: 5px solid var(--alert); margin-bottom: 20px; }
.alert h2 { color: var(--alert); }

.link-card { text-decoration: none; color: var(--ink); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; position: relative; overflow: hidden; }
.link-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(47,111,224,0.05), rgba(240,162,61,0.05));
  opacity: 0; transition: opacity 0.2s ease;
}
.link-card:hover { transform: translateY(-5px); border-color: var(--blue-light); box-shadow: var(--shadow-lift); color: var(--ink); }
.link-card:hover::before { opacity: 1; }
.link-card .icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--sky); color: var(--blue);
  margin-bottom: 16px; font-size: 1.3rem;
  position: relative; z-index: 1;
}
.link-card:nth-child(even) .icon { background: #fdf0e0; color: var(--amber-dark); }
.link-card h3, .link-card p, .link-card .arrow { position: relative; z-index: 1; }
.link-card h3 { color: var(--navy); }
.link-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.link-card .arrow { position: absolute; top: 30px; right: 26px; color: var(--amber-dark); opacity: 0; transition: opacity 0.2s, transform 0.2s; transform: translateX(-4px); }
.link-card:hover .arrow { opacity: 1; transform: translateX(0); }

.team-card { display: flex; align-items: center; gap: 18px; }
.team-card p { margin: 0; color: var(--muted); }
.avatar {
  flex: none; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(150deg, var(--blue), var(--navy)); color: #fff;
  font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.1rem;
}

.hours-card {
  position: relative;
  background: linear-gradient(165deg, #ffffff 0%, var(--sky) 130%);
  border-top: 4px solid var(--amber);
}
.hours-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.32rem; }
.hours-card h2::before {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(240,162,61,0.18);
}

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; box-shadow: 0 14px 30px rgba(13,43,78,0.25); }
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 18px 34px rgba(13,43,78,0.3); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { background: var(--sand); border-color: var(--blue-light); color: var(--navy); }

/* Tables */
.hours, .fee-table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; color: var(--navy); }
.fee-table caption { text-align: left; font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 500; padding-bottom: 12px; color: var(--navy); }
.fee-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 6px 0; border-bottom: 2px solid var(--line); }
.fee-table th:last-child, .fee-table td:last-child { text-align: right; white-space: nowrap; }
.fee-table td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.fee-table tr:last-child td { border-bottom: none; }

/* Lists */
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { padding: 7px 0 7px 32px; position: relative; }
.tick-list li::before { content: "\2713"; position: absolute; left: 0; top: 7px; color: var(--blue); font-weight: 700; }
.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: 10px; }

/* FAQ */
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 1.6rem; color: var(--amber-dark); line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Privacy page text */
.prose h2 { margin-top: 2.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 1.3rem; color: var(--navy); }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 4px; }
.prose .card { margin-top: 2rem; }

/* Misc */
.small { font-size: 0.9rem; color: var(--muted); }
.note { margin-top: 24px; color: var(--muted); font-size: 0.95rem; }
.big-phone { font-size: 1.4rem; font-weight: 700; }
.big-phone a, a.big-phone { text-decoration: none; }
.map-card { padding: 0; overflow: hidden; min-height: 360px; }
.map-card iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c3d2e6; padding: 58px 0 24px; margin-top: 0; }
.site-footer h2 { color: #fff; font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; }
.site-footer a { color: #e3ecfb; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-grid p { font-size: 0.95rem; }
.copyright { font-size: 0.85rem; color: #7f93ad; border-top: 1px solid #1c3d61; padding-top: 18px; margin-top: 24px; }

/* Mobile */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero-grid, .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .home-hero { padding: 48px 0 0; }
  .hero-grid { padding-bottom: 44px; }
  .home-hero h1 { font-size: 2.2rem; }
  h1 { font-size: 1.9rem; }
  .hero-dots { display: none; }
  .brand-text small { display: none; }
  .header-phone { padding: 9px 14px; font-size: 0.9rem; }
  .main-nav ul { gap: 2px; justify-content: center; }
  .main-nav a { padding: 7px 12px; font-size: 0.9rem; }
  .emergency { font-size: 0.8rem; }
}

@media print {
  .emergency, .main-nav, .header-phone, .site-footer, .map-card { display: none; }
  .card { box-shadow: none; }
}

/* Fees page: two balanced columns without gaps */
.fee-columns { columns: 2; column-gap: 22px; }
.fee-columns .card { break-inside: avoid; margin-bottom: 22px; }
@media (max-width: 820px) { .fee-columns { columns: 1; } }
