/*
 * ════════════════════════════════════════════════════════════════════
 *  MARKET AFRICA — STYLESHEET
 *
 *  All colours driven by CSS custom properties.
 *  To retheme the site, edit /config/theme.config.php only.
 *
 *  Tricks used:
 *    • CSS custom properties (theming)           • Glassmorphism cards
 *    • Animated gradient text                    • Gradient borders via mask
 *    • Floating orb animations                   • Parallax via JS hook
 *    • Intersection Observer reveal              • Custom scrollbar
 *    • Floating WhatsApp ring pulse              • Frosted glass nav
 *    • Floating label inputs                     • Counter animation hook
 *    • Grid overlay texture                      • Clip-path dividers
 *    • CSS scroll-driven nav state               • Staggered reveal delays
 * ════════════════════════════════════════════════════════════════════
 */

/* ── Google Fonts ────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

/* ── Custom Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-alt));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-alt); }

/* ── Selection colour ────────────────────────────────────────────── */
::selection { background: rgba(74,158,255,0.3); color: #fff; }

/* ── Typography ──────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ── Gradient text ───────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Animated gradient text (hero headline) ──────────────────────── */
.gradient-text-anim {
  background: linear-gradient(
    270deg,
    var(--accent)     0%,
    var(--accent-alt) 33%,
    #a78bfa           66%,
    var(--accent)     100%
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 6s ease infinite;
}

@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Utilities ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 540px;
  line-height: 1.75;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
  color: #fff;
  box-shadow: 0 0 28px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 40px var(--glow-strong);
}

.btn-outline {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--glow);
}

/* ── Reveal animations (Intersection Observer) ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity  0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }


/* ════════════════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 0.9rem 0;
  background: rgba(10, 14, 39, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 10px var(--glow));
  transition: filter 0.3s ease;
}

.nav-logo:hover img { filter: drop-shadow(0 0 18px var(--glow-strong)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile fullscreen menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 39, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  z-index: 1001;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-mobile a:hover { color: var(--text); transform: translateX(8px); }
.nav-mobile .btn { font-size: 1rem; }


/* ════════════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}

/* Multi-layered animated background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 65% 25%, rgba(74,158,255,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 20% 80%, rgba(0,212,255,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 85%, rgba(167,139,250,0.07) 0%, transparent 70%),
    var(--bg);
  animation: heroBgBreath 10s ease-in-out infinite alternate;
}

@keyframes heroBgBreath {
  0%   { filter: brightness(1);   }
  100% { filter: brightness(1.08); }
}

/* Floating glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
}

.hero-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(74,158,255,0.14), transparent 70%);
  top: -250px; right: -150px;
  animation: floatOrb1 14s ease-in-out infinite;
}

.hero-orb-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(0,212,255,0.1), transparent 70%);
  bottom: -100px; left: -100px;
  animation: floatOrb2 18s ease-in-out infinite;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(167,139,250,0.08), transparent 70%);
  top: 40%; left: 40%;
  animation: floatOrb3 22s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0,0)    scale(1); }
  33%       { transform: translate(-40px,60px) scale(1.08); }
  66%       { transform: translate(30px,-30px) scale(0.95); }
}
@keyframes floatOrb2 {
  0%, 100% { transform: translate(0,0)    scale(1); }
  50%       { transform: translate(50px,-40px) scale(1.1); }
}
@keyframes floatOrb3 {
  0%, 100% { transform: translate(0,0)    scale(1); }
  50%       { transform: translate(-60px, 40px) scale(1.15); }
}

/* Subtle dot-grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 720px;
}

/* Pill badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 1.1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--text-sub);
  line-height: 1.78;
  margin-bottom: 2.8rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Animated scroll caret */
.scroll-caret {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
  text-decoration: none;
}

.scroll-caret svg { stroke: var(--text-muted); }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}


/* ════════════════════════════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════════════════════════════ */
.services {
  padding: 9rem 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 4.5rem;
}

.service-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.5rem;
  cursor: default;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    background  0.4s ease;
}

