/* ================================================================
   Joy of Hearts At Home Care — Premium UI Enhancement Layer
   Loaded after style.css to elevate the visual design.
   Fonts: Playfair Display (headings) + Plus Jakarta Sans (body)
   ================================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  /* Font stack */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
                  'Segoe UI', Roboto, sans-serif;

  /* Refined colour palette — same brand hues, richer finish */
  --color-primary:        #1a3554;
  --color-primary-dark:   #0f2035;
  --color-primary-bright: #2d5282;
  --color-primary-hover:  #2d5282;
  --color-accent:         #e07b0b;
  --color-accent-light:   #f59e0b;
  --color-accent-bright:  #fbbf24;
  --color-text:           #1a3554;
  --color-text-light:     #4a657f;
  --color-bg:             #ffffff;
  --color-bg-alt:         #f5f8fc;
  --color-border:         #dde4ef;

  /* Shadow system */
  --shadow:        0 2px 12px rgba(26,53,84,.07), 0 1px 3px rgba(26,53,84,.04);
  --shadow-md:     0 8px 32px rgba(26,53,84,.11), 0 2px 8px rgba(26,53,84,.05);
  --shadow-lg:     0 20px 56px rgba(26,53,84,.15), 0 4px 16px rgba(26,53,84,.07);
  --shadow-hover:  0 28px 72px rgba(26,53,84,.20);

  /* Radii */
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 9999px;
}

/* ── BASE TYPOGRAPHY ─────────────────────────────────────────────*/
*,
::before,
::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

/* ── SITE ALERT BANNER ───────────────────────────────────────────*/
.site-alert {
  background: linear-gradient(90deg, #0b1e34 0%, #122a4a 60%, #0b1e34 100%);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
}

.site-alert__segment strong {
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ── HEADER ─────────────────────────────────────────────────────*/
.header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26,53,84,.06), 0 4px 20px rgba(26,53,84,.05);
  border-bottom: 1px solid rgba(26,53,84,.05);
}

.header-inner { padding: 12px 24px; }

/* Nav links */
.nav-list > li > a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

/* CTA button in header */
.header-cta {
  background: linear-gradient(135deg, var(--color-accent) 0%, #c86d0a 100%) !important;
  border-radius: var(--radius-pill) !important;
  padding: 10px 26px !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 4px 14px rgba(224,123,11,.38), 0 1px 3px rgba(0,0,0,.10) !important;
  border: none !important;
  transition: all 0.28s cubic-bezier(.4,0,.2,1) !important;
}

.header-cta:hover {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%) !important;
  box-shadow: 0 8px 24px rgba(224,123,11,.50), 0 2px 8px rgba(0,0,0,.12) !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
}

/* ── SCROLL PROGRESS BAR ─────────────────────────────────────────*/
.scroll-progress { height: 4px; }
.scroll-progress-bar {
  background: linear-gradient(90deg,
    var(--color-accent) 0%,
    var(--color-accent-light) 50%,
    var(--color-accent-bright) 100%);
}

/* ── HERO CAROUSEL ───────────────────────────────────────────────*/
.hero-carousel,
.carousel-slides {
  min-height: 700px;
  height: 700px;
}

/* ── Slide: no bg on the slide itself — .carousel-bg owns it ─── */
.carousel-slide {
  background-image: none;
  background-color: #0a1826;
}

/* ── Background layer — Ken Burns animates this div ─────────────*/
.carousel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 0;
  transform: scale(1.08);
  will-change: transform;
}

@keyframes kenBurns {
  0%   { transform: scale(1.10) translate(0%, 0%);    }
  100% { transform: scale(1.00) translate(-1.5%, -1%); }
}

.carousel-slide.active .carousel-bg {
  animation: kenBurns 8000ms ease-out both;
}

/* ── Overlay: left-heavy dark gradient + bottom vignette ────────*/
.carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      108deg,
      rgba(6, 16, 32, 0.96)  0%,
      rgba(14, 36, 64, 0.88) 40%,
      rgba(14, 36, 64, 0.28) 68%,
      rgba(6,  16, 32, 0.38) 100%
    ),
    linear-gradient(
      to top,
      rgba(4, 12, 26, 0.65) 0%,
      transparent 28%
    );
}

/* ── Hero content ────────────────────────────────────────────────*/
.hero-content {
  position: relative;
  z-index: 2;
  padding: 110px 24px 90px;
  max-width: 680px;
}

/* ── Service badge ───────────────────────────────────────────────*/
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 118, 8, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 18px 7px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(220, 118, 8, 0.30);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.90);
  flex-shrink: 0;
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%       { opacity: 0.3; transform: scale(0.65); }
}

/* ── Title: each line animates independently ─────────────────────*/
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 0.06em;
}

.hero-title-line {
  display: block;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.30);
  will-change: transform, opacity, filter;
}

