/* ==========================================================================
   AffiliateProfit — Design System
   Premium consulting aesthetic. Bootstrap 5.3 is the grid/utility base;
   everything visual (color, type, components, motion) lives here.
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand colors — sampled from the AffiliateProfit mark */
  --navy-950: #050b14;
  --navy-900: #0a1830;
  --navy-800: #10233f;
  --navy-700: #16304f;
  --blue-700: #123f9c;
  --blue-600: #1657d0;
  --blue-500: #2e7cf6;
  --blue-400: #5b9bff;
  --blue-100: #e3edff;
  --green-700: #0f7a3d;
  --green-600: #17974c;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --green-100: #e1f9ea;
  --gray-50: #f7f9fc;
  --gray-100: #eef2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #6b7a94;
  --gray-600: #54607a;
  --gray-700: #3a4356;
  --white: #ffffff;

  --grad-brand: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 45%, var(--green-500) 100%);
  --grad-navy: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  --grad-radial-glow: radial-gradient(circle at 30% 20%, rgba(46, 124, 246, 0.35), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.25), transparent 50%);

  --font-display: 'Manrope', 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Poppins', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-soft: 0 4px 24px rgba(10, 24, 48, 0.08);
  --shadow-md: 0 12px 40px rgba(10, 24, 48, 0.12);
  --shadow-lg: 0 24px 64px rgba(10, 24, 48, 0.16);
  --shadow-glow-blue: 0 8px 32px rgba(46, 124, 246, 0.25);
  --shadow-glow-green: 0 8px 32px rgba(34, 197, 94, 0.25);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition-base: 0.35s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);

  --header-h: 88px;

  /* Theme surface tokens (redefined under [data-theme="dark"]) */
  --bg-body: var(--white);
  --bg-surface: var(--white);
  --bg-surface-alt: var(--gray-50);
  --bg-navy: var(--navy-900);
  --text-body: var(--navy-900);
  --text-muted: var(--gray-500);
  --text-inverse: var(--white);
  --border-subtle: var(--gray-200);
  --header-bg: rgba(255, 255, 255, 0.86);
  --card-bg: var(--white);
}

[data-theme='dark'] {
  --bg-body: var(--navy-950);
  --bg-surface: var(--navy-900);
  --bg-surface-alt: var(--navy-800);
  --bg-navy: #030811;
  --text-body: #eef2f9;
  --text-muted: #9fb0c8;
  --text-inverse: var(--white);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --header-bg: rgba(5, 11, 20, 0.86);
  --card-bg: var(--navy-800);
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-body);
  transition: background var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 800; color: var(--text-body); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 4vw + 1rem, 4.2rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 3rem); line-height: 1.12; }
h3 { font-size: clamp(1.4rem, 1.4vw + 1rem, 1.85rem); line-height: 1.25; }
p { color: var(--text-muted); line-height: 1.7; }
a { text-decoration: none; color: var(--blue-600); transition: color var(--transition-fast); }
a:hover { color: var(--blue-500); }
::selection { background: var(--green-400); color: var(--navy-950); }
img { max-width: 100%; height: auto; }
.container, .container-fluid { max-width: 1320px; }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--grad-brand); border-radius: 2px; }
[data-theme='dark'] .eyebrow { color: var(--green-400); }

.text-gradient { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: clamp(4rem, 8vw, 8rem) 0; }
.section-sm { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.bg-navy { background: var(--grad-navy); color: var(--text-inverse); position: relative; }
.bg-alt { background: var(--bg-surface-alt); }
.bg-surface { background: var(--bg-surface); }

/* ---------- 3. Buttons ---------- */
.btn { font-family: var(--font-accent); font-weight: 600; border-radius: var(--radius-pill); padding: 0.85rem 1.9rem; transition: all var(--transition-base); border: none; }
.btn-brand {
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: var(--shadow-glow-blue);
}
.btn-brand:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--white); filter: brightness(1.06); }
.btn-outline-brand { background: transparent; border: 1.5px solid var(--border-subtle); color: var(--text-body); }
.btn-outline-brand:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-3px); }
.btn-light-ghost { background: rgba(255, 255, 255, 0.1); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(6px); }
.btn-light-ghost:hover { background: rgba(255, 255, 255, 0.18); color: var(--white); transform: translateY(-3px); }
.btn-sm-pill { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-icon-circle { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-surface-alt); border: 1px solid var(--border-subtle); color: var(--text-body); transition: all var(--transition-fast); }
.btn-icon-circle:hover { background: var(--grad-brand); color: var(--white); border-color: transparent; }

