/* ─────────────────────────────────────────────────────────────
   Side drawer menu (.drawer + .dr-*)
   Opened by the existing FAB burger trigger ([data-drawer-trigger]).
   All tokens reuse main.css :root (--text, --muted, --wa, --blue, --radius).
   Brand teal = #51ABB2 (same as .hero-svc__cta--primary).
   Z-index: scrim 1190 < drawer 1200. Sits above .site-topbar (1100), below .cart-sheet (2000).
   ───────────────────────────────────────────────────────────── */

/* Override FAB trigger style when drawer is in play — teal 52px universal. */
body.has-drawer .fab-menu__trigger {
  width: 52px;
  height: 52px;
  background: #51ABB2;
  color: #fff;
  box-shadow: 0 8px 24px rgba(81, 171, 178, .4);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.has-drawer .fab-menu__trigger svg {
  width: 22px;
  height: 22px;
}
body.has-drawer .fab-menu__trigger svg line { stroke: currentColor; }

/* Hide the old 4-icon popout entirely when drawer mode is active. */
body.has-drawer .fab-menu__items { display: none !important; }

/* When drawer is open, hide the FAB trigger entirely — it would overlap the
   brand header otherwise. The drawer's own .dr-close on the right is the
   in-drawer close button; scrim click + Escape also close it. */
body.drawer-open #fabMenu {
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

/* Scrim ─────────────────────────────────────────────────────── */
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 1190;
}
.drawer-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer panel ──────────────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 360px;
  max-width: 92vw;
  background: rgba(255, 255, 255, .92);
  border-right: 1px solid rgba(255, 255, 255, .6);
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .20);
  display: flex;
  flex-direction: column;
  transform: translateX(-105%);
  transition: transform .35s cubic-bezier(.25, .46, .45, .94);
  z-index: 1200;
  overflow: hidden; /* contains rounded corners on inner scroll */
  font-family: inherit;
}
@supports ((-webkit-backdrop-filter: blur(28px)) or (backdrop-filter: blur(28px))) {
  .drawer {
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    backdrop-filter: blur(28px) saturate(1.4);
  }
}
.drawer.is-open { transform: translateX(0); }

@media (min-width: 1024px) {
  .drawer { width: 420px; }
}

/* Body scroll lock helper (toggled by JS) */
body.drawer-open {
  overflow: hidden;
  touch-action: none;
}

/* Header ────────────────────────────────────────────────────── */
.dr-top {
  flex: 0 0 auto;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 22px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dr-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  border-radius: 999px;
  padding: 2px 6px 2px 2px;
  margin: -2px -6px -2px -2px;
  outline: none;
}
.dr-brand:focus-visible {
  outline: 2px solid #51ABB2;
  outline-offset: 2px;
}
.dr-close:focus-visible,
.dr-cat:focus-visible,
.dr-lang__btn:focus-visible,
.dr-cta:focus-visible,
.dr-wa:focus-visible {
  outline: 2px solid #51ABB2;
  outline-offset: 2px;
}
.dr-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
}
.dr-brand__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}
.dr-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(0, 0, 0, .08);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  color: var(--text);
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}
.dr-close svg { width: 20px; height: 20px; }
.dr-close:active { transform: scale(.94); }

/* Language pill ─────────────────────────────────────────────── */
.dr-lang {
  flex: 0 0 auto;
  padding: 0 22px 14px;
}
.dr-lang__pill {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.dr-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
}
.dr-lang__btn.is-active {
  background: #51ABB2;
  color: #fff;
  cursor: default;
}
.dr-lang__flag {
  font-size: 14px;
  line-height: 1;
}

/* Section header ────────────────────────────────────────────── */
.dr-section {
  flex: 0 0 auto;
  padding: 4px 22px 10px;
}
.dr-section__eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.dr-section__h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1.1;
  margin: 4px 0 0;
  color: var(--text);
}

/* Service stripes (scrollable on tall content) ─────────────── */
.dr-cats {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}
.dr-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  text-decoration: none;
  color: var(--text);
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.dr-cat:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}
.dr-cat:active { transform: translateY(0) scale(.99); }
.dr-cat__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #eee;
  flex: 0 0 auto;
}
.dr-cat__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.dr-cat__title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
}
.dr-cat__desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dr-cat__chev {
  color: #bcbcbc;
  flex: 0 0 auto;
  margin-left: 10px;
  display: grid;
  place-items: center;
}
.dr-cat__chev svg { width: 14px; height: 14px; }

/* Spacer (only effective when content fits — pushes review+CTA down) */
.dr-spacer {
  flex: 0 1 0;
}

/* Review card ───────────────────────────────────────────────── */
.dr-review {
  flex: 0 0 auto;
  padding: 14px 16px 12px;
}
.dr-review__card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.dr-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.dr-review__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.dr-review__g {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  flex: 0 0 auto;
}
.dr-review__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--text);
}
.dr-review__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
  font-size: 12px;
  color: var(--muted);
}
.dr-stars {
  color: #F5B400;
  letter-spacing: 1px;
  font-size: 12px;
}
.dr-review__avatars {
  display: inline-flex;
  flex: 0 0 auto;
}
.dr-review__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
}
.dr-review__avatar + .dr-review__avatar { margin-left: -8px; }
/* Slider container: relative parent for absolutely-positioned slides.
   Min-height locks the card so cross-fading slides don't reflow the footer.
   On mobile we cap the quote at 2 lines (see below) so the slot is shorter,
   freeing vertical room for the services list. */
.dr-review__slides {
  position: relative;
  min-height: 70px;
  touch-action: pan-y;
}
@media (min-width: 769px) {
  .dr-review__slides { min-height: 92px; }
}
.dr-review__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.dr-review__slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.dr-review__quote {
  font-size: 13px;
  line-height: 1.45;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 769px) {
  .dr-review__quote { -webkit-line-clamp: 3; }
}
.dr-review__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.dr-review__dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dr-review__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: background .2s, width .25s;
  -webkit-tap-highlight-color: transparent;
}
.dr-review__dot.is-active {
  background: #51ABB2;
  width: 16px;
}
.dr-review__dot:focus-visible {
  outline: 2px solid #51ABB2;
  outline-offset: 2px;
}
.dr-review__author {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.dr-review__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #51ABB2;
  text-decoration: none;
  flex: 0 0 auto;
}

/* Footer CTAs ───────────────────────────────────────────────── */
.dr-footer {
  flex: 0 0 auto;
  padding: 4px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 10px;
  align-items: center;
}
.dr-cta {
  flex: 1;
  height: 52px;
  border-radius: 999px;
  /* Site teal CTA — matches `.btn-cta` everywhere else on the site. */
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  box-shadow: 0 8px 24px rgba(81, 171, 178, .25);
  cursor: pointer;
  transition: transform .2s, opacity .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.dr-cta:hover { background: #468f95; }
.dr-cta:hover { transform: scale(1.02); }
.dr-cta:active { opacity: .85; transform: scale(.98); }
.dr-wa {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  flex: 0 0 auto;
  transition: transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.dr-wa:hover { transform: scale(1.04); }
.dr-wa:active { transform: scale(.96); }
.dr-wa svg { width: 22px; height: 22px; }

/* Reduce motion preference ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .drawer,
  .drawer-scrim,
  .dr-cat,
  .dr-cta,
  .dr-wa,
  .dr-close {
    transition: none !important;
  }
}
