
/* ============================================================
   IMPULSO DIGITAL — Main Stylesheet
   Version: 1.0.0
   ============================================================ */

/* ── 1. CSS Custom Properties ───────────────────────────────── */
:root {
  /* Brand Colors */
  --blue-600:   #2563EB;
  --blue-700:   #1D4ED8;
  --blue-500:   #3B82F6;
  --blue-100:   #DBEAFE;
  --blue-50:    #EFF6FF;
  --purple-600: #7C3AED;
  --purple-100: #EDE9FE;
  --green-500:  #10B981;
  --green-100:  #D1FAE5;
  --red-500:    #EF4444;
  --red-100:    #FEE2E2;
  --yellow-400: #FBBF24;

  /* Neutrals */
  --dark:       #111827;
  --gray-800:   #1F2937;
  --gray-700:   #374151;
  --gray-600:   #4B5563;
  --gray-500:   #6B7280;
  --gray-400:   #9CA3AF;
  --gray-300:   #D1D5DB;
  --gray-200:   #E5E7EB;
  --gray-100:   #F3F4F6;
  --gray-50:    #F9FAFB;
  --white:      #FFFFFF;

  /* Typography */
  --font:       'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-y:  100px;

  /* Borders */
  --r-sm:   8px;
  --r:      12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow:     0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / .08), 0 2px 4px -2px rgb(0 0 0 / .08);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / .08), 0 4px 6px -4px rgb(0 0 0 / .08);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / .08), 0 8px 10px -6px rgb(0 0 0 / .08);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / .15);

  /* Transitions */
  --ease:  cubic-bezier(.4, 0, .2, 1);
  --t-sm:  .15s var(--ease);
  --t:     .3s  var(--ease);
  --t-lg:  .5s  var(--ease);

  /* Layout */
  --max-w:     1280px;
  --nav-h:     72px;
}

/* ── 2. Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color var(--t-sm); }
a:hover { color: var(--blue-700); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ── 3. Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-y) 0; }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--dark); color: var(--white); }

/* ── 4. Skip Link ───────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 0; z-index: 9999;
  padding: 12px 24px; background: var(--blue-600); color: var(--white);
  font-weight: 600; border-radius: 0 0 var(--r) 0;
  transition: top var(--t-sm);
}
.skip-link:focus { top: 0; color: var(--white); }
.visually-hidden, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── 5. Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r); border: 2px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: all var(--t-sm); text-decoration: none;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.btn svg { flex-shrink: 0; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--r-lg); }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--blue-600); color: var(--white); border-color: var(--blue-600);
}
.btn-primary:hover {
  background: var(--blue-700); border-color: var(--blue-700); color: var(--white);
  transform: translateY(-1px); box-shadow: 0 4px 14px rgb(37 99 235 / .35);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent; color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--dark); border-color: var(--gray-400); }

.btn-outline {
  background: transparent; color: var(--blue-600); border-color: var(--blue-600);
}
.btn-outline:hover { background: var(--blue-600); color: var(--white); }

.btn-white {
  background: var(--white); color: var(--blue-600); border-color: var(--white);
}
.btn-white:hover { background: var(--gray-100); color: var(--blue-700); transform: translateY(-1px); }

.btn-outline-white {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r); margin-top: 16px;
  background: #25D366; color: var(--white); font-size: 14px; font-weight: 600;
  transition: all var(--t-sm);
}
.btn-whatsapp:hover { background: #1fba57; color: var(--white); transform: translateY(-1px); }

/* Loading button state */
.btn-loading { display: none; align-items: center; gap: 8px; }
.btn.is-loading .btn-text { display: none; }
.btn.is-loading .btn-loading { display: inline-flex; }
.btn.is-loading { opacity: .8; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ── 6. Section Headers ─────────────────────────────────────── */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-full);
  background: var(--blue-50); color: var(--blue-600);
  font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header {
  text-align: center; max-width: 680px; margin: 0 auto 64px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px;
}
.section-header h2 span { color: var(--blue-600); }
.section-header p { font-size: 18px; color: var(--gray-500); line-height: 1.7; }

