/* ============================================================
   Casa Palma Primary Care — v0.4 brand edition
   Tokens from official logo & banner:
   pine green / sand gold / cream · classic serif, letterspaced
   Body: Atkinson Hyperlegible 19px (senior accessibility)
   ============================================================ */

:root {
  --green: #17544B;
  --green-deep: #0F4440;
  --ink: #123832;
  --muted: #4C6560;
  --green-tint: #E9EFEA;
  --gold: #B89770;
  --gold-deep: #8A6A33;
  --gold-tint: #F3EBDC;
  --cream: #F6F3ED;
  --paper: #FFFFFF;
  --line: #E3DCCE;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(18, 56, 50, 0.07);
  --shadow-lg: 0 14px 36px rgba(18, 56, 50, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Manrope', 'Atkinson Hyperlegible', 'Segoe UI', Arial, sans-serif;
  font-size: 19px; line-height: 1.7;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600; line-height: 1.18; color: var(--green);
  letter-spacing: .01em;
}
h1, h2.section-title { font-weight: 500; }

img, svg { display: block; max-width: 100%; }
a { color: var(--green-deep); }

:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 20px; z-index: 200; font-size: 19px; }
.skip-link:focus { left: 12px; top: 12px; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Utility top bar ---------- */
.topbar { background: var(--green-deep); color: #fff; padding: 9px 0; font-size: 17px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar-phone { color: #fff; text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.topbar-phone svg { width: 20px; height: 20px; }
.topbar-phone span.label { font-weight: 400; font-size: 16.5px; opacity: .82; }

.lang-switch { display: flex; gap: 6px; }
.lang-switch button {
  font-family: inherit; font-size: 16.5px; font-weight: 600;
  padding: 7px 16px; min-height: 42px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; cursor: pointer;
}
.lang-switch button:hover { background: rgba(255,255,255,.1); }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--green-deep); border-color: #fff; }

/* ---------- Header ---------- */
header.site { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 90; }
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { width: 58px; height: 58px; }
.brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 27px; font-weight: 600; line-height: 1.05;
  color: var(--green); letter-spacing: .05em;
}
.brand-name small {
  display: block; font-family: 'Manrope', 'Atkinson Hyperlegible', sans-serif;
  font-size: 12px; font-weight: 600; color: var(--gold-deep);
  letter-spacing: .24em; text-transform: uppercase; margin-top: 3px;
}

nav.main ul { display: flex; gap: 2px; list-style: none; flex-wrap: wrap; }
nav.main a {
  display: inline-block; text-decoration: none; color: var(--ink);
  font-size: 17px; font-weight: 600; letter-spacing: .012em; padding: 12px 14px; min-height: 44px;
  border-bottom: 3px solid transparent;
}
nav.main a:hover { color: var(--green-deep); border-bottom-color: var(--gold); }

