/* =========================
   THEME TOKENS
========================= */
:root {
  --bg: #ffffff;
  --text: #1f1f1f;
  --muted: #5f6368;         /* Google gray */
  --primary: #1a73e8;       /* Google blue */
  --primary-ink: #ffffff;
  --surface: #f8f9fa;       /* near-white */
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

:root.dark {
  --bg: #0f1115;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --primary: #8ab4f8;
  --primary-ink: #0b1320;
  --surface: #12151b;
  --card: #171a21;
  --shadow: 0 10px 30px rgba(0,0,0,.4);
}

/* =========================
   BASE
========================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1100px, 92vw); margin-inline: auto; }
.narrow { width: min(850px, 92vw); }

/* Section spacing + sticky header offset for in-page anchors */
.section { padding: 80px 0; scroll-margin-top: 72px; }
@media (max-width: 880px) {
  .section { scroll-margin-top: 64px; }
}
.section.alt { background: var(--surface); }

/* =========================
   HEADER / NAV
========================= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-logo { width: auto; height: 30px; object-fit: contain; }
.brand-text span { color: var(--primary); }
/* Invert logo in dark if you're using a darker logo asset */
:root.dark .brand-logo { filter: brightness(0) invert(1); }

.menu { display: flex; align-items: center; gap: 14px; }
.nav-link {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

/* Rounded bottom border for active & hover */
.nav-link:hover,
.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--primary);
  background: transparent;                 /* no fill */
  border-bottom: 4px solid var(--primary);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding-bottom: 6px;                     /* avoid overlap with text */
  text-decoration: none;
}

.nav-link.external { display: inline-flex; align-items: center; gap: 4px; }
.open-in-new { font-size: 18px; }

/* Icon-only theme toggle */
.theme-toggle {
  cursor: pointer;
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text); /* adapt to theme */
  user-select: none;
}
:root.dark .theme-toggle { color: #ffffff; }
.theme-toggle:hover { opacity: 0.8; }

.nav-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 6px; }
.nav-toggle .material-symbols-outlined { font-size: 28px; }

@media (max-width: 880px) {
  .menu {
    position: absolute;
    right: 12px; top: 64px;
    background: var(--bg);
    padding: 10px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 240px;
  }
  .menu.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}

/* =========================
   TYPOGRAPHY & BUTTONS
========================= */
h1 { font-size: clamp(1.8rem, 2.6vw + 1rem, 3rem); line-height: 1.2; margin: 0 0 14px; }
.h2, h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem); margin: 0 0 16px; }
.h3, h3 { font-size: 1.15rem; margin: 0 0 6px; }
.muted { color: var(--muted); }

.btn {
  display: inline-block;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: transform .04s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-outline { color: var(--primary); }

/* CTA row + pills */
.cta-row { display: flex; gap: 10px; margin: 18px 0 8px; flex-wrap: wrap; }
.pill-list { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0 0; padding: 0; list-style: none; }
.pill-list li { display: inline-flex; gap: 6px; align-items: center; background: var(--surface); border-radius: 999px; padding: 6px 10px; }

/* =========================
   HERO (new hero-section with theme-aware colors)
========================= */
/* Remove stacked top paddings elsewhere if present */
.hero { padding-top: 0; }

/* Theme-aware hero container */
.hero-section {
  margin-top: 0;
  padding: 0;                     /* no extra top padding */
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);        /* <<< theme token */
  border-radius: 12px;
}
.hero-text { flex: 1 1 45%; max-width: 500px; }
.hero-text h4 {
  color: var(--primary);          /* <<< theme token */
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 700;
}
.hero-text p {
  color: var(--text);             /* <<< theme token */
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.typing-label {
  font-weight: 600;
  margin-bottom: 10px;
  color: #b30000;                 /* can keep as accent; change to var(--muted) if desired */
  font-size: 16px;
}
.typed-wrapper { margin-bottom: 20px; }
#typed {
  color: var(--primary);          /* <<< theme token */
  font-size: 18px;
  font-weight: 600;
  display: inline;
}
.hero-image { flex: 1 1 45%; text-align: center; }
.hero-image img { max-width: 100%; height: auto; }