/* ── Title line animation ────────────────────────────────────────*/
@keyframes heroLineFadeUp {
  0%   { opacity: 0; transform: translateY(36px); filter: blur(5px); }
  55%  { opacity: 1; filter: blur(0);             }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

/* Lines start hidden when slide is active but text-in not yet applied */
.carousel-slide.active .hero-content:not(.hero-text-in) .hero-title-line {
  opacity: 0;
  transform: translateY(36px);
}

/* h1 itself must stay visible (lines animate, not the h1 wrapper) */
.carousel-slide.active .hero-content:not(.hero-text-in) > .hero-title,
.carousel-slide.active .hero-content.hero-text-in > .hero-title {
  opacity: 1 !important;
  transform: none !important;
  filter:    none !important;
  animation: none !important;
}

/* Fire line animation when hero-text-in is added */
.carousel-slide.active .hero-content.hero-text-in .hero-title-line {
  animation: heroLineFadeUp 0.80s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.carousel-slide.active .hero-content.hero-text-in .hero-title-line:nth-child(1) { animation-delay: 0.10s; }
.carousel-slide.active .hero-content.hero-text-in .hero-title-line:nth-child(2) { animation-delay: 0.26s; }
.carousel-slide.active .hero-content.hero-text-in .hero-title-line:nth-child(3) { animation-delay: 0.42s; }

/* Stagger badge (child 1), sub (child 3), btns (child 4) */
.carousel-slide.active .hero-content.hero-text-in > *:nth-child(1) { animation-delay: 0s;    } /* badge  */
.carousel-slide.active .hero-content.hero-text-in > *:nth-child(3) { animation-delay: 0.62s; } /* sub    */
.carousel-slide.active .hero-content.hero-text-in > *:nth-child(4) { animation-delay: 0.76s; } /* btns   */

/* ── Subtitle ────────────────────────────────────────────────────*/
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 2vw, 1.20rem);
  font-weight: 400;
  line-height: 1.70;
  letter-spacing: 0.004em;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.90);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.30);
  margin-bottom: 46px;
}

/* ── Nav dots ────────────────────────────────────────────────────*/
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.35s ease,
              border-color 0.35s ease;
}
.carousel-dot.active {
  width: 30px;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.carousel-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.65);
}

/* ── Nav arrows ──────────────────────────────────────────────────*/
.carousel-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0; /* hide any stray text characters */
  transition: background 0.22s ease, border-color 0.22s ease,
              box-shadow 0.22s ease, transform 0.22s ease;
}
.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.60);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-50%) scale(1.10);
}
.carousel-btn:active {
  transform: translateY(-50%) scale(0.94);
}
.carousel-prev { left: 28px;  transform: translateY(-50%); }
.carousel-next { right: 28px; transform: translateY(-50%); }

/* ── Slide counter ───────────────────────────────────────────────*/
.carousel-counter {
  position: absolute;
  bottom: 38px;
  right: 38px;
  z-index: 10;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.50);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  pointer-events: none;
  user-select: none;
}
.carousel-current {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1;
}
.carousel-sep { margin: 0 1px; }

/* ── Progress bar ────────────────────────────────────────────────*/
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.10);
  z-index: 10;
  overflow: hidden;
}
.carousel-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,
    #dc7608 0%,
    #f59e0b 60%,
    #fbbf24 100%
  );
}

/* ── Service strip (quick jump to each hero slide) ───────────────*/
.carousel-thumb-nav {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  max-width: min(920px, calc(100% - 40px));
  pointer-events: auto;
}

.carousel-thumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(8, 20, 38, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.carousel-thumb-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.carousel-thumb-item.active {
  background: rgba(220, 118, 8, 0.88);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 4px 18px rgba(220, 118, 8, 0.35);
}

.carousel-thumb-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.65rem;
  font-weight: 800;
}

.carousel-thumb-item.active .carousel-thumb-index {
  background: rgba(255, 255, 255, 0.25);
}

.carousel-thumb-label {
  text-align: left;
  max-width: 140px;
}

@media (max-width: 900px) {
  .carousel-thumb-nav {
    bottom: 46px;
    gap: 6px;
    max-width: calc(100% - 24px);
  }
  .carousel-thumb-item {
    padding: 6px 10px 6px 8px;
    font-size: 0.66rem;
  }
  .carousel-thumb-label {
    max-width: 100px;
  }
}

.hero-carousel .carousel-dots {
  bottom: 16px;
}

