/* ═══════════════════════════════════════════════════════════
   HomeDoc Homepage — Premium Healthcare Design System
   ═══════════════════════════════════════════════════════════ */

:root {
  --brand: #941B20;
  --brand-dark: #7F151A;
  --brand-deep: #641116;
  --cream: #F7E0B8;
  --cream-light: #FCF4E6;
  --cream-pale: #FFF9F0;
  --white: #FFFFFF;
  --text: #262626;
  --text-muted: #6F6F6F;
  --border: #E8E0D5;
  --green: #22C55E;
  --green-dark: #16A34A;
  --shadow-sm: 0 2px 8px rgba(38, 38, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(38, 38, 38, 0.08);
  --shadow-lg: 0 16px 48px rgba(38, 38, 38, 0.1);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --header-h: 114px;
  --header-h-scrolled: 68px;
  --topbar-h: 38px;
  --nav-h: 76px;
  --nav-h-scrolled: 68px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Manrope', system-ui, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream-pale);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open,
body.lightbox-open,
body.is-preloading { overflow: hidden; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p { margin: 0; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.section--cream { background: var(--cream-light); }
.section--white { background: var(--white); }
.section--burgundy { background: var(--brand); color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}

.section--burgundy .eyebrow { color: var(--cream); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section--burgundy .section-title { color: var(--white); }

.section-desc {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.section--burgundy .section-desc { color: rgba(255, 249, 240, 0.85); }

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-desc {
  margin-inline: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(148, 27, 32, 0.25);
}

.btn--primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(148, 27, 32, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn--secondary:hover {
  background: var(--brand);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--brand);
}

.btn--white:hover {
  background: var(--cream-pale);
  transform: translateY(-1px);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--brand);
  transition: gap 0.3s var(--ease);
}

.link-arrow:hover { gap: 0.65rem; }

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover svg { transform: translateX(3px); }

/* ── Reveal Animation ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

.reduce-motion [data-reveal],
.reduce-motion .hero-animate { transition: none !important; animation: none !important; }

/* ═══════════════════════════════════════════════════════════
   PAGE PRELOADER
   ═══════════════════════════════════════════════════════════ */
.page-preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--cream-pale) 0%, var(--cream-light) 55%, var(--cream) 100%);
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.page-preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.page-preloader__inner img {
  height: 42px;
  width: auto;
  max-width: 200px;
}

.page-preloader__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(148, 27, 32, 0.15);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: preloader-spin 0.7s linear infinite;
}

.page-preloader__text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}

.reduce-motion .page-preloader__spinner { animation: none; }

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  transition: height 0.4s var(--ease), background 0.4s var(--ease),
    box-shadow 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(232, 224, 213, 0.8);
}

.site-header.hero-animate {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

body.hero-ready .site-header.hero-animate { opacity: 1; }

/* Topbar */
.topbar {
  height: var(--topbar-h);
  background: var(--brand);
  color: rgba(255, 249, 240, 0.92);
  overflow: hidden;
  transition: height 0.35s var(--ease), opacity 0.35s var(--ease), padding 0.35s var(--ease);
}

.site-header.is-scrolled .topbar {
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: var(--topbar-h);
  min-width: 0;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 249, 240, 0.92);
  white-space: nowrap;
  transition: color 0.25s;
  min-width: 0;
}

.topbar-link:hover { color: var(--white); }

.topbar-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.9;
}

.topbar-link--phone-alt {
  position: relative;
  padding-left: 0.85rem;
}

.topbar-link--phone-alt::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 0.85em;
  background: rgba(255, 249, 240, 0.35);
  transform: translateY(-50%);
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.topbar-social__link {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 249, 240, 0.9);
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.topbar-social__link:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  transform: translateY(-1px);
}

.topbar-social__link svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 1024px) {
  .topbar-contact { gap: 0.85rem; }

  .topbar-link {
    font-size: 0.75rem;
  }
}