/* Hero button uses theme tokens */
.hero-button {
  padding: 12px 30px;
  background-color: var(--primary);
  color: var(--primary-ink);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}
.hero-button:hover { filter: brightness(.95); }

@media (max-width: 768px) {
  .hero-section { flex-direction: column; text-align: center; }
  .hero-text, .hero-image { flex: 1 1 100%; }
}

/* HOW WE AUTOMATE (theme-aware, 5-up desktop) */
/* 5 columns on desktop, auto-wrap below */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;                 /* slightly smaller gap so 5 fit cleanly */
  align-items: stretch;
}

.process-card {
  background: var(--card);
  border-radius: 12px;
  padding: 22px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
  min-width: 0;              /* allow content to shrink within grid cell */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

.process-icon {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 12px;
}
.process-title {
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.process-text {
  font-size: 14px;
  color: var(--text);
  opacity: .85;
  line-height: 1.6;
}

/* Responsive columns */
@media (max-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 880px)  { .process-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .process-grid { grid-template-columns: 1fr; } }

/* WHY TRUST US (theme-aware) */

.trust-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 28px;
}

/* Highlights row */
.trust-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 880px) { .trust-highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-highlights { grid-template-columns: 1fr; } }

.trust-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 12px;
}
.trust-item i {
  color: var(--primary);
  font-size: 18px;
}

/* Divider */
.divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 16px auto 28px auto;
}

/* Process steps (5-up desktop, responsive) */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 1024px) { .process-steps { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 880px)  { .process-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .process-steps { grid-template-columns: 1fr; } }

.step-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.step-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,.08); }

.step-icon { font-size: 22px; color: var(--primary); margin-bottom: 8px; }
.step-title { font-weight: 700; color: var(--text); font-size: 16px; }
.step-desc  { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* KEY BENEFITS (theme-aware, 4-up desktop) */

.benefits-section h2 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 28px;
  font-weight: 700;
}

/* 4 columns on desktop, responsive below */
.benefit-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.benefit-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
  min-width: 0;              /* prevent overflow in grid */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.benefit-card i {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 12px;
}

.benefit-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 6px 0 8px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Responsive columns */
@media (max-width: 1024px) { .benefit-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 880px)  { .benefit-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .benefit-cards { grid-template-columns: 1fr; } }

/* CTA (theme-aware, background GIF + overlay) */
.cta-section {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 44px 24px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
  text-align: center;
}

/* Background image layer (you can override url via inline --cta-bg) */
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cta-bg) center/cover no-repeat;
  z-index: 0;
}

/* Overlay tint (different in dark mode for contrast) */
.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 249, 250, 0.88); /* light overlay */
  z-index: 0;
}
:root.dark .cta-section::after {
  background: rgba(0, 0, 0, 0.55);        /* darker overlay in dark mode */
}

/* Foreground content sits above overlays */
.cta-section h2,
.cta-section p,
.cta-btn {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--primary);
}

.cta-section p {
  font-size: 16px;
  margin: 0 0 22px;
  color: var(--text);
}

/* Button (uses your theme tokens) */
.cta-btn {
  background: var(--primary);
  color: var(--primary-ink);
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.25s ease, transform 0.04s ease;
}
.cta-btn:hover { filter: brightness(0.95); }
.cta-btn:active { transform: translateY(1px); }

@media (max-width: 768px) {
  .cta-section { padding: 32px 18px; }
  .cta-section h2 { font-size: 24px; }
  .cta-btn { width: 100%; max-width: 280px; }
}

/* =========================
   SERVICES CAROUSEL — refined
========================= */
.diya-service-carousel-title {
  text-align: center;
  margin-bottom: 18px;
}
.diya-service-carousel-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

/* Container */
.diya-service-carousel.swiper,
.diya-service-carousel.swiper-container {
  padding: 8px 0 56px;         /* a little breathing room; smaller top gap */
  overflow: hidden;           /* let active slide shadow show */
  background: transparent;     /* keep page background clean */
}

