/* ==========================================================================
   DIPVTEL — Main Stylesheet
   Wholesale Toll-Free & White Label VoIP Telecom
   ========================================================================== */

:root {
  --brand-purple: #523de0;
  --brand-purple-dark: #3f2fb8;
  --brand-purple-light: #6d5aeb;
  --brand-navy: #1a1638;
  --brand-navy-2: #221c47;
  --ink: #262338;
  --ink-soft: #5c5876;
  --paper: #ffffff;
  --paper-soft: #f7f6fc;
  --paper-alt: #f1eefb;
  --border-soft: #e7e4f5;
  --success: #2fb380;
  --danger: #e0523d;
  --shadow-sm: 0 2px 10px rgba(38, 30, 90, 0.06);
  --shadow-md: 0 10px 30px rgba(38, 30, 90, 0.10);
  --shadow-lg: 0 24px 60px rgba(38, 30, 90, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 88px;
  --topbar-h: 42px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
li { list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--brand-navy);
}
p { line-height: 1.75; margin: 0 0 16px; color: var(--ink-soft); }
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}
section { position: relative; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand-purple);
  color: #fff;
  padding: 10px 18px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Eyebrow / Kicker ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: 14px;
}
.kicker::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--brand-purple);
  display: inline-block;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.topbar {
  background: var(--brand-navy);
  color: #cfc9ee;
  font-size: 13.5px;
  height: var(--topbar-h);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 26px;
}
.topbar-contact a, .topbar-contact span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cfc9ee;
  white-space: nowrap;
}
.topbar-contact a:hover { color: #fff; }
.topbar-contact svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--brand-purple-light); }
.topbar-cta { display: flex; gap: 10px; }
.topbar-cta a {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  transition: background .2s, border-color .2s;
}
.topbar-cta a:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.32); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 10px;
  transition: color .2s, background .2s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.is-open > a { color: var(--brand-purple); background: var(--paper-alt); }
.main-nav .caret { width: 10px; height: 10px; transition: transform .2s; }
.main-nav > ul > li.is-open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 50;
}
.main-nav > ul > li.is-open .dropdown,
.main-nav > ul > li:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background .15s, color .15s, padding-left .15s;
}
.dropdown a:hover { background: var(--paper-alt); color: var(--brand-purple); padding-left: 18px; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-navy);
}
.header-phone svg { width: 18px; height: 18px; color: var(--brand-purple); }

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--paper-alt);
  border: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.burger span {
  position: relative;
  width: 20px; height: 2px;
  background: var(--brand-navy);
  display: block;
  transition: transform .25s, opacity .25s;
}
.burger span::before, .burger span::after {
  content: '';
  position: absolute; left: 0;
  width: 20px; height: 2px;
  background: var(--brand-navy);
  transition: transform .25s, opacity .25s;
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  padding: 15px 30px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--brand-purple);
  color: #fff;
  box-shadow: 0 12px 24px -8px rgba(82,61,224,0.55);
}
.btn-primary:hover { background: var(--brand-purple-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(82,61,224,0.6); }
.btn-dark {
  background: var(--brand-navy);
  color: #fff;
}
.btn-dark:hover { background: #100d28; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--brand-navy);
}
.btn-outline:hover { border-color: var(--brand-purple); color: var(--brand-purple); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ==========================================================================
   HERO / SLIDER
   ========================================================================== */
.hero-slider {
  position: relative;
  height: 680px;
  overflow: hidden;
  background: var(--brand-navy);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex; align-items: center;
}
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-slide-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(20,16,45,0.92) 0%, rgba(26,22,56,0.78) 45%, rgba(26,22,56,0.55) 100%);
}
.hero-slide-content {
  position: relative; z-index: 3;
  max-width: 720px;
  color: #fff;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease .15s, transform .7s ease .15s;
}
.hero-slide.is-active .hero-slide-content { opacity: 1; transform: translateY(0); }
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b8adf7;
  margin-bottom: 18px;
  display: block;
}
.hero-slide-content h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 20px;
}
.hero-slide-content p {
  color: rgba(255,255,255,0.86);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 10px;
}
.hero-dots button {
  width: 34px; height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.32);
  border: none;
  padding: 0;
  transition: background .25s;
}
.hero-dots button.is-active { background: #fff; }
.hero-arrows { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; z-index: 5; pointer-events: none; }
.hero-arrow {
  pointer-events: auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 20px;
  transition: background .2s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.22); }