/* ---------- Banner (official brand art) ---------- */
.banner { background: var(--cream); border-bottom: 1px solid var(--line); }
.banner img { width: 100%; height: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: inherit; font-size: 18.5px; font-weight: 600; letter-spacing: .015em;
  min-height: 58px; padding: 14px 30px;
  border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background .15s ease, box-shadow .15s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-call { background: var(--green); color: #fff; }
.btn-call:hover { background: var(--green-deep); }
.btn-chat { background: var(--gold-deep); color: #fff; }
.btn-chat:hover { background: #745827; box-shadow: var(--shadow-lg); }
.btn-outline { background: var(--paper); color: var(--green-deep); border-color: var(--green); }
.btn-outline:hover { background: var(--green-tint); }

/* ---------- Hero (below banner) ---------- */
.hero { padding: 72px 0; background: var(--paper); }
.hero .container { display: grid; grid-template-columns: 1.12fr .88fr; gap: 60px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 14px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 20px;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ""; width: 36px; height: 1.5px; background: var(--gold); }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.4rem); margin-bottom: 20px; font-weight: 500; letter-spacing: .012em; }
.hero p.lead { font-size: 21px; color: var(--muted); margin-bottom: 32px; max-width: 32em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* SYNTHIA hero card */
.synthia-card {
  background: var(--paper);
  border: 1px solid var(--line); border-top: 4px solid var(--gold);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 30px 28px 26px;
}
.synthia-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.synthia-card-head .mascot { width: 64px; height: 64px; flex: none; }
.synthia-card h2 { font-size: 27px; }
.synthia-card h2 em { font-style: italic; color: var(--gold-deep); }
.synthia-card p { font-size: 18px; color: var(--muted); margin-bottom: 20px; }
.synthia-langs { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.synthia-langs button {
  font-family: inherit; font-size: 18.5px; font-weight: 600;
  min-height: 58px; padding: 12px 18px;
  border: none; border-bottom: 1px solid var(--line);
  background: var(--paper); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; text-align: left;
}
.synthia-langs button:last-child { border-bottom: none; }
.synthia-langs button:hover { background: var(--gold-tint); color: var(--green-deep); }
.synthia-langs button span.arrow { color: var(--gold-deep); font-size: 21px; }

.wave { display: none; }

/* ---------- Sections ---------- */
section.block { padding: 80px 0; }
section.block.tinted { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block h2.section-title {
  font-size: clamp(2rem, 3.4vw, 2.6rem); margin: 0 auto 14px; text-align: center; max-width: 20em;
}
.block h2.section-title::after {
  content: ""; display: block; width: 52px; height: 2px; background: var(--gold);
  margin: 18px auto 0;
}
.block p.section-sub { font-size: 20px; color: var(--muted); max-width: 40em; margin: 0 auto 48px; text-align: center; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.card .icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: transparent; color: var(--gold-deep);
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 22.5px; margin-bottom: 8px; text-align: center; }
.card p { font-size: 18px; color: var(--muted); text-align: center; }

/* Doctors */
.doctor { text-align: center; }
.doctor .avatar {
  width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--green-tint); display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 600; color: var(--green-deep);
  border: 1.5px solid var(--gold);
}
.doctor .spec {
  color: var(--gold-deep); font-weight: 600; font-size: 14px;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px;
}
.doctor p:last-child { color: var(--muted); font-size: 18px; }

/* Insurance */
.insurance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.insurance-grid .section-title, .insurance-grid .section-sub { text-align: left; margin-left: 0; }
.insurance-grid .section-title::after { margin-left: 0; }
.insurance-list { list-style: none; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.insurance-list li { padding: 16px 20px; display: flex; gap: 14px; align-items: flex-start; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.insurance-list li:last-child { border-bottom: none; }
.insurance-list li svg { width: 24px; height: 24px; flex: none; color: var(--gold-deep); margin-top: 3px; }

/* SYNTHIA band */
.synthia-band { background: var(--green-deep); color: #fff; }
.synthia-band .grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.synthia-band h2.section-title { color: #fff; text-align: left; margin-left: 0; }
.synthia-band h2.section-title::after { margin-left: 0; background: var(--gold); }
.synthia-band h2 em { font-style: italic; color: #D8BE93; }
.synthia-band .mascot-big { width: min(210px, 60%); margin: 0 auto; }
.synthia-band p { color: rgba(255,255,255,.85); }
.synthia-feats { list-style: none; display: grid; gap: 16px; margin: 28px 0 32px; }
.synthia-feats li { display: flex; gap: 14px; align-items: flex-start; font-size: 19px; color: rgba(255,255,255,.94); }
.synthia-feats li svg { width: 26px; height: 26px; flex: none; color: #D8BE93; margin-top: 2px; }
.synthia-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.75); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 23px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; font-size: 19px; }
.contact-line svg { width: 24px; height: 24px; flex: none; color: var(--gold-deep); margin-top: 3px; }
.contact-line strong { font-size: 21px; color: var(--green-deep); }
.contact-line span { color: var(--muted); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 19px; }
.hours-table td { padding: 11px 4px; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--green-deep); }

/* Emergency banner */
.emergency {
  background: var(--gold-tint); border: 1px solid var(--gold); border-left: 5px solid var(--gold-deep);
  border-radius: 10px; padding: 16px 20px; margin-top: 30px;
  display: flex; gap: 14px; align-items: center; font-size: 18.5px; font-weight: 600; color: var(--green-deep);
}
.emergency svg { width: 26px; height: 26px; flex: none; color: var(--gold-deep); }

/* Footer — cream with official logo */
footer.site { background: var(--cream); border-top: 1px solid var(--line); color: var(--muted); padding: 52px 0 120px; font-size: 16px; text-align: center; }
footer.site .foot-logo {
  width: 190px; margin: 0 auto 26px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow);
}
footer.site .foot-logo img { width: 100%; }
footer.site p { max-width: 54em; margin: 0 auto 10px; line-height: 1.6; }
footer.site .credit { opacity: .7; margin-top: 20px; letter-spacing: .12em; text-transform: uppercase; font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero .container, .insurance-grid, .synthia-band .grid, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  nav.main ul { justify-content: center; }
  .synthia-band .mascot-big { order: -1; }
  section.block { padding: 56px 0; }
  .insurance-grid .section-title, .insurance-grid .section-sub { text-align: center; margin: 0 auto 14px; }
  .insurance-grid .section-title::after { margin: 18px auto 0; }
}