/* Slides (cards) */
.service-slide {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(0,0,0,.07);      /* subtle outline */
  border-radius: 16px;
  padding: 22px 18px 18px;
  text-align: center;
  height: auto;                            /* content decides */
  min-height: 320px;                       /* consistent height without looking tall */
  transform: scale(0.985);                 /* very light scale so it doesn’t shrink too much */
  transition: transform .30s cubic-bezier(.2,.8,.2,1),
              box-shadow .28s ease, border-color .28s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,.06),   /* soft, natural */
              0 8px 18px rgba(0,0,0,.06);
  overflow: hidden;
}

/* Top accent bar (thin, rounded) */
.service-slide::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 16px;
  right: 16px;
  height: 2px;                              /* slimmer accent */
  border-radius: 999px;
  background: linear-gradient(90deg,#EA4335,#FBBC05,#34A853,#4285F4);
  opacity: .7;
}

/* Active/center slide: gentle lift & scale */
.diya-service-carousel .swiper-slide-active.service-slide {
  transform: scale(1.015) !important;       /* subtle so layout feels stable */
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,.08),
              0 14px 28px rgba(0,0,0,.10);  /* lighter than before */
  border-color: rgba(0,0,0,.08);
}

/* Icon chip */
.service-slide i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 6px auto 12px;
  font-size: 24px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

/* Title & text */
.service-slide h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  margin: 10px 0 10px;
}
.service-slide p {
  font-size: .97rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 16px;
}

/* CTA button */
.service-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-ink) !important;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: .94rem;
  transition: filter .25s ease, transform .04s ease;
}
.service-btn:hover { filter: brightness(.96); }
.service-btn:active { transform: translateY(1px); }

/* Arrows (circular, soft elevation) */
.diya-service-carousel .swiper-button-next,
.diya-service-carousel .swiper-button-prev {
  color: var(--primary-ink);
  background: var(--primary);
  border-radius: 50%;
  width: 40px; height: 40px;
  top: 50%; transform: translateY(-50%);
  box-shadow: 0 6px 16px rgba(0,0,0,.14);
}
.diya-service-carousel .swiper-button-next::after,
.diya-service-carousel .swiper-button-prev::after { font-size: 16px; }
.diya-service-carousel .swiper-button-next:hover,
.diya-service-carousel .swiper-button-prev:hover { filter: brightness(.95); }

/* Pagination bullets */
.diya-service-carousel .swiper-pagination { margin-top: 18px; }
.diya-service-carousel .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: rgba(0,0,0,.24);
  opacity: 1;
  transition: transform .2s ease;
}
:root.dark .diya-service-carousel .swiper-pagination-bullet {
  background: rgba(255,255,255,.42);
}
.diya-service-carousel .swiper-pagination-bullet-active {
  background: var(--primary);
  transform: scale(1.25);
}

/* Dark theme refinements */
:root.dark .service-slide {
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 2px 10px rgba(0,0,0,.40);      /* tighter dark shadow */
}
:root.dark .diya-service-carousel .swiper-slide-active.service-slide {
  box-shadow: 0 10px 28px rgba(0,0,0,.48);
  border-color: rgba(255,255,255,.10);
}

/* Responsive */
@media (max-width: 1024px) {
  .service-slide { min-height: 300px; }
}
@media (max-width: 768px) {
  .service-slide { transform: none; } /* no shrinking on small screens */
  .diya-service-carousel .swiper-slide-active.service-slide { transform: scale(1.01) !important; }
}


/* LOGO MARQUEE (theme-aware) */
.logo-carousel-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.logo-carousel-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.logo-carousel {
  position: relative;
  overflow: hidden;
}

.logo-track-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.logo-track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: logo-scroll var(--logo-speed, 40s) linear infinite;
  will-change: transform;
}

/* Pause the animation when hovered */
.logo-carousel:hover .logo-track { animation-play-state: paused; }

.logo-item {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}