@media (max-width: 640px) {
  .carousel-thumb-nav {
    bottom: 38px;
    gap: 5px;
  }
  .carousel-thumb-item {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    justify-content: center;
  }
  .carousel-thumb-label {
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ── Reduced motion ──────────────────────────────────────────────*/
@media (prefers-reduced-motion: reduce) {
  .carousel-slide.active .carousel-bg          { animation: none !important; transform: scale(1) !important; }
  .hero-title-line                             { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-badge-dot                              { animation: none !important; }
  .carousel-slide.active .hero-content:not(.hero-text-in) .hero-title-line { opacity: 1 !important; transform: none !important; }
  .carousel-progress-fill                      { transition: none !important; }
}

/* ── Responsive ──────────────────────────────────────────────────*/
@media (max-width: 900px) {
  .hero-carousel,
  .carousel-slides { height: 580px; min-height: 580px; }
  .hero-content    { padding: 70px 20px 60px; }
  .carousel-counter{ bottom: 28px; right: 24px; }
  .carousel-prev   { left: 16px; }
  .carousel-next   { right: 16px; }
}

@media (max-width: 640px) {
  .hero-carousel,
  .carousel-slides { height: 520px; min-height: 520px; }
  .hero-title      { font-size: clamp(2.05rem, 9vw, 2.75rem); gap: 0.04em; }
  .hero-content    { padding: 54px 16px 50px; }
  .hero-sub        { font-size: 0.98rem; margin-bottom: 32px; }
  .carousel-btn    { width: 42px; height: 42px; }
  .carousel-counter{ display: none; }
  .carousel-prev   { left: 10px; }
  .carousel-next   { right: 10px; }
}

@media (max-width: 400px) {
  .hero-carousel,
  .carousel-slides { height: 480px; min-height: 480px; }
  .hero-title      { font-size: clamp(1.75rem, 8vw, 2.15rem); }
  .hero-content    { padding: 44px 14px 44px; }
}

/* ── BUTTONS ─────────────────────────────────────────────────────*/
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9625rem;
  letter-spacing: 0.015em;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: all 0.28s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #c86d0a 100%);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(224,123,11,.38), 0 1px 3px rgba(0,0,0,.10);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
  box-shadow: 0 10px 28px rgba(224,123,11,.52), 0 2px 8px rgba(0,0,0,.12);
  transform: translateY(-3px);
  color: #fff !important;
  border-color: transparent;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.80);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  background: rgba(255,255,255,.18);
  border-color: #fff;
  transform: translateY(-3px);
  color: #fff;
}

.btn-secondary {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-pill);
}
.btn-secondary:hover:not(:disabled) {
  background: #dde4ef;
  border-color: #c4d0e0;
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 9px 22px;
  font-size: 0.875rem;
}

/* ── TRUST BAR ───────────────────────────────────────────────────*/
.trust-bar {
  background: linear-gradient(135deg, #fff 0%, #f0f5ff 100%);
  border-top: none;
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
  box-shadow: 0 4px 24px rgba(26,53,84,.06);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.trust-item {
  background: #fff;
  border: 1px solid rgba(26,53,84,.08);
  border-radius: var(--radius);
  padding: 18px 28px;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(26,53,84,.05);
  transition: box-shadow .25s ease, transform .25s ease;
}
.trust-item:hover {
  box-shadow: 0 8px 28px rgba(26,53,84,.10);
  transform: translateY(-2px);
}

.trust-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-bright) 100%);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(26,53,84,.25);
  color: #fff;
  flex-shrink: 0;
}

.trust-item strong {
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  display: block;
}
.trust-item span {
  font-family: var(--font-body);
  font-size: 0.825rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ── SECTIONS ────────────────────────────────────────────────────*/
.section {
  padding: 104px 0;
}
.section-alt {
  background: var(--color-bg-alt);
}

/* ── SECTION TITLE / SUB ─────────────────────────────────────────*/
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.section-sub {
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--color-text-light);
  margin-bottom: 60px;
  font-weight: 400;
  letter-spacing: 0.005em;
}

/* ── INTRO SECTION ───────────────────────────────────────────────*/
.intro {
  padding: 108px 0;
  background: linear-gradient(180deg, #fff 0%, #f5f8fc 100%);
}

.intro-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--color-primary);
}

.intro-heading::after {
  background: linear-gradient(90deg, transparent, var(--color-accent) 20%, var(--color-accent) 80%, transparent);
  width: 4rem;
  height: 3px;
  opacity: 1;
  border-radius: 2px;
}

.intro-copy-card {
  background: linear-gradient(145deg, #fff 0%, #f5f8fc 55%, #eef3f9 100%);
  border: 1px solid rgba(26,53,84,.07);
  border-radius: var(--radius-xl);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.9) inset,
    0 2px 4px rgba(26,53,84,.03),
    0 18px 52px rgba(26,53,84,.08);
}

.intro-text--lead {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  line-height: 1.82;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.intro-text--support {
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.8vw, 1.06rem);
  line-height: 1.74;
  color: var(--color-text-light);
  font-style: italic;
  font-weight: 400;
}