@media (max-width: 860px) {
  .topbar-link--email span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .topbar-link--email {
    width: 28px;
    height: 28px;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .topbar-link--email:hover {
    background: rgba(255, 255, 255, 0.14);
  }

  .topbar-contact { gap: 0.55rem; }
}

@media (max-width: 640px) {
  :root {
    --header-h: 106px;
    --topbar-h: 36px;
    --nav-h: 70px;
  }

  .topbar-inner {
    gap: 0.5rem;
  }

  .topbar-link--email,
  .topbar-social__link--fb,
  .topbar-social__link--ig,
  .topbar-social__link--li {
    display: none;
  }

  .topbar-contact {
    gap: 0.35rem;
  }

  .topbar-link {
    font-size: 0.72rem;
    letter-spacing: 0.01em;
  }

  .topbar-link--phone svg {
    width: 13px;
    height: 13px;
  }

  .topbar-link--phone-alt {
    padding-left: 0.65rem;
  }

  .topbar-social__link {
    width: 30px;
    height: 30px;
  }

  .topbar-social__link svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 420px) {
  :root {
    --header-h: 102px;
    --topbar-h: 34px;
    --nav-h: 68px;
  }

  .topbar-link--phone-alt {
    display: none;
  }

  .topbar-link--phone {
    font-size: 0.8125rem;
    font-weight: 600;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1.5rem;
  transition: height 0.4s var(--ease);
}

.site-header.is-scrolled .header-inner {
  height: var(--nav-h-scrolled);
}

.header-logo img {
  height: 42px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: height 0.4s var(--ease);
}

.site-header.is-scrolled .header-logo img { height: 36px; }

.header-nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.header-nav a {
  position: relative;
  padding: 0.5rem 0.65rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border-radius: 0;
  transition: color 0.25s;
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--brand);
  background: none;
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after,
.header-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-nav a[aria-current="page"] {
  color: var(--brand);
  background: none;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.header-phone svg { width: 16px; height: 16px; color: var(--brand); }

.header-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s;
}

.icon-btn:hover { background: rgba(148, 27, 32, 0.08); }

.icon-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.icon-btn svg { width: 22px; height: 22px; }

.icon-btn--cta {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(148, 27, 32, 0.28);
}

.icon-btn--cta:hover { background: var(--brand-dark); }

.btn--appointment {
  gap: 0.55rem;
  padding-inline: 1.35rem;
  box-shadow: 0 6px 18px rgba(148, 27, 32, 0.28);
}

.btn--appointment svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--appointment:hover {
  box-shadow: 0 8px 22px rgba(148, 27, 32, 0.34);
}

/* Mobile Menu Drawer */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(38, 38, 38, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.menu-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, var(--cream-pale) 0%, var(--white) 42%);
  z-index: 1002;
  padding: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  overflow: hidden;
  box-shadow: -16px 0 48px rgba(38, 38, 38, 0.16);
}

.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-menu__logo img {
  height: 34px;
  width: auto;
  display: block;
}

.mobile-menu__close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.mobile-menu__close:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  transform: rotate(90deg);
}

.mobile-menu__close svg {
  width: 18px;
  height: 18px;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  gap: 0.35rem;
  overflow-y: auto;
  flex: 1;
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.mobile-menu__nav a svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease), color 0.25s;
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a[aria-current="page"] {
  background: var(--white);
  border-color: var(--border);
  color: var(--brand);
  transform: translateX(2px);
}

.mobile-menu__nav a:hover svg,
.mobile-menu__nav a[aria-current="page"] svg {
  color: var(--brand);
  transform: translateX(3px);
}

.mobile-menu__footer {
  margin-top: auto;
  padding: 1.15rem 1.25rem calc(1.35rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--white);
  display: grid;
  gap: 0.85rem;
}

.mobile-menu__phone {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--cream-light);
  border: 1px solid var(--border);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.mobile-menu__phone:hover {
  border-color: rgba(148, 27, 32, 0.25);
  box-shadow: var(--shadow-sm);
}

.mobile-menu__phone-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-menu__phone-icon svg {
  width: 18px;
  height: 18px;
}

.mobile-menu__phone strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
}

.mobile-menu__phone em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand);
}

.mobile-menu__cta {
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
  border-radius: 999px;
}