/* ── 7. Navigation ──────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); background: var(--white);
  border-bottom: 1px solid transparent;
  transition: all var(--t);
}
.site-header.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: 0 1px 20px rgb(0 0 0 / .06);
}
.navbar {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.navbar-brand { flex-shrink: 0; }
.navbar-logo {
  display: flex; align-items: center; gap: 10px; color: var(--dark);
  font-size: 18px; font-weight: 700; text-decoration: none;
}
.navbar-logo:hover { color: var(--blue-600); }
.navbar-logo svg { flex-shrink: 0; }
.navbar-name { letter-spacing: -.02em; }

.navbar-menu { flex: 1; display: flex; justify-content: center; }
.navbar-nav { display: flex; align-items: center; gap: 4px; }
.navbar-nav li a {
  display: block; padding: 8px 14px; border-radius: var(--r-sm);
  color: var(--gray-600); font-size: 15px; font-weight: 500;
  transition: all var(--t-sm);
}
.navbar-nav li a:hover, .navbar-nav li.current-menu-item a {
  color: var(--blue-600); background: var(--blue-50);
}

.navbar-actions { display: flex; align-items: center; gap: 12px; }
.navbar-cta { display: none; }

.hamburger {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; gap: 5px; background: none; border: none; padding: 4px;
  border-radius: var(--r-sm); transition: background var(--t-sm);
}
.hamburger:hover { background: var(--gray-100); }
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--gray-700);
  border-radius: 2px; transition: all var(--t-sm);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 8. Hero Section ────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--dark);
  padding: calc(var(--nav-h) + 60px) 0 80px;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-shape {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .12;
}
.hero-shape-1 { width: 600px; height: 600px; background: var(--blue-600); top: -200px; right: -100px; }
.hero-shape-2 { width: 400px; height: 400px; background: var(--purple-600); bottom: -100px; left: -100px; }
.hero-shape-3 { width: 300px; height: 300px; background: var(--blue-500); top: 40%; left: 35%; }

.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; position: relative; z-index: 1;
}
.hero-content { color: var(--white); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-full); margin-bottom: 24px;
  background: rgba(37,99,235,.2); border: 1px solid rgba(37,99,235,.4);
  color: var(--blue-100, #DBEAFE); font-size: 13px; font-weight: 600;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-500);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px); font-weight: 800;
  line-height: 1.1; color: var(--white); margin-bottom: 20px;
  letter-spacing: -.03em;
}
.hero-title span { color: var(--blue-500); }

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.7);
  line-height: 1.7; margin-bottom: 36px; max-width: 520px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

.hero-stats { display: flex; align-items: center; gap: 0; }
.hero-stat { text-align: center; padding: 0 28px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat strong {
  display: block; font-size: 32px; font-weight: 800;
  color: var(--white); letter-spacing: -.02em; line-height: 1;
}
.hero-stat span { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 4px; display: block; }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.15); flex-shrink: 0; }

/* Hero Visual — Dashboard Cards */
.hero-visual { position: relative; }
.hero-card-stack { position: relative; }