.intro-support-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 1;
}

/* ── SCROLL TEXT MARQUEE ─────────────────────────────────────────*/
.scroll-text-marquee {
  background: linear-gradient(90deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 50%,
    var(--color-primary-dark) 100%);
}
.scroll-text-marquee--above-intro {
  background: linear-gradient(90deg,
    var(--color-accent) 0%,
    #c86d0a 50%,
    var(--color-accent) 100%);
}
.scroll-text-inner span {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.07em;
  font-size: 0.825rem;
  text-transform: uppercase;
  color: #ffffff !important;
}

.scroll-text-inner span.scroll-text-accent,
.scroll-text-inner span:nth-child(10n + 1) {
  color: rgba(255,255,255,.70) !important;
}

/* ── GALLERY SECTION ─────────────────────────────────────────────*/
.gallery-section { background: #fff; }

.gallery-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-quote-box {
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-bright) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.gallery-quote {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: -0.01em;
  font-style: italic;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--color-primary);
}

/* ── SERVICE CARDS ───────────────────────────────────────────────*/
.service-card {
  background: #fff;
  border: 1px solid rgba(26,53,84,.07);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  transition: all .38s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  opacity: 0;
  transition: opacity .3s ease;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(224,123,11,.18);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  font-size: 2.6rem;
  margin-bottom: 20px;
  display: inline-block;
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.service-card p {
  font-family: var(--font-body);
  font-size: 0.975rem;
  line-height: 1.72;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.service-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.service-link:hover { gap: 10px; color: var(--color-accent-light); }

/* ── CTA SECTION ─────────────────────────────────────────────────*/
.cta-section {
  background: linear-gradient(135deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 44%,
    var(--color-primary-bright) 100%);
  padding: 112px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative glow */
.cta-section::before {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(224,123,11,.16) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -15%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45,82,130,.25) 0%, transparent 65%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
  line-height: 1.18;
  position: relative; z-index: 1;
}

.cta-section p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: 0;
  position: relative; z-index: 1;
}

.cta-section .btn { position: relative; z-index: 1; }

.cta-section .btn-outline {
  border-color: rgba(255,255,255,.60);
  margin-left: 16px;
}
.cta-section .btn-outline:hover {
  border-color: rgba(255,255,255,.90);
}

/* ── TEAM CARDS ──────────────────────────────────────────────────*/
.team-section, .team { background: var(--color-bg-alt); }

.team-card {
  background: #fff;
  border: 1px solid rgba(26,53,84,.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.team-role {
  font-family: var(--font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: var(--color-accent) !important;
  margin-bottom: 14px !important;
}

.team-bio {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--color-text-light);
}

/* ── TESTIMONIALS ────────────────────────────────────────────────*/
.testimonial-card {
  background: #fff;
  border: 1px solid rgba(26,53,84,.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
}

.testimonial-stars {
  color: var(--color-accent);
  font-size: 1.05rem;
  letter-spacing: 3px;
}

.testimonial-card p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.testimonial-card cite {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.925rem;
  font-style: normal;
  color: var(--color-primary);
}

/* ── FAQ SECTION ─────────────────────────────────────────────────*/
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .25s ease;
  background: #fff;
}
.faq-item:hover { box-shadow: var(--shadow-md); }

.faq-toggle {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.01rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-primary);
  padding: 22px 28px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .2s ease, background .2s ease;
}
.faq-toggle:hover { color: var(--color-accent); background: rgba(224,123,11,.03); }
.faq-toggle[aria-expanded="true"] { color: var(--color-accent); }

.faq-content p {
  font-family: var(--font-body);
  font-size: 0.975rem;
  line-height: 1.74;
  color: var(--color-text-light);
  padding: 0 28px 22px;
}

/* ══════════════════════════════════════════════════════════════════
   OUR IN-HOME CARE SERVICES — premium dark-panel redesign
   ══════════════════════════════════════════════════════════════════ */
.services-list {
  background: linear-gradient(150deg, #081524 0%, #0f2035 45%, #1a3554 100%);
  position: relative;
  overflow: hidden;
  padding: 112px 0;
}

/* Decorative ambient glows */
.services-list-bg { position: absolute; inset: 0; pointer-events: none; }

.services-list-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.services-list-glow--top {
  top: -20%;
  right: -8%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45,82,130,.35) 0%, transparent 70%);
}
.services-list-glow--bottom {
  bottom: -25%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(224,123,11,.10) 0%, transparent 70%);
}

.services-list-inner { position: relative; z-index: 1; }

/* ── Section header ─────────────────────────────────────────────── */
.services-list-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-list-kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.services-list-kicker::before,
.services-list-kicker::after {
  content: '';
  display: block;
  width: 36px;
  height: 1.5px;
  background: var(--color-accent);
  opacity: 0.55;
  border-radius: 2px;
}

