/* ==========================================================================
   EPIC Surgery Center — static site
   Rebuilt 2026-08-30. No frameworks, no build step, no plugins.
   Palette and type sampled from the existing WordPress site.
   ========================================================================== */

:root {
  --teal:        #10605b;
  --teal-dark:   #0b4a46;
  --teal-light:  #e6f0ef;
  --gold:        #b0924f;
  --gold-text:   #7f6939;   /* gold darkened to pass WCAG AA contrast for text/buttons */
  --gold-light:  #d9c99c;
  --ink:         #2f3437;
  --ink-soft:    #5b6467;
  --rule:        #dfe4e3;
  --bg:          #ffffff;
  --bg-alt:      #f6f8f8;
  --maxw:        1160px;
  --pad:         clamp(1.25rem, 4vw, 3rem);
  --serif:       "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:        "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

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

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

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

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

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal); color: #fff; padding: .75rem 1.25rem; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Type ---------- */

h1, h2, h3, h4 { font-family: var(--serif); color: var(--teal); line-height: 1.2; margin: 0 0 .6em; }

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

.eyebrow {
  font-family: var(--serif);
  color: var(--gold-text);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .82rem;
  font-weight: 700;
  margin: 0 0 .75rem;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); }

p { margin: 0 0 1.15em; }

.rule {
  width: 68px; height: 3px; background: var(--gold);
  border: 0; margin: 1.25rem auto 2rem;
}
.rule--left { margin-inline: 0; }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--teal);
  color: #fff;
  font-size: .92rem;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  align-items: center; justify-content: center;
  padding-block: .55rem;
}
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: var(--gold-light); text-decoration: underline; }
.topbar svg { width: 1em; height: 1em; fill: currentColor; flex: none; }

.goldline { height: 3px; background: var(--gold); }

/* ---------- Header / nav ---------- */

.masthead { background: #fff; border-bottom: 1px solid var(--rule); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 1.1rem;
}

.logo { display: inline-block; text-decoration: none; flex: none; }
.logo img { width: clamp(210px, 26vw, 300px); height: auto; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule);
  border-radius: 4px; padding: .5rem .75rem; font: inherit; color: var(--teal); cursor: pointer;
}

.nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav > ul > li > a, .nav > ul > li > span {
  font-size: .93rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; cursor: pointer; display: block; padding-block: .4rem;
}
.nav > ul > li > a:hover, .nav li:hover > span { color: var(--teal); }