.hc {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); backdrop-filter: blur(10px);
  padding: 20px; color: var(--white);
}
.hc-main { padding: 24px; }
.hc-secondary {
  position: absolute; bottom: -30px; left: -40px;
  width: 200px; background: rgba(255,255,255,.1);
  padding: 16px; border-radius: var(--r);
  animation: float2 4s ease-in-out infinite .5s;
}
.hc-tertiary {
  position: absolute; top: -20px; right: -30px;
  width: 210px; background: rgba(255,255,255,.1);
  padding: 16px; border-radius: var(--r);
  animation: float2 4s ease-in-out infinite 1s;
}
@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hc-dots { display: flex; gap: 5px; }
.hc-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); }
.hc-dots span:nth-child(1) { background: #ff5f57; }
.hc-dots span:nth-child(2) { background: #ffbd2e; }
.hc-dots span:nth-child(3) { background: #28ca41; }
.hc-label { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 500; }

.hc-chart { margin-bottom: 16px; }
.hc-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.hc-bar {
  flex: 1; background: rgba(59,130,246,.35); border-radius: 3px 3px 0 0;
  transition: all .3s;
}
.hc-bar.active { background: var(--blue-500); }
.hc-metric { display: flex; justify-content: space-between; align-items: center; }
.hc-metric-label { font-size: 12px; color: rgba(255,255,255,.5); }
.hc-metric-value { font-size: 22px; font-weight: 800; color: var(--green-500); }

.hc-row { display: flex; align-items: center; gap: 10px; }
.hc-icon-wrap {
  width: 32px; height: 32px; border-radius: var(--r-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hc-green { background: rgba(16,185,129,.2); color: var(--green-500); }
.hc-blue  { background: rgba(37,99,235,.2);  color: var(--blue-500); }
.hc-sub-label { font-size: 10px; color: rgba(255,255,255,.4); margin-bottom: 2px; }
.hc-row strong { font-size: 14px; color: var(--white); font-weight: 700; display: block; }

/* ── 9. Trust Bar ───────────────────────────────────────────── */
.trust-bar {
  padding: 32px 0; border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200); background: var(--white);
}
.trust-label {
  text-align: center; font-size: 13px; color: var(--gray-400);
  font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 24px;
}
.trust-items {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 32px;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: var(--gray-400); font-size: 15px; font-weight: 500;
  transition: color var(--t-sm);
}
.trust-item:hover { color: var(--gray-600); }
.trust-item svg { flex-shrink: 0; }

/* ── 10. Services ───────────────────────────────────────────── */
.services { background: var(--white); }
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.service-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-xl);
  padding: 36px; transition: all var(--t); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--blue-50), transparent);
  opacity: 0; transition: opacity var(--t);
}
.service-card:hover {
  border-color: var(--blue-300, #93C5FD); transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.service-card:hover::before { opacity: 1; }
.service-card--featured {
  background: var(--dark); border-color: transparent; color: rgba(255,255,255,.8);
}
.service-card--featured h3 { color: var(--white); }
.service-card--featured .service-link { color: var(--blue-400, #60A5FA); }
.service-card--featured .service-features li { color: rgba(255,255,255,.6); }
.service-card--featured .service-features li::before { background: var(--blue-500); }
.service-card--featured:hover { background: var(--gray-800); }
.service-card--featured::before { background: linear-gradient(135deg, rgba(37,99,235,.15), transparent); }

.service-badge {
  position: absolute; top: 20px; right: 20px;
  padding: 4px 12px; border-radius: var(--r-full);
  background: var(--blue-600); color: var(--white);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.service-icon {
  width: 56px; height: 56px; border-radius: var(--r-lg); margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.service-icon--blue   { background: var(--blue-100); color: var(--blue-600); }
.service-icon--purple { background: var(--purple-100); color: var(--purple-600); }
.service-icon--dark   { background: rgba(37,99,235,.2); color: var(--blue-400, #60A5FA); }
.service-icon--green  { background: var(--green-100); color: var(--green-500); }

.service-content { position: relative; z-index: 1; }
.service-content h3 { font-size: 20px; margin-bottom: 12px; }
.service-content p  { font-size: 15px; line-height: 1.7; color: var(--gray-500); margin-bottom: 20px; }

.service-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.service-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--gray-600);
}
.service-features li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-600); flex-shrink: 0;
}
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--blue-600);
  transition: gap var(--t-sm);
}
.service-link:hover { gap: 10px; }

/* ── 11. About ──────────────────────────────────────────────── */
.about { background: var(--white); }
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-card-wrap { display: flex; flex-direction: column; gap: 16px; }
.about-card {
  background: var(--dark); color: var(--white); border-radius: var(--r-xl);
  padding: 32px; position: relative; overflow: hidden;
}
.about-card::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(37,99,235,.15);
}
.about-card-icon {
  width: 48px; height: 48px; border-radius: var(--r); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,99,235,.2); color: var(--blue-400, #60A5FA);
}
.about-card h4 { font-size: 18px; color: var(--white); margin-bottom: 8px; }
.about-card p  { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.6; }

.about-stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-stat-card {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  padding: 20px; text-align: center;
}
.about-stat-card strong { font-size: 32px; font-weight: 800; color: var(--dark); display: block; }
.about-stat-card p { font-size: 12px; color: var(--gray-500); margin-top: 4px; line-height: 1.4; }
.about-stat-card--blue { background: var(--blue-600); border-color: transparent; }
.about-stat-card--blue strong, .about-stat-card--blue p { color: var(--white); }
.about-stat-card--purple { background: var(--purple-600); border-color: transparent; }
.about-stat-card--purple strong, .about-stat-card--purple p { color: var(--white); }

.about-content .section-tag { display: inline-flex; margin-bottom: 16px; }
.about-content h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 20px; }
.about-content h2 span { color: var(--blue-600); }
.about-lead { font-size: 18px; color: var(--gray-600); line-height: 1.7; margin-bottom: 32px; }