.services-list .section-title {
  color: #ffffff !important;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  margin-bottom: 18px;
}

.services-list-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.74;
  color: rgba(255,255,255,.60);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* ── Card grid ──────────────────────────────────────────────────── */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list.two-col.check-list--cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 52px;
}

/* Each service card */
.check-list--cards li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: background 0.26s ease,
              border-color 0.26s ease,
              transform 0.26s cubic-bezier(.4,0,.2,1),
              box-shadow 0.26s ease;
  cursor: default;
}

/* Accent left stripe — reveals on hover */
.check-list--cards li::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  border-radius: 14px 0 0 14px;
  opacity: 0;
  transition: opacity 0.26s ease;
}

.check-list--cards li:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(224,123,11,.30);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,.20);
}
.check-list--cards li:hover::before { opacity: 1; }

/* Icon badge */
.check-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #c86d0a 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(224,123,11,.32);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.check-list--cards li:hover .check-item-icon {
  box-shadow: 0 6px 20px rgba(224,123,11,.50);
  transform: scale(1.06);
}

/* Item text */
.check-item-text {
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  line-height: 1.42;
  letter-spacing: -0.01em;
}

/* ── CTA row ────────────────────────────────────────────────────── */
.services-list-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.services-list-cta .btn-primary {
  box-shadow: 0 8px 32px rgba(224,123,11,.42) !important;
}
.services-list-cta .btn-primary:hover {
  box-shadow: 0 12px 40px rgba(224,123,11,.56) !important;
}

.services-list-call-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.10) !important;
  border: 1.5px solid rgba(255,255,255,.25) !important;
  color: rgba(255,255,255,.90) !important;
  border-radius: var(--radius-pill) !important;
  padding: 16px 32px !important;
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  backdrop-filter: blur(6px);
  transition: all 0.26s ease !important;
  text-decoration: none !important;
}
.services-list-call-btn:hover {
  background: rgba(255,255,255,.18) !important;
  border-color: rgba(255,255,255,.50) !important;
  transform: translateY(-3px) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.20) !important;
}
.services-list-call-btn svg { flex-shrink: 0; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .services-list { padding: 80px 0; }

  .check-list.two-col.check-list--cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .services-list-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .services-list-kicker::before,
  .services-list-kicker::after { width: 20px; }

  .services-list-cta { flex-direction: column; align-items: stretch; }
  .services-list-cta .btn,
  .services-list-call-btn { text-align: center; justify-content: center; }
}

/* ── STICKY CTA BAR ──────────────────────────────────────────────*/
.sticky-cta {
  background: linear-gradient(90deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 60%,
    var(--color-primary-bright) 100%);
  box-shadow: 0 -4px 28px rgba(26,53,84,.24);
}
.sticky-cta-inner span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,.95);
}

/* ── BACK-TO-TOP ─────────────────────────────────────────────────*/
.back-to-top {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-bright) 100%);
  box-shadow: 0 8px 24px rgba(26,53,84,.30);
  font-size: 0; /* hide any inner text — arrow rendered via ::after */
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.back-to-top:hover {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  box-shadow: 0 12px 32px rgba(224,123,11,.42);
  transform: translateY(-4px) scale(1.08);
}

/* Mobile: WhatsApp shrinks to 54px at bottom:16px → place back-to-top above it */
@media (max-width: 480px) {
  .back-to-top {
    bottom: 82px; /* 16 + 54 + 12 gap */
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ── FOOTER ──────────────────────────────────────────────────────*/
.footer {
  background:
    radial-gradient(ellipse 80% 55% at 10% 0%,   rgba(45, 92, 160, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 92% 100%,  rgba(224,123,11, 0.12)  0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 60% 50%,   rgba(26, 53, 84, 0.20)  0%, transparent 70%),
    linear-gradient(160deg, #060f1c 0%, #0b1e34 28%, #112845 58%, #1a3a5c 82%, #1e4268 100%);
  color: rgba(255,255,255,.80);
  position: relative;
  overflow: hidden;
}

/* Subtle top edge highlight line */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(224,123,11,.45) 30%,
    rgba(255,255,255,.15) 50%,
    rgba(224,123,11,.45) 70%,
    transparent 100%);
  pointer-events: none;
}

/* Noise/grain texture for depth */
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Make all footer content sit above decorative layers */
.footer .container { position: relative; z-index: 1; }

.footer-top { padding: 80px 0 56px; }

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.72;
  color: rgba(255,255,255,.55);
  max-width: 280px;
  margin-top: 20px;
  font-weight: 400;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-bottom: 20px;
}

.footer-link-list a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  display: inline-block;
  transition: color .2s ease, transform .2s ease;
  text-decoration: none;
}
.footer-link-list a:hover {
  color: var(--color-accent-light);
  transform: translateX(5px);
}