/* Animated gradient border on hover using mask trick */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt), transparent 60%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover::before { opacity: 1; }

/* Radial glow on hover (bottom-right) */
.service-card::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  bottom: -110px; right: -110px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover::after { opacity: 1; }

.service-card:hover {
  background: rgba(255,255,255,0.065);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 40px var(--glow);
}

.service-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74,158,255,0.18), rgba(0,212,255,0.10));
  border: 1px solid rgba(74,158,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  box-shadow: 0 0 24px var(--glow);
  border-color: transparent;
}

.service-icon svg {
  width: 22px; height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.service-card:hover .service-icon svg { stroke: #fff; }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card p {
  color: var(--text-sub);
  font-size: 0.895rem;
  line-height: 1.68;
}


/* ════════════════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════════════════ */
.about {
  padding: 9rem 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

/* Decorative diagonal divider top */
.about::before {
  content: '';
  position: absolute;
  top: -60px; left: 0; right: 0;
  height: 120px;
  background: var(--bg-surface);
  clip-path: polygon(0 60px, 100% 0, 100% 120px, 0 120px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 7rem;
  align-items: center;
}

/* Floating animated logo + ring pulses */
.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-wrap img {
  width: 100%;
  max-width: 340px;
  filter: drop-shadow(0 0 44px rgba(74,158,255,0.32));
  animation: logoFloat 7s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-16px); }
}

/* Ring 1 */
.about-logo-wrap::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(74,158,255,0.18);
  animation: ringPulse 4s ease-out infinite;
}

/* Ring 2 */
.about-logo-wrap::after {
  content: '';
  position: absolute;
  width: 330px; height: 330px;
  border-radius: 50%;
  border: 1px solid rgba(74,158,255,0.12);
  animation: ringPulse 4s ease-out infinite 1.2s;
}

@keyframes ringPulse {
  0%   { transform: scale(0.92); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

.about-content .section-label { margin-bottom: 0.6rem; }

.about-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  margin-bottom: 1.4rem;
}

.about-content p {
  color: var(--text-sub);
  line-height: 1.82;
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
}

.about-list {
  list-style: none;
  margin: 1.8rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text-sub);
  font-size: 0.95rem;
}

.about-list li::before {
  content: '';
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  box-shadow: 0 0 9px var(--accent);
}


/* ════════════════════════════════════════════════════════════════════
   STATS
════════════════════════════════════════════════════════════════════ */
.stats {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  opacity: 0.03;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  transition: background 0.3s ease;
}

.stat-item:hover { background: rgba(255,255,255,0.025); }

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  height: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ════════════════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════════════════ */
.contact {
  padding: 9rem 0;
  position: relative;
  overflow: hidden;
}

/* Diagonal divider from about */
.contact::before {
  content: '';
  position: absolute;
  top: -60px; left: 0; right: 0;
  height: 120px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 60px, 100% 120px, 0 120px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  margin-bottom: 1.1rem;
}

.contact-info > p {
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-size: 0.98rem;
}

.contact-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-features li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.contact-features li svg {
  flex-shrink: 0;
  width: 17px; height: 17px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Contact form glass card */
.contact-form-wrap {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 3rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

/* Accent glow top-right */
.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

/* ── Floating label form groups ──────────────────────────────────── */
.form-group {
  position: relative;
  margin-bottom: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1.1rem 1.2rem 0.55rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 1.6rem;
}

.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-surface); color: var(--text); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: rgba(74,158,255,0.06);
  box-shadow: 0 0 0 3px rgba(74,158,255,0.12);
}

/* Floating label */
.form-group label {
  position: absolute;
  left: 1.2rem;
  top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  pointer-events: none;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    font-size  0.25s ease,
    color      0.25s ease;
  transform-origin: left center;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select.has-value ~ label {
  transform: translateY(-0.65rem) scale(0.78);
  color: var(--accent);
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 1.05rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #fff;
  border: none;
  border-radius: 13px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  letter-spacing: 0.02em;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px var(--glow-strong);
}

.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Loading spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Form feedback */
#form-feedback {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 500;
  display: none;
  animation: feedbackIn 0.3s ease;
}