.about-features { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.about-feature { display: flex; gap: 16px; }
.about-feature-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-100); color: var(--blue-600); margin-top: 2px;
}
.about-feature h4 { font-size: 16px; margin-bottom: 4px; }
.about-feature p  { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ── 12. Process ────────────────────────────────────────────── */
.process-steps {
  display: flex; align-items: flex-start; gap: 0;
  position: relative;
}
.process-step {
  flex: 1; text-align: center; padding: 0 16px; position: relative;
}
.process-connector {
  width: 80px; flex-shrink: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue-600) 0%, var(--gray-300) 100%);
  margin-top: 48px; position: relative;
}
.process-connector::after {
  content: ''; position: absolute; right: -6px; top: -4px;
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--gray-300);
}
.process-num {
  font-size: 11px; font-weight: 700; color: var(--blue-600);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px;
}
.process-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 2px solid var(--blue-600);
  color: var(--blue-600); box-shadow: 0 0 0 8px var(--blue-50);
}
.process-step h3 { font-size: 17px; margin-bottom: 12px; }
.process-step p  { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ── 13. Testimonials ───────────────────────────────────────── */
.testimonials { background: var(--white); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial-card {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column;
  gap: 20px; transition: all var(--t);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card--featured {
  background: var(--dark); border-color: transparent; color: rgba(255,255,255,.8);
}
.testimonial-card--featured .testimonial-stars svg { fill: var(--yellow-400); }
.testimonial-card--featured .testimonial-name { color: var(--white); }
.testimonial-card--featured .testimonial-role  { color: rgba(255,255,255,.5); }

.testimonial-stars { display: flex; gap: 2px; }
.testimonial-stars svg { fill: var(--yellow-400); }
.testimonial-card p { font-size: 15px; line-height: 1.7; flex: 1; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gray-300); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--gray-600); flex-shrink: 0;
}
.testimonial-avatar--blue   { background: var(--blue-600); color: var(--white); }
.testimonial-avatar--purple { background: var(--purple-600); color: var(--white); }
.testimonial-name { font-size: 15px; font-weight: 700; color: var(--dark); display: block; }
.testimonial-role { font-size: 13px; color: var(--gray-500); }

/* ── 14. CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  padding: 80px 0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 50%, var(--purple-600) 100%);
}
.cta-banner-bg {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  position: relative;
}
.cta-banner-content h2 { font-size: clamp(24px, 3vw, 38px); color: var(--white); margin-bottom: 12px; }
.cta-banner-content p  { font-size: 17px; color: rgba(255,255,255,.8); }
.cta-banner-actions { display: flex; flex-wrap: wrap; gap: 16px; flex-shrink: 0; }

/* ── 15. Contact ────────────────────────────────────────────── */
.contact { background: var(--gray-50); }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.contact-info .section-tag { display: inline-flex; margin-bottom: 16px; }
.contact-info h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 16px; }
.contact-info h2 span { color: var(--blue-600); }
.contact-info > p { font-size: 17px; color: var(--gray-500); line-height: 1.7; margin-bottom: 36px; }

