/* ── Dex Software — Main Stylesheet ─────────────────────────────── */
/* Design tokens */
:root {
  --yellow: #EFFF00;
  --dark:   #111418;
  --mid:    #5F6B7A;
  --light:  #F6F7F8;
  --border: rgba(17,20,24,0.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: Manrope, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: #fff;
  color: var(--dark);
}
::selection { background: var(--yellow); color: var(--dark); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; border-radius: var(--radius-sm); }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }

/* Scrollbar */
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(17,20,24,.16); border-radius: 8px; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.dex-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark); color: #fff;
  font: 700 15px/1 Manrope, sans-serif;
  padding: 15px 22px; border-radius: 12px;
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s;
}
.dex-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(17,20,24,.4); }
.dex-btn-yellow { background: var(--yellow); color: var(--dark); border-color: rgba(17,20,24,.08); }
.dex-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--dark);
  font: 700 14px/1 Manrope, sans-serif;
  padding: 12px 18px; border-radius: 11px;
  text-decoration: none; border: 1px solid rgba(17,20,24,.14);
  cursor: pointer; transition: all .2s;
}
.dex-ghost:hover { border-color: rgba(17,20,24,.32); background: var(--light); }

/* ── Header ───────────────────────────────────────────────────────── */
.dex-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 68px; display: flex; align-items: center;
}
.dex-header__inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 clamp(20px,5vw,40px);
  width: 100%;
  display: flex; align-items: center; gap: 28px;
}
.dex-header__logo img { height: 28px; width: auto; }
.dex-header__nav {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.dex-header__nav a {
  font: 600 14px/1 Manrope, sans-serif;
  color: var(--mid); text-decoration: none;
  padding: 8px 13px; border-radius: 9px;
  transition: color .15s, background .15s;
}
.dex-header__nav a:hover { color: var(--dark); background: var(--light); }
.dex-header__cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--yellow); color: var(--dark);
  font: 700 13px/1 Manrope, sans-serif;
  padding: 10px 16px; border-radius: 10px;
  text-decoration: none; border: 1px solid rgba(17,20,24,.08);
  transition: transform .15s, box-shadow .2s;
}
.dex-header__cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(17,20,24,.4); }

/* Desktop dropdown */
.dex-header__dropdown { position: relative; }
.dex-header__drop-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  font: 600 14px/1 Manrope,sans-serif; color: var(--mid);
  text-decoration: none; padding: 8px 13px; border-radius: 9px;
  transition: color .15s, background .15s; cursor: pointer;
}
.dex-header__drop-trigger:hover { color: var(--dark); background: var(--light); }
.dex-header__drop-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: #fff; border: 1px solid rgba(17,20,24,.1);
  border-radius: 14px; padding: 8px;
  min-width: 240px; z-index: 200;
  box-shadow: 0 16px 40px -16px rgba(17,20,24,.22);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dex-header__dropdown:hover .dex-header__drop-menu,
.dex-header__dropdown:focus-within .dex-header__drop-menu {
  opacity: 1; visibility: visible; transform: none;
}
.dex-header__drop-menu a {
  display: block; font: 500 14px/1 Manrope,sans-serif;
  color: var(--mid); text-decoration: none;
  padding: 11px 14px; border-radius: 9px;
  transition: background .12s, color .12s;
}
.dex-header__drop-menu a:hover { background: var(--light); color: var(--dark); }
.dex-header__burger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; color: var(--dark);
}
@media (max-width: 900px) {
  .dex-header__nav { display: none; }
  .dex-header__burger { display: flex; }
}

/* Mobile nav drawer */
/* Mobile nav drawer */
.dex-mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.dex-mobile-nav.open { transform: translateX(0); box-shadow: -8px 0 40px rgba(17,20,24,.18); }

