/* =============================================================
   CDMS Surgery Center — Design System
   Palette (sampled directly from the CDMS logo):
     --porcelain      #F4F5F1  page background (cool, clinical off-white)
     --ink            #12232C  primary text (navy-tinted, near-black)
     --navy           #062D41  primary brand color, from the logo wordmark
     --navy-dk        #041B27  navy hover/active
     --teal           #14A4AF  single bold accent, from the logo mark —
                                reserved for the get-directions / primary
                                contact actions and the contour motif
     --teal-dk        #0E7379  teal hover/active
     --grey           #6D6C6E  logo's secondary grey, used for quiet text
     --mist           #DCEBEA  pale teal tint — section fill / dividers
     --placeholder-flag #B23A2E  NOT a brand color — flags copy that must
                                  be replaced before launch (phone, email,
                                  hours) so it can't be mistaken for content
     --placeholder-flag-on-dark #F2907E  same flag, lightened for use on
                                  the navy/ink bands so it still meets
                                  contrast
     --line           rgba(6, 45, 65, 0.13)  hairlines
   Type:
     Cormorant (serif)     — headings, display
     Public Sans (sans)    — body copy, UI, nav
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,500;0,600;0,700;1,500&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --porcelain: #F4F5F1;
  --porcelain-dim: #ECEEE9;
  --ink: #12232C;
  --ink-soft: #6D6C6E;
  --navy: #062D41;
  --navy-dk: #041B27;
  --teal: #14A4AF;
  --teal-dk: #0E7379;
  --mist: #DCEBEA;
  --placeholder-flag: #B23A2E;
  --placeholder-flag-on-dark: #F2907E;
  --line: rgba(6, 45, 65, 0.13);
  --line-on-navy: rgba(244, 245, 241, 0.22);

  --font-display: 'Cormorant', 'Iowan Old Style', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1180px;
  --gutter: clamp(1.5rem, 4vw, 3.5rem);
  --radius: 4px;
  --radius-lg: 10px;
}

/* -------------------------------------------------- reset & base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.7rem, 4.8vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { max-width: 38em; }
p + p { margin-top: 1em; }

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.tight { padding-top: clamp(1.5rem, 4vw, 2.5rem); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
}

/* -------------------------------------------------- topographic motif
   Recurring contour-line device: layered, hand-set arcs that read as
   both a margin map (Mohs surgery's defining diagnostic technique)
   and the foothill contour lines around Pasadena. Used once boldly
   in the hero, then quietly as a section-divider watermark.        */
.contour-mark { display: block; width: 100%; height: 100%; }
.contour-mark path,
.contour-mark ellipse { fill: none; stroke: var(--navy); }
.contour-mark circle { fill: var(--teal); stroke: none; }

/* -------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--porcelain);
}
.btn-primary:hover { background: var(--navy-dk); }

.btn-accent {
  background: var(--teal);
  color: var(--ink);
}
.btn-accent:hover { background: var(--teal-dk); color: var(--porcelain); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--porcelain); }

.btn-outline-light {
  background: transparent;
  color: var(--porcelain);
  border: 1.5px solid var(--line-on-navy);
}
.btn-outline-light:hover { background: var(--porcelain); color: var(--navy-dk); border-color: var(--porcelain); }

/* -------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 245, 241, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(28,31,27,0.03);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  margin-top: 0.9rem;
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav ul {
  display: flex;
  gap: 1.3rem;
}
.header-actions-mobile { display: none; }
.main-nav ul li {
  position: relative;
}
.main-nav ul li + li::before {
  content: '';
  position: absolute;
  left: -0.68rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 13px;
  background: var(--line);
}
.main-nav ul a {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink);
  padding: 0.3rem 0.05rem;
  white-space: nowrap;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav ul a:hover,
.main-nav ul a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.header-phone {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------- hero */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.hero-copy .lede { margin-top: 1.1rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}
.hero-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* -------------------------------------------------- trust strip */
.trust-strip { padding: 2.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: space-between;
}
.trust-strip li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 24ch;
}
.trust-strip .icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 0.1rem;
  color: var(--navy);
}
.trust-strip .icon path,
.trust-strip .icon circle,
.trust-strip .icon rect { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.trust-strip strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.2rem; }

/* -------------------------------------------------- photo split (facility / physicians) */
.photo-split .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.photo-split .photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.photo-split .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.photo-split .copy > .section-label { margin-bottom: 0.5rem; }
.photo-split .copy p { margin-top: 1rem; }
.photo-split .copy .btn { margin-top: 1.6rem; }
.photo-split--reverse .photo { order: 2; }