/* ---------- 4. Loading Screen ---------- */
#loading-screen {
  position: fixed; inset: 0; z-index: 20000;
  background: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}
#loading-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#loading-screen img { width: 220px; animation: pulse-logo 1.6s ease-in-out infinite; }
@keyframes pulse-logo { 0%, 100% { opacity: 0.55; transform: scale(0.97); } 50% { opacity: 1; transform: scale(1.02); } }
.loader-bar { position: absolute; bottom: 14%; left: 50%; transform: translateX(-50%); width: 200px; height: 3px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--grad-brand); animation: loader-slide 1.1s ease-in-out infinite; border-radius: 4px; }
@keyframes loader-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ---------- 5. Scroll Progress + Back to Top ---------- */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--grad-brand); z-index: 10001; transition: width 0.1s linear; }
#back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 999;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--grad-brand); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); border: none;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all var(--transition-base);
}
#back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-4px); }

/* ---------- 6. Header / Navigation ---------- */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition: all var(--transition-base);
}
#site-header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-soft);
  height: 76px;
}
#site-header .navbar { height: 100%; padding: 0; }
.navbar-brand img { height: 40px; width: auto; transition: height var(--transition-base); }
#site-header.is-scrolled .navbar-brand img { height: 34px; }

.main-nav .nav-link {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-body);
  padding: 0.6rem 1rem !important;
  position: relative;
}
.home-hero-active #site-header:not(.is-scrolled) .main-nav .nav-link,
.home-hero-active #site-header:not(.is-scrolled) .navbar-brand,
.home-hero-active #site-header:not(.is-scrolled) .theme-toggle,
.home-hero-active #site-header:not(.is-scrolled) .btn-icon-circle {
  color: var(--white);
}
.main-nav .nav-link::after {
  content: ''; position: absolute; left: 1rem; right: 1rem; bottom: 0.2rem; height: 2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform var(--transition-fast);
}
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .nav-item.dropdown:hover > .dropdown-menu { display: block; }

/* Mega menu */
.mega-menu {
  border: none; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 2rem; background: var(--bg-surface);
  width: min(880px, 90vw); margin-top: 12px !important;
}
.mega-col-title { font-family: var(--font-accent); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.mega-link { display: flex; gap: 0.85rem; padding: 0.6rem 0.5rem; border-radius: var(--radius-sm); color: var(--text-body); align-items: flex-start; }
.mega-link:hover { background: var(--bg-surface-alt); color: var(--blue-600); }
.mega-link i, .mega-link .bi { font-size: 1.15rem; color: var(--blue-500); margin-top: 2px; }
.mega-link strong { display: block; font-family: var(--font-accent); font-size: 0.92rem; }
.mega-link small { color: var(--text-muted); font-size: 0.8rem; }
.mega-promo { border-radius: var(--radius-md); background: var(--grad-navy); color: var(--white); padding: 1.5rem; height: 100%; }

.theme-toggle { background: none; border: 1px solid var(--border-subtle); border-radius: 50%; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-body); }
[data-theme='dark'] .icon-sun { display: inline-block; }
[data-theme='dark'] .icon-moon { display: none; }
.icon-moon { display: inline-block; }
.icon-sun { display: none; }

.search-toggle { background: none; border: 1px solid var(--border-subtle); border-radius: 50%; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-body); }

#search-overlay {
  position: fixed; inset: 0; z-index: 10050; background: rgba(5, 11, 20, 0.92);
  backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh; opacity: 0; visibility: hidden; transition: all var(--transition-base);
}
#search-overlay.is-open { opacity: 1; visibility: visible; }
#search-overlay .search-box { width: min(680px, 92vw); }
#search-overlay input { background: transparent; border: none; border-bottom: 2px solid rgba(255, 255, 255, 0.3); color: #fff; font-size: 1.7rem; font-family: var(--font-display); padding: 0.6rem 0; }
#search-overlay input:focus { outline: none; border-color: var(--blue-400); }
#search-overlay input::placeholder { color: rgba(255, 255, 255, 0.4); }
#search-results { margin-top: 1.5rem; max-height: 45vh; overflow-y: auto; }
#search-results a { display: block; color: #fff; padding: 0.7rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
#search-results a small { display: block; color: rgba(255, 255, 255, 0.5); }
#search-close { position: absolute; top: 2rem; right: 2rem; color: #fff; font-size: 1.8rem; background: none; border: none; }