.logo-item img {
  max-height: 64px;            /* tuned to fit your container neatly */
  width: auto;
  filter: grayscale(100%);
  opacity: .75;
  transition: transform .25s ease, filter .25s ease, opacity .25s ease;
}
.logo-item img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.06);
}

/* Seamless scroll: content is duplicated once, animate half-width */
@keyframes logo-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 18px;
  border: none;
  padding: 10px 12px;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: filter .2s ease;
}
.carousel-arrow:hover { filter: brightness(.95); }
.carousel-arrow.left  { left: 8px;  }
.carousel-arrow.right { right: 8px; }

@media (max-width: 640px) {
  .logo-item img { max-height: 52px; }
  .carousel-arrow { display: none; } /* keep UI clean on very small screens */
}

/* ========= ABOUT (theme-aware) ========= */
.about-wrap { text-align: left; }

.about-header {
  text-align: center;
  margin-bottom: 28px;
}
.about-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px;
}
.about-header p {
  font-size: 16px;
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Mission / Vision cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

.about-card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.about-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,.08); }
.about-card h3 {
  color: var(--text);
  font-size: 20px;
  margin: 0 0 8px;
  display: flex; align-items: center; gap: 10px;
}
.about-card i { color: var(--primary); }
.about-card p { font-size: 15px; color: var(--text); opacity: .9; line-height: 1.7; margin: 0; }

/* Values */
.values-section { margin-top: 36px; }
.values-section h3 {
  font-size: 22px;
  color: var(--text);
  text-align: center;
  margin: 0 0 18px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1024px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .values-grid { grid-template-columns: 1fr; } }

.value-box {
  background: var(--card);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: background-color .2s ease, transform .2s ease;
}
.value-box:hover { transform: translateY(-3px); }
.value-box h4 {
  font-size: 17px;
  margin: 0 0 6px;
  display: flex; align-items: center; gap: 8px;
  color: var(--primary);
}
.value-box p { font-size: 14px; color: var(--text); opacity: .9; line-height: 1.6; margin: 0; }

/* About CTA (namespaced to avoid clashes with homepage CTA) */
.about-cta {
  background: var(--card);
  text-align: center;
  padding: 34px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.about-cta h2 {
  font-size: 26px;
  color: var(--primary);
  margin: 0 0 10px;
}
.about-cta p {
  color: var(--text);
  opacity: .9;
  font-size: 16px;
  margin: 0 0 18px;
}
.about-cta-button {
  background: var(--primary);
  color: var(--primary-ink);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: filter .25s ease, transform .04s ease;
}
.about-cta-button:hover { filter: brightness(.95); }
.about-cta-button:active { transform: translateY(1px); }

/* Stats (use surface background for contrast) */
.stats-section {
  background: var(--surface);
  padding: 28px 18px;
  text-align: center;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.stats-section h2 {
  font-size: 24px;
  color: var(--text);
  margin: 0 0 14px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
@media (max-width: 1024px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .stats-grid { grid-template-columns: 1fr; } }

.stat-box {
  background: var(--card);
  border-radius: 12px;
  padding: 18px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.stat-box i { font-size: 28px; color: var(--primary); margin-bottom: 8px; display: inline-block; }
.stat-box h4 { font-size: 24px; color: var(--text); margin: 6px 0 4px; }
.stat-box p  { font-size: 14px; color: var(--muted); margin: 0; }

/* SERVICES HERO (theme-aware) */
.service-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 42px 24px;
}

/* Optional background image via --hero-bg */
.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-bg) center/cover no-repeat;
  z-index: 0;
}

/* Overlay for readability (lighter in light mode, darker in dark mode) */
.service-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 249, 250, 0.88);
  z-index: 0;
}
:root.dark .service-hero::after {
  background: rgba(0, 0, 0, 0.55);
}

.service-hero h1,
.service-hero p {
  position: relative; /* above overlays */
  z-index: 1;
}

.service-hero h1 {
  font-size: clamp(28px, 2.4vw + 12px, 40px);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px;
}

