/* Amer Med Urgent Care — site styles
   Visual idea: highway guide signs. The green sign panel is the one bold element;
   everything else stays quiet. Yellow is reserved for the 911 warning. */

:root {
  --sign: #0a6b47;
  --sign-deep: #063f2a;
  --paper: #f4f7f5;
  --white: #ffffff;
  --ink: #16201b;
  --muted: #4a5952;
  --rule: #d3ddd8;
  --warn: #f3c11b;
  --focus: #1f5fad;
  --radius-sign: 18px;
  --radius-small: 6px;
  --wrap: 1120px;
  --font: "Overpass", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--sign); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sign-deep); text-decoration-thickness: 2px; }

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

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

.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: inline-block; background: var(--sign); color: var(--white);
  font-weight: 800; font-size: 1rem; line-height: 1; padding: 9px 10px 7px;
  border-radius: 7px; box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 3.5px var(--white);
}
.brand-name { font-weight: 700; font-size: 1.05rem; }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--sign); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--sign); text-decoration: underline; text-decoration-thickness: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 14px 20px 12px; border-radius: var(--radius-small);
  border: 2px solid var(--sign); text-decoration: none; cursor: pointer;
}
.btn-solid { background: var(--sign); color: var(--white); }
.btn-solid:hover { background: var(--sign-deep); border-color: var(--sign-deep); color: var(--white); text-decoration: none; }
.btn-line { background: transparent; color: var(--sign); }
.btn-line:hover { background: var(--paper); color: var(--sign-deep); text-decoration: none; }
.nav .btn { color: var(--white); padding: 11px 16px 9px; }
.nav .btn:hover { color: var(--white); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { background: var(--paper); padding: 56px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }

.sign {
  position: relative; background: var(--sign); color: var(--white);
  border-radius: var(--radius-sign); padding: 44px 40px 36px;
  box-shadow: inset 0 0 0 7px var(--sign), inset 0 0 0 11px var(--white);
}
.sign-tab {
  position: absolute; top: -22px; right: 36px;
  background: var(--sign); color: var(--white); font-weight: 700; font-size: .95rem; line-height: 1;
  padding: 13px 20px 10px; border-radius: 10px;
  box-shadow: inset 0 0 0 4px var(--sign), inset 0 0 0 6.5px var(--white);
}
.sign h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem); line-height: .98; margin: 0; letter-spacing: -.015em; }
.sign h1 span { display: block; font-weight: 600; font-size: .58em; letter-spacing: 0; margin-top: .18em; }
.sign-route { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 22px; border-top: 3px solid var(--white); }
.sign-route p { margin: 0; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 700; line-height: 1.25; }
.sign-arrow { flex: none; width: 54px; height: 54px; }

.hero-copy .lede { color: var(--ink); font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.35; font-weight: 600; margin-bottom: .8em; }
.hero-copy p { color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 26px; }
.hours { border-top: 1px solid var(--rule); padding-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; font-size: 1rem; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; color: var(--muted); }

/* ---------- 911 warning ---------- */
.warning { background: var(--warn); color: #1d1906; }
.warning .wrap { display: flex; align-items: center; gap: 18px; padding-top: 18px; padding-bottom: 18px; }
.warning-diamond {
  flex: none; width: 30px; height: 30px; background: var(--warn); transform: rotate(45deg);
  border: 3px solid #1d1906; border-radius: 4px; display: grid; place-items: center; margin: 0 6px;
}
.warning-diamond b { transform: rotate(-45deg); font-weight: 800; font-size: 1rem; line-height: 1; padding-top: 2px; }
.warning p { margin: 0; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }

.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.service-group { border-top: 4px solid var(--sign); padding-top: 16px; }
.service-group ul { list-style: none; margin: 0; padding: 0; }
.service-group li { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.service-group li:last-child { border-bottom: 0; }
.note { color: var(--muted); font-size: .95rem; margin-top: 28px; }

.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 24px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.checklist { margin: 0; padding-left: 1.2em; }
.checklist li { margin-bottom: 6px; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.about p { max-width: 62ch; }

.text-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border: 2px solid var(--sign); border-radius: var(--radius-sign); padding: 28px 32px; }
.text-cta h2 { margin-bottom: .25em; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
.text-cta p { margin: 0; color: var(--muted); max-width: 58ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sign-deep); color: #dfe9e4; padding: 48px 0 32px; font-size: .97rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 1.05rem; color: var(--white); margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.18); margin-top: 36px; padding-top: 20px; font-size: .9rem; color: #b9cbc2; }
.footer-legal p { margin: 0 0 .4em; }

/* ---------- Form ---------- */
.page-head { background: var(--paper); padding: 48px 0 40px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-head p { color: var(--muted); max-width: 62ch; margin: 0; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; }
.form { max-width: 640px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .92rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #9fb0a8; border-radius: var(--radius-small); padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--focus); }

.consent { border: 1.5px solid var(--rule); border-radius: var(--radius-small); padding: 18px 18px 6px; margin: 28px 0 20px; background: var(--paper); }
.consent legend { font-weight: 800; padding: 0 6px; font-size: 1.05rem; }
.consent-intro { font-size: .95rem; color: var(--muted); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-bottom: 18px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--sign); }
.check label { font-size: .95rem; line-height: 1.5; }
.check label strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.form-foot { font-size: .92rem; color: var(--muted); }

.aside-box { border-top: 4px solid var(--sign); padding-top: 18px; margin-bottom: 36px; }
.aside-box p { margin-bottom: .5em; }

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 80px; }
.legal .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 24px; font-size: .95rem; }
.toc h2 { font-size: 1rem; margin-bottom: .6em; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--sign); text-decoration: underline; }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: 1.45rem; margin-top: 2em; padding-top: .2em; scroll-margin-top: 20px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin-top: 1.4em; }
.legal-body ul { padding-left: 1.3em; }
.legal-body li { margin-bottom: 6px; }
.callout { border-left: 5px solid var(--sign); background: var(--paper); padding: 16px 20px; margin: 0 0 1.2em; border-radius: 0 var(--radius-small) var(--radius-small) 0; }
.callout p:last-child { margin-bottom: 0; }
.updated { color: var(--muted); font-size: .95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .visit, .about, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal .wrap { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; border: 1px solid var(--rule); border-radius: var(--radius-small); padding: 16px 18px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 36px; }
  .sign { padding: 34px 24px 26px; }
  .sign-tab { right: 22px; }
  .sign-arrow { width: 42px; height: 42px; }
  .services { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .text-cta { padding: 22px 20px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .nav { gap: 6px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .site-header .nav, .toc, .warning { display: none; }
  .legal .wrap { display: block; }
}

.aside-box h2 { font-size: 1.25rem; }
.form .form-foot { margin-top: 16px; }