@media (min-width: 1024px) {
  .header-nav { display: flex; }
  .header-actions { display: flex; }
  .header-mobile-actions { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  min-height: clamp(620px, 85vh, 900px);
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 3rem;
  background: linear-gradient(165deg, var(--cream-pale) 0%, var(--cream-light) 55%, var(--cream) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content { max-width: 580px; }

.hero-eyebrow {
  max-width: 42ch;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease) 0.15s, transform 0.7s var(--ease) 0.15s;
}

body.hero-ready .hero-eyebrow {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 0.5rem;
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-title-line span {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

body.hero-ready .hero-title-line:nth-child(1) span {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

body.hero-ready .hero-title-line:nth-child(2) span {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.hero-desc {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 48ch;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease) 0.55s, transform 0.7s var(--ease) 0.55s;
}

body.hero-ready .hero-desc {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease) 0.7s, transform 0.7s var(--ease) 0.7s;
}

body.hero-ready .hero-cta {
  opacity: 1;
  transform: translateY(0);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.7s var(--ease) 0.85s;
}

body.hero-ready .hero-trust { opacity: 1; }

.hero-trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  box-shadow: var(--shadow-lg);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease) 0.4s;
}

body.hero-ready .hero-image-wrap {
  clip-path: inset(0 0 0 0);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  bottom: 2rem;
  left: -1.5rem;
  background: var(--brand);
  color: var(--white);
  padding: 1.125rem 1.375rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-width: 220px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease) 0.9s, transform 0.7s var(--ease) 0.9s;
}

body.hero-ready .hero-float-card {
  opacity: 1;
  transform: translateY(0);
}

.hero-float-card__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.hero-float-card__text {
  font-size: 0.875rem;
  line-height: 1.4;
}

.hero-badge {
  position: absolute;
  top: 1.5rem;
  right: -0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.625rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s var(--ease) 1s, transform 0.6s var(--ease) 1s;
}

body.hero-ready .hero-badge {
  opacity: 1;
  transform: scale(1);
}

.hero-badge svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

@media (max-width: 767px) {
  .hero-float-card {
    left: 1rem;
    bottom: 1rem;
  }
  .hero-badge {
    right: 1rem;
    top: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   TRUST STRIP
   ═══════════════════════════════════════════════════════════ */
.trust-strip {
  background: var(--white);
  border-block: 1px solid var(--border);
  padding-block: 2.25rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.trust-item {
  text-align: center;
  position: relative;
}

.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--border);
  display: none;
}

.trust-number {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--brand);
  line-height: 1.1;
}

.trust-label {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .trust-item:not(:last-child)::after { display: block; }
}

/* ═══════════════════════════════════════════════════════════
   WHY HOMEDOC
   ═══════════════════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.why-intro { max-width: 480px; }

.why-intro .section-desc { margin-top: 1.25rem; }

.why-intro .link-arrow { margin-top: 1.75rem; }

.why-benefits {
  display: grid;
  gap: 0;
}

.why-benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.35s var(--ease);
}

.why-benefit:first-child { padding-top: 0; }
.why-benefit:last-child { border-bottom: none; padding-bottom: 0; }

.why-benefit:hover { padding-left: 0.5rem; }

.why-benefit__num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cream);
  -webkit-text-stroke: 1px var(--brand);
  line-height: 1;
  padding-top: 0.15rem;
}

.why-benefit__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.why-benefit__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-featured {
  grid-row: span 1;
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.service-featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.service-featured::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(247, 224, 184, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.service-featured__icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-featured__icon svg { width: 24px; height: 24px; }

.service-featured__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.service-featured__desc {
  font-size: 0.9375rem;
  color: rgba(255, 249, 240, 0.85);
  margin-bottom: 1.5rem;
  max-width: 36ch;
}

.service-featured__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--cream);
  transition: gap 0.3s;
}

.service-featured__link:hover { gap: 0.75rem; }

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}

.service-card:hover {
  border-color: rgba(148, 27, 32, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.service-card__icon {
  width: 40px;
  height: 40px;
  background: var(--cream-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.service-card__icon svg { width: 20px; height: 20px; }

.service-card__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.service-card:hover .service-card__arrow {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.service-card__arrow svg { width: 16px; height: 16px; }

.service-card__title {
  font-size: 1rem;
  font-weight: 700;
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-end;
    gap: 2rem;
    min-height: auto;
  }
  .service-featured__icon { margin-bottom: 1rem; }
  .service-featured__desc { margin-bottom: 0; max-width: 52ch; }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════
   HOME VISIT (Burgundy Feature)
   ═══════════════════════════════════════════════════════════ */
.home-visit {
  position: relative;
  overflow: hidden;
}

.home-visit::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(247, 224, 184, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.home-visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.home-visit-content { max-width: 520px; }

.home-visit-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 2.5rem;
  display: grid;
  gap: 0.875rem;
}

.home-visit-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(255, 249, 240, 0.9);
}

