/* ==========================================================================
   MGM Healthcare Services — stylesheet
   ========================================================================== */

:root {
  --brand:        #0f8a8d;
  --brand-dark:   #0a6b6e;
  --brand-light:  #e6f4f4;
  --accent:       #f2a516;
  --navy:         #10233f;
  --navy-soft:    #1b3559;
  --body:         #5a6b7d;
  --heading:      #10233f;
  --line:         #e3e9ef;
  --bg-soft:      #f6f9fb;
  --white:        #ffffff;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 10px 30px rgba(16, 35, 63, .08);
  --shadow-lg:    0 18px 50px rgba(16, 35, 63, .14);
  --container:    1200px;
  --ff-head:      "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-body:      "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h:     84px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-dark); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--brand); }
ul { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  color: var(--heading);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p + p { margin-top: 1rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }
.grid { display: grid; gap: 2rem; }
.text-center { text-align: center; }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-dark); margin-bottom: .75rem;
}
.section-head p { margin-top: 1rem; }
.title-line { margin: 1rem auto 0; width: 120px; }
.section-head--left .title-line { margin-inline: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-head); font-weight: 600; font-size: .9rem;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .95rem 2rem; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: all .28s ease; text-align: center;
}
.btn--sm { padding: .5rem 1.4rem; font-size: .78rem; }
.btn--primary { background: var(--brand-dark); color: #fff; box-shadow: 0 8px 20px rgba(15,138,141,.28); }
.btn--primary:hover { background: #085255; color: #fff; transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--navy); box-shadow: 0 8px 20px rgba(242,165,22,.3); }
.btn--accent:hover { background: #d98f08; color: var(--navy); transform: translateY(-2px); }
.btn--outline { border-color: var(--brand-dark); color: var(--brand-dark); background: transparent; }
.btn--outline:hover { background: var(--brand-dark); color: #fff; }
.btn--white { background: #fff; color: var(--brand-dark); }
.btn--white:hover { background: var(--accent); color: var(--navy); }
.btn--ghost-white { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-white:hover { background: #fff; color: var(--brand); }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  background: var(--navy); color: #cfd9e6; font-size: .875rem;
  padding: .55rem 0;
}
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar__list { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.topbar__list li { display: flex; align-items: center; gap: .5rem; }
.topbar a { color: #cfd9e6; }
.topbar a:hover { color: var(--accent); }
.topbar svg { width: 16px; height: 16px; fill: var(--brand); flex: none; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(16,35,63,.09); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 190px; height: auto; }

.nav__menu { display: flex; align-items: center; gap: .35rem; }
.nav__menu a {
  display: block; padding: .6rem .9rem; border-radius: 6px;
  font-family: var(--ff-head); font-weight: 600; font-size: .95rem; color: var(--heading);
}
.nav__menu a:hover { color: var(--brand-dark); background: var(--brand-light); }
.nav__menu a[aria-current="page"] { color: var(--brand-dark); }
.nav__cta { flex: none; }
.nav__drawer-cta { display: none; }
/* the drawer CTA must never inherit the plain nav-link styling */
.nav__menu .nav__drawer-cta a:hover { background: #085255; color: #fff; }

.nav__toggle {
  display: none; background: transparent; border: 0; padding: .5rem;
  cursor: pointer; color: var(--heading);
}
.nav__toggle svg { width: 28px; height: 28px; fill: currentColor; }

@media (max-width: 1080px) {
  .nav__cta { display: none; }
}
@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw);
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 5.5rem 1.5rem 2rem; gap: .25rem;
    transform: translateX(100%); transition: transform .3s ease;
    box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 120;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a { padding: .85rem 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__backdrop {
    position: fixed; inset: 0; background: rgba(16,35,63,.5);
    opacity: 0; visibility: hidden; transition: .3s ease; z-index: 110;
  }
  .nav__backdrop.is-open { opacity: 1; visibility: visible; }
  .nav__close {
    position: absolute; top: 1.25rem; right: 1.25rem;
    background: transparent; border: 0; cursor: pointer; padding: .4rem; color: var(--heading);
  }
  .nav__close svg { width: 26px; height: 26px; fill: currentColor; }
}
@media (min-width: 961px) { .nav__close-item { display: none; } }

/* ==========================================================================
   Hero slider
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.hero__slides { display: grid; min-height: clamp(460px, 74vh, 720px); }
/* svh avoids the mobile URL-bar collapse jump; ignored by browsers without support */
@supports (height: 1svh) { .hero__slides { min-height: clamp(440px, 76svh, 720px); } }
.hero__slide {
  grid-area: 1 / 1; position: relative;
  display: grid; align-items: center;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s ease;
}
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,35,63,.86) 0%, rgba(16,35,63,.62) 45%, rgba(16,35,63,.22) 100%);
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__content { position: relative; z-index: 2; max-width: 720px; padding: 4rem 0; }
.hero__eyebrow {
  display: inline-block; color: var(--accent); font-family: var(--ff-head);
  font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .82rem;
  margin-bottom: 1rem;
}
.hero__title {
  color: #fff; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
}
.hero__text { color: #dbe4ef; margin-top: 1.25rem; font-size: 1.05rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .25s ease;
}
.hero__nav:hover { background: var(--brand); border-color: var(--brand); }
.hero__nav svg { width: 20px; height: 20px; fill: currentColor; }
.hero__nav--prev { left: 1.25rem; }
.hero__nav--next { right: 1.25rem; }
@media (max-width: 720px) { .hero__nav { display: none; } }

.hero__dots {
  position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: .6rem;
}
/* 12px dots are far below the 24px minimum target size, so the visible dot is
   drawn with ::before while the button itself stays a 44px touch target. */
.hero__dots button {
  width: 30px; height: 44px; padding: 0; border: 0; background: transparent;
  cursor: pointer; display: grid; place-items: center;
}
.hero__dots button::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8); transition: .25s ease;
}
.hero__dots button[aria-current="true"]::before {
  background: var(--accent); border-color: var(--accent); width: 26px; border-radius: 8px;
}

/* ---------- page banner (inner pages) ---------- */
.page-banner {
  position: relative; padding: clamp(3.5rem, 9vw, 6.5rem) 0;
  background: var(--navy) center/cover no-repeat;
  text-align: center;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,35,63,.82), rgba(16,35,63,.9));
}
.page-banner__inner { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; }
.breadcrumb { display: flex; justify-content: center; gap: .6rem; margin-top: .9rem; color: #c3cfdf; font-size: .95rem; }
.breadcrumb a { color: var(--accent); }
.breadcrumb li + li::before { content: "›"; margin-right: .6rem; color: #8ba0bb; }
.breadcrumb li { display: flex; }

/* ==========================================================================
   Cards / features
   ========================================================================== */
.cards { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; height: 100%; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
        .btn--primary:hover, .btn--accent:hover { transform: translateY(-2px); }
}
.card__icon {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover;
  margin-bottom: 1.25rem; background: var(--brand-light);
}
.card h3 { margin-bottom: .65rem; }
.card ul { margin-top: .85rem; display: grid; gap: .5rem; }
.card ul li { position: relative; padding-left: 1.65rem; }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
}

.svc-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.svc-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-light); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-card:hover .svc-card__media img { transform: scale(1.06); }
.svc-card__body { padding: 1.75rem; flex: 1; }

/* ---------- about split ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split--reverse .split__media { order: 2; }
@media (max-width: 899px) { .split--reverse .split__media { order: 0; } }

.about-media { position: relative; isolation: isolate; margin-bottom: 2rem; }
.about-media__main { position: relative; z-index: 1; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about-media__badge {
  position: absolute; right: -10px; bottom: -28px; z-index: 2;
  width: min(220px, 45%); border-radius: var(--radius);
  border: 8px solid #fff; box-shadow: var(--shadow); background: #fff;
}
.about-media__shape { position: absolute; left: -24px; top: -24px; width: 110px; opacity: .45; z-index: 0; }

.checklist { display: grid; gap: .85rem; margin-top: 1.5rem; }
.checklist li { position: relative; padding-left: 2.1rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checklist strong { color: var(--heading); font-family: var(--ff-head); }

/* ---------- stat / feature strip ---------- */
.feature-row { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.feature {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line);
}
.feature img { width: 54px; flex: none; }
.feature h3 { font-size: 1.15rem; margin-bottom: .35rem; }

/* ---------- roles ---------- */
.roles { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.role { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.role img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .5s ease; }
.role:hover img { transform: scale(1.05); }
.role figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(transparent, rgba(16,35,63,.9));
  color: #fff; font-family: var(--ff-head); font-weight: 600; font-size: 1.2rem; letter-spacing: .04em;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; color: #fff; text-align: center;
  background: var(--brand) center/cover;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, var(--navy), rgba(15,138,141,.9));
}
.cta-band__inner { position: relative; z-index: 2; }
.cta-band h2, .cta-band .eyebrow { color: #fff; }
.cta-band .eyebrow { color: var(--accent); }
.cta-band p { color: #d9e3f0; max-width: 680px; margin: 1rem auto 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* ---------- testimonials ---------- */
.testimonials { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.25rem 2rem; position: relative;
}
.testimonial__quote { font-size: 3.5rem; line-height: 1; color: var(--brand-light); font-family: Georgia, serif; }
.testimonial blockquote { font-style: italic; color: var(--body); margin: -1rem 0 1.5rem; }
.testimonial__author { display: flex; align-items: center; gap: 1rem; }
.testimonial__author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--brand-light); }
.testimonial__author strong { display: block; font-family: var(--ff-head); color: var(--heading); font-size: 1rem; }
.testimonial__author > span > span { font-size: .875rem; }

/* ---------- tabs ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.tabs__btn {
  padding: .8rem 1.6rem; border-radius: 50px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-family: var(--ff-head); font-weight: 600; font-size: .92rem;
  color: var(--heading); transition: .25s ease;
}
.tabs__btn:hover { border-color: var(--brand); color: var(--brand); }
.tabs__btn[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tabs__panel[hidden] { display: none; }

/* ---------- accordion-ish info blocks / contact ---------- */
.info-cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; text-align: center;
}
.info-card__icon {
  width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%;
  background: var(--brand-light); display: grid; place-items: center;
}
.info-card__icon svg { width: 28px; height: 28px; fill: var(--brand); }
.info-card h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.info-card a { color: var(--body); }
.info-card a:hover { color: var(--brand); }

