/* ===== RAI — Main Stylesheet ===== */

/* ===== SELF-HOSTED FONTS ===== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/Inter-Light.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Inter-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/Inter-ExtraBold.woff2') format('woff2'); }

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:root {
  --teal: #0b7c72;
  --teal-light: #14b8a6;
  --teal-dark: #0f766e;
  --teal-glow: rgba(11, 124, 114, 0.12);
  --teal-glow-strong: rgba(11, 124, 114, 0.2);
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --nav-bg: rgba(255,255,255,0.85);
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 100px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --wa-bg: #25d366;
}
[data-theme="dark"] {
  --bg: #0b1120;
  --bg-alt: #111827;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --nav-bg: rgba(11,17,32,0.85);
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --teal-glow: rgba(11, 124, 114, 0.08);
  --teal-glow-strong: rgba(11, 124, 114, 0.15);
}
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10001; background: transparent; }
.scroll-progress-bar { height: 100%; width: 0%; background: var(--teal); transition: width 0.1s linear; box-shadow: 0 0 8px var(--teal-glow-strong); }

/* ===== PAGE TRANSITION OVERLAY ===== */
.page-transition { position: fixed; inset: 0; z-index: 10000; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.page-transition.active { opacity: 1; pointer-events: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal); margin-bottom: 16px;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--teal); border-radius: 2px; }
.text-center { text-align: center; }

/* Utility: section heading & subtitle (extracted from inline styles) */
.section-heading { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; margin-bottom: 10px; }
.section-heading--sm { margin-bottom: 12px; }
.section-heading--lg { margin-bottom: 16px; }
.section-subtitle { color: var(--text-secondary); max-width: 480px; margin: 0 auto 36px; }
.bg-alt { background: var(--bg-alt); }
.page-header .section-label { justify-content: center; }
.stats-grid { margin-top: 28px; }

/* Lucide icon sizes (replaces inline styles) */
.icon-14 { width: 14px; height: 14px; }
.icon-16 { width: 16px; height: 16px; }
.icon-18 { width: 18px; height: 18px; }
.icon-20 { width: 20px; height: 20px; }
.icon-22 { width: 22px; height: 22px; }
.icon-24 { width: 24px; height: 24px; }
.icon-28 { width: 28px; height: 28px; }
.icon-30 { width: 30px; height: 30px; }
.theme-icon { width: 20px; height: 20px; }

/* Text color utilities */
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.9rem; }
.text-xs { font-size: 0.8rem; }
.mb-16 { margin-bottom: 16px; }