.service-hero p {
  font-size: 16px;
  max-width: 760px;
  margin: 0 auto;
  color: var(--text);
  opacity: 0.9;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .service-hero { padding: 32px 18px; }
  .service-hero h1 { font-size: 26px; }
}

/* SERVICES BLOCKS (theme-aware) */
.service-block {
  background: var(--card);
  color: var(--text);
  border-left: 6px solid var(--primary);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px 18px;
  margin: 18px 0;
  scroll-margin-top: 88px; /* sticky header offset for #anchors */
}

.service-block h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 22px;
  margin: 0 0 10px;
}
.service-block h2 i { font-size: 24px; color: var(--primary); }

/* “Highlight” tags */
.hl {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface);       /* theme surface */
  margin: 12px 0 10px;
  border-left: 4px solid currentColor;
}
.hl-blue  { color: var(--primary); }
.hl-red   { color: #d93025; }       /* accent red (kept brand-safe) */
.hl-green { color: #2e8b57; }       /* accent green */

/* Body copy */
.service-block p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 16px;
  color: var(--text);
  opacity: .95;
}

/* Two-up grid for Pain Areas / Solutions */
.split-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
@media (max-width: 820px) { .split-box { grid-template-columns: 1fr; } }

.box {
  background: var(--card);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
:root.dark .box { border-color: rgba(255,255,255,.08); }

.box ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.box li {
  list-style: disc;
  margin: 6px 0;
  color: var(--text);
  opacity: .9;
}

/* PRICING (theme-aware) */
.pricing-card{
  background: var(--card);
  color: var(--text);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 18px;
  border-left: 6px solid var(--primary);
}

.pricing-title{
  text-align: center;
  color: var(--primary);
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem);
  font-weight: 700;
}
.pricing-note{
  text-align: center;
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 0.98rem;
}

/* Segmented control */
.pricing-plans{
  display: inline-flex;
  gap: 0;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  background: var(--surface);
  padding: 4px;
  margin: 8px auto 18px;
  align-items: center;
  justify-content: center;
}
:root.dark .pricing-plans{ border-color: rgba(255,255,255,.12); }

.plan-btn{
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 14px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background .15s ease, color .15s ease, transform .04s ease;
}
.plan-btn:hover{ background: rgba(0,0,0,.05); }
:root.dark .plan-btn:hover{ background: rgba(255,255,255,.08); }
.plan-btn:active{ transform: translateY(1px); }

.plan-btn.active{
  background: var(--primary);
  color: var(--primary-ink);
}

/* Table */
.pricing-table-wrapper{
  overflow-x: auto; /* mobile safe */
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04) inset;
  background: var(--card);
}

.pricing-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 520px; /* keeps columns readable before wrapping */
}

.pricing-table thead th{
  background: var(--primary);
  color: var(--primary-ink);
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
}

.pricing-table tbody td,
.pricing-table tbody th{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  font-size: 0.98rem;
}
:root.dark .pricing-table tbody td,
:root.dark .pricing-table tbody th{
  border-bottom-color: rgba(255,255,255,.12);
}

.pricing-table tbody tr:nth-child(even){
  background: var(--surface);
}

/* Notes */
.pricing-notes{
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--text);
  opacity: .9;
  font-size: 0.95rem;
}
.pricing-notes li{
  margin: 6px 0;
}
.pricing-notes li::marker{
  color: var(--primary);
}