.nav .sub {
  position: absolute; left: 0; top: 100%; min-width: 268px;
  background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--gold);
  box-shadow: 0 12px 28px rgba(0,0,0,.09);
  display: none; flex-direction: column; gap: 0; padding: .4rem 0; z-index: 30;
}
.nav li:hover > .sub, .nav li:focus-within > .sub { display: flex; }
.nav .sub a {
  display: block; padding: .5rem 1.1rem; font-size: .95rem;
  text-transform: none; letter-spacing: 0; color: var(--ink); text-decoration: none;
}
.nav .sub a:hover { background: var(--teal-light); color: var(--teal); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; background: var(--teal); color: #fff;
  padding: .85rem 1.9rem; border-radius: 3px; text-decoration: none;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem;
  transition: background .15s ease;
}
.btn:hover { background: var(--teal-dark); color: #fff; }
.btn--gold { background: var(--gold-text); }
.btn--gold:hover { background: #6b5830; }

/* ---------- Hero ----------
   Split layout rather than a full-bleed background image: the facility
   photography is only 600x400, so the image column is capped at its native
   width and never upscaled. Swap to full-bleed once hi-res originals exist. */

.hero {
  position: relative;
  min-height: clamp(420px, 56vw, 620px);
  display: flex; align-items: center;
  color: #fff;
  background-color: var(--teal-dark);
  background-image:
    linear-gradient(105deg, rgba(11,74,70,.94) 0%, rgba(11,74,70,.80) 46%, rgba(11,74,70,.42) 100%),
    url("img/hero-cath-lab.jpg");
  background-size: cover;
  background-position: center 42%;
}
/* Alternate hero image — swap the class on .hero to compare */
.hero--reception {
  background-image:
    linear-gradient(105deg, rgba(11,74,70,.94) 0%, rgba(11,74,70,.82) 46%, rgba(11,74,70,.45) 100%),
    url("img/hero-reception.jpg");
  background-position: center 50%;
}

.hero .wrap { width: 100%; padding-block: clamp(3rem, 8vw, 5.5rem); }
.hero__box { max-width: 40rem; }
.hero h1 { color: #fff; margin-bottom: .85rem; text-shadow: 0 2px 18px rgba(0,0,0,.32); }
.hero .eyebrow { color: var(--gold-light); }
.hero p { color: #e2eeec; font-size: 1.12rem; max-width: 34rem; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }
.hero__actions .btn { background: var(--gold-text); }
.hero__actions .btn:hover { background: #6b5830; }
.hero__actions .btn--ghost { background: transparent; border: 2px solid rgba(255,255,255,.6); }
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ---------- Facility gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.gallery figcaption {
  font-size: .88rem; color: var(--ink-soft); margin-top: .5rem;
  font-family: var(--serif); font-style: italic;
}

/* ---------- Sections ---------- */

section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--alt { background: var(--bg-alt); }
.section--teal { background: var(--teal); color: #fff; }
.section--teal h2, .section--teal .eyebrow { color: #fff; }
.centered { text-align: center; }
.measure { max-width: 46rem; margin-inline: auto; }

/* ---------- Physician cards ---------- */

.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.doc { text-align: center; }
/* Source headshots are 200x300 portraits. A circular crop cuts the face, so these
   are shown as portrait cards at close to native size — sharper and correctly framed. */
.doc img {
  width: 210px; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 18%;
  border-radius: 4px; margin: 0 auto 1.1rem;
  border: 1px solid var(--rule); box-shadow: 0 10px 26px rgba(0,0,0,.10);
}
.doc h3 { margin-bottom: .25rem; }
.doc p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Service grid ---------- */

.grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.tile {
  display: flex; flex-direction: column; justify-content: center;
  background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--gold);
  padding: 1.4rem 1.5rem; text-decoration: none; min-height: 96px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tile:hover { border-left-color: var(--teal); box-shadow: 0 8px 22px rgba(0,0,0,.07); transform: translateY(-2px); }
.tile strong { font-family: var(--serif); font-size: 1.08rem; color: var(--teal); display: block; }
.tile span { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Callout bar ---------- */

.callout { background: var(--teal); color: #fff; text-align: center; padding-block: 2.75rem; }
.callout a { color: #fff; font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 2rem); text-decoration: none; }
.callout a:hover { color: var(--gold-light); text-decoration: underline; }

/* ---------- Quotes ---------- */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.quote {
  background: #fff; border: 1px solid var(--rule); padding: 1.75rem;
  display: flex; flex-direction: column;
}
.quote p { font-style: italic; color: var(--ink-soft); }
.quote cite { font-style: normal; font-weight: 600; color: var(--teal); margin-top: auto; }

/* ---------- Service page layout ---------- */

.layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.sidenav { position: sticky; top: 1.5rem; }
.sidenav h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.sidenav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.sidenav li { border-bottom: 1px solid var(--rule); }
.sidenav a { display: block; padding: .6rem .25rem; font-size: .95rem; text-decoration: none; color: var(--ink); }
.sidenav a:hover { color: var(--teal); padding-left: .6rem; }
.sidenav a[aria-current="page"] { color: var(--teal); font-weight: 700; border-left: 3px solid var(--gold); padding-left: .6rem; }

.prose h2 { margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose strong { color: var(--teal-dark); }

.pagehead { background: var(--teal-light); padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.pagehead h1 { margin-bottom: .25rem; }
.pagehead .eyebrow { margin: 0; }

/* ---------- Footer ---------- */

.footer { background: var(--teal-dark); color: #cfe0de; padding-block: 3rem 1.5rem; }
.footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: .5rem; }
.footer a { color: #fff; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.footer__cols p { margin: 0; }
.footer__legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.16);
  font-size: .86rem; text-align: center; color: #a9c4c1;
}
.footer__legal a { color: #cfe0de; }

.disclosure {
  background: rgba(255,255,255,.07); border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem; margin: 2rem auto 0; max-width: 52rem;
  font-size: .9rem; color: #d8e7e5; text-align: left;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .docs, .grid--4, .grid--3, .quotes, .footer__cols, .gallery { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .sidenav { position: static; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero figcaption { text-align: left; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--rule); box-shadow: 0 14px 24px rgba(0,0,0,.09); z-index: 40;
  }
  .masthead { position: relative; }
  .masthead[data-open="true"] .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  .nav > ul > li > a, .nav > ul > li > span { padding: .7rem var(--pad); }
  .nav .sub { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 .5rem; }
  .nav .sub a { padding-left: calc(var(--pad) + 1rem); }
}

@media (max-width: 560px) {
  .docs, .grid--4, .grid--3, .grid--2, .quotes, .footer__cols, .gallery { grid-template-columns: 1fr; }
}

/* ---------- Footer logo ---------- */
.footer__brand { text-align: center; margin-bottom: 2.25rem; }
.footer__brand img { width: 240px; margin-inline: auto; }

/* ---------- Providers page ---------- */
.group-portrait { margin: 0 auto 3.5rem; max-width: 420px; }
.group-portrait img { width: 100%; border-radius: 4px; box-shadow: 0 14px 34px rgba(0,0,0,.14); }

.provider {
  display: grid; grid-template-columns: 230px 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start; padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}
.provider:first-of-type { border-top: 0; }
.provider img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 18%;
  border-radius: 4px; border: 1px solid var(--rule); box-shadow: 0 10px 26px rgba(0,0,0,.10);
}
.provider h2 { margin-top: 0; }

@media (max-width: 700px) {
  .provider { grid-template-columns: 1fr; }
  .provider img { max-width: 230px; }
}

/* ---------- Sitemap ---------- */
.sitemap { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 3rem; }
.sitemap li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.sitemap a { display: block; padding: .65rem .25rem; text-decoration: none; color: var(--ink); }
.sitemap a:hover { color: var(--teal); padding-left: .5rem; }
@media (max-width: 560px) { .sitemap { columns: 1; } }

@media print {
  .topbar, .nav, .nav-toggle, .callout, .hero__panel { display: none; }
}