/* Contact page heading & subtitle */
.contact-heading { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.contact-subtitle { color: var(--text-secondary); margin-bottom: 28px; }

/* Modifier: remove top padding from section-sm */
.section-sm--no-top { padding-top: 0; }

/* Modifier: wider subtitle variants */
.section-subtitle--wide { max-width: 500px; margin: 0 auto 36px; }
.section-subtitle--540 { max-width: 540px; margin: 0 auto 36px; }

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-sm { padding: 40px 0; }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition); flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-glow); transform: scale(1.1); }
.theme-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ===== MOBILE STICKY BOTTOM BAR ===== */
.mobile-bottom-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9997;
  background: var(--nav-bg); backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  gap: 10px;
  transition: transform 0.3s ease;
}
.mobile-bottom-bar.hidden { transform: translateY(100%); }
.mobile-bottom-bar-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  border: none; cursor: pointer; transition: all var(--transition);
  min-height: 48px;
}
.mobile-bottom-bar-btn:active { transform: scale(0.97); }
.mobile-bottom-bar-btn-primary { background: var(--teal); color: #fff; }
.mobile-bottom-bar-btn-primary:hover { background: var(--teal-dark); }
.mobile-bottom-bar-btn-wa { background: var(--wa-bg); color: #fff; }
.mobile-bottom-bar-btn-wa:hover { background: #20bd5a; }
@media (max-width: 768px) { .mobile-bottom-bar { display: flex; } body { padding-bottom: 80px; } }

/* ===== WHATSAPP FLOATING BUTTON (desktop) ===== */
.wa-desktop {
  display: flex;
  position: fixed; bottom: 84px; right: 24px; z-index: 9998;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--wa-bg); color: #fff;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: all var(--transition);
  cursor: pointer;
}
.wa-desktop:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
@media (max-width: 768px) { .wa-desktop { display: none; } }

/* ===== FLOATING CTA (mobile only) ===== */
.floating-cta {
  position: fixed; bottom: 96px; right: 16px; z-index: 9996;
  opacity: 0; transform: translateY(20px) scale(0.9);
  pointer-events: none; transition: all var(--transition);
}
.floating-cta.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.floating-cta-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-full);
  background: var(--teal); color: #fff; border: none; cursor: pointer;
  font-size: 0.85rem; font-weight: 600; font-family: inherit;
  box-shadow: 0 8px 32px rgba(11,124,114,0.35);
  transition: all var(--transition); min-height: 48px;
}
.floating-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(11,124,114,0.45); }
.floating-cta-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 769px) { .floating-cta { display: none; } }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg); backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.logo {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 4px;
}
.logo span { color: var(--teal); }
.logo-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); margin-left: 2px;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.nav-desktop { display: flex; align-items: center; gap: 24px; }
.nav-desktop a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  position: relative; transition: color var(--transition);
  padding: 8px 0;
}
.nav-desktop a::after {
  content: ''; position: absolute; bottom: 2px; left: 0;
  width: 0; height: 2px; background: var(--teal);
  transition: width var(--transition); border-radius: 2px;
}
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a:hover::after { width: 100%; }
.nav-desktop a.active { color: var(--teal); }
.nav-desktop a.active::after { width: 100%; }

.nav-desktop .btn-nav, .nav-mobile .btn-nav {
  padding: 10px 24px; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600;
  background: var(--teal); color: #fff; border: none; cursor: pointer;
  transition: all var(--transition); font-family: inherit; min-height: 44px;
}
.nav-desktop .btn-nav:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 8px 24px var(--teal-glow-strong); }
.nav-desktop .btn-nav::after { content: none; }
.nav-desktop .btn-nav:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.nav-mobile .btn-nav { align-self: flex-start; margin-top: 16px; font-size: 1rem; padding: 14px 32px; min-height: 48px; }

/* ===== HEADER ACTIONS (lang + theme grouped) ===== */
.header-actions {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.nav-desktop + .header-actions {
  margin-left: 12px; padding-left: 12px;
  border-left: 1px solid var(--border);
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher { position: relative; display: inline-flex; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text-secondary); cursor: pointer;
  font-family: inherit; font-size: 0.8rem; font-weight: 600;
  transition: all var(--transition); min-height: 36px;
}
.lang-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-glow); }
.lang-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.lang-btn i { transition: transform 0.3s ease; }
.lang-switcher.open .lang-btn i { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 100;
  min-width: 140px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all 0.2s ease; overflow: hidden;
}
.lang-switcher.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: block; padding: 10px 14px; font-size: 0.85rem;
  color: var(--text-secondary); transition: all var(--transition);
  cursor: pointer; text-decoration: none;
}
.lang-option:hover { background: var(--teal-glow); color: var(--teal); }
.lang-option.lang-active { color: var(--teal); font-weight: 600; background: var(--teal-glow); }
/* Mobile lang switcher */
.nav-mobile-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid var(--border); width: 100%;
}
.nav-mobile .lang-switcher { display: flex; flex-direction: row; gap: 2px; margin-top: 0; align-items: center; }
.nav-mobile .lang-switcher .lang-btn { display: none; }
.nav-mobile .lang-dropdown {
  position: static; opacity: 1; visibility: visible; transform: none;
  box-shadow: none; border: none; min-width: auto; background: transparent;
  display: flex; flex-direction: row; gap: 2px;
}
.nav-mobile .lang-option {
  padding: 6px 10px; font-size: 0.85rem; border-bottom: none;
  border-radius: var(--radius-sm);
}
@media (max-width: 768px) {
  .nav-desktop .lang-switcher,
  .nav-desktop + .header-actions .lang-switcher { display: none; }
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 12px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none; position: fixed; top: 75px; left: 0; right: 0; bottom: 80px;
  background: var(--bg); padding: 40px 24px; z-index: 999;
  flex-direction: column; gap: 24px;
  opacity: 0; transform: translateY(-10px);
  transition: all 0.3s ease;
}
.nav-mobile.open { display: flex; opacity: 1; transform: translateY(0); }
.nav-mobile a { font-size: 1.5rem; font-weight: 600; color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--border); min-height: 44px; display: flex; align-items: center; }
.nav-mobile .btn-nav { align-self: flex-start; margin-top: 16px; font-size: 1rem; padding: 14px 32px; min-height: 48px; }
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .nav-mobile.open { display: flex; }
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-full); font-size: 0.95rem; font-weight: 600;
  background: var(--teal); color: #fff; border: none; cursor: pointer;
  transition: all var(--transition); font-family: inherit; min-height: 48px;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 32px var(--teal-glow-strong); }