/* Mobile offcanvas nav */
.offcanvas-nav { width: min(340px, 88vw); }
.offcanvas-nav .nav-link { padding: 0.85rem 0 !important; border-bottom: 1px solid var(--border-subtle); font-family: var(--font-accent); font-weight: 600; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: var(--white); overflow: hidden; padding-top: var(--header-h);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 11, 20, 0.75) 0%, rgba(5, 11, 20, 0.88) 60%, var(--navy-950) 100%); }
.hero-bg::before { content: ''; position: absolute; inset: 0; background: var(--grad-radial-glow); z-index: 1; mix-blend-mode: screen; }
.hero-content { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--green-400); }
.hero .eyebrow::before { background: var(--white); opacity: 0.5; }
.hero p.lead { color: rgba(255, 255, 255, 0.78); font-size: clamp(1.05rem, 1vw + 0.9rem, 1.3rem); max-width: 620px; }
.hero-stats-strip { position: relative; z-index: 2; border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 3.5rem; padding-top: 2rem; }
.hero-scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255, 255, 255, 0.6); font-size: 0.78rem; text-align: center; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-scroll-cue .line { width: 1px; height: 36px; background: rgba(255, 255, 255, 0.35); margin: 0.6rem auto 0; position: relative; overflow: hidden; }
.hero-scroll-cue .line::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--white); animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue { 0% { top: -100%; } 100% { top: 100%; } }

/* Page header (inner pages) */
.page-hero { position: relative; padding: calc(var(--header-h) + 4.5rem) 0 4.5rem; background: var(--grad-navy); color: var(--white); overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: var(--grad-radial-glow); mix-blend-mode: screen; }
.page-hero .breadcrumb { position: relative; z-index: 1; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255, 255, 255, 0.6); }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.4); }

/* ---------- 8. Stat Counters ---------- */
.stat-item { text-align: left; }
.stat-number { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 3vw, 3.2rem); line-height: 1; }
.stat-label { font-family: var(--font-accent); font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; }
.hero-stats-strip .stat-label { color: rgba(255, 255, 255, 0.6); }
.hero-stats-strip .stat-number { color: #fff; }

/* ---------- 9. Cards ---------- */
.card-elevated {
  background: var(--card-bg); border-radius: var(--radius-lg); border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft); transition: all var(--transition-base); height: 100%;
}
.card-elevated:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon-wrap {
  width: 58px; height: 58px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: var(--white); font-size: 1.5rem; margin-bottom: 1.3rem;
}
.card-service { padding: 2.2rem; }
.card-service h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.card-service .stretched-link-wrap { font-family: var(--font-accent); font-weight: 600; font-size: 0.88rem; color: var(--blue-600); display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; }
.card-service .stretched-link-wrap i { transition: transform var(--transition-fast); }
.card-elevated:hover .stretched-link-wrap i { transform: translateX(4px); }

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
}

.industry-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 320px; color: #fff; }
.industry-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out-expo); }
.industry-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,11,20,0.1) 0%, rgba(5,11,20,0.92) 100%); }
.industry-card:hover img { transform: scale(1.08); }
.industry-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.6rem; }
.industry-card-body i { font-size: 1.5rem; color: var(--green-400); margin-bottom: 0.5rem; display: inline-block; }

/* Framework / process steps */
.process-step { position: relative; padding-left: 0; }
.process-step .step-num {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9;
}
.process-line { position: absolute; top: 2.6rem; left: 0; right: -1.5rem; height: 2px; background: var(--border-subtle); display: none; }
@media (min-width: 992px) { .process-line { display: block; } }
@media (min-width: 576px) and (max-width: 991.98px) { .process-step { text-align: center; } }

