:root {
  --ink: #17352f;
  --muted: #62736f;
  --paper: #f7faf8;
  --white: #fff;
  --sage: #e1f1fa;
  --primary: #0879bf;
  --primary-dark: #056298;
  --accent: #e4b86c;
  --border: rgba(23, 53, 47, .13);
  --shadow: 0 22px 65px rgba(8, 83, 128, .17);
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 2000; padding: .7rem 1rem; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 100; min-height: 86px; padding: 0 clamp(1.25rem, 4vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50% 50% 50% 10%; background: var(--primary); color: var(--white); font: 600 1.65rem/1 var(--serif); }
.brand strong, .brand small { display: block; }
.brand strong { font: 600 1.25rem/1.1 var(--serif); }
.brand small { margin-top: .2rem; color: var(--muted); font-size: .68rem; letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.8rem); font-size: .9rem; font-weight: 600; }
.main-nav > a:not(.nav-cta) { padding: 1.95rem 0; border-bottom: 2px solid transparent; }
.main-nav > a:hover, .main-nav > a.is-active { color: var(--primary); border-color: var(--primary); }
.nav-cta, .button-primary { border: 0; border-radius: 999px; padding: .85rem 1.3rem; background: var(--primary); color: var(--white); cursor: pointer; font-weight: 700; transition: transform .2s, background .2s; }
.nav-cta:hover, .button-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: transparent; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 19px; height: 2px; margin: 4px auto; background: var(--ink); }

.photo-banner { position: relative; height: 50vh; min-height: 390px; max-height: 650px; overflow: hidden; background: var(--ink); color: var(--white); }
.slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transform: scale(1.035); transition: opacity .9s ease, transform 6s ease; }
.slide.is-active { opacity: 1; transform: scale(1); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,35,29,.72) 0%, rgba(7,35,29,.22) 58%, rgba(7,35,29,.06) 100%); }
.banner-caption { position: absolute; left: clamp(1.5rem, 8vw, 8rem); bottom: clamp(4.6rem, 10vh, 7rem); max-width: 760px; }
.eyebrow { margin: 0 0 .65rem; color: var(--primary); text-transform: uppercase; font-size: .72rem; font-weight: 700; letter-spacing: .16em; }
.banner-caption .eyebrow { color: #d9eae4; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.04; }
h1 { font-size: clamp(2.9rem, 6vw, 5.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.025em; }
.slider-controls { position: absolute; right: clamp(1.5rem, 5vw, 5rem); bottom: 2rem; display: flex; align-items: center; gap: .85rem; }
.slider-arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(12,41,35,.22); color: var(--white); cursor: pointer; backdrop-filter: blur(8px); }
.slider-dots { display: flex; gap: .45rem; }
.slider-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.48); cursor: pointer; }
.slider-dot.is-active { width: 24px; border-radius: 999px; background: var(--white); }

