/* ==========================================================================
   MEDIAGO — Design System
   Web & mobile development, CRM & software, digital marketing
   ========================================================================== */

:root {
  /* --- Brand color (mandated) --- */
  --primary: #0080FF;
  --primary-dark: #0059B3;
  --primary-darker: #003D80;
  --primary-light: #4DA6FF;
  --primary-pale: #E8F3FF;

  /* --- Supporting palette derived from brand --- */
  --cyan: #00D4E0;
  --coral: #FF6B4A;
  --ink: #0A1628;
  --ink-soft: #4A5B72;
  --ink-faint: #8296AC;

  /* --- Surfaces --- */
  --bg: #FFFFFF;
  --bg-tint: #F4F9FF;
  --bg-tint-2: #EAF3FF;
  --border: #D9E8FA;
  --border-soft: #E9F2FC;

  /* --- Gradients --- */
  --grad-primary: linear-gradient(135deg, #0080FF 0%, #00B4E0 100%);
  --grad-deep: linear-gradient(160deg, #003D80 0%, #0080FF 60%, #00D4E0 100%);
  --grad-radial: radial-gradient(circle at 30% 20%, rgba(0,128,255,0.16), transparent 60%);

  /* --- Type scale --- */
  --font: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-hero: clamp(2.6rem, 6vw, 5rem);
  --fs-h1: clamp(2.2rem, 4.4vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 3vw, 2.4rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* --- Spacing / shape --- */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --container: 1240px;
  --shadow-sm: 0 2px 10px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(0, 61, 128, 0.10);
  --shadow-lg: 0 24px 60px rgba(0, 61, 128, 0.16);
  --shadow-glow: 0 0 0 1px rgba(0,128,255,0.10), 0 20px 50px rgba(0,128,255,0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: var(--font) !important;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font-family: var(--font) !important; }
button { cursor: pointer; border: none; background: none; }
input, textarea, select { outline: none; }

h1, h2, h3, h4 { font-family: var(--font) !important; font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
p { color: var(--ink-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 120px 0; position: relative; }
.section-tight { padding: 80px 0; }
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-tight { padding: 56px 0; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: var(--fs-lead); margin-top: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-pale); }
.btn-light {
  background: #fff;
  color: var(--primary-darker);
  box-shadow: var(--shadow-md);
}
.btn-light:hover { transform: translateY(-3px); }
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--primary-pale);
  color: var(--primary-darker);
  font-size: var(--fs-small);
  font-weight: 600;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(10,22,40,0.06), 0 10px 30px rgba(10,22,40,0.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.35rem; letter-spacing: -0.03em; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-media { color: var(--ink); }
.brand-go { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.nav-links > a:hover, .nav-links > a.active { color: var(--primary-darker); background: var(--primary-pale); }

/* Mega menu */
.nav-item-mega { position: relative; }
.nav-mega-trigger {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.25s, background 0.25s;
}
.nav-mega-trigger:hover, .nav-mega-trigger.active { color: var(--primary-darker); background: var(--primary-pale); }
.nav-mega-trigger .chev { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
.nav-item-mega.open .nav-mega-trigger .chev { transform: rotate(180deg); }

.mega-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: min(880px, 86vw);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  z-index: 500;
}
.nav-item-mega.open .mega-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-content: start; }
.mega-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  transition: background 0.2s;
}
.mega-item:hover { background: var(--bg-tint); }
.mega-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--primary-pale);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.mega-icon svg { width: 18px; height: 18px; }
.mega-item b { display: block; font-size: 0.87rem; color: var(--ink); margin-bottom: 2px; }
.mega-desc { display: block; font-size: 0.76rem; color: var(--ink-faint); line-height: 1.35; }
.mega-promo { background: var(--grad-deep); border-radius: var(--radius-md); padding: 26px; display: flex; align-items: flex-end; }
.mega-promo-inner { color: #fff; }
.mega-promo-inner b { display: block; font-size: 1.05rem; margin-bottom: 8px; }
.mega-promo-inner p { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin-bottom: 18px; }

@media (max-width: 1080px) {
  .mega-panel { left: auto; right: 0; transform: translateY(-10px); width: min(680px, 80vw); }
  .nav-item-mega.open .mega-panel { transform: translateY(0); }
}

/* Mobile accordion (services submenu inside the slide-out panel) */
.mobile-accordion { border-bottom: 1px solid var(--border-soft); }
.mobile-accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 6px;
  font-size: 1.2rem; font-weight: 700;
  color: var(--ink);
}
.mobile-accordion-trigger svg { width: 18px; height: 18px; color: var(--primary); transition: transform 0.3s var(--ease); }
.mobile-accordion.open .mobile-accordion-trigger svg { transform: rotate(180deg); }
.mobile-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.mobile-accordion.open .mobile-accordion-panel { max-height: 900px; }
.mobile-accordion-panel a {
  display: block;
  padding: 12px 6px 12px 16px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: none !important;
}
.mobile-service-all { color: var(--primary) !important; font-weight: 700 !important; }

.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--ink);
  transition: border-color 0.25s, background 0.25s;
}
.lang-btn:hover { border-color: var(--primary); background: var(--primary-pale); }
.lang-btn svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.lang-switch.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.25s var(--ease);
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 12px;
  border-radius: 8px;
  font-size: var(--fs-small); font-weight: 500;
  color: var(--ink-soft);
}
.lang-menu button:hover { background: var(--bg-tint); color: var(--primary-darker); }
.lang-menu button.active { color: var(--primary); font-weight: 700; }
.lang-code { font-weight: 800; font-size: 0.7rem; color: var(--primary); width: 22px; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .mobile-panel {
    position: fixed; inset: 0; top: 0;
    background: #fff;
    z-index: 999;
    padding: 100px 28px 40px;
    display: flex; flex-direction: column; gap: 6px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .mobile-panel.open { transform: translateX(0); }
  .mobile-panel a { padding: 16px 6px; font-size: 1.2rem; font-weight: 700; border-bottom: 1px solid var(--border-soft); }
  .mobile-panel .btn { margin-top: 20px; justify-content: center; }
}
@media (min-width: 921px) { .mobile-panel { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
  background: var(--bg-tint);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(0,128,255,0.14), transparent 45%),
    radial-gradient(circle at 8% 90%, rgba(0,212,224,0.12), transparent 45%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; height: 320px; } }

.hero-copy h1 { font-size: var(--fs-hero); margin-bottom: 22px; }
.hero-copy h1 .hl {
  background: var(--grad-deep);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p.lead { font-size: var(--fs-lead); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .stat { }
.hero-stats .stat b { display: block; font-size: 1.7rem; font-weight: 900; color: var(--ink); }
.hero-stats .stat span { font-size: var(--fs-small); color: var(--ink-faint); }

.hero-visual { position: relative; height: 460px; }
.hero-visual #heroVisual { width: 100%; height: 100%; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.node-dot { filter: drop-shadow(0 4px 10px rgba(0,128,255,0.35)); }
.node-line { stroke-dasharray: 6 8; animation: dash 22s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.node-pulse { animation: pulse 3.4s ease-in-out infinite; transform-origin: center; }
.node-pulse.delay1 { animation-delay: 0.6s; }
.node-pulse.delay2 { animation-delay: 1.2s; }
.node-pulse.delay3 { animation-delay: 1.8s; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.55; } }
.node-orbit { animation: spin 40s linear infinite; transform-origin: 250px 230px; }
.node-orbit.rev { animation-direction: reverse; animation-duration: 55s; }
@keyframes spin { to { transform: rotate(360deg); } }
.node-float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-badge {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-small); font-weight: 700;
  animation: floaty 7s ease-in-out infinite;
}
.hero-badge svg { width: 20px; height: 20px; color: var(--primary); }
.hero-badge.b1 { top: 6%; left: -2%; }
.hero-badge.b2 { bottom: 10%; right: -4%; animation-delay: 1.4s; }

.marquee-wrap { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 26px 0; overflow: hidden; background: #fff; }
.marquee { display: flex; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee span { font-weight: 700; font-size: 1.05rem; color: var(--ink-faint); letter-spacing: 0.02em; white-space: nowrap; }
.marquee span b { color: var(--primary); }

/* ==========================================================================
   Logos / trust strip
   ========================================================================== */
.trust-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 26px; }
.trust-strip .label { font-size: var(--fs-small); font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; }

/* ==========================================================================
   Services grid (bento)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-radial);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary);
  margin-bottom: 22px;
  box-shadow: 0 10px 24px rgba(0,128,255,0.28);
}
.service-icon svg { width: 26px; height: 26px; color: #fff; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: 0.95rem; margin-bottom: 16px; }
.service-card .service-link { font-size: var(--fs-small); font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.service-card .service-link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.service-card:hover .service-link svg { transform: translate(3px,-3px); }
.service-card .num { position: absolute; top: 26px; right: 28px; font-size: 0.75rem; font-weight: 800; color: var(--border); }

/* Detailed service block (services.html) */
.service-detail {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-soft);
}
.service-detail:first-of-type { padding-top: 0; }
.service-detail:last-of-type { border-bottom: none; }
.service-detail .service-icon { margin-bottom: 0; }
.service-detail h3 { font-size: 1.4rem; margin-bottom: 12px; }
.service-detail p { max-width: 720px; margin-bottom: 18px; }
.service-detail .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-detail .tags span { font-size: var(--fs-micro); font-weight: 700; background: var(--bg-tint); color: var(--primary-darker); padding: 6px 12px; border-radius: var(--radius-pill); }
@media (max-width: 640px) { .service-detail { grid-template-columns: 1fr; } }

/* ==========================================================================
   Process timeline
   ========================================================================== */
.process-track { position: relative; }
.process-track::before {
  content: '';
  position: absolute; top: 34px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--border) 0%, var(--primary) 15%, var(--primary) 85%, var(--border) 100%);
  opacity: 0.5;
}
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
@media (max-width: 980px) { .process-list { grid-template-columns: repeat(2, 1fr); } .process-track::before { display: none; } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }
.process-step .step-num {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.3rem; color: var(--primary);
  margin-bottom: 20px;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s;
}
.process-step:hover .step-num { border-color: var(--primary); background: var(--grad-primary); color: #fff; transform: scale(1.08); }
.process-step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.92rem; }