.footer-contact-item {
  font-family: var(--font-body) !important;
  color: rgba(255,255,255,.72) !important;
  font-size: 0.925rem !important;
  font-weight: 500 !important;
  transition: color .2s ease !important;
}
.footer-contact-item:hover {
  color: var(--color-accent-light) !important;
}

.footer-contact-icon { opacity: .65; }

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.footer-social a {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.70);
  transition: all .25s ease;
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(224,123,11,.38);
}

.footer-bottom {
  border-top: none;
  padding: 24px 0;
  position: relative;
}
.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.10) 20%,
    rgba(255,255,255,.14) 50%,
    rgba(255,255,255,.10) 80%,
    transparent 100%);
}
.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,.38);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ── PROMO AD / CARE SPLITS ──────────────────────────────────────*/
.promo-ad-section { background: var(--color-bg-alt); }

.promo-ad-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: #fff;
}

.promo-ad-banner-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.92);
}

.care-split__body { border-radius: var(--radius-lg) !important; }

.care-split__title {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.65rem, 3.2vw, 2.1rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.25 !important;
}

.care-split__copy {
  font-family: var(--font-body) !important;
  font-size: 1.04rem !important;
  line-height: 1.8 !important;
  letter-spacing: -0.005em !important;
}

/* ── PROMO VIDEOS ────────────────────────────────────────────────*/
.promo-ad-item video {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  display: block;
}
.promo-ad-item figcaption {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text-light);
  margin-top: 14px;
  text-align: center;
}

/* ── MOBILE MENU ─────────────────────────────────────────────────*/
@media (max-width: 900px) {
  .nav.open .nav-list > li > a {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 16px 20px;
  }
}

/* ── RESPONSIVE ADJUSTMENTS ──────────────────────────────────────*/
@media (max-width: 767px) {
  .hero-carousel,
  .carousel-slides { min-height: 560px; height: 560px; }

  .hero-content { padding: 64px 20px 56px; }

  .hero-content h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
    letter-spacing: -0.03em;
  }

  .section { padding: 72px 0; }

  .intro { padding: 80px 0; }

  .cta-section { padding: 80px 0; }

  .btn-lg { padding: 16px 36px; font-size: 1rem; }

  .cta-section .btn-outline { margin-left: 0; margin-top: 12px; }

  .footer-top { padding: 60px 0 40px; }
}

@media (max-width: 600px) {
  .trust-grid { grid-template-columns: 1fr; }

  .hero-content h1 { font-size: clamp(2rem, 10vw, 2.6rem); }
}

/* ── PRELOADER REFINEMENT ────────────────────────────────────────*/
.site-preloader {
  background: linear-gradient(145deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 42%,
    #243d5c 100%);
}

/* ── SELECTION COLOR ─────────────────────────────────────────────*/
::selection {
  background: rgba(224, 123, 11, 0.22);
  color: var(--color-primary-dark);
}

/* ── FORMS ───────────────────────────────────────────────────────*/
input, textarea, select, button {
  font-family: var(--font-body);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
  font-family: var(--font-body);
  font-size: 0.975rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  padding: 12px 16px;
  color: var(--color-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary-bright);
  box-shadow: 0 0 0 3px rgba(45,82,130,.12);
}

/* ── CARD HOVER GLOW (Services on homepage video bg) ────────────*/
.services-video-bg .service-card {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Override the white-text rule that style.css sets with !important
   on .services-grid-glow cards — restore blue text on white cards  */
.services-grid-glow .service-card-glow h3,
.services-grid-glow .service-card-glow a,
.services-grid-glow .service-card-glow .service-icon {
  color: var(--color-primary) !important;
}
.services-grid-glow .service-card-glow p {
  color: var(--color-text-light) !important;
}
.services-grid-glow .service-card-glow .service-link {
  color: var(--color-accent) !important;
}
.services-grid-glow .service-card-glow .service-link:hover,
.services-grid-glow .service-card-glow a:hover {
  color: var(--color-accent-light) !important;
}

/* ══════════════════════════════════════════════════════════════════
   NAV — icons, chevrons, mega-menu, styled dropdowns
   ══════════════════════════════════════════════════════════════════ */

/* ── Top-level nav link with icon ───────────────────────────────── */
.nav-link-has-icon {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.nav-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--color-primary);
  opacity: 0.6;
  transition: opacity 0.22s ease, color 0.22s ease;
}

.nav-list > li > a.nav-link-has-icon:hover .nav-icon,
.nav-list > li.has-dropdown:hover > a .nav-icon,
.nav-list > li.has-dropdown:focus-within > a .nav-icon {
  opacity: 1;
  color: var(--color-accent);
}

/* Chevron — rotates when dropdown is open */
.nav-chevron {
  display: flex;
  align-items: center;
  margin-left: 2px;
  color: var(--color-text-light);
  opacity: 0.65;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1),
              color 0.22s ease,
              opacity 0.22s ease;
}