/* Nav top bar */
.dex-mobile-nav__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.dex-mobile-nav__top-logo {
  display: inline-flex; align-items: center; gap: 7px;
  font: 800 16px/1 Manrope,sans-serif; letter-spacing: -0.03em;
  color: var(--dark); text-decoration: none;
}
.dex-mobile-nav__close {
  background: var(--light); border: none; cursor: pointer;
  padding: 9px; border-radius: 9px; color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.dex-mobile-nav__close:hover { background: #E2E4E8; }

/* Nav links */
.dex-mobile-nav__links {
  display: flex; flex-direction: column;
  padding: 12px 0;
}
.dex-mobile-nav__links a {
  font: 600 17px/1 Manrope,sans-serif;
  color: var(--dark); text-decoration: none;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(17,20,24,.06);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .12s;
}
.dex-mobile-nav__links a:hover { background: var(--light); }
.dex-mobile-nav__links a:last-child { border-bottom: none; }

/* Hizmetler submenu */
.dex-mobile-sub {
  display: none; flex-direction: column;
  background: var(--light); padding: 6px 0;
}
.dex-mobile-sub.open { display: flex; }
.dex-mobile-sub a {
  font: 500 15px/1 Manrope,sans-serif !important;
  color: var(--mid) !important;
  padding: 13px 36px !important;
  border-bottom: 1px solid rgba(17,20,24,.04) !important;
}
.dex-mobile-sub a:hover { color: var(--dark) !important; }

/* CTA at bottom */
.dex-mobile-nav__cta {
  padding: 20px 22px; margin-top: auto;
  border-top: 1px solid var(--border);
}
.dex-mobile-nav__cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: var(--yellow); color: var(--dark);
  font: 700 15px/1 Manrope,sans-serif;
  padding: 16px; border-radius: 13px;
  text-decoration: none;
  box-shadow: 0 6px 18px -6px rgba(239,255,0,.5);
  transition: transform .15s;
}
.dex-mobile-nav__cta a:hover { transform: translateY(-1px); }

/* Backdrop */
.dex-mobile-nav-backdrop {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(17,20,24,.5); backdrop-filter: blur(3px);
}
.dex-mobile-nav-backdrop.open { display: block; }

/* ── Footer ───────────────────────────────────────────────────────── */
.dex-footer {
  border-top: 1px solid var(--border);
  background: #fff; font-family: Manrope, sans-serif;
}
.dex-footer__grid {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(48px,6vw,72px) clamp(20px,5vw,40px) 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 40px;
}
.dex-footer__brand p { font: 500 14px/1.6 Manrope,sans-serif; color: var(--mid); max-width: 300px; margin: 0 0 20px; }
.dex-footer__social { display: flex; gap: 10px; }
.dex-footer__social a {
  width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid rgba(17,20,24,.12);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all .2s;
  color: var(--dark);
}
.dex-footer__social a:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.dex-footer__col h4 { font: 700 13px/1 Manrope,sans-serif; color: var(--dark); margin-bottom: 18px; }
.dex-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dex-footer__col ul a { font: 500 14px/1 Manrope,sans-serif; color: var(--mid); text-decoration: none; transition: color .15s; }
.dex-footer__col ul a:hover { color: var(--dark); }
.dex-footer__bottom {
  border-top: 1px solid var(--border);
  max-width: 1240px; margin: 0 auto;
  padding: 22px clamp(20px,5vw,40px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.dex-footer__bottom span { font: 500 13px/1 Manrope,sans-serif; color: var(--mid); }
.dex-footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.dex-footer__legal a { font: 500 13px/1 Manrope,sans-serif; color: var(--mid); text-decoration: none; transition: color .15s; }
.dex-footer__legal a:hover { color: var(--dark); }

/* WhatsApp sticky */
.dex-wa {
  position: fixed; bottom: 22px; right: 22px; z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  font: 700 14px/1 Manrope,sans-serif;
  padding: 14px 18px; border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(37,211,102,.55);
  transition: transform .15s, box-shadow .2s;
}
.dex-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(37,211,102,.65); color: #fff; }

/* ── Sections ─────────────────────────────────────────────────────── */
.dex-section { max-width: 1240px; margin: 0 auto; padding: clamp(56px,7vw,96px) clamp(20px,5vw,40px); }
.dex-section--bg { background: var(--light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dex-section--dark { background: var(--dark); }

/* ── Cards ────────────────────────────────────────────────────────── */
.dex-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.dex-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(17,20,24,.22); border-color: rgba(17,20,24,.18); }

/* ── Animations ───────────────────────────────────────────────────── */
@keyframes dexrise { from { opacity:0; transform: translateY(14px); } to { opacity:1; transform: none; } }
@keyframes dexmarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ── FAQ accordion ────────────────────────────────────────────────── */
.dex-faq { border: 1px solid rgba(17,20,24,.1); border-radius: var(--radius-md); margin-bottom: 10px; overflow: hidden; background: #fff; transition: border-color .15s; }
.dex-faq:hover { border-color: rgba(17,20,24,.2); }
.dex-faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font: 700 15.5px/1.4 Manrope,sans-serif; color: var(--dark); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dex-faq summary::-webkit-details-marker { display: none; }
.dex-faq__icon { flex-shrink: 0; width: 22px; height: 22px; transition: transform .2s; color: var(--mid); }
.dex-faq[open] .dex-faq__icon { transform: rotate(45deg); }
.dex-faq__body { padding: 0 20px 20px; font: 500 14.5px/1.65 Manrope,sans-serif; color: var(--mid); }

/* ── Blog cards ───────────────────────────────────────────────────── */
.dex-blog-card { text-decoration: none; display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.dex-blog-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(17,20,24,.22); border-color: rgba(17,20,24,.18); }
.dex-blog-card__img { aspect-ratio: 16/9; overflow: hidden; background: var(--light); }
.dex-blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.dex-blog-card:hover .dex-blog-card__img img { transform: scale(1.05); }
.dex-blog-card__body { padding: 20px; }
.dex-blog-card__cat { font: 600 10.5px/1 'JetBrains Mono',monospace; color: var(--mid); letter-spacing: .08em; margin-bottom: 10px; text-transform: uppercase; }
.dex-blog-card__title { font: 700 17px/1.3 Manrope,sans-serif; color: var(--dark); margin-bottom: 10px; }
.dex-blog-card__excerpt { font: 500 13.5px/1.55 Manrope,sans-serif; color: var(--mid); }

/* ── Responsive helpers ───────────────────────────────────────────── */
.dex-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 16px; }
.dex-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.dex-flex-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Scroll-to-top ─────────────────────────────────────────────── */
#dexTop {
  position: fixed; bottom: 80px; right: 22px; z-index: 9998;
  width: 46px; height: 46px; border-radius: 12px;
  background: #fff; border: 1px solid rgba(17,20,24,.14);
  cursor: pointer; display: none; align-items: center; justify-content: center;
  color: var(--dark); transition: all .2s;
  box-shadow: 0 4px 14px -4px rgba(17,20,24,.18);
}
#dexTop:hover { background: var(--dark); color: #fff; }
body.dex-scrolled #dexTop { display: flex; }

/* ── Tablet (max 1024px) ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dex-header__cta { display: none; }
}

/* ── Mobile nav breakpoint ───────────────────────────────────────── */
@media (max-width: 900px) {
  .dex-header__nav { display: none; }
  .dex-header__burger { display: flex; }
}

/* ── Mobile (max 768px) ──────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Header */
  .dex-header { height: 60px; }
  .dex-header__inner { padding: 0 16px; }

  /* Sections */
  .dex-section { padding: clamp(40px,8vw,56px) 16px; }

  /* Hero (front-page) */
  .dex-hero-cta { flex-direction: column; }
  .dex-hero-cta a { width: 100%; justify-content: center; }

  /* Stats grid — 2 col on mobile */
  .dex-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Service cards — single col */
  .dex-grid-2,
  .dex-grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* Service page hero grid */
  .dex-svc-hero-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .dex-footer__grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 36px 16px 24px !important;
  }
  .dex-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .dex-footer__legal {
    gap: 14px;
    flex-wrap: wrap;
  }

  /* Blog cards */
  .dex-blog-card { border-radius: 14px; }
  .dex-blog-card__body { padding: 16px; }

  /* WhatsApp pill → circle on mobile */
  .dex-wa span { display: none; }
  .dex-wa { padding: 14px; border-radius: 50%; bottom: 16px; right: 16px; }

  /* Scroll-to-top — above WA */
  #dexTop { bottom: 74px; right: 16px; width: 42px; height: 42px; }

  /* FAQ */
  .dex-faq summary { font-size: 14.5px; padding: 15px 16px; }
  .dex-faq__body { padding: 0 16px 16px; }

  /* Cards */
  .dex-card { padding: 18px; }

  /* CTA blocks */
  .dex-cta-block { border-radius: 18px !important; padding: 28px 20px !important; }

  /* Overflow guard */
  body, main { overflow-x: hidden; max-width: 100vw; }
  * { min-width: 0; }

  /* Hide decorative labels */
  .hide-mobile { display: none !important; }

  /* Buttons — full width stacked */
  .dex-flex-row { flex-direction: column; }
  .dex-flex-row a,
  .dex-flex-row button { width: 100%; justify-content: center; }

  /* Delivery grid (service page dark section) */
  .dex-deliver-grid {
    grid-template-columns: 1fr !important;
  }

  /* Project case study metrics */
  .dex-proj-metrics {
    flex-wrap: wrap;
    gap: 10px;
  }
  .dex-proj-metrics > div {
    min-width: calc(50% - 5px);
  }

  /* DEXI */
  #dexiRoot { border-radius: 16px !important; }
}

/* ── Small mobile (max 480px) ────────────────────────────────────── */
@media (max-width: 480px) {
  .dex-stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .dex-footer__legal {
    flex-direction: column;
    gap: 10px;
  }
  .dex-header__logo span { font-size: 15px !important; }
}

/* ── Accessibility ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ── Mobile overrides ─────────────────────────────────────────── */
  @media (max-width:600px){
    #dexTop{bottom:80px!important;}
    body,html{overflow-x:hidden;max-width:100vw;}
    /* Kill sticky on mobile — Neden Dex sticky left col */
    [style*="position:sticky"]{position:static!important;top:auto!important;}
    /* Hero CTA buttons stack */
    .hero-cta-row{flex-direction:column!important;}
    .hero-cta-row a{width:100%!important;justify-content:center!important;box-sizing:border-box!important;}
    /* Chip scroll */
    .hero-chip-wrap{flex-wrap:wrap!important;}
    /* Comparison cards stack */
    .dex-cmp-grid{grid-template-columns:1fr!important;}
    /* Why cards 1 col */
    .dex-why-grid{grid-template-columns:1fr!important;}
    /* Marquee cards narrower */
    .dex-proj{flex:0 0 88vw!important;min-width:0!important;}
    /* Stats 2 col */
    .dex-stats-row{grid-template-columns:repeat(2,1fr)!important;}
    /* Blog 1 col */
    .dex-blog-grid{grid-template-columns:1fr!important;}
    /* Footer cols stack */
    .dex-footer-grid{grid-template-columns:1fr!important;gap:24px!important;}
    /* Sections less padding */
    .dex-section-pad{padding-left:16px!important;padding-right:16px!important;}
    /* FAQs */
    .home-faq summary{padding:15px 16px!important;font-size:14.5px!important;}
  }
  @media (max-width:900px){
    /* Neden Dex left col: static on tablet too */
    [style*="position:sticky;top:100px"]{position:static!important;}
  }
/* ═══════════════════════════════════════════════
   DEX MOBILE COMPOSITION — premium, not stacked
   ═══════════════════════════════════════════════ */

/* ── Mobile sticky bottom CTA ─────────────────── */
.dex-mobile-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #fff; border-top: 1px solid rgba(17,20,24,0.1);
  padding: 12px 16px 16px;
  gap: 10px;
  box-shadow: 0 -8px 24px -8px rgba(17,20,24,0.15);
}
.dex-mobile-cta-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  font: 700 14px/1 Manrope,sans-serif; padding: 15px 12px;
  border-radius: 12px; text-decoration: none;
}
.dex-mobile-cta-bar a.primary { background: #EFFF00; color: #111418; }
.dex-mobile-cta-bar a.wa { background: #25D366; color: #fff; }

@media (max-width: 768px) {
  .dex-mobile-cta-bar { display: flex; }
  /* Add bottom padding to avoid sticky bar overlap */
  body { padding-bottom: 80px; }
  /* Hide fixed WA button on mobile (replaced by bar) */
  .dex-wa { display: none !important; }
}

/* ── HERO — mobile recompose ──────────────────── */
@media (max-width: 768px) {
  /* Hero: edge-to-edge, no min-height */
  section.dex-hero-m {
    min-height: auto !important;
    padding: 52px 20px 40px !important;
  }
  section.dex-hero-m h1 {
    font-size: clamp(32px, 9vw, 44px) !important;
    line-height: 1.06 !important;
    margin-bottom: 16px !important;
  }
  section.dex-hero-m p {
    font-size: 16px !important;
    margin-bottom: 24px !important;
  }
  /* CTAs: full-width stacked */
  .dex-hero-cta { flex-direction: column !important; gap: 10px !important; }
  .dex-hero-cta a { width: 100% !important; justify-content: center !important; font-size: 15px !important; padding: 16px !important; }
  /* Trust chips: horizontal scroll */
  .dex-hero-chips { display: flex !important; overflow-x: auto; gap: 8px !important; padding-bottom: 4px; scrollbar-width: none; white-space: nowrap; margin-top: 20px; }
  .dex-hero-chips::-webkit-scrollbar { display: none; }
  .dex-hero-chips span { flex-shrink: 0; }
}

/* ── STATS — horizontal scroll strip ─────────── */
@media (max-width: 768px) {
  .dex-stats-m {
    display: flex !important;
    overflow-x: auto !important;
    gap: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    scrollbar-width: none;
    background: #111418 !important;
    border-top: none !important;
    border-bottom: none !important;
  }
  .dex-stats-m::-webkit-scrollbar { display: none; }
  .dex-stats-m > * {
    flex: 0 0 auto !important;
    min-width: 120px !important;
    border-right: 1px solid rgba(255,255,255,0.08) !important;
    padding: 20px 16px !important;
    text-align: center !important;
    color: #fff !important;
  }
  .dex-stats-m > *:last-child { border-right: none !important; }
  .dex-stats-m > * > div:first-child {
    font: 800 24px/1 Manrope,sans-serif !important;
    color: #EFFF00 !important;
    letter-spacing: -0.03em !important;
  }
  .dex-stats-m > * > div:first-child span {
    color: #EFFF00 !important;
  }
  .dex-stats-m > * > div:last-child {
    font: 500 10px/1.4 Manrope,sans-serif !important;
    color: rgba(255,255,255,0.55) !important;
    margin-top: 6px !important;
  }
  /* Override any inline color on stat values */
  .dex-stats-m * { color: inherit; }
}

/* ── SERVICES — mobile list style ────────────── */
@media (max-width: 768px) {
  .dex-grid-2, .dex-grid-3 { grid-template-columns: 1fr !important; gap: 8px !important; }
  /* Service links: compact row */
  .dex-svc-link-m {
    padding: 16px !important;
    border-radius: 13px !important;
  }
  .dex-svc-link-m > div > div:first-child { font-size: 15px !important; }
  .dex-svc-link-m > div > div:last-child { display: none !important; } /* hide desc on mobile, save space */
}

/* ── SECTION SPACING — varied rhythm ─────────── */
@media (max-width: 768px) {
  /* Hero: no side padding rounding */
  section.dex-hero-m { border-radius: 0 !important; }
  /* Stats: full bleed */
  section.dex-stats-wrap { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }
  /* Dark sections: full bleed, no padding top/bottom reduction */
  section[style*="background:#111418"] { padding-left: 20px !important; padding-right: 20px !important; }
  /* Light sections */
  section[style*="background:#F6F7F8"] { padding-left: 16px !important; padding-right: 16px !important; }
  /* Headings */
  h2[style*="clamp(26"] { font-size: clamp(22px,6vw,28px) !important; }
  h2[style*="clamp(28"] { font-size: clamp(22px,6vw,30px) !important; }
  /* CTA block: no side margins, no border-radius */
  .dex-cta-block-m { border-radius: 0 !important; margin: 0 !important; }
  /* CTA block CTAs: stacked */
  .dex-cta-block-m .dex-flex-row { flex-direction: column !important; }
  .dex-cta-block-m .dex-flex-row a { width: 100% !important; justify-content: center !important; }
  /* Project grid: single column full */
  .dex-grid-3 a { border-radius: 14px !important; }
  /* Overflow guard */
  body, main { overflow-x: hidden !important; max-width: 100vw; }
  * { min-width: 0; }
  /* Section labels */
  .dex-section-label { font-size: 10px !important; }
  /* Reveal animation faster on mobile */
  [data-reveal] { transition-duration: .4s !important; }
}

/* ── FOOTER — mobile recompose ────────────────── */
@media (max-width: 768px) {
  .dex-footer__grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 32px 20px 24px !important;
  }
  .dex-footer__bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 16px 20px !important;
  }
  .dex-footer__legal {
    gap: 14px !important;
    flex-wrap: wrap !important;
  }
  .dex-footer__brand p { max-width: 100% !important; }
}

