/* ===========================================================
   PrimeCare Anesthesia — design tokens
   =========================================================== */
:root{
  --bg:        #F5F6F1;
  --white:     #FFFFFF;
  --ink:       #16221D;
  --ink-soft:  #46554D;
  --teal:      #1F4B45;
  --teal-deep: #12312B;
  --teal-tint: #DFE7E1;
  --brass:     #B8863B;
  --brass-deep:#96692A;
  --line:      #CDD6CD;
  --line-on-dark: rgba(255,255,255,0.16);

  --font-display: "Fraunces", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --max: 1140px;
}

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

html{ scroll-behavior: smooth; }

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--teal-deep);
  margin: 0;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.08; font-weight: 500; }
h2{ font-size: clamp(1.7rem, 2.9vw, 2.3rem); line-height: 1.15; }
h3{ font-size: 1.15rem; line-height: 1.3; color: var(--ink); font-weight: 600; font-family: var(--font-body); }

p{ margin: 0 0 1em; color: var(--ink-soft); }
p:last-child{ margin-bottom: 0; }

a{ color: inherit; }

ul, ol{ margin: 0; padding: 0; list-style: none; }

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

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

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ===========================================================
   Header
   =========================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 241, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled{
  background: rgba(245, 246, 241, 0.97);
  border-bottom-color: var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--teal-deep);
}
.brand-mark{ display: inline-flex; width: 30px; }
.brand-wave{ width: 100%; height: 18px; fill: none; stroke: var(--brass); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-name{
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
}
.brand-name em{ font-style: normal; font-weight: 400; color: var(--ink-soft); margin-left: 0.3em; }

.main-nav{
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
}
.main-nav a{
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover{ border-color: var(--brass); }
.main-nav a.nav-cta{
  background: var(--teal);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 3px;
  border-bottom: none;
}
.main-nav a.nav-cta:hover{ background: var(--teal-deep); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal-deep);
  transition: transform 0.25s ease, opacity 0.25s 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{
  position: relative;
  padding-top: 84px;
  overflow: hidden;
}

.hero-inner{ padding-bottom: 30px; }

.hero-copy{ max-width: 640px; }

.eyebrow-plain{
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--brass-deep);
  margin: 0 0 18px;
}

.hero-sub{
  font-size: 1.08rem;
  max-width: 54ch;
  margin-top: 20px;
}

.hero-actions{
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn{
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary{ background: var(--teal); color: var(--white); }
.btn-primary:hover{ background: var(--teal-deep); }
.btn-ghost{ border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--brass-deep); color: var(--brass-deep); }

.hero-trace{
  margin-top: 44px;
  width: 100%;
  line-height: 0;
}
.trace-svg{ width: 100%; height: 110px; display: block; }
#trace-path{
  fill: none;
  stroke: var(--brass);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-trace 2.6s ease-out forwards 0.3s;
}
@keyframes draw-trace{
  to{ stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce){
  #trace-path{ animation: none; stroke-dashoffset: 0; }
}

.hero-stats{ padding-bottom: 60px; }
.hero-stats dl{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero-stats dl > div{
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.hero-stats dl > div:first-child{ border-left: none; padding-left: 0; }
.hero-stats dt{
  font-family: var(--font-mono);
  font-size: 1.7rem;
  color: var(--teal-deep);
  margin-bottom: 4px;
}
.hero-stats dd{
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ===========================================================
   Section shell
   =========================================================== */
.section{ padding: 96px 0; }
.section-tint{ background: var(--teal-tint); }
.section-dark{ background: var(--teal-deep); color: var(--white); }
.section-dark p{ color: rgba(255,255,255,0.72); }
.section-dark h2{ color: var(--white); }

.section-head{ max-width: 620px; margin-bottom: 52px; }
.section-head h2{ margin-bottom: 14px; }

/* ===========================================================
   Services list
   =========================================================== */
.service-list{
  border-top: 1px solid var(--line);
}
.service-list li{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.service-list h3{ margin: 0; }
.service-list p{ margin: 0; max-width: 46ch; }

/* ===========================================================
   Value grid (approach)
   =========================================================== */
.value-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.value-cell{
  padding: 34px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.value-cell h3{ margin-bottom: 10px; }
.value-cell p{ margin: 0; }

/* ===========================================================
   Process (real sequence — numbered)
   =========================================================== */
.process-list{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  position: relative;
}
.process-list::before{
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.process-list li{ position: relative; padding-top: 44px; }
.process-index{
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--brass-deep);
  background: var(--bg);
  padding-right: 10px;
}
.process-list h3{ margin-bottom: 8px; }
.process-list p{ margin: 0; font-size: 0.96rem; }

/* ===========================================================
   Team
   =========================================================== */
.team-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px;
}
.team-avatar{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.team-card h3{ margin-bottom: 2px; }
.team-role{
  font-size: 0.88rem;
  color: var(--brass-deep);
  margin-bottom: 12px;
}

/* ===========================================================
   Coverage
   =========================================================== */
.coverage-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.coverage-grid h2{ margin-bottom: 18px; }
.coverage-list{
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.coverage-list h3{ margin-bottom: 16px; font-size: 0.95rem; color: var(--ink-soft); font-weight: 500; }
.coverage-list ul li{
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
}
.coverage-list ul li:first-child{ padding-top: 0; }

/* ===========================================================
   Contact
   =========================================================== */
.contact-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact-info h2{ margin-bottom: 16px; }
.contact-info p{ max-width: 42ch; }

.contact-details{
  margin-top: 40px;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 28px;
}
.contact-details > div{ margin-bottom: 20px; }
.contact-details dt{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: none;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.contact-details dd{ margin: 0; font-size: 1.02rem; }
.contact-details a{ text-decoration: none; }
.contact-details a:hover{ color: var(--brass); }

.contact-form{
  background: var(--white);
  padding: 40px;
  border-radius: 4px;
}
.form-row{ margin-bottom: 20px; }
.form-row-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}
.form-row-split > div{ margin-bottom: 20px; }
label{
  display: block;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
input, textarea{
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink);
}
input:focus, textarea:focus{ border-color: var(--teal); }
textarea{ resize: vertical; min-height: 96px; }

.btn-form{ width: 100%; border: none; margin-top: 4px; }
.form-status{
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--teal-deep);
  min-height: 1.2em;
}
.form-status.is-error{ color: #A5433A; }
.form-hidden-field{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===========================================================
   Standalone pages
   =========================================================== */
.page-hero{ background: var(--teal-tint); padding: 96px 0 104px; }
.page-hero-inner{ max-width: 820px; }
.page-hero h1{ max-width: 780px; }
.page-hero-sub{ font-size: 1.12rem; max-width: 62ch; margin-top: 22px; }
.story-grid, .service-support-grid{ display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.story-grid h2, .service-support-grid h2{ max-width: 12ch; }
.story-grid p{ max-width: 62ch; }
.service-detail-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-detail-grid article{ padding: 30px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 220px; }
.service-detail-grid h3{ margin: 16px 0 10px; }
.service-detail-grid p{ margin: 0; font-size: .96rem; }
.service-number{ font-family: var(--font-mono); font-size: .8rem; color: var(--brass-deep); }
.support-list{ border-top: 1px solid var(--line); }
.support-list > div{ padding: 22px 0; border-bottom: 1px solid var(--line); }
.support-list h3{ margin-bottom: 7px; }
.support-list p{ margin: 0; }
.about-callout{ border-left: 1px solid var(--line); padding-left: 34px; }
.about-callout-mark{ display: block; font-family: var(--font-mono); font-size: 3.5rem; color: var(--teal-deep); line-height: 1; margin-bottom: 16px; }
.about-callout p{ max-width: 26ch; }
.cta-band{ display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta-band h2{ margin-bottom: 12px; }
.cta-band p{ margin: 0; max-width: 52ch; }
.section-dark .cta-band .btn-primary{ background: var(--brass); color: var(--teal-deep); }
.section-dark .cta-band .btn-primary:hover{ background: var(--white); }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer{
  background: var(--teal-deep);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 34px;
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line-on-dark);
  padding-bottom: 34px;
}
.footer-brand .brand-name{ color: var(--white); font-family: var(--font-display); font-size: 1.1rem; }
.footer-brand .brand-name em{ font-style: normal; color: rgba(255,255,255,0.5); margin-left: 0.3em; }
.footer-brand p{ color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 8px; max-width: 30ch; }
.footer-nav{ display: flex; gap: 22px; flex-wrap: wrap; align-self: start; }
.footer-nav a{ color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover{ color: var(--brass); }
.footer-legal{ font-size: 0.82rem; margin-top: 22px; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px){
  .service-list li{ grid-template-columns: 1fr; gap: 10px; }
  .value-grid{ grid-template-columns: 1fr; }
  .process-list{ grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .process-list::before{ display: none; }
  .team-grid{ grid-template-columns: 1fr 1fr; }
  .coverage-grid{ grid-template-columns: 1fr; gap: 40px; }
  .contact-grid{ grid-template-columns: 1fr; gap: 40px; }
  .hero-stats dl{ grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .hero-stats dl > div:nth-child(3){ border-left: none; padding-left: 0; }
  .service-detail-grid{ grid-template-columns: 1fr 1fr; }
  .story-grid, .service-support-grid{ gap: 40px; }
}

@media (max-width: 680px){
  .wrap{ padding: 0 20px; }
  .main-nav{
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.is-open{ max-height: 400px; }
  .main-nav a{ width: 100%; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .main-nav a.nav-cta{ margin: 14px 20px; text-align: center; }
  .nav-toggle{ display: flex; }
  .team-grid{ grid-template-columns: 1fr; }
  .process-list{ grid-template-columns: 1fr; }
  .form-row-split{ grid-template-columns: 1fr; }
  .hero-stats dl{ grid-template-columns: 1fr 1fr; }
  .page-hero{ padding: 68px 0 76px; }
  .story-grid, .service-support-grid{ grid-template-columns: 1fr; gap: 34px; }
  .story-grid h2, .service-support-grid h2{ max-width: none; }
  .service-detail-grid{ grid-template-columns: 1fr; }
  .service-detail-grid article{ min-height: auto; }
  .cta-band{ display: block; }
  .cta-band .btn{ margin-top: 24px; }
}