.home-visit-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--cream);
}

.home-visit-visual {
  position: relative;
}

.home-visit-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid rgba(255, 249, 240, 0.2);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 4;
}

.home-visit-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-visit-accent {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 80px;
  height: 80px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  opacity: 0.9;
}

@media (min-width: 1024px) {
  .home-visit-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  padding: 2rem 0;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 28px;
  top: 72px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand), var(--border));
}

.step__num {
  display: none;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--brand);
  line-height: 1;
  opacity: 0.35;
  width: 56px;
}

.step__icon {
  grid-column: 1;
  grid-row: 1;
  width: 56px;
  height: 56px;
  background: var(--cream-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  position: relative;
  z-index: 1;
}

.step__icon svg { width: 24px; height: 24px; }

.step__content { grid-column: 2; padding-top: 0.75rem; }

.step__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.step__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  .step {
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: center;
    align-items: center;
  }
  .step:not(:last-child)::after {
    left: auto;
    top: 28px;
    right: -0.75rem;
    bottom: auto;
    width: calc(100% - 56px + 1.5rem);
    height: 2px;
    transform: translateX(50%);
    background: linear-gradient(to right, var(--brand), var(--border));
  }
  .step__content {
    padding-top: 1.25rem;
    grid-column: auto;
  }
  .step__num {
    display: block;
    font-size: 3rem;
    width: auto;
    margin-bottom: -0.5rem;
  }
  .step__icon {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   BENEFITS
   ═══════════════════════════════════════════════════════════ */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.benefits-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}

.benefits-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.9375rem;
}

.benefits-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--brand);
  margin-top: 2px;
}

.benefits-stat {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.benefits-stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--brand);
}

.benefits-stat-item span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   DOCTORS / CARE TEAM
   ═══════════════════════════════════════════════════════════ */
.doctors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.3s;
}

.doctor-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(148, 27, 32, 0.2);
}

.doctor-card--text {
  position: relative;
  padding: 1.5rem 1.5rem 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
}

.doctor-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cream-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-card__icon svg {
  width: 22px;
  height: 22px;
}

.doctor-card__body {
  position: relative;
  padding: 0;
  padding-right: 2.25rem;
  flex: 1;
}

.doctor-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
}

.doctor-card__spec {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  padding-right: 0;
  line-height: 1.55;
}

.doctor-card__arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  transition: background 0.3s, transform 0.3s var(--ease), color 0.3s;
}

.doctor-card:hover .doctor-card__arrow {
  background: var(--brand);
  color: var(--white);
  transform: translate(2px, -2px);
}

.doctor-card__arrow svg { width: 16px; height: 16px; }

@media (min-width: 640px) {
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .doctors-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   PATIENT TRUST
   ═══════════════════════════════════════════════════════════ */
.trust-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.trust-section-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow: var(--shadow-md);
}

.trust-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.trust-pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.125rem;
}

.trust-pillar svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.trust-pillar strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.trust-pillar span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .trust-section-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */
.testimonials-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.testimonial-viewport {
  --testimonial-gap: 1rem;
  --testimonial-visible: 1;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  align-items: stretch;
  gap: var(--testimonial-gap);
  width: 100%;
  transition: transform 0.6s var(--ease);
}

.testimonial-slide {
  box-sizing: border-box;
  flex: 0 0 calc((100% - (var(--testimonial-visible) - 1) * var(--testimonial-gap)) / var(--testimonial-visible));
  width: calc((100% - (var(--testimonial-visible) - 1) * var(--testimonial-gap)) / var(--testimonial-visible));
  max-width: calc((100% - (var(--testimonial-visible) - 1) * var(--testimonial-gap)) / var(--testimonial-visible));
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .testimonial-viewport {
    --testimonial-gap: 1.25rem;
    --testimonial-visible: 2;
  }

  .testimonial-slide {
    padding: 1.75rem 1.5rem 1.6rem;
  }
}