.hero-arrow svg { width: 20px; height: 20px; }

/* Page header (non-home hero) */
.page-hero {
  background: var(--brand-navy);
  padding: 130px 0 70px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.page-hero::before {
  content: '';
  position: absolute; top: -30%; right: -10%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(82,61,224,0.35), transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: #b8adf7;
  margin-bottom: 18px;
}
.breadcrumb a { color: #b8adf7; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 12px; height: 12px; }
.page-hero-lead { max-width: 640px; color: rgba(255,255,255,0.82); font-size: 17px; margin: 0; }

/* ==========================================================================
   SECTIONS SHARED
   ========================================================================== */
.section { padding: 100px 0; }
.section-tight { padding: 70px 0; }
.section-alt { background: var(--paper-soft); }
.section-dark { background: var(--brand-navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.72); }
.section-head { max-width: 640px; margin: 0 0 50px; }
.section-head.center { margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-2.align-top { align-items: flex-start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* About image collage */
.about-collage { position: relative; padding: 30px 40px 40px 0; }
.about-collage img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.about-collage .img-main { width: 100%; height: 380px; }
.about-collage .img-float {
  position: absolute;
  bottom: -20px; right: 0;
  width: 46%; height: 200px;
  border: 6px solid #fff;
}
.about-collage .badge-float {
  position: absolute;
  top: 10px; left: -10px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  z-index: 4;
}
.badge-float strong { font-family: var(--font-head); font-size: 22px; color: var(--brand-purple); display: block; }
.badge-float span { font-size: 12.5px; color: var(--ink-soft); }

/* Tabs */
.tabs-nav { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.tabs-nav button {
  padding: 12px 22px;
  border-radius: 30px;
  border: 1px solid var(--border-soft);
  background: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  transition: all .2s;
}
.tabs-nav button.is-active { background: var(--brand-purple); color: #fff; border-color: var(--brand-purple); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .4s ease; }
.tab-panel hr { border: none; border-top: 1px solid var(--border-soft); margin: 18px 0; }
.tab-panel ul.checklist li {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 10px; color: var(--ink-soft);
}
.tab-panel ul.checklist svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* Benefit cards grid — inviting card layout for feature/benefit lists */
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.benefit-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #ddd7f5; }
.benefit-card .ic {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: var(--paper-alt); color: var(--brand-purple);
  display: flex; align-items: center; justify-content: center;
}
.benefit-card .ic svg { width: 20px; height: 20px; }
.benefit-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; }
.benefit-card.is-wide { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .benefit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .map-embed { height: 380px; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px);} to {opacity:1; transform:translateY(0);} }

/* Flip / service cards */
.flip-card { perspective: 1200px; height: 230px; }
.flip-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .6s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px 24px;
  border: 1px solid var(--border-soft);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.flip-face-back {
  transform: rotateY(180deg);
  background: linear-gradient(150deg, var(--brand-purple), var(--brand-purple-dark));
  color: #fff;
  border: none;
}
.flip-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--paper-alt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--brand-purple);
}
.flip-face-back .flip-icon { background: rgba(255,255,255,0.16); color: #fff; }
.flip-icon svg { width: 26px; height: 26px; }
.flip-face h3 { font-size: 17px; margin: 0; }
.flip-face-back p { color: rgba(255,255,255,0.88); font-size: 13.5px; margin: 10px 0 0; }

/* Service pillars strip */
.pillars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.pillar {
  text-align: center; padding: 28px 12px;
  border-radius: var(--radius-md);
  transition: transform .25s, box-shadow .25s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: #fff; }
.pillar-icon {
  width: 58px; height: 58px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--paper-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-purple);
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 15px; margin: 0; }

/* Testimonials */
.testimonial-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}
.quote-icon { color: var(--brand-purple); opacity: .25; width: 40px; height: 40px; margin-bottom: 14px; }
.testimonial-message { font-size: 18px; color: var(--ink); font-style: italic; margin-bottom: 26px; line-height: 1.7; }
.testimonial-person { display: flex; align-items: center; gap: 14px; }
.testimonial-person img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.testimonial-person strong { display: block; font-family: var(--font-head); font-size: 15px; }
.testimonial-person span { font-size: 13px; color: var(--ink-soft); }
.testimonial-dots { display: flex; gap: 8px; margin-top: 24px; }
.testimonial-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--border-soft); border: none; }
.testimonial-dots button.is-active { background: var(--brand-purple); width: 22px; border-radius: 6px; }
.testimonial-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; height: 420px; }
.testimonial-image img { width: 100%; height: 100%; object-fit: cover; }