/* Why-us checklist */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.6rem 0; }
.check-list .check-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--green-100); color: var(--green-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.8rem; margin-top: 0.15rem; }
[data-theme='dark'] .check-list .check-icon { background: rgba(34,197,94,0.15); }

/* Testimonials (Swiper) */
.testimonial-card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 2.4rem; border: 1px solid var(--border-subtle); height: 100%; }
.testimonial-card .stars { color: var(--green-500); font-size: 0.85rem; margin-bottom: 1rem; }
.testimonial-card blockquote { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text-body); line-height: 1.5; }
.testimonial-author { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.5rem; }
.testimonial-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; font-family: var(--font-accent); font-size: 0.95rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }
.swiper-pagination-bullet { background: var(--gray-300); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--grad-brand); width: 22px; border-radius: 5px; }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem; opacity: 0.75; filter: grayscale(1); }
[data-theme='dark'] .logo-strip { filter: grayscale(1) invert(0.85); }

/* Blog / Insights cards */
.post-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--card-bg); border: 1px solid var(--border-subtle); transition: all var(--transition-base); height: 100%; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .post-img { aspect-ratio: 16/10; overflow: hidden; }
.post-card .post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out-expo); }
.post-card:hover .post-img img { transform: scale(1.06); }
.post-card .post-body { padding: 1.6rem; }
.post-tag { font-family: var(--font-accent); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-600); background: var(--blue-100); padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); }
[data-theme='dark'] .post-tag { background: rgba(46,124,246,0.15); }
.post-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 1rem; margin-top: 0.8rem; }

/* FAQ accordion */
.accordion-brand .accordion-item { border: none; border-bottom: 1px solid var(--border-subtle); background: transparent; }
.accordion-brand .accordion-button { background: transparent; font-family: var(--font-accent); font-weight: 600; font-size: 1.02rem; color: var(--text-body); padding: 1.5rem 0; box-shadow: none !important; }
.accordion-brand .accordion-button:not(.collapsed) { color: var(--blue-600); }
.accordion-brand .accordion-button::after { filter: none; }
.accordion-brand .accordion-body { padding: 0 0 1.5rem; color: var(--text-muted); }

/* CTA band */
.cta-band { position: relative; border-radius: var(--radius-xl); overflow: hidden; padding: clamp(3rem, 6vw, 5rem); background: var(--grad-navy); color: #fff; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: var(--grad-radial-glow); mix-blend-mode: screen; }
.cta-band > * { position: relative; z-index: 1; }

/* Newsletter */
.newsletter-form .form-control { border-radius: var(--radius-pill); padding: 0.85rem 1.4rem; border: 1px solid var(--border-subtle); background: var(--bg-surface); color: var(--text-body); }
.newsletter-form .form-control:focus { box-shadow: 0 0 0 4px rgba(46,124,246,0.15); border-color: var(--blue-500); }

/* ---------- 10. Footer ---------- */
#site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.72); padding-top: 5rem; }
#site-footer h5 { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1.3rem; font-family: var(--font-accent); }
#site-footer a { color: rgba(255, 255, 255, 0.68); }
#site-footer a:hover { color: var(--green-400); }
#site-footer .footer-links { list-style: none; padding: 0; }
#site-footer .footer-links li { margin-bottom: 0.7rem; }
#site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 3rem; padding: 1.6rem 0; font-size: 0.85rem; }
.social-icons { display: flex; gap: 0.7rem; }
.social-icons a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.social-icons a:hover { background: var(--grad-brand); border-color: transparent; transform: translateY(-3px); }
.footer-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; padding: 0.5rem 1rem; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.15); }

/* ---------- 11. Forms (Contact) ---------- */
.form-control, .form-select {
  background: var(--bg-surface); border: 1.5px solid var(--border-subtle); color: var(--text-body);
  border-radius: var(--radius-sm); padding: 0.85rem 1.1rem; font-size: 0.95rem;
}
.form-control:focus, .form-select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(46,124,246,0.14); background: var(--bg-surface); color: var(--text-body); }
.form-label { font-family: var(--font-accent); font-weight: 600; font-size: 0.88rem; margin-bottom: 0.5rem; }
.form-floating > label { color: var(--text-muted); }
.contact-info-card { border-radius: var(--radius-lg); padding: 2rem; background: var(--card-bg); border: 1px solid var(--border-subtle); }
.contact-info-card .icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.map-embed-wrap { border-radius: var(--radius-lg); overflow: hidden; filter: grayscale(0.15); border: 1px solid var(--border-subtle); }
[data-theme='dark'] .map-embed-wrap { filter: grayscale(0.4) invert(0.92) contrast(0.9); }