.btn-primary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.btn-primary i { transition: transform 0.3s ease; }
.btn-primary:hover i { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-full); font-size: 0.95rem; font-weight: 500;
  background: transparent; color: var(--text); border: 2px solid var(--border);
  cursor: pointer; transition: all var(--transition); font-family: inherit; min-height: 48px;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-secondary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 72px; position: relative; overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-bg-glow {
  position: absolute; top: -30%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--teal-glow-strong) 0%, transparent 70%);
  pointer-events: none; opacity: 0.6;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 2;
}
@media (max-width: 768px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; } }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--radius-full);
  background: var(--teal-glow); color: var(--teal);
  font-size: 0.85rem; font-weight: 500; margin-bottom: 24px;
  border: 1px solid rgba(11,124,114,0.2); min-height: 36px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse-dot 2s ease-in-out infinite; display: inline-block; }

.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero h1 .highlight { color: var(--teal); }
.hero p { font-size: 1.1rem; color: var(--text-secondary); max-width: 520px; line-height: 1.7; margin-bottom: 36px; }
@media (max-width: 768px) { .hero p { margin: 0 auto 36px; font-size: 0.95rem; } }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 768px) { .hero-actions { justify-content: center; } }

/* Hero visual (desktop) */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual-inner {
  width: 100%; max-width: 480px; aspect-ratio: 4/3;
  border-radius: var(--radius); background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.4;
}
.hero-visual-content { position: relative; z-index: 2; text-align: center; }
.hero-icon-box {
  width: 80px; height: 80px; margin: 0 auto 16px;
  background: var(--teal-glow); border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); position: relative;
}
.hero-icon-ring { position: absolute; inset: -6px; border-radius: 26px; border: 1.5px solid var(--teal); opacity: 0.25; animation: spin-slow 8s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.hero-visual-text { font-size: 1rem; color: var(--text-secondary); font-weight: 500; }
.hero-visual-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
@media (max-width: 768px) { .hero-visual { display: none; } }

/* ===== MOBILE HERO MICRO-ANIMATION (replaces visual box) ===== */
.hero-mobile-accent {
  display: none;
}
@media (max-width: 768px) {
  .hero-mobile-accent {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-top: 32px;
  }
  .hero-mobile-dot {
    width: 48px; height: 48px; border-radius: 16px;
    background: var(--teal-glow); display: flex; align-items: center;
    justify-content: center; color: var(--teal); position: relative;
    animation: float-accent 3s ease-in-out infinite;
  }
  .hero-mobile-dot:nth-child(2) { animation-delay: -1s; }
  .hero-mobile-dot:nth-child(3) { animation-delay: -2s; }
  @keyframes float-accent {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== TRUST / MARQUEE ===== */
.trust-section { padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.trust-label { text-align: center; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.marquee-wrap { overflow: hidden; mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); }
.marquee { display: flex; gap: 64px; width: max-content; }
.marquee-logo { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 700; color: var(--text-muted); letter-spacing: -0.02em; white-space: nowrap; opacity: 0.5; transition: opacity var(--transition); }
.marquee-logo img { height: 54px; width: auto; max-width: 200px; object-fit: contain; filter: grayscale(1); opacity: 0.55; transition: all var(--transition); }
.marquee-logo:hover { opacity: 1; color: var(--text); }
.marquee-logo:hover img { opacity: 1; filter: grayscale(0); }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.stat-card { text-align: center; padding: 28px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); }
.stat-icon { width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 10px; background: var(--teal-glow); display: flex; align-items: center; justify-content: center; color: var(--teal); }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--teal); line-height: 1.2; }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

/* ===== SERVICES CARDS ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (min-width: 769px) and (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card {
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-card); transition: all var(--transition);
  cursor: default; position: relative; overflow: hidden;
}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.service-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:active { transform: translateY(-2px); }
.service-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-glow); display: flex; align-items: center; justify-content: center; color: var(--teal); margin-bottom: 20px; flex-shrink: 0; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.service-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-size: 0.85rem; font-weight: 600; color: var(--teal); transition: all var(--transition); }
.service-link:hover { gap: 8px; }
.service-link i { transition: transform 0.3s ease; }
.service-link:hover i { transform: translateX(3px); }

/* ===== PROCESS ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 768px) { .process-grid { grid-template-columns: 1fr; gap: 20px; } }
.process-step { position: relative; }
.step-number { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--border); margin-bottom: 16px; transition: color var(--transition); }
.process-step:hover .step-number { color: var(--teal); }
.process-step h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.process-step h4 a { color: inherit; text-decoration: none; transition: color var(--transition); }
.process-step h4 a:hover { color: var(--teal); }
.process-step p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (min-width: 769px) and (max-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); transition: all var(--transition); }
.testimonial-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.testimonial-card:active { transform: translateY(-1px); }
.testimonial-quote { font-size: 2.2rem; line-height: 1; color: var(--teal); opacity: 0.25; margin-bottom: -4px; font-family: Georgia, serif; }
.testimonial-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.testimonial-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--teal-glow); display: flex; align-items: center; justify-content: center; color: var(--teal); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.testimonial-name { font-weight: 600; font-size: 0.85rem; }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 0; background: none; border: none; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; transition: color var(--transition); min-height: 48px; }
.faq-question:hover { color: var(--teal); }
.faq-question i { flex-shrink: 0; transition: transform var(--transition); color: var(--text-muted); }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--teal); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 0 20px; }
.faq-answer p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== CTA BANNER ===== */
.cta-banner { border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--border); padding: 60px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, var(--teal-glow-strong) 0%, transparent 50%); opacity: 0.4; animation: pulse-bg 8s ease-in-out infinite; }
@keyframes pulse-bg { 0%,100%{opacity:0.25;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.05)} }
.cta-banner * { position: relative; z-index: 2; }
.cta-banner h2 { font-size: clamp(1.4rem, 2.5vw, 2.2rem); font-weight: 700; margin-bottom: 12px; }
.cta-banner p { color: var(--text-secondary); margin-bottom: 28px; max-width: 480px; margin-inline: auto; }
@media (max-width: 768px) { .cta-banner { padding: 40px 24px; } }