/* ==========================================================================
   About / split
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.about-visual { position: relative; }
.about-card {
  background: var(--grad-deep);
  border-radius: var(--radius-lg);
  padding: 46px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.about-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255,255,255,0.16), transparent 55%);
}
.about-card .quote { position: relative; font-size: 1.25rem; font-weight: 500; line-height: 1.5; margin-bottom: 22px; }
.about-card .person { position: relative; display: flex; align-items: center; gap: 14px; }
.about-card .avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--primary-darker);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem;
  flex-shrink: 0;
}
.about-card .person b { display: block; font-size: 1rem; }
.about-card .person span { font-size: var(--fs-small); opacity: 0.85; }

.about-list { display: grid; gap: 16px; margin-top: 30px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; }
.about-list .check {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-pale); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.about-list .check svg { width: 14px; height: 14px; }
.about-list b { display: block; color: var(--ink); }
.about-list span { font-size: var(--fs-small); color: var(--ink-soft); }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats-band {
  background: var(--grad-deep);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats-band::before { content: ''; position: absolute; inset: 0; background: var(--grad-radial); }
@media (max-width: 800px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stats-band .stat { position: relative; text-align: center; }
.stats-band .stat b { display: block; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; }
.stats-band .stat span { font-size: var(--fs-small); opacity: 0.85; }

/* ==========================================================================
   Values / feature cards
   ========================================================================== */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }
.value-card { padding: 30px; border-radius: var(--radius-md); background: var(--bg-tint); }
.value-card .service-icon { background: #fff; box-shadow: var(--shadow-sm); }
.value-card .service-icon svg { color: var(--primary); }
.value-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.value-card p { font-size: 0.92rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 30px; box-shadow: var(--shadow-sm); }
.testi-card .stars { display: flex; gap: 4px; margin-bottom: 16px; color: #FFB020; }
.testi-card .stars svg { width: 16px; height: 16px; }
.testi-card p { color: var(--ink); font-size: 0.98rem; margin-bottom: 22px; }
.testi-card .person { display: flex; align-items: center; gap: 12px; }
.testi-card .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }
.testi-card b { font-size: 0.9rem; display: block; }
.testi-card .role { font-size: var(--fs-micro); color: var(--ink-faint); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 70px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,128,255,0.35), transparent 60%);
}
.cta-band h2 { color: #fff; position: relative; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.72); position: relative; max-width: 560px; margin: 0 auto 32px; font-size: var(--fs-lead); }
.cta-band .actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--grad-deep); border-radius: var(--radius-lg); padding: 42px; color: #fff; }
.contact-info-card h3 { color: #fff; margin-bottom: 10px; }
.contact-info-card p { color: rgba(255,255,255,0.75); margin-bottom: 30px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.15); }
.contact-row:first-of-type { border-top: none; }
.contact-row .ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row .ico svg { width: 18px; height: 18px; }
.contact-row b { display: block; font-size: 0.92rem; }
.contact-row span, .contact-row a { font-size: var(--fs-small); color: rgba(255,255,255,0.75); }
.social-row { display: flex; gap: 10px; margin-top: 28px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; transition: background 0.25s, transform 0.25s; }
.social-row a:hover { background: rgba(255,255,255,0.28); transform: translateY(-3px); }
.social-row svg { width: 17px; height: 17px; color: #fff; }

.form-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: var(--fs-small); font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-tint);
  transition: border-color 0.25s, background 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: var(--fs-micro); color: var(--ink-faint); margin-top: 14px; }