/* Video / advanced systems */
.video-cta {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 320px;
  background-size: cover;
  background-position: center;
}
.video-cta::after { content:''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,16,45,.82), rgba(82,61,224,.45)); }
.video-play {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.video-play-btn {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1.5px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: transform .25s, background .25s;
}
.video-play-btn svg { width: 26px; height: 26px; margin-left: 3px; }
.video-play-btn:hover { transform: scale(1.08); background: var(--brand-purple); }
.ripple {
  position: absolute; inset: -12px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  animation: ripple 2.4s ease-out infinite;
}
@keyframes ripple { 0% { transform: scale(0.8); opacity: 1;} 100% { transform: scale(1.6); opacity: 0;} }

/* Stats pies */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.pie {
  --p: 0; --c: var(--brand-purple); --b: #efedfb;
  width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 18px;
  background: conic-gradient(var(--c) calc(var(--p)*1%), var(--b) 0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: background 1.4s ease;
}
.pie::before { content:''; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.pie span { position: relative; font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--brand-navy); }
.stat-item h3 { font-size: 16px; margin: 0; }

/* Expertise areas */
.expertise-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.expertise-list span {
  padding: 10px 18px;
  border-radius: 30px;
  background: var(--paper-alt);
  color: var(--brand-navy);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
}
.contact-feature { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-feature .ic {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  background: var(--paper-alt); color: var(--brand-purple);
  display: flex; align-items: center; justify-content: center;
}
.contact-feature .ic svg { width: 22px; height: 22px; }
.contact-feature h3 { font-size: 15px; margin: 0 0 4px; }
.contact-feature p, .contact-feature a { margin: 0; color: var(--ink-soft); }

/* Google Map embed */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
  margin-bottom: 28px;
  width: 100%;
  height: 560px;
  position: relative;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-embed-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: #fff; border-radius: 30px; padding: 8px 16px 8px 12px;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px; color: var(--brand-navy);
}
.map-embed-badge svg { width: 15px; height: 15px; color: var(--brand-purple); flex-shrink: 0; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border-soft);
  position: relative;
}
.section:not(.section-alt):not(.section-dark) .form-card {
  background: var(--paper-alt);
  border-color: #ddd7f5;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--brand-navy);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border-soft);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: #ffffff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand-purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(82,61,224,0.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--ink-soft); margin-top: 20px; line-height: 1.6; }
.form-msg { display: none; padding: 13px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.form-msg.show { display: block; }
.form-msg.success { background: #e7f8f1; color: #1a7a56; border: 1px solid #bfe9d8; }
.form-msg.error { background: #fdece8; color: #a8321f; border: 1px solid #f6cbc0; }

/* Honeypot - hidden field to trap bots */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Slide puzzle captcha */
.puzzle-captcha {
  margin: 6px 0 4px;
  border-radius: 12px;
  border: 1.5px solid var(--border-soft);
  background: var(--paper-soft);
  padding: 14px;
}
.puzzle-label { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.puzzle-label svg { width: 14px; height: 14px; color: var(--brand-purple); }
.puzzle-track {
  position: relative;
  height: 48px;
  border-radius: 10px;
  background: #eae7fa;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.puzzle-fill {
  position: absolute; inset: 0; width: 0%;
  background: linear-gradient(90deg, #d6ceff, #b9adf7);
  transition: width .05s linear;
}
.puzzle-track-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-soft); font-weight: 600;
  letter-spacing: .02em;
  pointer-events: none;
}
.puzzle-handle {
  position: absolute; top: 2px; left: 2px;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: grab;
  color: var(--brand-purple);
  transition: background .2s, color .2s;
}
.puzzle-handle:active { cursor: grabbing; }
.puzzle-handle svg { width: 20px; height: 20px; }
.puzzle-track.is-verified .puzzle-fill { background: linear-gradient(90deg, #bdeed7, #7fdcb0); }
.puzzle-track.is-verified .puzzle-handle { background: var(--success); color: #fff; }
.puzzle-track.is-verified .puzzle-track-text { color: #1a7a56; }
.puzzle-track.shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0);} 25%{transform:translateX(-8px);} 75%{transform:translateX(8px);} }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--brand-navy); color: rgba(255,255,255,0.72); padding-top: 80px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand img { height: 42px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.social-row a:hover { background: var(--brand-purple); }
.social-row svg { width: 16px; height: 16px; color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: 15px; margin-bottom: 22px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.66); font-size: 14px; display: flex; align-items: center; gap: 8px; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-links svg { width: 12px; height: 12px; color: var(--brand-purple-light); flex-shrink: 0; }
.footer-contact li { margin-bottom: 16px; font-size: 14px; color: rgba(255,255,255,0.66); display: flex; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--brand-purple-light); flex-shrink: 0; margin-top: 2px; }
.newsletter-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.newsletter-row input {
  flex: 1; min-width: 200px;
  padding: 13px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff; font-size: 14px;
}
.newsletter-row input::placeholder { color: rgba(255,255,255,0.45); }
.footer-bottom {
  padding: 26px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }
.footer-legal-links { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-legal-links span { opacity: .4; }

/* Scroll to top */
.scroll-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 500;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
  border: none;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--brand-purple-dark); }
.scroll-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   OFF-CANVAS MOBILE MENU (slide from right)
   ========================================================================== */
.offcanvas-overlay {
  position: fixed; inset: 0;
  background: rgba(16,13,35,0.6);
  z-index: 1000;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.offcanvas-overlay.is-open { opacity: 1; visibility: visible; }

.offcanvas {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 86vw);
  background: #fff;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.25);
}
.offcanvas.is-open { transform: translateX(0); }
.offcanvas-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.offcanvas-head img { height: 40px; }
.offcanvas-close {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper-alt); border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-navy);
}
.offcanvas-close svg { width: 18px; height: 18px; }
.offcanvas-body { flex: 1; overflow-y: auto; padding: 18px 12px; }
.offcanvas-nav li { border-bottom: 1px solid var(--border-soft); }
.offcanvas-nav > li > a,
.offcanvas-nav .oc-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 12px;
  font-family: var(--font-head);
  font-weight: 600; font-size: 15px;
  color: var(--brand-navy);
  width: 100%; background: none; border: none; text-align: left;
}
.offcanvas-nav .oc-toggle svg { width: 16px; height: 16px; transition: transform .25s; color: var(--ink-soft); }
.offcanvas-nav li.is-open .oc-toggle svg { transform: rotate(180deg); }
.oc-submenu {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  padding-left: 12px;
}
.offcanvas-nav li.is-open .oc-submenu { max-height: 500px; }
.oc-submenu a {
  display: block; padding: 11px 12px;
  font-size: 14px; color: var(--ink-soft);
}
.oc-submenu a:hover { color: var(--brand-purple); }
.offcanvas-foot { padding: 20px 22px; border-top: 1px solid var(--border-soft); }
.offcanvas-foot .header-phone { margin-bottom: 14px; justify-content: center; }
body.offcanvas-active { overflow: hidden; }

/* ==========================================================================
   CONTENT PAGES (legal / FAQ / generic)
   ========================================================================== */
.prose { max-width: 820px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin-top: 28px; }
.prose p { color: var(--ink-soft); }
.prose ul { margin: 0 0 20px; padding-left: 4px; }
.prose ul li {
  position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-soft);
}
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-purple);
}
.prose strong { color: var(--brand-navy); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.prose table th, .prose table td { border: 1px solid var(--border-soft); padding: 12px 14px; text-align: left; }
.prose table th { background: var(--paper-alt); font-family: var(--font-head); color: var(--brand-navy); }
.callout {
  background: var(--paper-alt);
  border-left: 3px solid var(--brand-purple);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Benefit rows — premium numbered feature list (replaces plain checklist) */
.benefits-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; margin-bottom: 10px; }
.benefits-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); height: 420px; }
.benefits-visual img { width: 100%; height: 100%; object-fit: cover; }
.benefits-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(26,22,56,0.05), rgba(26,22,56,0.55)); }
.benefits-stat {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  background: rgba(255,255,255,0.96); border-radius: var(--radius-md);
  padding: 16px 22px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
}
.benefits-stat strong { font-family: var(--font-head); font-size: 26px; color: var(--brand-purple); display: block; line-height: 1; }
.benefits-stat span { font-size: 12.5px; color: var(--ink-soft); }
.benefit-rows { display: flex; flex-direction: column; }
.benefit-row {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 20px 4px; border-bottom: 1px solid var(--border-soft);
  transition: padding-left .25s;
}
.benefit-row:first-child { padding-top: 0; }
.benefit-row:last-child { border-bottom: none; padding-bottom: 0; }
.benefit-row:hover { padding-left: 10px; }
.benefit-row .num {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-purple); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.benefit-row .body p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.benefit-row .body strong { color: var(--brand-navy); }
@media (max-width: 1080px) {
  .benefits-layout { grid-template-columns: 1fr; }
  .benefits-visual { height: 280px; }
}
.toc { background: var(--paper-soft); border-radius: var(--radius-md); padding: 22px 26px; margin-bottom: 36px; border: 1px solid var(--border-soft); }
.toc h2 { font-size: 15px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.toc ol { padding-left: 20px; margin: 0; }
.toc a { color: var(--brand-purple); font-size: 14.5px; }
.toc li { margin-bottom: 6px; }

/* FAQ accordion */
.faq-item { border: 1px solid var(--border-soft); border-radius: var(--radius-md); margin-bottom: 14px; overflow: hidden; background: #fff; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: none; border: none; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: var(--brand-navy);
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; margin-left: 16px; transition: transform .25s; color: var(--brand-purple); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--ink-soft); }
.faq-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.faq-cats button {
  padding: 10px 18px; border-radius: 30px; border: 1px solid var(--border-soft);
  background: #fff; font-size: 13.5px; font-weight: 600; font-family: var(--font-head); color: var(--ink-soft);
}
.faq-cats button.is-active { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }
.faq-group { display: none; }
.faq-group.is-active { display: block; }