.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-method {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  transition: all var(--t-sm); color: inherit; text-decoration: none;
}
.contact-method:hover {
  border-color: var(--blue-600); box-shadow: var(--shadow-md); transform: translateX(4px);
  color: inherit;
}
.contact-method-icon {
  width: 44px; height: 44px; border-radius: var(--r); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-50); color: var(--blue-600);
}
.contact-method-icon--green { background: var(--green-100); color: var(--green-500); }
.contact-method-label { font-size: 12px; color: var(--gray-500); margin-bottom: 2px; display: block; }
.contact-method strong { font-size: 15px; color: var(--dark); display: block; }

/* Contact Form */
.contact-form-wrap {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r-xl); padding: 40px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; gap: 20px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  font-size: 14px; font-weight: 600; color: var(--gray-700);
}
.form-control {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-300);
  border-radius: var(--r); font-size: 15px; color: var(--dark);
  background: var(--white); transition: border-color var(--t-sm), box-shadow var(--t-sm);
  outline: none;
}
.form-control::placeholder { color: var(--gray-400); }
.form-control:focus {
  border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-control:invalid:not(:placeholder-shown) { border-color: var(--red-500); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 130px; }

.form-message {
  padding: 12px 16px; border-radius: var(--r); margin-top: 16px;
  font-size: 14px; font-weight: 500; display: none;
}
.form-message.success { display: block; background: var(--green-100); color: #065F46; }
.form-message.error   { display: block; background: var(--red-100); color: #991B1B; }

.form-privacy { font-size: 12px; color: var(--gray-400); margin-top: 12px; line-height: 1.5; }

/* ── 16. Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--dark); }
.footer-main { padding: 80px 0 60px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none; font-size: 18px; font-weight: 700;
  margin-bottom: 16px;
}
.footer-logo:hover { color: var(--blue-400, #60A5FA); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); transition: all var(--t-sm);
}
.social-link:hover { border-color: var(--blue-600); color: var(--blue-400, #60A5FA); background: rgba(37,99,235,.1); }

.footer-col-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 20px; letter-spacing: .05em; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.5); transition: color var(--t-sm); }
.footer-links a:hover { color: var(--white); }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-list li { display: flex; align-items: center; gap: 10px; }
.footer-contact-list svg { color: var(--blue-400, #60A5FA); flex-shrink: 0; }
.footer-contact-list a, .footer-contact-list span {
  font-size: 14px; color: rgba(255,255,255,.6); transition: color var(--t-sm);
}
.footer-contact-list a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.4); }
.footer-bottom strong { color: rgba(255,255,255,.6); }
.footer-bottom-links { display: flex; align-items: center; gap: 12px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,.4); transition: color var(--t-sm); }
.footer-bottom-links a:hover { color: var(--white); }
.footer-bottom-links span { color: rgba(255,255,255,.2); }

/* ── 17. Blog ───────────────────────────────────────────────── */
.blog-main { padding: calc(var(--nav-h) + 60px) 0 80px; }
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
.page-hero--simple { margin-bottom: 48px; }
.page-hero--simple h1 { font-size: clamp(28px, 4vw, 44px); }
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-xl);
  overflow: hidden; transition: all var(--t); display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card-thumb img { width: 100%; height: 220px; object-fit: cover; transition: transform var(--t); }
.post-card:hover .post-card-thumb img { transform: scale(1.03); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-400); margin-bottom: 12px; }
.post-meta a { color: var(--blue-600); }
.post-card-title { font-size: 18px; margin-bottom: 12px; line-height: 1.35; }
.post-card-title a { color: var(--dark); transition: color var(--t-sm); }
.post-card-title a:hover { color: var(--blue-600); }
.post-card-excerpt { font-size: 14px; color: var(--gray-500); line-height: 1.7; margin-bottom: 20px; flex: 1; }
.post-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--blue-600); margin-top: auto;
}