/* ===== PAGE HEADERS ===== */
.page-header { padding: 140px 0 60px; text-align: center; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.page-header p { color: var(--text-secondary); max-width: 540px; margin: 12px auto 0; }
.breadcrumbs { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.8rem; margin-bottom: 12px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs-sep { color: var(--border); }
@media (max-width: 768px) { .page-header { padding: 120px 0 40px; } }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 30px; } }
.about-visual { width: 100%; aspect-ratio: 1; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; }
.about-initials { width: 100px; height: 100px; border-radius: 50%; background: var(--teal-glow); border: 2px solid var(--teal); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 800; color: var(--teal); margin-bottom: 16px; }
.about-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--teal); margin-bottom: 16px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-info-item { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--teal-glow); display: flex; align-items: center; justify-content: center; color: var(--teal); flex-shrink: 0; }

/* Trust signals above form */
.contact-trust { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; padding: 16px; border-radius: var(--radius-sm); background: var(--teal-glow); }
.contact-trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); }
.contact-trust-item strong { color: var(--teal); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select {
  padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color var(--transition); min-height: 48px; -webkit-appearance: none; appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* Honeypot — invisible to humans */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-error { font-size: 0.8rem; color: #dc2626; margin-top: 2px; display: none; }
.form-error.visible { display: block; }
.form-success { text-align: center; padding: 40px 20px; display: none; }
.form-success.visible { display: block; }
.form-success-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--teal-glow); display: flex; align-items: center; justify-content: center; color: var(--teal); }
.form-success h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--text-secondary); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn .spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
.btn.loading .spinner { display: inline-block; }
.btn.loading i { display: none; }
.btn.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== EXIT-INTENT POPUP ===== */
.exit-popup {
  position: fixed; inset: 0; z-index: 10002;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  padding: 24px;
}
.exit-popup.open { display: flex; }
.exit-popup-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 40px 32px;
  max-width: 400px; width: 100%; text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popup-in 0.3s ease;
}
@keyframes popup-in { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.exit-popup h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.exit-popup p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 24px; }
.exit-popup-actions { display: flex; flex-direction: column; gap: 10px; }
.exit-popup-actions .btn-primary, .exit-popup-actions .btn-secondary { justify-content: center; }
.exit-popup-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 8px;
  transition: color var(--transition);
}
.exit-popup-close:hover { color: var(--text); }
.exit-popup-card { position: relative; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } .footer { padding-bottom: 96px; } }
.footer-brand p { font-size: 0.9rem; color: var(--text-secondary); margin-top: 12px; max-width: 280px; }
.footer h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; color: var(--text-muted); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.9rem; color: var(--text-secondary); transition: color var(--transition); display: flex; align-items: center; gap: 6px; padding: 4px 0; min-height: 36px; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: var(--text-muted); }

