/* ==========================================================================
   Matata Hospital — main stylesheet
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   01. Design tokens
   02. Reset & base
   03. Utilities (container, section, headings, buttons)
   04. Topbar
   05. Header & navigation (incl. mobile menu)
   06. Hero slider
   07. About & stats
   08. Services cards
   09. Gallery
   10. Insurance partners slider
   11. Contact
   12. Footer
   13. Floating call button
   14. Subpage header & content cards
   15. Accessibility & motion preferences
   16. Responsive breakpoints
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --navy: #0B1F3A;
  --navy-deep: #061628;
  --teal: #007F8C;
  --gold: #CFAE5C;
  --red: #C62828;
  --red-dark: #A81F1F;
  --light: #F5F7FA;
  --white: #FFFFFF;
  --text: #2D3748;
  --text-muted: #64748B;
  --border: #E2E8F0;

  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Crimson Pro', Georgia, 'Times New Roman', serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, .06);
  --shadow-lg: 0 25px 50px rgba(11, 31, 58, .12);

  --icon-font: 'remixicon';
}

/* --------------------------------------------------------------------------
   02. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* offset for sticky header on anchor jumps */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img,
picture,
iframe {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

a {
  color: var(--teal);
}

/* Rem icons inherit size/color from context */
[class^="ri-"],
[class*=" ri-"] {
  line-height: 1;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   03. Utilities
   -------------------------------------------------------------------------- */
.container {
  width: min(90%, 1320px);
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 9vw, 110px) 0;
}

.kicker {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 2.5px;
  font-size: 12px;
  text-transform: uppercase;
}

.title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.15;
  color: var(--navy);
  margin: 12px 0 32px;
}

.center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(198, 40, 40, .25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  min-height: 48px;
  transition: background .25s ease, color .25s ease;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--white);
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   04. Topbar
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy);
  color: var(--white);
  padding: 10px 0;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.topbar span,
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar i { color: var(--gold); }

.topbar a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}

.topbar a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   05. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  height: 52px;
  width: auto;
  flex: 0 0 auto;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}

.brand-name > span { color: var(--teal); }

.brand-tag {
  font-size: 10px;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  list-style: none;
}

.primary-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0;
  transition: color .2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  color: var(--teal);
}

.primary-nav .btn {
  color: var(--white);
  padding: 12px 22px;
  min-height: 44px;
}

.primary-nav .btn:hover { color: var(--white); }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font-size: 26px;
  cursor: pointer;
}

.nav-toggle .ri-close-line { display: none; }

.nav-toggle[aria-expanded="true"] .ri-menu-line { display: none; }
.nav-toggle[aria-expanded="true"] .ri-close-line { display: inline; }

/* --------------------------------------------------------------------------
   06. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  min-height: min(88vh, 780px);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

/* Real <img> (not a CSS background) so the LCP image can be prioritised
   and served responsively. (Shared with .page-header on subpages.) */
.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-media img {
  object-fit: cover;
  object-position: center;
}

/* --- Hero slider --------------------------------------------------------- */
/* Slides stack in a single grid cell, so the hero grows to fit the tallest
   slide instead of clipping content on small screens. */
.hero-slides {
  display: grid;
  min-height: inherit;
}

/* Slides cross-fade. visibility keeps inactive slides out of the tab order
   and is delayed until the fade-out completes. */
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity .9s ease;
}

/* Inside a slide: photo at the back, tint overlay, then text on top. */
.hero-slide .hero-media,
.hero-slide .hero-media img { z-index: 0; }

/* The photo slides in from the right and settles each time its slide
   becomes active. */
.hero-slide .hero-media img { transform: translateX(56px) scale(1.07); }

.hero-slide.is-active .hero-media img {
  animation: heroImageIn 6.8s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes heroImageIn {
  from { transform: translateX(56px) scale(1.07); }
  to { transform: translateX(0) scale(1); }
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(11, 31, 58, .92) 0%, rgba(0, 127, 140, .82) 100%);
}

.hero-wrap {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  padding: 96px 24px;
}

/* Headline, text and buttons fade up in sequence when a slide activates. */
.hero-wrap > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, .61, .36, 1);
}

