:root {
  color-scheme: light;
  --primary: #176b53;
  --primary-dark: #104d3d;
  --primary-soft: #e5f1eb;
  --accent: #df8158;
  --accent-dark: #bd6542;
  --bg: #f7f6f1;
  --surface: #fffefa;
  --surface-raised: #ffffff;
  --text: #20352d;
  --text-soft: #52645b;
  --grey-1: #f0f2ec;
  --grey-2: #dde4dc;
  --grey-3: #63736a;
  --success: #26734e;
  --warning: #a96b1f;
  --danger: #b5443d;
  --shadow: 0 3px 12px rgba(34, 62, 48, .07);
  --shadow-raised: 0 18px 50px rgba(31, 68, 49, .12);
  --radius: 18px;
  --radius-sm: 11px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body, button, input, select, textarea { font-family: "DM Sans", "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--primary-dark); }
button, input, select, textarea { font-size: inherit; }
button { color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  line-height: 1.13;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.25rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 3rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.container { width: min(1200px, 100%); margin-inline: auto; padding-inline: 28px; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; transform: translateY(-160%); border-radius: 10px; background: var(--surface); padding: 10px 14px; box-shadow: var(--shadow-raised); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #d58a60; outline-offset: 3px; }
::selection { color: #fff; background: var(--primary); }

/* Buttons and links */
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 21px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 160ms var(--ease-out);
}
.btn:hover { color: #fff; box-shadow: 0 8px 18px rgba(30, 73, 52, .13); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--primary); background: transparent; color: var(--primary); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-dark); box-shadow: none; }
.btn-danger { background: var(--danger); }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.btn:disabled, button:disabled { cursor: not-allowed; opacity: .55; transform: none; }

/* Public site navigation */
.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  border-bottom: 1px solid rgba(43, 72, 54, .08);
  background: rgba(250, 249, 244, .94);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}
.site-header.scrolled { background: rgba(255, 254, 250, .97); box-shadow: 0 8px 24px rgba(25, 55, 39, .08); }
.nav-wrap { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; color: var(--primary-dark); font-family: "Fraunces", Georgia, serif; font-size: 25px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.main-nav a { position: relative; color: var(--text-soft); font-size: 14px; font-weight: 700; text-decoration: none; transition: color 160ms ease; }
.main-nav a::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 180ms var(--ease-out); }
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { transform: scaleX(1); }
.mobile-signin, .mobile-portal { display: none; }
.nav-cta { display: flex; align-items: center; gap: 9px; }
.nav-cta .btn { min-height: 42px; padding-inline: 16px; font-size: 13px; }
.hamburger { display: none; width: 42px; height: 42px; border: 1px solid var(--grey-2); border-radius: 50%; background: var(--surface); font-size: 21px; cursor: pointer; }
main#main { min-height: 55vh; }

/* Marketing hero and content sections */
.hero { position: relative; overflow: hidden; padding: 80px 0; background: radial-gradient(circle at 85% 5%, #f3e6d2 0, transparent 32%), linear-gradient(145deg, #f9f6ed 0%, #edf4ec 100%); }
.hero > .container { position: relative; }
.hero h1 { max-width: 850px; margin-inline: auto; color: var(--primary-dark); }
.hero p { max-width: 680px; margin: 18px auto 28px; color: var(--text-soft); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero .btn { margin: 0 5px; }
.hero .trust-badges { margin-top: 30px; }
.hero-home { min-height: 600px; padding: 64px 0 72px; background: linear-gradient(100deg, #f6f4e9 0%, #f6f4e9 46%, #e5ece1 100%); }
.hero-home::before { position: absolute; top: -140px; right: -130px; width: 500px; height: 500px; border: 1px solid rgba(23, 107, 83, .12); border-radius: 50%; content: ""; }
.hero-home::after { position: absolute; right: 4%; bottom: -230px; width: 380px; height: 380px; border: 1px solid rgba(223, 129, 88, .23); border-radius: 50%; content: ""; }
.hero-home .hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); align-items: center; gap: clamp(40px, 7vw, 92px); }
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow, .eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { width: 24px; height: 2px; background: var(--accent); content: ""; }
.hero-home h1 { max-width: 640px; margin: 0; font-size: clamp(3rem, 6vw, 5.4rem); }
.hero-home .hero-copy > p { max-width: 530px; margin: 20px 0 26px; font-size: clamp(1.05rem, 1.8vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-home .trust-badges { justify-content: flex-start; gap: 9px; }
.hero-home .badge-pill { border: 0; background: rgba(255, 254, 250, .75); box-shadow: none; }
.hero-visual { position: relative; z-index: 1; min-height: 450px; }
.hero-photo { position: absolute; inset: 0 18px 0 20px; overflow: hidden; border: 8px solid rgba(255, 254, 250, .74); border-radius: 44% 44% 24px 24px; background: #dbe6dc; box-shadow: var(--shadow-raised); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }
.hero-photo::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18, 51, 37, .27)); content: ""; }
.hero-note { position: absolute; right: -4px; bottom: 24px; max-width: 230px; border: 1px solid rgba(23, 107, 83, .1); border-radius: 16px; background: var(--surface); padding: 16px 18px; box-shadow: var(--shadow-raised); }
.hero-note strong { display: block; color: var(--primary-dark); font-family: "Fraunces", Georgia, serif; font-size: 18px; }
.hero-note span { color: var(--text-soft); font-size: 13px; }
.hero-note .note-stars { color: #bb7b26; letter-spacing: .08em; }
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.badge-pill { display: inline-flex; align-items: center; border: 1px solid rgba(37, 84, 59, .1); border-radius: 999px; background: rgba(255, 254, 250, .85); padding: 8px 14px; color: var(--text-soft); font-size: 12px; font-weight: 700; text-decoration: none; box-shadow: 0 3px 10px rgba(32, 53, 45, .04); }
section.block { padding: clamp(56px, 8vw, 92px) 0; }
section.block:nth-of-type(even) { background: rgba(255, 254, 250, .62); }
.section-title { margin-bottom: 12px; text-align: center; }
.section-intro { max-width: 670px; margin: 0 auto 38px; color: var(--text-soft); text-align: center; }
.grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-width: 0; border: 1px solid rgba(44, 74, 54, .08); border-radius: var(--radius); background: var(--surface); padding: clamp(20px, 2.5vw, 30px); box-shadow: var(--shadow); transition: border-color 180ms ease, box-shadow 200ms ease, transform 200ms var(--ease-out); }
.card:hover { border-color: rgba(23, 107, 83, .2); box-shadow: 0 12px 28px rgba(31, 68, 49, .1); transform: translateY(-3px); }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--text-soft); }
.card > :last-child { margin-bottom: 0; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.provider-avatar { width: 64px; height: 64px; margin: 0 0 18px; border-radius: 50%; background: var(--primary-soft); object-fit: cover; }
.provider-avatar-placeholder { display: grid; place-items: center; color: var(--primary); font-family: "Fraunces", Georgia, serif; font-size: 26px; font-weight: 700; }

/* Shared forms, data tables, stats, feedback */
.form-group { min-width: 0; margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; color: var(--text); font-size: 14px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d5ded5;
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 11px 14px;
  color: var(--text);
  font: inherit;
  line-height: 1.45;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
textarea { min-height: 112px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #77857c; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(23, 107, 83, .12); }
input[type=checkbox], input[type=radio] { width: 18px; min-height: 18px; height: 18px; accent-color: var(--primary); }
input[type=file] { min-height: auto; padding: 9px; }
input[type=range] { min-height: auto; padding-inline: 0; }
.form-card { width: min(640px, calc(100% - 32px)); margin: 44px auto; border: 1px solid rgba(44, 74, 54, .09); border-radius: 22px; background: var(--surface); padding: clamp(24px, 5vw, 42px); box-shadow: var(--shadow-raised); }
.error-msg { margin-top: 5px; color: var(--danger); font-size: 13px; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid rgba(44, 74, 54, .08); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { position: sticky; top: 0; background: #eff3ed; color: var(--text); font-weight: 800; text-align: left; }
th, td { padding: 13px 16px; vertical-align: middle; }
td { border-top: 1px solid #e8ece6; color: var(--text-soft); }
tbody tr:nth-child(even) { background: rgba(240, 242, 236, .46); }
tbody tr:hover { background: #f2f7f1; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { border: 1px solid rgba(44, 74, 54, .08); border-radius: var(--radius); background: var(--surface); padding: 21px 23px; box-shadow: var(--shadow); }
.stat .num { color: var(--primary); font-family: "Fraunces", Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.stat .lbl { margin-top: 6px; color: var(--text-soft); font-size: 13px; font-weight: 700; }
.toast { margin: 0 0 18px; border: 1px solid transparent; border-radius: 12px; padding: 13px 16px; font-weight: 600; }
.toast-success { border-color: #b8ddc5; background: #eaf5ec; color: #205f3e; }
.toast-danger { border-color: #f0c3b9; background: #fff0eb; color: #923c35; }
.toast-warning { border-color: #ead2a4; background: #fff7e7; color: #78531a; }
.stars { color: #a96b1f; letter-spacing: .08em; }
.empty-state { border: 1px dashed #cbd8cc; border-radius: var(--radius); background: rgba(255, 254, 250, .75); padding: 40px 24px; text-align: center; }

/* App portals */
body.portal { min-height: 100vh; background: #f3f5f0; }
.portal-layout { display: flex; min-height: 100vh; }
.portal-sidebar { position: sticky; top: 0; display: flex; width: 258px; height: 100vh; flex: 0 0 258px; flex-direction: column; overflow-y: auto; background: #153f34; padding: 25px 17px; color: #fff; }
.portal-sidebar .logo { padding: 0 10px; color: #fff; }
.portal-sidebar .logo span { color: #f2ab82; }
.portal-sidebar nav { display: flex; flex: 1; flex-direction: column; gap: 5px; margin-top: 34px; }
.portal-sidebar nav a { display: flex; min-height: 46px; align-items: center; border: 1px solid transparent; border-radius: 11px; padding: 10px 13px; color: rgba(255, 255, 255, .76); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color 150ms ease, color 150ms ease; }
.portal-sidebar nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.portal-sidebar nav a.active { border-color: rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .14); color: #fff; }
.portal-main { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.portal-topbar { position: sticky; z-index: 40; top: 0; display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(43, 72, 54, .08); background: rgba(255, 254, 250, .94); padding: 16px clamp(20px, 4vw, 48px); backdrop-filter: blur(14px); }
.portal-topbar h1 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
.topbar-right, .user-menu { display: flex; align-items: center; gap: 14px; }
.user-menu { min-width: 0; }
.user-menu > span { max-width: 240px; overflow: hidden; color: var(--text-soft); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.bell { position: relative; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--grey-2); border-radius: 50%; background: var(--surface); font-size: 17px; cursor: pointer; }
.badge { position: absolute; top: -4px; right: -5px; min-width: 19px; border: 2px solid var(--surface); border-radius: 999px; background: var(--accent); padding: 1px 5px; color: #fff; font-size: 10px; font-weight: 800; text-align: center; }
.portal-content { width: 100%; max-width: 1500px; flex: 1; margin-inline: auto; padding: clamp(20px, 3vw, 38px) clamp(18px, 4vw, 48px); }
.portal-content h2 { margin-bottom: 18px; }
.portal-content .card { box-shadow: 0 2px 8px rgba(34, 62, 48, .045); }
.portal-content .card:hover { transform: none; }

/* Dialogs and footer */
.modal { position: fixed; z-index: 200; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(14, 38, 28, .55); padding: 20px; backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-box { width: min(640px, 100%); max-height: min(86vh, 900px); overflow: auto; border: 1px solid rgba(255, 255, 255, .5); border-radius: 22px; background: var(--surface); padding: clamp(22px, 4vw, 34px); box-shadow: 0 28px 80px rgba(9, 32, 22, .28); animation: modal-in 220ms var(--ease-out) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.site-footer { margin-top: 36px; background: #153f34; padding: 58px 0 24px; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { margin-bottom: 14px; color: #fff; font-family: "DM Sans", sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.site-footer p { max-width: 300px; color: rgba(255, 255, 255, .72); font-size: 14px; }
.site-footer a { display: block; width: fit-content; margin: 7px 0; color: rgba(255, 255, 255, .76); font-size: 14px; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 32px; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 19px; color: rgba(255, 255, 255, .62); font-size: 12px; text-align: center; }
.footer-bottom p { margin: 0; }

/* Provider profile content */
.provider-modal-header { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.provider-modal-photo { width: 92px; height: 92px; flex: 0 0 92px; border-radius: 50%; background: var(--grey-1); object-fit: cover; }
.provider-modal-info { min-width: 0; }
.provider-modal-info h3 { margin-bottom: 5px; }
.provider-modal-info p { margin-bottom: 3px; color: var(--text-soft); font-size: 14px; }
.provider-modal-section { margin-top: 20px; border-top: 1px solid var(--grey-2); padding-top: 18px; }
.provider-modal-section h4 { margin-bottom: 12px; color: var(--primary); font-family: "DM Sans", sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.availability-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.availability-day { border-radius: 8px; padding: 9px 3px; font-size: 11px; text-align: center; }
.availability-day.available { background: #e5f1e7; color: #286943; }
.availability-day.unavailable { background: var(--grey-1); color: var(--grey-3); }
.review-item { border-bottom: 1px solid var(--grey-1); padding: 13px 0; text-align: left; overflow-wrap: anywhere; }
.review-item:last-child { border-bottom: 0; }

/* Purposeful entrance/scroll motion; content remains readable without JS. */
.motion-ready .reveal { opacity: 0; transform: translateY(12px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.motion-ready .grid-3 > .reveal:nth-child(2), .motion-ready .grid-4 > .reveal:nth-child(2) { transition-delay: 45ms; }
.motion-ready .grid-3 > .reveal:nth-child(3), .motion-ready .grid-4 > .reveal:nth-child(3) { transition-delay: 90ms; }
.motion-ready .grid-4 > .reveal:nth-child(4) { transition-delay: 135ms; }

@media (max-width: 980px) {
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 13px; }
  .nav-cta .btn { padding-inline: 12px; }
  .hero-home { min-height: auto; }
  .hero-home .hero-layout { grid-template-columns: minmax(0, 1.05fr) minmax(280px, .85fr); gap: 28px; }
  .hero-visual { min-height: 390px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-sidebar { width: 220px; flex-basis: 220px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .container { padding-inline: 20px; }
  .nav-wrap { position: relative; min-height: 68px; gap: 10px; }
  .logo { font-size: 23px; }
  .main-nav { position: absolute; top: calc(100% - 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; border: 1px solid var(--grey-2); border-top: 0; border-radius: 0 0 16px 16px; background: var(--surface); padding: 9px 16px 15px; box-shadow: var(--shadow-raised); }
  .main-nav.open { display: flex; flex-direction: column; }
  .main-nav a { border-radius: 9px; padding: 11px 10px; font-size: 15px; }
  .mobile-signin, .mobile-portal { display: block; }
  .main-nav a::after { display: none; }
  .main-nav a:hover { background: var(--primary-soft); }
  .nav-cta { gap: 7px; }
  .nav-cta .btn { min-height: 39px; padding: 8px 12px; font-size: 12px; }
  .hamburger { display: inline-grid; flex: 0 0 40px; place-items: center; }
  .hero { padding: 64px 0; }
  .hero-home { padding: 52px 0 58px; }
  .hero-home .hero-layout { grid-template-columns: 1fr; gap: 34px; }
  .hero-home h1 { max-width: 650px; font-size: clamp(2.8rem, 11vw, 4.6rem); }
  .hero-visual { width: min(520px, 100%); min-height: clamp(310px, 78vw, 430px); margin-inline: auto; }
  .hero-photo { inset-inline: 12px; border-width: 6px; border-radius: 43% 43% 20px 20px; }
  .hero-note { right: 0; bottom: 15px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card { border-radius: 15px; }
  .portal-layout { display: flex; flex-direction: column; }
  .portal-sidebar { position: relative; top: auto; width: 100%; height: auto; flex: none; overflow: visible; padding: 13px 16px 10px; }
  .portal-sidebar .logo { padding-inline: 5px; }
  .portal-sidebar nav { flex: none; flex-direction: row; gap: 5px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; scrollbar-width: thin; }
  .portal-sidebar nav a { min-height: 40px; flex: 0 0 auto; padding: 8px 12px; font-size: 12px; white-space: nowrap; }
  .portal-topbar { position: relative; min-height: 70px; padding: 13px 20px; }
  .portal-content { padding: 22px 18px 34px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 20px; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .container { padding-inline: 17px; }
  .nav-wrap { min-height: 64px; }
  .nav-cta .btn-outline { display: none; }
  .nav-cta .btn { min-height: 38px; padding: 8px 12px; }
  .hero { padding: 51px 0; }
  .hero-home { padding: 44px 0 50px; }
  .hero-home .hero-copy > p { margin-block: 16px 22px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { flex: 1; margin: 0; padding-inline: 12px; font-size: 13px; }
  .hero-home .trust-badges { gap: 7px; }
  .hero-home .badge-pill { padding: 7px 10px; font-size: 10px; }
  .hero-visual { min-height: 310px; }
  .hero-note { max-width: 195px; padding: 12px 14px; }
  .hero-note strong { font-size: 16px; }
  section.block { padding: 52px 0; }
  .section-title { margin-bottom: 8px; }
  .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .card { padding: 21px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 16px; }
  .portal-sidebar { padding-inline: 12px; }
  .portal-topbar { align-items: flex-start; gap: 12px; }
  .portal-topbar h1 { max-width: 60%; font-size: 1.3rem; }
  .topbar-right { gap: 8px; }
  .user-menu { gap: 6px; }
  .user-menu > span { display: none; }
  .portal-content { padding: 18px 13px 28px; }
  .form-card { width: calc(100% - 24px); margin-block: 24px; padding: 23px 18px; }
  .modal { align-items: flex-end; padding: 0; }
  .modal-box { max-height: 91vh; border-radius: 22px 22px 0 0; padding: 22px 17px; }
  .provider-modal-header { align-items: flex-start; gap: 12px; }
  .provider-modal-photo { width: 68px; height: 68px; flex-basis: 68px; }
  .availability-grid { gap: 3px; }
  .availability-day { padding-inline: 1px; font-size: 10px; }
  .footer-grid { gap: 22px 15px; }
  .site-footer { padding-top: 44px; }
  th, td { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}

@media (hover: none) {
  .btn:hover { box-shadow: none; transform: none; }
  .btn-primary:hover { background: var(--primary); }
  .btn-accent:hover { background: var(--accent); }
  .btn-outline:hover { border-color: var(--primary); background: transparent; color: var(--primary); }
  .card:hover { border-color: rgba(44, 74, 54, .08); box-shadow: var(--shadow); transform: none; }
  .main-nav a:hover { background: transparent; color: var(--text-soft); }
}