/* Sidebar */
.sidebar-widgets { display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 24px; }
.widget-title { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-100); }
.widget-cta-sidebar .btn { width: 100%; justify-content: center; margin-top: 16px; }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1px solid var(--gray-200); font-size: 14px; font-weight: 600;
  color: var(--gray-600); transition: all var(--t-sm);
}
.pagination .page-numbers:hover, .pagination .page-numbers.current {
  background: var(--blue-600); color: var(--white); border-color: var(--blue-600);
}

/* No results */
.no-results { text-align: center; padding: 80px 0; }
.no-results h2 { margin-bottom: 16px; }
.no-results p { color: var(--gray-500); margin-bottom: 32px; }

/* ── 18. Single Post ────────────────────────────────────────── */
.single-main { padding: calc(var(--nav-h) + 40px) 0 80px; }
.single-post { max-width: 760px; margin: 0 auto; }
.post-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-400); margin-bottom: 24px; flex-wrap: wrap; }
.post-breadcrumb a { color: var(--blue-600); }
.post-breadcrumb span { color: var(--gray-300); }
.single-header .post-meta { display: flex; gap: 12px; font-size: 14px; color: var(--gray-400); margin-bottom: 16px; }
.single-header h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.single-cats a { display: inline-block; padding: 4px 12px; border-radius: var(--r-full); background: var(--blue-50); color: var(--blue-600); font-size: 13px; font-weight: 600; }
.single-featured-img { border-radius: var(--r-xl); overflow: hidden; margin: 32px 0; }
.single-featured-img img { width: 100%; height: 400px; object-fit: cover; }

/* Entry Content */
.entry-content { font-size: 17px; line-height: 1.8; color: var(--gray-700); }
.entry-content h2 { font-size: 28px; margin: 40px 0 16px; }
.entry-content h3 { font-size: 22px; margin: 32px 0 12px; }
.entry-content p { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin: 20px 0 20px 24px; }
.entry-content ul li { list-style: disc; margin-bottom: 8px; }
.entry-content ol li { list-style: decimal; margin-bottom: 8px; }
.entry-content a { text-decoration: underline; }
.entry-content blockquote {
  border-left: 4px solid var(--blue-600); padding: 16px 24px; margin: 32px 0;
  background: var(--blue-50); border-radius: 0 var(--r) var(--r) 0;
  font-style: italic; font-size: 18px;
}
.entry-content img { border-radius: var(--r-lg); margin: 20px 0; }
.entry-content code { background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry-content pre { background: var(--dark); color: var(--white); padding: 24px; border-radius: var(--r-lg); overflow-x: auto; margin: 24px 0; }
.entry-content pre code { background: none; padding: 0; }

.single-footer { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.single-tags a { display: inline-block; padding: 4px 12px; border-radius: var(--r-full); background: var(--gray-100); color: var(--gray-600); font-size: 13px; margin: 2px; }
.single-share { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--gray-500); }
.single-share a { color: var(--gray-500); transition: color var(--t-sm); }
.single-share a:hover { color: var(--blue-600); }

.post-navigation { margin-top: 48px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a {
  display: block; padding: 20px 24px; border: 1px solid var(--gray-200);
  border-radius: var(--r-lg); transition: all var(--t-sm);
}
.post-navigation a:hover { border-color: var(--blue-600); box-shadow: var(--shadow-md); }
.nav-direction { font-size: 12px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 4px; }
.nav-title { font-size: 15px; font-weight: 600; color: var(--dark); display: block; }
.nav-next { text-align: right; }

/* ── 19. Pages ──────────────────────────────────────────────── */
.page-main { padding: calc(var(--nav-h) + 60px) 0 80px; }
.page-header { margin-bottom: 40px; }
.page-header h1 { font-size: clamp(28px, 4vw, 48px); }
.page-featured-img { border-radius: var(--r-xl); overflow: hidden; margin-bottom: 40px; }
.page-featured-img img { width: 100%; height: 400px; object-fit: cover; }

/* ── 20. 404 ────────────────────────────────────────────────── */
.error-main { padding: calc(var(--nav-h) + 80px) 0 80px; }
.error-404 { max-width: 500px; margin: 0 auto; text-align: center; }
.error-visual { margin-bottom: 24px; }
.error-num { font-size: 120px; font-weight: 800; color: var(--gray-200); line-height: 1; }
.error-404 h1 { font-size: 32px; margin-bottom: 16px; }
.error-404 p  { color: var(--gray-500); margin-bottom: 32px; }
.error-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 40px; }

/* Search Form */
.search-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.search-input { flex: 1; }
.search-btn { flex-shrink: 0; padding: 12px 16px; }

/* ── 21. Scroll Animations ──────────────────────────────────── */
[data-animate] {
  opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-animate="fade-up"]   { transform: translateY(30px); }
[data-animate="fade-down"] { transform: translateY(-30px); }
[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate="fade-right"]{ transform: translateX(-30px); }
[data-animate].is-visible  { opacity: 1 !important; transform: none !important; }

[data-delay="0"]   { transition-delay: 0ms; }
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="150"] { transition-delay: 150ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="450"] { transition-delay: 450ms; }