.hero-slide.is-active .hero-wrap > * {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide.is-active .hero-wrap > *:nth-child(1) { transition-delay: .3s; }
.hero-slide.is-active .hero-wrap > *:nth-child(2) { transition-delay: .5s; }
.hero-slide.is-active .hero-wrap > *:nth-child(3) { transition-delay: .7s; }

.hero h1,
.hero h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  opacity: .92;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Prev/next arrows — stacked on the right edge of the hero. */
.hero-arrows {
  position: absolute;
  right: clamp(14px, 3.5vw, 44px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3;
}

.hero-arrow {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(11, 31, 58, .35);
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.hero-arrow:hover {
  background: var(--teal);
  border-color: var(--teal);
  transform: scale(1.07);
}

/* Slide position dots, centred at the bottom of the hero. */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.hero-dot {
  position: relative;
  width: 44px; /* generous tap target… */
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-dot::before { /* …with a slim visual bar inside it */
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 99px;
  background: rgba(255, 255, 255, .45);
  transition: background .3s ease;
}

.hero-dot.is-active::before { background: var(--gold); }

/* --------------------------------------------------------------------------
   07. About & stats
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--light);
  color: var(--teal);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.stat {
  background: var(--light);
  padding: 22px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
}

.stat h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  color: var(--red);
  line-height: 1.2;
}

.stat p {
  font-size: 14px;
  color: var(--text-muted);
}

.about figure img {
  border-radius: var(--radius-xl);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   08. Services cards
   -------------------------------------------------------------------------- */
.services { background: var(--light); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(0, 127, 140, .1);
  color: var(--teal);
  font-size: 32px;
  margin-bottom: 16px;
}

.card h3 {
  color: var(--navy);
  font-size: 19px;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   09. Gallery
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.gallery-col {
  display: grid;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   10. Insurance partners slider
   -------------------------------------------------------------------------- */
.insurance-partners {
  --ips-text: #2C2C2B;
  --ips-muted: #7D7A75;
  --ips-border: #E6E5E3;
  --ips-surface: #F9F8F7;
  --ips-accent: #007F8C;
  background: var(--ips-surface);
  padding: 56px 0 64px;
  overflow: hidden;
}

.ips-head {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 32px;
}

.ips-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 8px;
}

.ips-head p {
  margin: 0 auto;
  max-width: 640px;
  font-size: 16px;
  color: var(--ips-muted);
}

.ips-viewport {
  position: relative;
  overflow: hidden;
  /* soft fade on the left/right edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ips-track {
  display: flex;
  width: max-content;
  animation: ips-scroll var(--ips-speed, 90s) linear infinite;
  will-change: transform;
}

/* pause when the visitor hovers or tabs into the strip */
.ips-viewport:hover .ips-track,
.ips-viewport:focus-within .ips-track { animation-play-state: paused; }

.ips-group {
  display: flex;
  gap: 24px;
  padding-right: 24px;
}

/* equal-sized cards: every logo gets the same box, image scales to fit,
   partner name sits below the logo */
.ips-card {
  flex: 0 0 auto;
  width: 190px;
  height: 118px;
  background: var(--white);
  border: 1px solid var(--ips-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px 12px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ips-card:hover {
  transform: translateY(-2px);
  border-color: var(--ips-accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .04);
}

.ips-card img {
  max-width: 150px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* partner name shown below the logo; long names clamp to two lines */
.ips-name {
  max-width: 100%;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  text-align: center;
  color: var(--ips-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@keyframes ips-scroll {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   11. Contact
   -------------------------------------------------------------------------- */
.contact {
  background: var(--navy);
  color: var(--white);
}

.contact .title { color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 50px);
  align-items: start;
}

.info-item {
  display: flex;
  gap: 16px;
  margin: 20px 0;
  align-items: flex-start;
}

.info-item i {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(207, 174, 92, .15);
  color: var(--gold);
  font-size: 20px;
}

.info-item b {
  color: var(--white);
}

.info-item a {
  color: var(--gold);
  text-decoration: none;
}

.info-item a:hover { text-decoration: underline; }

.map-embed {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--navy-deep);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #94A3B8;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(148, 163, 184, .2);
}

.footer-grid h2,
.footer-grid h3 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-grid p,
.footer-grid li {
  font-size: 14px;
}

.footer-grid ul { list-style: none; }

.footer-grid a {
  color: #94A3B8;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
}

.footer-bottom a { color: var(--gold); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   13. Floating call button
   -------------------------------------------------------------------------- */
.float-call {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(198, 40, 40, .4);
  z-index: 999;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.float-call:hover,
.float-call:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(198, 40, 40, .5);
}

/* --------------------------------------------------------------------------
   14. Subpage header & content cards
   -------------------------------------------------------------------------- */
.page-header {
  position: relative;
  color: var(--white);
  text-align: center;
  padding: clamp(72px, 10vw, 110px) 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}

.page-header .hero-media { z-index: -2; }

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(11, 31, 58, .94) 0%, rgba(0, 127, 140, .85) 100%);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 52px);
  margin-bottom: 12px;
}

.page-header p {
  font-size: clamp(16px, 2vw, 19px);
  opacity: .92;
  max-width: 640px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  margin-bottom: 16px;
  letter-spacing: .5px;
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

/* Content cards (about / services pages) */
.content-card {
  background: var(--white);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: 0 15px 40px rgba(11, 31, 58, .06);
  margin-bottom: 28px;
}

.content-card h2 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: clamp(24px, 3.2vw, 32px);
  margin-bottom: 16px;
  border-left: 5px solid var(--teal);
  padding-left: 18px;
}

.content-card p + p { margin-top: 14px; }

.content-card ul {
  margin: 14px 0 0;
  padding-left: 4px;
  list-style: none;
}

.content-card ul li {
  position: relative;
  padding-left: 32px;
  margin: 12px 0;
}

.content-card ul li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--teal);
  font-size: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 28px;
}

.highlight { color: var(--teal); font-weight: 700; }

.badge-solid {
  background: var(--teal);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
}

/* CTA band on subpages */
.cta-band {
  background: linear-gradient(105deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  text-align: center;
}

.cta-band .title { color: var(--white); margin-bottom: 16px; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; opacity: .92; }

/* --------------------------------------------------------------------------
   15. Accessibility & motion preferences
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  z-index: 2000;
  transition: top .2s ease;
}

.skip-link:focus { top: 0; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  /* stop the logo marquee; show a manually scrollable strip instead */
  .ips-track { animation: none; }
  .ips-viewport { overflow-x: auto; }

  /* hero slider: instant slide changes, no staggered entrance delays */
  .hero-slide { transition: none; }
  .hero-slide.is-active .hero-wrap > * { transition-delay: 0s; }
}

/* Scroll-reveal initial state (JS adds .is-visible) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   16. Responsive breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .about,
  .contact-grid,
  .gallery { grid-template-columns: 1fr; }

  .gallery-col { grid-template-columns: 1fr 1fr; }

  .hero { min-height: 70vh; }
}

@media (max-width: 880px) {
  /* Mobile navigation */
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 24px 40px rgba(11, 31, 58, .15);
    border-top: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 5% 20px;
  }

  .primary-nav li { border-bottom: 1px solid var(--border); }
  .primary-nav li:last-child { border-bottom: none; padding-top: 14px; }

  .primary-nav a {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
  }

  .primary-nav .btn { justify-content: center; width: 100%; }
}

@media (max-width: 640px) {
  .topbar { font-size: 12px; }
  .topbar .container { justify-content: center; text-align: center; }

  .brand-name { font-size: 22px; }
  .brand img { height: 44px; }

  .stats { grid-template-columns: 1fr; }
  .gallery-col { grid-template-columns: 1fr; }

  .hero-btns .btn,
  .hero-btns .btn-outline { width: 100%; max-width: 320px; }

  /* Hero slider controls: reserve space beside the right-edge arrows */
  .hero-wrap { padding: 80px 64px; }
  .hero-arrows { right: 10px; gap: 10px; }
  .hero-arrow { width: 44px; height: 44px; font-size: 20px; }
  .hero-dots { bottom: 16px; }

  /* Insurance slider */
  .insurance-partners { padding: 40px 0 48px; }
  .ips-group { gap: 16px; padding-right: 16px; }
  .ips-card { width: 150px; height: 106px; padding: 10px 12px; gap: 6px; }
  .ips-card img { max-width: 118px; max-height: 38px; }
  .ips-name { font-size: 11px; }

  .map-embed { height: 300px; }

  .float-call { width: 52px; height: 52px; font-size: 24px; }
}