/* ===== 404 ===== */
.page-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 72px; }
.page-404 h1 { font-size: clamp(5rem, 10vw, 8rem); font-weight: 800; color: var(--border); line-height: 1; margin-bottom: 8px; }
.page-404 h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.page-404 > .container p { color: var(--text-secondary); margin-bottom: 32px; }
.page-404-links { margin-bottom: 24px; }
.page-404-links p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.page-404-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.page-404-nav .btn-secondary { min-height: 44px; font-size: 0.9rem; padding: 10px 22px; }

/* ===== SKIP LINK ===== */
.skip-link { position: absolute; top: -100%; left: 8px; padding: 8px 16px; background: var(--teal); color: #fff; border-radius: var(--radius-sm); z-index: 10002; font-weight: 600; }
.skip-link:focus { top: 8px; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg-glow { animation: none; }
  .cta-banner::before { animation: none; }
}

/* ===== PRINT ===== */
@media print {
  .header, .theme-toggle, .floating-cta, .scroll-progress, #hero-canvas,
  .mobile-bottom-bar, .wa-desktop, .exit-popup, .page-transition { display: none !important; }
  .hero { min-height: auto; padding-top: 0; }
  .page-header { padding-top: 60px; }
  body { color: #000; background: #fff; padding-bottom: 0 !important; }
}