@media (min-width: 1024px) {
  .testimonial-viewport {
    --testimonial-visible: 3;
  }

  .testimonial-slide {
    padding: 1.85rem 1.6rem 1.7rem;
  }
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.5rem;
  flex: 1;
  overflow-wrap: anywhere;
}

.testimonial-quote::before {
  content: '\201C';
  color: var(--brand);
  font-size: 2.25rem;
  line-height: 0;
  vertical-align: -0.4rem;
  margin-right: 0.2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.testimonial-meta {
  min-width: 0;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-light);
}

.testimonial-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-meta strong {
  display: block;
  font-size: 0.9375rem;
}

.testimonial-meta span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.testimonial-service {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(148, 27, 32, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.testimonial-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.testimonial-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.testimonial-btn svg { width: 18px; height: 18px; }

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.testimonial-dot.is-active {
  background: var(--brand);
  transform: scale(1.25);
}

.testimonial-dot:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
  gap: 0.875rem;
  width: 100%;
}

.gallery-item {
  border: none;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--cream-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(148, 27, 32, 0);
  transition: background 0.35s;
}

.gallery-item:hover::after { background: rgba(148, 27, 32, 0.15); }

.gallery-item--large {
  grid-row: span 2;
  grid-column: span 1;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-footer {
  text-align: center;
  margin-top: 2.5rem;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(38, 38, 38, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

.lightbox-close svg { width: 24px; height: 24px; }

@media (min-width: 768px) {
  .gallery-masonry {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
  }
  .gallery-item--large {
    grid-row: span 2;
    grid-column: span 2;
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
  .gallery-item--tall {
    grid-row: span 2;
  }
}

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.375rem 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: color 0.25s;
}

.faq-trigger:hover { color: var(--brand); }

.faq-trigger:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.faq-icon svg { width: 14px; height: 14px; }

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.35s;
  opacity: 0;
}

.faq-item.is-open .faq-panel {
  opacity: 1;
}

.faq-panel-inner {
  padding-bottom: 1.375rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   APPOINTMENT CTA
   ═══════════════════════════════════════════════════════════ */
.appointment-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.appointment-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(247, 224, 184, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.appointment-cta .section-title {
  color: var(--white);
  max-width: 16ch;
  margin-inline: auto;
}

.appointment-cta .section-desc {
  color: rgba(255, 249, 240, 0.85);
  margin-inline: auto;
  margin-top: 1rem;
}

.appointment-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-info {
  display: grid;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--cream-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.contact-item__icon svg { width: 20px; height: 20px; }

.contact-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-item span,
.contact-item a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-item a + a {
  margin-top: 0.15rem;
}

.contact-item a:hover { color: var(--brand); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 0.5rem;
}

.contact-map {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-map__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-map__areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.contact-map__tag {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 0.875rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

.contact-map__note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--brand-deep);
  color: rgba(255, 249, 240, 0.85);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  background: var(--cream-pale);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin: 0;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 32ch;
  color: rgba(255, 249, 240, 0.7);
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.625rem;
}

.footer-col a {
  font-size: 0.9375rem;
  color: rgba(255, 249, 240, 0.7);
  transition: color 0.25s;
}

.footer-col a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 249, 240, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 249, 240, 0.7);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.footer-social a:hover {
  background: rgba(255, 249, 240, 0.1);
  border-color: rgba(255, 249, 240, 0.4);
  color: var(--white);
}

.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 249, 240, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 249, 240, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 249, 240, 0.5);
  transition: color 0.25s;
}

.footer-bottom-links a:hover { color: var(--white); }

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ═══════════════════════════════════════════════════════════
   FLOATING CONTACT BUTTONS
   ═══════════════════════════════════════════════════════════ */
.floating-contact {
  position: fixed;
  right: 1rem;
  bottom: 0.7rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: opacity 0.22s, visibility 0.22s, transform 0.22s var(--ease);
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.06);
  background: var(--green-dark);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.floating-btn:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 3px;
}

.floating-btn svg { width: 24px; height: 24px; }

.floating-btn[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.floating-btn:hover[data-tooltip]::before { opacity: 1; }

@media (max-width: 1024px) {
  .floating-contact {
    right: 0.75rem;
    bottom: 0.55rem;
  }
}

@media (max-width: 767px) {
  .floating-btn {
    width: 48px;
    height: 48px;
  }
  .floating-btn[data-tooltip]::before { display: none; }
}

body.chat-open .floating-contact {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}

/* ═══════════════════════════════════════════════════════════
   PLACEHOLDER NOTE
   ═══════════════════════════════════════════════════════════ */
.placeholder-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   SERVICE PAGES
   ═══════════════════════════════════════════════════════════ */
.page-hero {
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 3.5rem;
  background: linear-gradient(165deg, var(--cream-pale) 0%, var(--cream-light) 60%, var(--cream) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero .container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.page-hero__inner {
  width: 100%;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 600;
}

.breadcrumb a:hover { text-decoration: underline; }

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-top: 0.35rem;
}

.page-hero__desc {
  margin-top: 1.15rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 1.75rem;
}

.services-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.services-list-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}

.services-list-card:hover {
  border-color: rgba(148, 27, 32, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.services-list-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cream-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-list-card__icon svg { width: 22px; height: 22px; }

.services-list-card__body h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.services-list-card__body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

.services-footer {
  text-align: center;
  margin-top: 2.5rem;
}

.service-featured__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.service-featured__link--book {
  color: var(--white);
  opacity: 0.9;
}

.service-card {
  text-decoration: none;
  color: inherit;
}

.service-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.service-detail__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

.service-detail__content p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  max-width: 62ch;
}

.service-detail__subheading {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.service-detail__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.85rem;
}

.service-detail__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.975rem;
}

.service-detail__list svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-detail__cta-box {
  margin-top: 2rem;
  padding: 1.75rem;
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.service-detail__cta-box h3 {
  font-size: 1.125rem;
  margin-bottom: 0.4rem;
}

.service-detail__cta-box p {
  margin-bottom: 1.25rem;
}

.service-detail__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-detail__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-md);
  background: var(--cream-light);
}

.service-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail__card {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
}

.service-detail__card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
}

.service-detail__card > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.service-detail__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.service-detail__meta strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.15rem;
}