/* ---------- schedule strip ---------- */
.schedule-strip {
  display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  background: var(--brand-light); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem; margin-bottom: 2rem;
}
.schedule-strip__item { display: flex; flex-direction: column; gap: .45rem; }
.schedule-strip label {
  font-family: var(--ff-head); font-weight: 600; font-size: .85rem; color: var(--heading);
}
.schedule-strip select {
  padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.schedule-strip select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,138,141,.15);
}

/* ---------- forms ---------- */
.form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--ff-head); font-weight: 600; font-size: .85rem; color: var(--heading); letter-spacing: .02em; }
.field .req { color: #d9534f; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,138,141,.15);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #d9534f; box-shadow: 0 0 0 3px rgba(217,83,79,.14);
}
.field__error { color: #d9534f; font-size: .82rem; min-height: 0; }
.field__error:empty { display: none; }
.field__hint { font-size: .82rem; }

.choice-group { border: 0; padding: 0; margin: 0; }
.choice-group legend { font-family: var(--ff-head); font-weight: 600; font-size: .85rem; color: var(--heading); margin-bottom: .6rem; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choices label {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 50px;
  cursor: pointer; font-size: .9rem; transition: .2s ease; background: #fff;
}
.choices label:hover { border-color: var(--brand); }
.choices input { accent-color: var(--brand); }
.choices input:checked + span { color: var(--brand); font-weight: 600; }

.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 2rem 1rem;
  text-align: center; background: var(--bg-soft); transition: .25s ease; cursor: pointer;
}
.dropzone.is-drag { border-color: var(--brand); background: var(--brand-light); }
.dropzone svg { width: 34px; height: 34px; fill: var(--brand); margin: 0 auto .5rem; }
.dropzone input { display: none; }
.dropzone__files { margin-top: .75rem; font-size: .88rem; color: var(--brand-dark); }

.form-note {
  margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  background: var(--brand-light); color: var(--brand-dark); font-size: .92rem;
}
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status--ok { color: var(--brand-dark); }
.form-status--err { color: #d9534f; }

.map-embed { width: 100%; height: 420px; border: 0; display: block; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: #b9c6d8; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer h4 { color: #fff; margin-bottom: 1.25rem; font-size: 1.1rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.site-footer a { color: #b9c6d8; }
.site-footer a:hover { color: var(--accent); }
.footer-logo { width: 180px; margin-bottom: 1.25rem; }
.footer-list { display: grid; gap: .7rem; }
.footer-list li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-list svg { width: 17px; height: 17px; fill: var(--brand); flex: none; margin-top: .45em; }
.social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background .25s ease, transform .25s ease;
}
.social a:hover { background: var(--brand); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; fill: #fff; }

.footer-links { display: grid; gap: .55rem; }
.footer-links a { display: inline-block; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.4rem 0; text-align: center; font-size: .9rem;
}

.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s ease;
  box-shadow: var(--shadow);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--navy); }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Mobile / small-screen refinements
   ========================================================================== */

/* Tablet and below */
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { width: 155px; }
  .nav { gap: .75rem; }
  /* the desktop CTA is hidden at this width — surface it inside the drawer */
  .nav__menu .nav__drawer-cta { display: block; margin-top: 1.25rem; }
  /* undo the drawer's flat list-link styling for the CTA pill */
  .nav__menu .nav__drawer-cta .btn {
    width: 100%; border-bottom: 0; border-radius: 50px;
    padding: .95rem 1.5rem; color: #fff;
  }
  .section-head { margin-bottom: 2.25rem; }
}