/* Sitemap page */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.sitemap-grid h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-purple); margin-bottom: 16px; }
.sitemap-grid ul li { margin-bottom: 10px; }
.sitemap-grid a { color: var(--ink-soft); font-size: 14.5px; }
.sitemap-grid a:hover { color: var(--brand-purple); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--brand-purple), var(--brand-purple-dark));
  border-radius: var(--radius-lg);
  padding: 56px 60px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  color: #fff;
  box-shadow: 0 30px 60px -20px rgba(82,61,224,0.5);
}
.cta-band h2 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Offline banner */
.offline-banner {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--danger); color: #fff;
  text-align: center; font-size: 13.5px; font-weight: 600;
  padding: 10px; z-index: 2000;
}
body.is-offline .offline-banner { display: block; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Lazy image fade */
img[loading="lazy"] { opacity: 0; transition: opacity .5s ease; background: var(--paper-alt); }
img[loading="lazy"].loaded { opacity: 1; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .testimonial-wrap { grid-template-columns: 1fr; }
  .testimonial-image { display: none; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .main-nav, .header-cta .header-phone { display: none; }
  .burger { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { height: 600px; }
}
@media (max-width: 720px) {
  .topbar-cta { display: none; }
  .topbar-contact { gap: 14px; }
  .topbar-contact span:last-child { display: none; }
  :root { --header-h: 74px; }
  .brand img { height: 36px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .grid-3, .grid-4, .pillars { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 44px; }
  .cta-band { padding: 40px 28px; flex-direction: column; text-align: center; }
  .page-hero { padding: 108px 0 50px; }
  .about-collage { padding: 20px 20px 40px 0; }
  .hero-slider { height: 560px; }
  .hero-arrow { width: 40px; height: 40px; margin: 0 10px; }
  .form-card { padding: 24px; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4, .pillars, .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-slide-content p { font-size: 15.5px; }
  .cta-band-actions { width: 100%; }
  .cta-band-actions .btn { flex: 1; }
}