.section { width: min(1180px, calc(100% - 3rem)); margin: 0 auto; padding: clamp(4.5rem, 8vw, 8rem) 0; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: end; }
.intro > p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.team-section { padding-top: clamp(4rem, 7vw, 7rem); }
.team-heading { margin-bottom: 2.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 7rem); align-items: end; }
.team-heading > p { max-width: 480px; margin: 0; color: var(--muted); }
.provider-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.provider-card { min-height: 205px; padding: 1.3rem; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--border); border-radius: 6px 24px 6px 6px; background: var(--white); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.provider-card:hover { transform: translateY(-3px); border-color: rgba(8, 121, 191, .34); box-shadow: 0 12px 30px rgba(8, 83, 128, .1); }
.provider-details { margin: 0 0 1rem; }
.provider-card h3 { margin: 0 0 .18rem; font: 600 1.14rem/1.2 var(--serif); }
.provider-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.provider-profile { margin: auto 0 .85rem; color: var(--primary); font-size: .78rem; font-weight: 700; }
.provider-profile:hover { text-decoration: underline; text-underline-offset: .2rem; }
.provider-action { width: 100%; margin-top: auto; padding: .7rem .8rem; display: flex; justify-content: center; align-items: center; border: 1px solid var(--primary); border-radius: 999px; color: var(--primary); font-size: .78rem; font-weight: 700; line-height: 1.25; text-align: center; transition: background .2s ease, color .2s ease, transform .2s ease; }
.provider-action:hover { transform: translateY(-1px); background: var(--primary); color: var(--white); }
.provider-action.is-online { background: var(--primary); color: var(--white); }
.provider-action.is-online:hover { background: var(--primary-dark); }
.team-link { width: fit-content; margin-top: 1.6rem; padding-bottom: .25rem; display: block; border-bottom: 1px solid var(--primary); color: var(--primary); font-weight: 700; }
.news-section { padding-top: 1rem; }
.news-heading { margin-bottom: 2.25rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.news-heading .team-link { flex: 0 0 auto; margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.news-card { min-height: 290px; padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 6px 36px 6px 6px; background: var(--white); }
.news-card.is-highlighted { background: var(--sage); }
.news-date { margin: 0 0 2.8rem; color: var(--primary); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-card h3 { margin: 0 0 .7rem; font: 600 clamp(1.45rem, 2.5vw, 2rem)/1.15 var(--serif); }
.news-card > p:not(.news-date) { margin: 0 0 1.5rem; color: var(--muted); }
.news-card > a { width: fit-content; margin-top: auto; padding-bottom: .2rem; border-bottom: 1px solid var(--primary); color: var(--primary); font-weight: 700; }
.info-strip { margin-top: clamp(3rem, 6vw, 6rem); padding: clamp(3rem, 6vw, 5rem) max(1.5rem, calc((100% - 1180px) / 2)); display: flex; justify-content: space-between; align-items: end; gap: 2rem; background: var(--ink); color: var(--white); }
.info-strip .eyebrow { color: #a8d3c9; }
.text-link { padding-bottom: .25rem; border-bottom: 1px solid rgba(255,255,255,.5); white-space: nowrap; }
.site-footer { padding: 2.4rem max(1.5rem, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; background: var(--primary); color: var(--white); font-size: .88rem; }
.site-footer p { margin: .1rem 0 0; }
.mobile-book { display: none; }

.welcome-modal[hidden] { display: none; }
.welcome-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.25rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7, 31, 27, .68); backdrop-filter: blur(6px); animation: fade-in .3s both; }
.modal-card { position: relative; z-index: 1; width: min(680px, 100%); max-height: calc(100vh - 2.5rem); overflow: auto; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 8px 42px 8px 8px; background: var(--white); box-shadow: var(--shadow); animation: rise-in .45s both; }
.modal-close { position: absolute; top: 1.15rem; right: 1.15rem; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%; background: var(--paper); cursor: pointer; font-size: 1.5rem; }
.modal-card h2 { font-size: clamp(2rem, 4vw, 3rem); }
.modal-lead { margin: .75rem 0 1.6rem; color: var(--muted); }
.modal-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.modal-info-grid article { padding: 1rem; display: flex; gap: .75rem; border-radius: 10px; background: var(--paper); }
.modal-info-grid article > span { font-size: 1.1rem; }
.modal-info-grid strong, .modal-info-grid p { display: block; margin: 0; }
.modal-info-grid p { margin-top: .15rem; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.cookie-note { margin: 1rem 0 1.25rem; padding: .9rem 1rem; display: flex; gap: .7rem; align-items: flex-start; border: 1px solid #e9dcc1; border-radius: 10px; background: #fffaf0; color: #655a45; font-size: .8rem; }
.cookie-note p { margin: 0; }
.button-primary { width: 100%; padding: 1rem; }
.profile-main { min-height: calc(100vh - 180px); }
.profile-hero { padding: clamp(2.2rem, 5vw, 4.5rem) max(1.5rem, calc((100% - 1180px) / 2)) clamp(4rem, 8vw, 7rem); background: linear-gradient(145deg, #f4faff 0%, var(--white) 58%, var(--sage) 100%); }
.breadcrumb { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .82rem; }
.breadcrumb a { color: var(--primary); font-weight: 700; }
.profile-hero-grid { max-width: 900px; }
.profile-copy .eyebrow { margin-bottom: .9rem; }
.profile-copy h1 { color: var(--ink); font-size: clamp(3rem, 6vw, 5.7rem); }
.profile-role { margin: .6rem 0 1.2rem; color: var(--primary); font-size: 1.05rem; font-weight: 700; }
.profile-intro { max-width: 700px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.profile-actions { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.profile-actions .button-primary, .button-secondary { width: auto; padding: .9rem 1.3rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; }
.button-secondary { border: 1px solid var(--primary); color: var(--primary); }
.profile-content { width: min(980px, calc(100% - 3rem)); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) 0; display: grid; grid-template-columns: 1.25fr .75fr; gap: 1rem; }
.profile-panel { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--border); border-radius: 8px 34px 8px 8px; background: var(--white); }
.profile-panel h2 { margin-bottom: 1rem; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.profile-panel p { color: var(--muted); }
.profile-panel ul { margin: 1.1rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.profile-panel li + li { margin-top: .5rem; }
.profile-contact-list { padding: 0; list-style: none; }
.profile-contact-list li { padding: .8rem 0; border-bottom: 1px solid var(--border); }
.profile-contact-list strong { display: block; color: var(--ink); }
.profile-contact-list a { color: var(--primary); font-weight: 700; }
.vacation-hero { padding: clamp(3rem, 7vw, 6rem) max(1.5rem, calc((100% - 1180px) / 2)); background: linear-gradient(145deg, #f4faff, var(--sage)); }
.vacation-hero .breadcrumb { margin-bottom: 2.5rem; }
.vacation-hero h1 { max-width: 820px; color: var(--ink); }
.vacation-hero > p:last-child { max-width: 680px; margin: 1rem 0 0; color: var(--muted); font-size: 1.08rem; }
.vacation-page-content { width: min(1180px, calc(100% - 3rem)); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.vacation-page-heading { margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.vacation-page-heading p { max-width: 540px; margin: 0; color: var(--muted); }
.vacation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.vacation-card { min-height: 235px; padding: 1.5rem; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 6px 30px 6px 6px; background: var(--white); }
.vacation-card h2 { font-size: 1.55rem; }
.vacation-card .vacation-role { margin: .25rem 0 1.5rem; color: var(--primary); font-size: .82rem; font-weight: 700; }
.vacation-list { margin: 0; padding: 0; list-style: none; }
.vacation-period { padding: .85rem 0; border-top: 1px solid var(--border); }
.vacation-period strong { display: block; color: var(--ink); }
.vacation-period span { color: var(--muted); font-size: .84rem; }
.vacation-empty { margin: auto 0 0; padding: 1rem; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: .88rem; }
.vacation-note { margin-top: 2rem; padding: 1.2rem 1.4rem; border-left: 4px solid var(--primary); background: var(--sage); color: var(--muted); }
.profile-vacations .vacation-empty { margin: 1.25rem 0; }
.profile-vacation-link { width: fit-content; margin-top: 1.25rem; padding-bottom: .2rem; display: block; border-bottom: 1px solid var(--primary); color: var(--primary); font-size: .82rem; font-weight: 700; }
.patient-hero { padding: clamp(3rem, 7vw, 6rem) max(1.5rem, calc((100% - 1180px) / 2)); background: linear-gradient(145deg, #f4faff, var(--sage)); }
.patient-hero .breadcrumb { margin-bottom: 2.5rem; }
.patient-hero h1 { max-width: 850px; color: var(--ink); }
.patient-hero > p:last-child { max-width: 720px; margin: 1rem 0 0; color: var(--muted); font-size: 1.08rem; }
.patient-info-content { width: min(1180px, calc(100% - 3rem)); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.patient-info-heading { margin-bottom: 2.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 7rem); align-items: end; }
.patient-info-heading > p { margin: 0; color: var(--muted); }
.patient-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.patient-info-card { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--border); border-radius: 6px 34px 6px 6px; background: var(--white); }
.patient-info-card:nth-child(2n) { background: #f4faff; }
.patient-info-number { display: block; margin-bottom: 2.5rem; color: var(--primary); font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.patient-info-card h2 { margin-bottom: .85rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.patient-info-card p { color: var(--muted); }
.patient-info-card ul, .patient-info-card ol { margin: 1rem 0 0; padding-left: 1.25rem; color: var(--muted); }
.patient-info-card li + li { margin-top: .55rem; }
.patient-info-card a { color: var(--primary); font-weight: 700; }
.patient-emergency { margin-top: 1rem; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; border-radius: 6px 34px 6px 6px; background: var(--primary); color: var(--white); }
.patient-emergency .eyebrow { color: #d8effc; }
.patient-emergency h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.patient-emergency p { margin: .65rem 0 0; color: rgba(255,255,255,.85); }
.emergency-button { padding: .9rem 1.35rem; border-radius: 999px; background: var(--white); color: var(--primary); font-weight: 700; white-space: nowrap; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }

@media (max-width: 960px) {
  .site-header { min-height: 74px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 1.2rem 1.5rem 1.5rem; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); box-shadow: 0 20px 30px rgba(23,53,47,.12); }
  .main-nav.is-open { display: flex; }
  .main-nav > a:not(.nav-cta) { padding: .8rem 0; }
  .nav-cta { margin-top: .7rem; text-align: center; }
  .photo-banner { height: 50vh; min-height: 360px; }
  .intro { grid-template-columns: 1fr; gap: 1.4rem; }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .vacation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .brand small { display: none; }
  .photo-banner { min-height: 420px; }
  .banner-shade { background: linear-gradient(0deg, rgba(7,35,29,.77), rgba(7,35,29,.08) 78%); }
  .banner-caption { left: 1.5rem; right: 1.5rem; bottom: 5rem; }
  h1 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .slider-controls { right: 1.5rem; bottom: 1.25rem; }
  .team-heading { grid-template-columns: 1fr; gap: 1rem; }
  .provider-grid { grid-template-columns: 1fr; }
  .news-heading { align-items: flex-start; flex-direction: column; }
  .news-grid { grid-template-columns: 1fr; }
  .info-strip { align-items: flex-start; flex-direction: column; }
  .site-footer { padding-bottom: 7.5rem; grid-template-columns: 1fr; gap: 1rem; }
  .mobile-book { position: fixed; z-index: 900; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); width: calc(100% - 2rem); max-width: 360px; padding: 1rem 1.4rem; display: flex; justify-content: center; align-items: center; gap: .6rem; border-radius: 999px; background: var(--primary); color: var(--white); box-shadow: 0 12px 35px rgba(8, 83, 128, .32); font-weight: 700; }
  .modal-info-grid { grid-template-columns: 1fr; }
  .profile-content { grid-template-columns: 1fr; }
  .profile-actions { flex-direction: column; }
  .profile-actions .button-primary, .profile-actions .button-secondary { width: 100%; }
  .vacation-page-heading { align-items: flex-start; flex-direction: column; }
  .vacation-grid { grid-template-columns: 1fr; }
  .patient-info-heading, .patient-info-grid, .patient-emergency { grid-template-columns: 1fr; }
  .patient-info-heading { gap: 1rem; }
  .patient-emergency { align-items: start; }
  .emergency-button { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