/* -------------------------------------------------- resource row */
.resource-row h2 { margin-bottom: 1.8rem; }
.resource-row ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}
.resource-row a {
  display: block;
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.resource-row a:hover { border-color: var(--navy); background: var(--porcelain-dim); }
.resource-row .icon {
  width: 28px;
  height: 28px;
  color: var(--navy);
  margin-bottom: 1rem;
}
.resource-row .icon path,
.resource-row .icon circle,
.resource-row .icon rect { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.resource-row h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.resource-row p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.7rem; }
.resource-row .more { font-size: 0.88rem; font-weight: 600; color: var(--navy); border-bottom: 1.5px solid var(--teal); padding-bottom: 1px; }

/* -------------------------------------------------- specialties (asymmetric hierarchy) */
.specialty-lead {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}
.specialty-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 2.4rem;
}
.specialty-pair > div { padding-top: 1.8rem; border-top: 1px solid var(--line); }

.specialty-card h3 { margin-bottom: 0.6rem; }
.specialty-card p { margin-bottom: 1rem; }
.specialty-card a.more {
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1.5px solid var(--teal);
  padding-bottom: 1px;
}

/* -------------------------------------------------- approach / two-col */
.split-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* -------------------------------------------------- locations band */
.locations-band {
  background: var(--navy);
  color: var(--porcelain);
}
.locations-band .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: end;
}
.locations-band h2 { color: var(--porcelain); }
.locations-band address {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-top: 1rem;
}
.locations-band .loc-meta {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  font-size: 0.95rem;
  color: rgba(244,245,241,0.78);
}
.locations-band .loc-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

/* -------------------------------------------------- CTA band */
.cta-band {
  background: var(--mist);
}
.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band .cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* -------------------------------------------------- footer */
.site-footer {
  background: var(--ink);
  color: var(--porcelain-dim);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.8rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-col .brand { margin-bottom: 1.1rem; }
.footer-col .brand-tagline { color: rgba(244,245,241,0.65); margin-top: 0; margin-bottom: 0.6rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(244,245,241,0.55);
  margin-bottom: 0.9rem;
}
.footer-col address { font-style: normal; }
.footer-col li,
.footer-col address,
.footer-col p { font-size: 0.94rem; color: rgba(244,245,241,0.85); line-height: 1.65; }
.footer-col li + li { margin-top: 0.55rem; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(244,245,241,0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(244,245,241,0.55);
}

/* -------------------------------------------------- page hero (interior pages) */
.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-hero .lede { margin-top: 1rem; }
.breadcrumb {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--navy); font-weight: 600; }

/* -------------------------------------------------- step list (genuine sequences only) */
.step-list { display: grid; gap: 1.6rem; margin-top: 1.5rem; }
.step-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.1rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.step-list li:last-child { border-bottom: none; padding-bottom: 0; }
.step-list .num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--teal-dk);
}

/* -------------------------------------------------- faq list */
.faq-list { margin-top: 1.5rem; }
.faq-list > div {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.faq-list > div:last-child { border-bottom: none; }
.faq-list dt {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.faq-list dd {
  color: var(--ink-soft);
  max-width: 60ch;
}
.faq-list a { color: var(--navy); font-weight: 600; border-bottom: 1.5px solid var(--teal); }

/* -------------------------------------------------- info grid / cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.info-card {
  background: var(--porcelain-dim);
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.info-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }

/* -------------------------------------------------- contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contact-details h3 { margin-top: 2rem; margin-bottom: 0.5rem; font-size: 1.1rem; }
.contact-details h3:first-child { margin-top: 0; }
.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain-dim);
  color: var(--ink);
}
.field input:focus,
.field textarea:focus { border-color: var(--navy); outline: none; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1rem; }

.placeholder {
  color: var(--placeholder-flag);
  font-weight: 600;
}
.locations-band .placeholder,
.site-footer .placeholder {
  color: var(--placeholder-flag-on-dark);
}

/* -------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--porcelain);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--gutter) 1.6rem;
    gap: 1rem;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 0.2rem; }
  .main-nav.is-open ul li + li::before { display: none; }
  .main-nav.is-open ul a { display: block; padding: 0.6rem 0; }
  .main-nav.is-open .header-actions-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.6rem;
  }

  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 420px; margin: 0 auto; }

  .specialty-lead,
  .specialty-pair,
  .split-block,
  .contact-layout,
  .photo-split .wrap { grid-template-columns: 1fr; }
  .photo-split--reverse .photo { order: -1; }
  .photo-split .photo { max-width: 480px; margin: 0 auto; }

  .locations-band .wrap { grid-template-columns: 1fr; }
  .locations-band .loc-actions { align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .info-grid,
  .resource-row ul { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid,
  .resource-row ul { grid-template-columns: 1fr; }
  .trust-strip ul { gap: 1.6rem; }
  h1 { font-size: 2.2rem; }
}