/* Links inside notes */
.pricing-notes a{
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.pricing-notes a:hover{ text-decoration: underline; }

@media (max-width: 640px){
  .plan-btn{ padding: 8px 12px; font-size: 0.95rem; }
}



/* ===== FAQ PAGE (theme-aware) ===== */
.faq-header {
  text-align: center;
  margin-bottom: 20px;
}
.faq-title {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: clamp(1.4rem, 1.1vw + 1rem, 2rem);
  font-weight: 700;
}
.faq-desc {
  margin: 0 auto 10px;
  color: var(--muted);
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.faq-list {
  width: min(900px, 100%);
  margin-inline: auto;
}

.faq-item {
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin: 12px 0;
  border-left: 4px solid transparent;
  transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.faq-item[open] {
  border-left-color: var(--primary);
  transform: translateY(-1px);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

/* Arrow */
.faq-item summary::after {
  content: 'expand_more';
  font-family: 'Material Symbols Outlined';
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  transition: transform .2s ease, color .2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item p {
  margin: 10px 2px 4px;
  color: var(--text);
  opacity: .92;
  line-height: 1.65;
}

/* Hover feedback */
.faq-item:hover { box-shadow: 0 10px 20px rgba(0,0,0,.08); }
:root.dark .faq-item:hover { box-shadow: 0 10px 20px rgba(0,0,0,.35); }

/* =========================
   DEMO CARDS (video + text)
========================= */

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;

  /* Hover zoom essentials */
  transform-origin: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  will-change: transform;
}

.card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin: 0; }
.card p  { margin: 0; line-height: 1.55; color: var(--muted-fg, #444); }

/* Responsive 16:9 embed with graceful fallback */
.video {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9; /* modern */
  transition: transform 0.28s ease; /* so the video scales smoothly too */
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Hover + focus states (only on devices that support hover) */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: scale(1.04);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
    z-index: 2;
  }
  .card:hover .video { transform: scale(1.02); }
}

/* Keyboard focus visible (accessibility) */
.card:focus-within {
  outline: 2px solid color-mix(in oklab, #3b82f6 70%, white);
  outline-offset: 3px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .card, .video { transition: none; }
}

/* Fallback for older browsers without aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .video { padding-top: 56.25%; }
  .video iframe { position: absolute; top: 0; left: 0; }
}


/* =========================
   CONTACT FORM
========================= */
/* ===== CONTACT PAGE (theme-aware) ===== */
.contact-page{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 880px){
  .contact-page{ grid-template-columns: 1fr; }
}

.contact-info h1{
  margin: 0 0 8px;
  color: var(--primary);
  font-size: clamp(1.3rem, 1.1vw + 1rem, 1.8rem);
  font-weight: 700;
}
.contact-info p{
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 42ch;
}

.info-box{
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0;
  box-shadow: var(--shadow);
}
.info-box .material-symbols-outlined{
  color: var(--primary);
  font-size: 20px;
}
.info-box a{ color: var(--text); text-decoration: none; }
.info-box a:hover{ text-decoration: underline; }

/* Form card */
.contact-form-card{
  background: var(--card);
  color: var(--text);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 18px;
  border-left: 6px solid var(--primary);
}

.form-group{ display: grid; gap: 6px; margin: 12px 0; }
.form-group label{ font-weight: 600; color: var(--text); }
.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid #dadce0;
  background: var(--card);
  color: var(--text);
  font: inherit;
}
:root.dark .contact-form input,
:root.dark .contact-form textarea{ border-color: rgba(255,255,255,.15); }

.contact-form input:focus,
.contact-form textarea:focus{
  outline: 2px solid var(--primary);
  border-color: transparent;
}

/* Submit button with spinner */
.submit-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.btn-spinner{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  border-top-color: var(--primary-ink);
  display: none;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.submit-btn[aria-busy="true"] .btn-spinner{ display: inline-block; }

/* Response message */
.response-message{
  margin: 12px 0 0;
  font-weight: 600;
}
.response-message.success{ color: #188038; }
.response-message.error{ color: #d93025; }

/* Hide honeypot */
.hp-field{
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

.privacy-note{ margin: 14px 2px 0; font-size: .95rem; }

/* =========================
   FLOATING QUICK-ACTION BUTTONS
========================= */
.floating-buttons{
  position: fixed;
  right: calc(12px + env(safe-area-inset-right));
  bottom: calc(96px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.fab-btn{
  position: relative;
  width: 56px;
  height: 48px;
  background: var(--card);
  border: 1px solid rgba(0,0,0,.08);
  border-top-left-radius: 28px;
  border-bottom-left-radius: 28px;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
  font: inherit;
}
.fab-btn i{ font-size: 20px; }

/* Brand/icon colors (uniform neutral chip) */
.fab-btn.is-whatsapp i{ color:#25D366; }
.fab-btn.is-call i    { color:var(--primary); }
.fab-btn.to-top i     { color:var(--muted); }
/* 🔵 Bot matches the others: neutral chip + blue icon */
.fab-btn.is-bot i     { color:#1a73e8; }

/* Hover */
.fab-btn:hover{
  transform: translateX(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
/* Subtle glow on bot hover */
.fab-btn.is-bot:hover{ box-shadow: 0 12px 28px rgba(26,115,232,.28); }

/* Tooltip */
.fab-btn::after{
  content: attr(data-label);
  position: absolute;
  right: 100%;
  margin-right: 10px;
  background: rgba(0,0,0,.75);
  color:#fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.fab-btn:hover::after,
.fab-btn:focus-visible::after{ opacity:1; transform: translateX(0); }

/* Dark theme */
:root.dark .fab-btn{
  background: var(--card);
  border-color: rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
:root.dark .fab-btn.to-top i{ color:#e0e0e0; }
/* keep tooltip readable in dark */
:root.dark .fab-btn::after{ background: rgba(255,255,255,.14); color:#fff; }
/* bot icon still blue in dark */
:root.dark .fab-btn.is-bot i{ color:#7fb1ff; }

/* No underline */
.floating-buttons .fab-btn,
.floating-buttons .fab-btn:hover,
.floating-buttons .fab-btn:focus{ text-decoration:none !important; color:inherit; }

/* Icon micro-anim */
.floating-buttons .fab-btn:hover i{ transform: scale(1.2); }

/* Keyboard focus */
.fab-btn:focus-visible{
  outline: 3px solid #1a73e8;
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .floating-buttons, .fab-btn, .fab-btn::after{ transition:none; }
}

/* Mobile */
@media (max-width: 768px){
  .floating-buttons{
    right: calc(8px + env(safe-area-inset-right));
    bottom: calc(84px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .fab-btn{ width:50px; height:44px; }
}

/* ===== Diya SmartBot: backdrop + panel ===== */
.diya-bot-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  z-index: 9998;
}
/* ensure hidden attribute actually hides it */
.diya-bot-backdrop[hidden]{ display:none !important; }

.diya-bot-panel{
  position: fixed;
  right: 18px;
  bottom: 90px; /* sits just above the floating stack */
  width: min(360px, 92vw);
  max-height: 70vh;
  background: var(--card, #fff);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.24);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  transform: translateY(16px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
  z-index: 10000; /* above buttons + backdrop */
}
.diya-bot-panel.open{
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Header/body/input/followups */
.diya-bot-header{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; background:#1a73e8; color:#fff;
}
.diya-bot-header img{ width:28px; height:28px; border-radius:6px; }
/* Make the bot header logo white, without affecting the site header/logo */
.diya-bot-header img {
  filter: brightness(0) invert(1) contrast(110%); /* -> white */
}
.diya-bot-header .mini{ font-size:12px; opacity:.9; }
.diya-bot-close{ margin-left:auto; background:transparent; color:#fff; font-size:22px; border:0; cursor:pointer; }

.diya-bot-body{
  padding:12px; overflow:auto; display:grid; gap:8px;
  background: var(--bg, #f7f9fc);
}
.diya-bot-body .bot,
.diya-bot-body .user{
  padding:10px 12px; border-radius:12px; line-height:1.35; max-width:85%;
}
.diya-bot-body .bot{
  background:#e8f0fe; color:#1a1a1a; border-top-left-radius:4px;
}
.diya-bot-body .user{
  background:#1a73e8; color:#fff; margin-left:auto; border-top-right-radius:4px;
}
.diya-bot-body .thinking{ opacity:.7; font-style:italic; }

.diya-bot-input{
  display:flex; padding:8px; gap:8px;
  background:#fff; border-top:1px solid #eceff3;
}
.diya-bot-input input{
  flex:1; padding:10px 12px; border:1px solid #dfe3ea; border-radius:10px;
}
.diya-bot-input .send{
  background:#1a73e8; color:#fff; border:0; padding:0 14px; border-radius:10px; cursor:pointer;
}

.diya-bot-followups{
  display:none; gap:8px; flex-wrap:wrap;
  padding:8px 12px; background:#fff; border-top:1px solid #eceff3;
}
.diya-bot-followups .chip{
  border:1px solid #dfe3ea; background:#fff; border-radius:999px; padding:6px 10px; cursor:pointer;
}

/* Unread badge on the bot launcher */
.fab-btn.has-unread::before{
  content:"";
  position:absolute;
  top:-4px; right:-4px;
  width:10px; height:10px;
  border-radius:50%;
  background:#e53935;            /* red dot */
  border:2px solid var(--card);   /* ring that matches chip bg */
}
:root.dark .fab-btn.has-unread::before{ border-color: var(--card); }

/* (Optional) gentle pulse; will respect reduced motion */
@media (prefers-reduced-motion: no-preference){
  .fab-btn.has-unread::before{ animation: diya-pulse 1.8s ease-in-out infinite; }
  @keyframes diya-pulse{
    0%,100%{ transform: scale(1); }
    50%    { transform: scale(1.18); }
  }
}


/* Mobile sheet style */
@media (max-width: 520px){
  .diya-bot-panel{
    right:0; left:0; margin:0 auto; bottom:0; width:100%;
    max-height:85vh; border-bottom-left-radius:0; border-bottom-right-radius:0;
  }
}

/* ===== WhatsApp-like typing bubble ===== */
.diya-typing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e8f0fe;
  color: #1a1a1a;
  border-top-left-radius: 4px;
  max-width: 85%;
}

.diya-typing .dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.diya-typing .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .35;
  animation: diyaTyping 1s infinite ease-in-out;
}
.diya-typing .dot:nth-child(2){ animation-delay: .15s; }
.diya-typing .dot:nth-child(3){ animation-delay: .30s; }

@keyframes diyaTyping {
  0%, 80%, 100% { transform: translateY(0);   opacity: .35; }
  40%           { transform: translateY(-3px); opacity: .9;  }
}

/* ===== Online/Offline badge in header ===== */
.diya-status{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
}
.diya-status .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: #35c759; /* online green */
  box-shadow: 0 0 0 2px rgba(53,199,89,.24);
}

/* status variants */
.diya-status.is-connecting .dot{
  background: #ffd666; /* amber */
  box-shadow: 0 0 0 2px rgba(255,214,102,.25);
  animation: diyaPulse 1.4s infinite ease-in-out;
}
.diya-status.is-offline .dot{
  background: #ff3b30; /* red */
  box-shadow: 0 0 0 2px rgba(255,59,48,.25);
}
@keyframes diyaPulse{
  0%,100%{ transform: scale(1); }
  50%    { transform: scale(1.2); }
}

/* Dark mode badge contrast */
:root.dark .diya-status{
  background: rgba(0,0,0,.25);
  color: #eaf2ff;
}
.diya-typing { padding: 8px 10px; }
.diya-typing .dot { width: 5px; height: 5px; }


/* Dark mode via your `.dark` class */
:root.dark .diya-bot-panel{ --bg:#0f1115; --card:#141721; background:var(--card); }
:root.dark .diya-bot-body .bot{ background:#27324a; color:#e5edff; }
:root.dark .diya-bot-input,
:root.dark .diya-bot-followups{ background:#141721; border-color:#1e2433; }
:root.dark .diya-bot-input input{ background:#0f1115; color:#eef3ff; border-color:#1e2433; }

/* =========================
   FOOTER
========================= */
.footer { background: var(--surface); padding: 26px 0 70px; position: relative; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-left { color: var(--muted); margin: 0; }
.footer-right { color: var(--muted); margin: 0; text-align: right; }
@media (max-width: 720px) {
  .footer-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-right { text-align: left; }
}