.has-dropdown:hover > a .nav-chevron,
.has-dropdown:focus-within > a .nav-chevron {
  transform: rotate(180deg);
  color: var(--color-accent);
  opacity: 1;
}

/* ── Dropdown wrap — premium floating panel ─────────────────────── */
.has-dropdown .dropdown-wrap {
  border-radius: 16px !important;
  box-shadow:
    0 0 0 1px rgba(26,53,84,.06),
    0 8px 24px rgba(26,53,84,.10),
    0 24px 64px rgba(26,53,84,.16) !important;
  border: 1px solid rgba(26,53,84,.07) !important;
  padding-top: 12px !important;
  top: calc(100% - 12px) !important;
  overflow: visible !important;
}

/* Prevent content from overflowing rounded corners */
.has-dropdown .dropdown-wrap > ul {
  border-radius: 0;
}

/* ── Care Services mega-menu ─────────────────────────────────────── */
.has-dropdown .dropdown.dropdown-care {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: unset !important;
  grid-auto-flow: row !important;
  width: 456px !important;
  max-width: 456px !important;
  padding: 8px !important;
  gap: 2px !important;
  font-family: var(--font-body) !important;
  overflow-x: visible !important;
  border: none !important;
  border-radius: 12px 0 0 12px !important;
  background: #fff !important;
  flex: unset !important;
}

/* Remove old table-grid zebra banding */
.dropdown-care li:nth-child(1) a,
.dropdown-care li:nth-child(6) a,
.dropdown-care li:nth-child(3) a,
.dropdown-care li:nth-child(8) a,
.dropdown-care li:nth-child(5) a,
.dropdown-care li:nth-child(10) a {
  background: transparent !important;
}

/* Remove old table borders */
.dropdown-care li {
  border-bottom: none !important;
  border-right: none !important;
  min-width: 0 !important;
}

/* Header row — spans both columns */
.dd-care-header-row {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 10px !important;
  border-bottom: 1px solid rgba(26,53,84,.07);
  margin-bottom: 4px;
  list-style: none;
}

.dd-care-header-row > span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.dd-view-all {
  font-family: var(--font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: var(--color-accent) !important;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  border-left: none !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  margin: 0 !important;
  transition: background 0.2s ease, color 0.2s ease !important;
  transform: none !important;
}
.dd-view-all:hover {
  background: rgba(224,123,11,.10) !important;
  color: var(--color-accent-light) !important;
  padding-left: 6px !important;
  transform: none !important;
}

/* Care dropdown items */
.dropdown-care li:not(.dd-care-header-row) > a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  border-left: none !important;
  margin: 0 !important;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--color-text) !important;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.dropdown-care li:not(.dd-care-header-row) > a:hover {
  background: linear-gradient(135deg,
    rgba(224,123,11,.09) 0%,
    rgba(224,123,11,.04) 100%) !important;
  color: var(--color-accent) !important;
  transform: none !important;
  padding-left: 10px !important;
}

.dropdown-care li:not(.dd-care-header-row) > a:hover .dd-icon-wrap {
  background: rgba(224,123,11,.15);
  color: var(--color-accent);
}

/* ── Dropdown icon badge ─────────────────────────────────────────── */
.dd-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(26,53,84,.07);
  color: var(--color-primary);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.dd-item-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: inherit;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ── Contact dropdown ────────────────────────────────────────────── */
.dropdown.dropdown-contact {
  min-width: 288px !important;
  padding: 10px !important;
  font-family: var(--font-body) !important;
  border: none !important;
}

.dropdown.dropdown-contact li {
  border: none !important;
}

.dropdown.dropdown-contact > li > a {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px !important;
  border-radius: 10px !important;
  border-left: none !important;
  margin: 0 !important;
  transition: background 0.2s ease !important;
}

.dropdown.dropdown-contact > li > a:hover {
  background: linear-gradient(135deg,
    rgba(224,123,11,.09) 0%,
    rgba(224,123,11,.04) 100%) !important;
  transform: none !important;
  padding-left: 12px !important;
  color: var(--color-primary) !important;
}

.dropdown.dropdown-contact > li > a:hover .dd-icon-wrap {
  background: rgba(224,123,11,.15);
  color: var(--color-accent);
}

/* Contact item has larger icon to align with two-line text */
.dropdown.dropdown-contact .dd-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  margin-top: 1px;
}

/* Label + description stacked */
.dd-label-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dd-label-group strong {
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  display: block;
}

.dd-label-group span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-light);
  line-height: 1.4;
  display: block;
}