/* ── HEADER — mobile ──────────────────────────── */
@media (max-width: 768px) {
  .dex-header { height: 62px !important; }
  .dex-header__logo img { height: 36px !important; }
  .dex-header__inner { padding: 0 16px !important; }
}

/* ── TESTIMONIALS — mobile ────────────────────── */
@media (max-width: 768px) {
  .dex-testimonial-track {
    animation-duration: 30s !important; /* slow down */
  }
}

/* ── TRUST CARDS — mobile 1-col ──────────────── */
@media (max-width: 480px) {
  .dex-trust-grid { grid-template-columns: 1fr !important; }
}

/* ── FAQ — mobile ─────────────────────────────── */
@media (max-width: 768px) {
  .dex-faq summary { font-size: 14.5px !important; padding: 15px 16px !important; }
  .dex-faq__body { padding: 0 16px 16px !important; font-size: 13.5px !important; }
}

/* ── SERVICE PAGE hero ────────────────────────── */
@media (max-width: 768px) {
  .dex-svc-hero-grid { grid-template-columns: 1fr !important; }
  .dex-svc-hero-h1 { font-size: clamp(26px,7vw,36px) !important; }
}

/* ── PROCESS STEPS — mobile vertical ─────────── */
@media (max-width: 768px) {
  .dex-proc-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
}