/* Main content offset for fixed nav */
#main-content { padding-top: var(--nav-h); }
.hero { padding-top: 0; margin-top: calc(-1 * var(--nav-h)); }

/* ── 22. Responsive ─────────────────────────────────────────── */
@media (min-width: 768px) {
  .navbar-cta { display: inline-flex; }
  .hamburger { display: none; }
  .navbar-menu { display: flex !important; }
}

@media (max-width: 1100px) {
  .hero-inner { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; align-items: center; gap: 24px; }
  .process-connector { width: 2px; height: 40px; margin: 0; background: linear-gradient(180deg, var(--blue-600) 0%, var(--gray-300) 100%); }
  .process-connector::after { display: none; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-content p { max-width: 500px; margin: 0 auto; }
  .blog-layout { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --section-y: 70px; }
  .site-header { height: 64px; --nav-h: 64px; }

  /* Mobile Nav */
  .hamburger { display: flex; }
  .navbar-cta { display: none; }
  .navbar-menu {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 24px;
    flex-direction: column; justify-content: flex-start; align-items: flex-start;
    border-top: 1px solid var(--gray-200); overflow-y: auto;
    transform: translateX(-100%); transition: transform var(--t);
    display: flex !important;
  }
  .navbar-menu.is-open { transform: translateX(0); }
  .navbar-nav { flex-direction: column; width: 100%; gap: 4px; }
  .navbar-nav li a { padding: 14px 16px; font-size: 18px; width: 100%; }
  .navbar-actions { gap: 8px; }

  .hero { min-height: auto; padding: calc(var(--nav-h) + 40px) 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hc-secondary, .hc-tertiary { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat { padding: 0; }
  .hero-stat-divider { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stat-cards { grid-template-columns: repeat(3, 1fr); }
  .post-navigation .nav-links { grid-template-columns: 1fr; }

  .section-header { margin-bottom: 40px; }
  .footer-main { padding: 60px 0 40px; }
  .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 500px) {
  .trust-items { gap: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-banner-actions { flex-direction: column; width: 100%; }
  .cta-banner-actions .btn { width: 100%; justify-content: center; }
  .error-actions { flex-direction: column; }
  .contact-form-wrap { padding: 24px; }
}

/* ── 23. Print ──────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .cta-banner { display: none; }
  #main-content { padding-top: 0; }
}