.form-status { margin-top: 16px; font-size: var(--fs-small); font-weight: 700; display: none; padding: 12px 16px; border-radius: 10px; }
.form-status.show { display: block; }
.form-status.ok { background: #E7F8EE; color: #1A7F42; }
.form-status.err { background: #FDEBEA; color: #C22B23; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: grid; gap: 14px; max-width: 780px; }
.faq-item { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 0.98rem; }
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary); transition: transform 0.3s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding: 0 24px 20px; font-size: 0.92rem; }
.faq-item.open .faq-a { max-height: 260px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 60px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-media { color: #fff; }
.footer-about p { color: rgba(255,255,255,0.55); font-size: 0.92rem; max-width: 300px; margin-bottom: 22px; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.6); transition: color 0.25s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.12); font-size: var(--fs-small); }
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  padding: 170px 0 90px;
  background: var(--bg-tint);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,128,255,0.14), transparent 55%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: var(--fs-h1); max-width: 780px; margin: 0 auto 18px; }
.page-hero p { font-size: var(--fs-lead); max-width: 600px; margin: 0 auto; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; font-size: var(--fs-small); color: var(--ink-faint); margin-bottom: 20px; }
.breadcrumb a { color: var(--primary); font-weight: 600; }

/* ==========================================================================
   Service single page — icon badge hero visual
   ========================================================================== */
.icon-badge-hero {
  width: 220px; height: 220px;
  margin: 0 auto;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.icon-badge-hero::before, .icon-badge-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed var(--border);
}
.icon-badge-hero::before { inset: 0; }
.icon-badge-hero::after { inset: 26px; border-style: solid; border-color: var(--border-soft); }
.icon-badge-hero .badge-core {
  width: 128px; height: 128px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 50px rgba(0,128,255,0.32);
  position: relative;
  z-index: 1;
  animation: floaty 6s ease-in-out infinite;
}
.icon-badge-hero .badge-core svg { width: 56px; height: 56px; color: #fff; }
.icon-badge-hero .badge-dot {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  animation: floaty 5s ease-in-out infinite;
}
.icon-badge-hero .badge-dot svg { width: 15px; height: 15px; color: var(--primary); }
.icon-badge-hero .d1 { top: 4%; right: 10%; animation-delay: 0.4s; }
.icon-badge-hero .d2 { bottom: 8%; left: 4%; animation-delay: 1.1s; }
.icon-badge-hero .d3 { bottom: 18%; right: 0; animation-delay: 1.8s; }

.related-eyebrow-wrap { text-align: center; }

/* Breadcrumb links inside page-hero */
.breadcrumb a:hover { text-decoration: underline; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.4s; }

/* Simple utility grids */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.back-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all 0.3s var(--ease);
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   Extra responsive polish — small phones, tablets, touch targets
   ========================================================================== */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero { padding-top: 150px; }
  .page-hero { padding-top: 140px; }
  .hero-actions, .cta-band .actions, .hero-stats { gap: 10px; }
  .btn { padding: 13px 20px; font-size: 0.92rem; }
  .service-detail { padding: 30px 0; }
  .about-card, .contact-info-card, .form-card { padding: 28px; }
  .stats-band { padding: 36px 22px; }
  .cta-band { padding: 46px 24px; }
  .icon-badge-hero { width: 170px; height: 170px; }
  .icon-badge-hero .badge-core { width: 100px; height: 100px; }
  .icon-badge-hero .badge-core svg { width: 42px; height: 42px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .hero { padding-top: 168px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-grid { gap: 28px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}

/* Ensure comfortable touch targets across the board */
.nav-links > a, .nav-mega-trigger, .lang-btn, .menu-toggle, .faq-q, .mega-item {
  min-height: 40px;
}
.social-row a { min-width: 40px; min-height: 40px; }

/* Prevent any accidental horizontal scroll from wide inline elements */
html, body { max-width: 100%; }
table { max-width: 100%; }

/* Landscape phones: keep header compact */
@media (max-height: 480px) and (orientation: landscape) {
  .mobile-panel { padding-top: 84px; overflow-y: auto; }
}