/* ── SCROLL REVEAL — reset on mobile for perf ── */
@media (max-width: 480px) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── PREFERS REDUCED MOTION ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .dex-mobile-cta-bar { transition: none !important; }
}

/* ── CONTRAST FIXES — mobile ─────────────────── */
@media (max-width: 768px) {
  /* Stats dark strip: force all text white/yellow */
  .dex-stats-m,
  .dex-stats-m * { color: #fff !important; }
  .dex-stats-m > * > div:first-child,
  .dex-stats-m > * > div:first-child * { color: #EFFF00 !important; }
  .dex-stats-m > * > div:last-child { color: rgba(255,255,255,0.55) !important; }

  /* Dark section text: ensure white */
  section[style*="background:#111418"] h1,
  section[style*="background:#111418"] h2,
  section[style*="background:#111418"] h3,
  section[style*="background:#111418"] p:not([style*="color:#"]),
  section[style*="background:#111418"] li { color: rgba(255,255,255,0.85) !important; }

  /* Light/gray sections: ensure dark text */
  section[style*="background:#F6F7F8"] h1,
  section[style*="background:#F6F7F8"] h2,
  section[style*="background:#F6F7F8"] h3 { color: #111418 !important; }
  section[style*="background:#F6F7F8"] p:not([style*="color"]) { color: #5F6B7A !important; }
  section[style*="background:#fff"] h1,
  section[style*="background:#fff"] h2,
  section[style*="background:#fff"] h3 { color: #111418 !important; }

  /* Service cards on mobile: white bg, dark text — always */
  .dex-grid-2 a, .dex-grid-2 a * { color: #111418 !important; }
  .dex-grid-2 a > div > div:last-child { color: #5F6B7A !important; }

  /* Hero dark: all text readable */
  section.dex-hero-m p { color: rgba(255,255,255,0.75) !important; }
  section.dex-hero-m h1 { color: #fff !important; }
  section.dex-hero-m h1 span[style*="color:#EFFF00"] { color: #EFFF00 !important; }

  /* Review cards text */
  .dex-testimonial-track > div p { color: #111418 !important; }
  .dex-testimonial-track > div > div:last-child > div:first-child { color: #111418 !important; }

  /* Final CTA block */
  section:last-of-type div[style*="background:#111418"] h2 { color: #fff !important; }
  section:last-of-type div[style*="background:#111418"] p { color: rgba(255,255,255,0.65) !important; }

  /* Mobile nav: dark text on white */
  .dex-mobile-nav__links a { color: #111418 !important; }
  .dex-mobile-nav__cta a { color: #111418 !important; }
}