@keyframes feedbackIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

#form-feedback.success {
  display: block;
  background: rgba(37, 211, 102, 0.10);
  border: 1px solid rgba(37, 211, 102, 0.28);
  color: #25d366;
}

#form-feedback.error {
  display: block;
  background: rgba(231, 76, 60, 0.10);
  border: 1px solid rgba(231, 76, 60, 0.28);
  color: #e74c3c;
}

.form-note {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.6;
}

.form-note a { color: var(--accent); text-decoration: none; }
.form-note a:hover { text-decoration: underline; }


/* ════════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.72;
  margin-top: 1.1rem;
  max-width: 290px;
}

.footer-brand .footer-logo { height: 42px; width: auto; }

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.72rem; }

.footer-col ul li a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.25s ease, padding-left 0.25s ease;
  display: inline-block;
}

.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { color: var(--text-muted); font-size: 0.80rem; }

.footer-legal-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }

.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.80rem;
  transition: color 0.25s ease;
}

.footer-legal-links a:hover { color: var(--accent); }


/* ════════════════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
════════════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 5px 22px rgba(37, 211, 102, 0.5);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  animation: waFloat 4s ease-in-out infinite;
}

.wa-float:hover {
  transform: scale(1.12) translateY(-4px) !important;
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.65);
  animation: none;
}

.wa-float svg { width: 34px; height: 34px; fill: #fff; position: relative; z-index: 2; }

/* Double ring pulse */
.wa-float::before,
.wa-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: waPulse 2.6s ease-out infinite;
}
.wa-float::after { animation-delay: 0.85s; }

@keyframes waPulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes waFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}


/* ════════════════════════════════════════════════════════════════════
   COOKIE BANNER
════════════════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  max-width: 440px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 1.6rem 1.8rem;
  z-index: 10000;
  backdrop-filter: blur(22px) saturate(200%);
  -webkit-backdrop-filter: blur(22px) saturate(200%);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
}

.cookie-banner.show { transform: translateY(0); opacity: 1; }

.cookie-banner p {
  font-size: 0.855rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.cookie-banner a { color: var(--accent); text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }

.cookie-actions { display: flex; gap: 0.7rem; }

.cookie-accept {
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.855rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cookie-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px var(--glow);
}

.cookie-decline {
  padding: 0.6rem 1.4rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.855rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cookie-decline:hover { color: var(--text); border-color: var(--text-muted); }


/* ════════════════════════════════════════════════════════════════════
   LEGAL / STANDALONE PAGES
════════════════════════════════════════════════════════════════════ */
.legal-page { padding: 9rem 0 6rem; min-height: 100vh; }

.legal-hero {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.6rem; }
.legal-hero p  { color: var(--text-muted); font-size: 0.88rem; }

.legal-body {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.82;
}

.legal-body h2 {
  font-size: 1.35rem;
  color: var(--accent);
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-body h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
  font-weight: 600;
}

.legal-body p  { margin-bottom: 0.9rem; }

.legal-body ul {
  margin: 0.8rem 0 1.4rem 1.4rem;
}

.legal-body ul li { margin-bottom: 0.4rem; }

.legal-body a { color: var(--accent); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }

.legal-box {
  background: rgba(74,158,255,0.07);
  border: 1px solid rgba(74,158,255,0.22);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  margin: 1.6rem 0;
  font-size: 0.90rem;
}

.legal-box strong { color: var(--text); }


/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 1fr; gap: 4rem; }
  .about-visual { order: -1; }
  .about-logo-wrap::before { width: 300px; height: 300px; }
  .about-logo-wrap::after  { width: 230px; height: 230px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after,
  .stat-item:nth-child(4)::after { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cookie-banner { left: 1rem; right: 1rem; max-width: none; bottom: 1rem; }
  .wa-float { bottom: 1.5rem; right: 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item::after { display: none !important; }

  .contact-form-wrap { padding: 1.8rem 1.2rem; }
}