.form-success { display: none; }
.form-success.is-visible { display: block; }

/* ---------- 12. Pricing / product tiers, misc ---------- */
.badge-soft { background: var(--blue-100); color: var(--blue-600); font-family: var(--font-accent); font-weight: 600; padding: 0.4rem 0.9rem; border-radius: var(--radius-pill); font-size: 0.78rem; }
[data-theme='dark'] .badge-soft { background: rgba(46,124,246,0.15); }
.badge-soft.green { background: var(--green-100); color: var(--green-700); }
[data-theme='dark'] .badge-soft.green { background: rgba(34,197,94,0.15); color: var(--green-400); }

.timeline-vert { border-left: 2px solid var(--border-subtle); padding-left: 2rem; margin-left: 0.5rem; }
.timeline-vert .t-item { position: relative; padding-bottom: 2.4rem; }
.timeline-vert .t-item::before { content: ''; position: absolute; left: -2.05rem; top: 0.2rem; width: 12px; height: 12px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 0 4px var(--bg-body); }

/* 404 */
.error-page { min-height: 100vh; display: flex; align-items: center; }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 18vw, 11rem); line-height: 0.9; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Products */
.product-hero-mock { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.product-feature-icon { width: 50px; height: 50px; border-radius: var(--radius-sm); background: var(--bg-surface-alt); display: flex; align-items: center; justify-content: center; color: var(--blue-600); font-size: 1.3rem; margin-bottom: 1rem; }

/* Share buttons */
.share-buttons a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-subtle); display: inline-flex; align-items: center; justify-content: center; color: var(--text-body); margin-right: 0.5rem; }
.share-buttons a:hover { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* Live chat placeholder bubble */
#live-chat-bubble {
  position: fixed; right: 1.5rem; bottom: 5.7rem; z-index: 998;
  width: 58px; height: 58px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); border: none; font-size: 1.4rem;
}
#live-chat-bubble .ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green-400); animation: chat-ping 2s ease-out infinite; }
@keyframes chat-ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
#live-chat-panel {
  position: fixed; right: 1.5rem; bottom: 9.5rem; z-index: 998; width: 320px; max-width: 88vw;
  background: var(--card-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border-subtle);
  padding: 1.5rem; display: none;
}
#live-chat-panel.is-open { display: block; }

/* ---------- 13. AOS override tuning ---------- */
[data-aos] { transition-property: transform, opacity; }

/* ---------- 14. Utilities ---------- */
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-lg-brand { border-radius: var(--radius-lg) !important; }
.divider-grad { height: 1px; background: linear-gradient(90deg, transparent, var(--border-subtle), transparent); border: none; }
.fs-lg { font-size: 1.15rem; }
.text-muted-soft { color: var(--text-muted) !important; }
.max-w-560 { max-width: 560px; }
.max-w-680 { max-width: 680px; }
.object-cover { object-fit: cover; }
.img-frame { border-radius: var(--radius-lg); overflow: hidden; }
.avatar-ring { border: 3px solid var(--bg-body); }

/* ---------- 15. Responsive ---------- */
@media (max-width: 991.98px) {
  :root { --header-h: 74px; }
  .hero { min-height: 82vh; }
  .stat-item { text-align: center; }
}
@media (max-width: 767.98px) {
  .section { padding: 3rem 0; }
  .hero-scroll-cue { display: none; }
  .card-service { padding: 1.6rem; }
}
@media (max-width: 575.98px) {
  .cta-band { padding: 2.2rem 1.4rem; }
  #back-to-top, #live-chat-bubble { right: 1rem; }
}

/* Print (company profile / downloads) */
@media print {
  #site-header, #site-footer, #back-to-top, #live-chat-bubble, #live-chat-panel, .no-print { display: none !important; }
}