/* ── Preview panel ───────────────────────────────────────────────── */
.dropdown-preview {
  border-left: 1px solid rgba(26,53,84,.06) !important;
  background: linear-gradient(160deg, #f0f5fb 0%, #e4ecf6 100%) !important;
  border-radius: 0 12px 12px 0 !important;
  overflow: hidden !important;
}

/* ── Mobile: care dropdown as flat list ─────────────────────────── */
@media (max-width: 900px) {
  .dd-care-header-row { display: none !important; }

  .has-dropdown .dropdown.dropdown-care {
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 0 !important;
  }

  .dropdown-care li:not(.dd-care-header-row) > a {
    border-radius: 8px !important;
    padding: 10px 12px !important;
    white-space: normal !important;
  }

  .dropdown.dropdown-contact > li > a {
    border-radius: 8px !important;
    padding: 10px 12px !important;
  }

  .dd-label-group span { display: none; }
}

/* ── DROPDOWN ENHANCEMENTS (kept for compat) ─────────────────────*/

/* ── MODAL / VIDEO MODAL ─────────────────────────────────────────*/
.video-modal-content {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 96px rgba(0,0,0,.55);
}

/* ── HOME CITATION ───────────────────────────────────────────────*/
.home-citation__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.home-citation__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.68;
  letter-spacing: -0.015em;
  color: var(--color-primary);
}

.home-citation__cite {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  font-style: normal;
  color: var(--color-accent);
}

/* ── HIGHLIGHT / SERVICES AD CARDS ──────────────────────────────*/
.services-highlight-card {
  border-radius: 10px;
}

.services-highlight-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.services-highlight-card__text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* ── SERVICES INTRO BANNER (services page) ───────────────────────*/
.services-ad-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0b860;
}

/* ── NAV TOGGLE (hamburger) ──────────────────────────────────────*/
.nav-toggle span {
  background: var(--color-primary);
  height: 2px;
  border-radius: 2px;
}
.nav-toggle:hover span { background: var(--color-accent); }

/* ── COOKIE CONSENT ──────────────────────────────────────────────*/
.cookie-consent-banner,
[class*="cookie"] {
  font-family: var(--font-body) !important;
}

/* ── WHATSAPP WIDGET ─────────────────────────────────────────────*/
[class*="whatsapp"] {
  font-family: var(--font-body) !important;
}

/* ── OVERFLOW PREVENTION (global) ───────────────────────────────*/
/* overflow-x: clip prevents horizontal scroll without creating a scroll container,
   so position:sticky on .site-header-stack works correctly in all browsers */
html, body { overflow-x: clip; max-width: 100%; }

/* ── SITE ALERT — mobile fix ────────────────────────────────────*/
@media (max-width: 600px) {
  .site-alert { font-size: 0.8rem; }

  .site-alert__inner {
    flex-wrap: nowrap !important;
    align-items: center !important;
    padding: 8px 12px !important;
    gap: 8px !important;
    min-height: 0 !important;
    row-gap: 0 !important;
  }

  .site-alert__icon { display: none !important; }

  .site-alert__track {
    order: unset !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  .site-alert__marquee {
    animation: none !important;
    width: auto !important;
    display: block !important;
    transform: none !important;
  }

  .site-alert__segment {
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    font-size: 0.76rem !important;
    line-height: 1.45 !important;
    color: #fff !important;
    margin: 0 !important;
  }

  .site-alert__segment[aria-hidden="true"] { display: none !important; }

  .site-alert__more {
    order: unset !important;
    margin-left: 0 !important;
    font-size: 0.68rem !important;
    padding: 3px 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .site-alert__close {
    order: unset !important;
    width: 26px !important;
    height: 26px !important;
    flex-shrink: 0 !important;
    font-size: 1rem !important;
  }
}

/* ── HEADER — very small screens ────────────────────────────────*/
@media (max-width: 380px) {
  .logo-img {
    height: 36px !important;
    transform: scale(1.3) !important;
    max-width: min(140px, 48vw) !important;
  }
  .header-inner { padding: 10px 16px !important; }
}

/* ── SECTION / HERO — small screen sanity ───────────────────────*/
@media (max-width: 480px) {
  .hero-content { padding: 0 16px !important; }
  .hero-title { font-size: clamp(1.6rem, 8vw, 2.4rem) !important; }
  .hero-sub { font-size: 0.9rem !important; }

  .section { padding: 48px 0 !important; }
  .section-title { font-size: clamp(1.4rem, 6vw, 2rem) !important; }

  .services-list-inner { padding: 0 16px !important; }
  .check-list.two-col { grid-template-columns: 1fr !important; }

  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column !important; gap: 8px !important; text-align: center !important; }
}

/* ── PRINT ───────────────────────────────────────────────────────*/
@media print {
  :root {
    --font-heading: Georgia, serif;
    --font-body: Arial, sans-serif;
  }
}