/* Phones */
@media (max-width: 640px) {
  .container { width: min(100% - 2rem, var(--container)); }

  /* The top bar stacked into 4 lines and ate the fold. Keep the phone number
     (the primary conversion action), drop the rest — all of it repeats in the footer. */
  .topbar { font-size: .8rem; }
  .topbar__inner { justify-content: center; gap: .5rem; }
  .topbar__list { gap: 1rem; justify-content: center; }
  .topbar__list li:nth-child(2),
  .topbar__list li:nth-child(3),
  .topbar .btn { display: none; }

  .hero__content { padding: 3rem 0; }
  .hero__title { font-size: clamp(1.55rem, 7.2vw, 2.2rem); }
  .hero__text { font-size: 1rem; }
  .hero__actions { gap: .75rem; margin-top: 1.5rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__dots { bottom: .75rem; }

  /* decorative overhangs pulled inside the viewport */
  .about-media { margin-bottom: 1.25rem; }
  .about-media__badge { right: 0; bottom: -18px; width: min(150px, 38%); border-width: 5px; }
  .about-media__shape { left: -8px; top: -8px; width: 74px; }

  .card, .info-card, .testimonial { padding: 1.5rem; }
  .svc-card { padding: 0; }
  .svc-card__body { padding: 1.4rem; }
  .schedule-strip { padding: 1.25rem; }

  .feature { flex-direction: column; gap: .75rem; }

  /* full-width buttons read better than centred pills on a narrow column */
  .cta-band__actions .btn,
  .form-wrap button[type="submit"] { width: 100%; }
  .cta-band__actions { gap: .75rem; }

  .map-embed { height: 300px; }
  .role img { aspect-ratio: 3 / 2; }

  .footer-grid { gap: 2rem; }
  /* give footer links a real thumb target instead of bare text height */
  .footer-links a { padding: .35rem 0; }
  .footer-list { gap: .9rem; }
}

/* Very narrow devices */
@media (max-width: 380px) {
  .brand img { width: 135px; }
  .btn { padding: .85rem 1.25rem; font-size: .82rem; }
  .tabs__btn { padding: .7rem 1rem; font-size: .85rem; width: 100%; }
  .choices label { width: 100%; }
}

/* Landscape phones: a 76svh hero would swallow the whole screen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero__slides { min-height: 420px; }
  .hero__content { padding: 2.5rem 0; }
}

/* Kill the blue tap flash on interactive elements */
a, button, .dropzone, .choices label { -webkit-tap-highlight-color: rgba(15,138,141,.15); }

/* ---------- print ---------- */
@media print {
  .topbar, .site-header, .hero__nav, .hero__dots, .to-top, .nav__backdrop, .map-wrap, form { display: none !important; }
  body { color: #000; }
  .section { padding: 1rem 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