.service-detail__meta a,
.service-detail__meta span {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.service-detail__meta a + a {
  margin-top: 0.15rem;
}

.service-detail__meta a:hover { color: var(--brand); }

.related-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.related-service-card {
  display: block;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}

.related-service-card:hover {
  border-color: rgba(148, 27, 32, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-service-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--cream-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.related-service-card__icon svg { width: 20px; height: 20px; }

.related-service-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
}

.related-service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .services-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-detail__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
  .services-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Gallery page — full-width fillable grid (no right-side gaps) */
.gallery-page {
  padding-top: 3rem;
}

.gallery-masonry--page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: unset;
  grid-auto-flow: row;
  gap: 0.875rem;
  width: 100%;
}

.gallery-masonry--page .gallery-item {
  grid-column: auto !important;
  grid-row: auto !important;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
}

.gallery-masonry--page .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .gallery-masonry--page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .gallery-masonry--page {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.125rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   404 / ERROR PAGE
   ═══════════════════════════════════════════════════════════ */
.error-page {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 8rem);
  padding: calc(var(--header-h) + 3.5rem) 0 5rem;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(148, 27, 32, 0.08), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 80%, rgba(148, 27, 32, 0.06), transparent 50%),
    linear-gradient(165deg, var(--cream-pale) 0%, var(--cream-light) 55%, var(--cream) 100%);
  overflow: hidden;
}

.error-page__inner {
  position: relative;
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.error-page__code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 16vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgba(148, 27, 32, 0.12);
  user-select: none;
  pointer-events: none;
}

.error-page .eyebrow {
  display: inline-block;
  margin-top: -1.25rem;
  position: relative;
}

.error-page__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin: 0.5rem 0 0;
}

.error-page__desc {
  margin: 1.1rem auto 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 30rem;
}

.error-page__debug {
  margin: 1.25rem auto 0;
  padding: 0.85rem 1rem;
  max-width: 30rem;
  font-size: 0.875rem;
  color: var(--brand);
  background: rgba(148, 27, 32, 0.06);
  border: 1px solid rgba(148, 27, 32, 0.15);
  border-radius: 0.5rem;
  text-align: left;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.error-page__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.35rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.error-page__links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand);
}

.error-page__links a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .error-page {
    padding-top: calc(var(--header-h) + 2.5rem);
    padding-bottom: 3.5rem;
    min-height: auto;
  }

  .error-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-page__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   CHATBOT
   ═══════════════════════════════════════════════════════════ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chatbot {
  position: fixed;
  left: 1rem;
  bottom: 0.7rem;
  z-index: 910;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.chatbot-toggle {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(148, 27, 32, 0.35);
  transition: transform 0.25s var(--ease), background 0.25s;
}

.chatbot-toggle:hover {
  background: var(--brand-dark);
  transform: scale(1.05);
}

.chatbot-toggle svg {
  width: 26px;
  height: 26px;
}

.chatbot-toggle__close { display: none; }
.chatbot-toggle.is-open .chatbot-toggle__open { display: none; }
.chatbot-toggle.is-open .chatbot-toggle__close { display: block; }

.chatbot-panel {
  width: min(24.5rem, calc(100vw - 2rem));
  height: min(34rem, calc(100vh - 8.5rem));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.chatbot-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chatbot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: var(--brand);
  color: var(--white);
}

.chatbot-header__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chatbot-avatar svg { width: 20px; height: 20px; }

.chatbot-header strong {
  display: block;
  font-size: 0.95rem;
}

.chatbot-header span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
}

.chatbot-icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
}

.chatbot-icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.chatbot-icon-btn svg { width: 18px; height: 18px; }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--cream-pale);
}

.chatbot-row { display: flex; flex-direction: column; max-width: 92%; }
.chatbot-row--user { align-self: flex-end; }
.chatbot-row--bot { align-self: flex-start; }

.chatbot-bubble {
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chatbot-row--user .chatbot-bubble {
  background: var(--brand);
  color: var(--white);
  border-bottom-right-radius: 0.3rem;
}

.chatbot-row--bot .chatbot-bubble {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 0.3rem;
}

.chatbot-bubble a { color: var(--brand); font-weight: 600; }

.chatbot-bubble--typing {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  min-width: 3.2rem;
}

.chatbot-bubble--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.4;
  animation: chatbot-dot 1s infinite ease-in-out;
}

.chatbot-bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-bubble--typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatbot-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.chatbot-actions,
.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.chatbot-action,
.chatbot-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
}

.chatbot-action--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.chatbot-action--green {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.chatbot-action--secondary:hover,
.chatbot-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chatbot-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.chatbot-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
}

.chatbot-form input:focus {
  outline: 2px solid rgba(148, 27, 32, 0.25);
  border-color: var(--brand);
}

.chatbot-send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chatbot-send svg { width: 18px; height: 18px; }
.chatbot-send:hover { background: var(--brand-dark); }

@media (max-width: 1024px) {
  .chatbot {
    left: 0.75rem;
    bottom: 0.55rem;
  }

  .chatbot-toggle {
    width: 52px;
    height: 52px;
  }

  .chatbot-panel,
  .chatbot-panel.is-open {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: min(23rem, calc(100vw - 1.4rem));
    height: min(28rem, 68vh);
    max-height: 28rem;
  }

  .chatbot-header {
    padding: 0.75rem 0.85rem;
  }

  .chatbot-header span { display: none; }
  .chatbot-messages { padding: 0.75rem; }
  .chatbot-form { padding: 0.55rem; }
}

@media (max-width: 767px) {
  .chatbot-panel,
  .chatbot-panel.is-open {
    width: min(20.5rem, calc(100vw - 1.1rem));
    height: min(24rem, 62vh);
    max-height: 24rem;
    border-radius: 1rem;
  }

  .chatbot-avatar {
    width: 32px;
    height: 32px;
  }

  .chatbot-header strong { font-size: 0.875rem; }
}


