@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════
   KALCO – Design Tokens
   ═══════════════════════════════════════════════ */
:root {
  --bg: 210 20% 98%;
  --fg: 213 40% 12%;
  --card: 0 0% 100%;
  --card-fg: 213 40% 12%;
  --primary: 213 55% 16%;
  --primary-fg: 180 20% 97%;
  --secondary: 175 55% 42%;
  --secondary-fg: 0 0% 100%;
  --muted: 210 20% 94%;
  --muted-fg: 213 15% 50%;
  --border: 210 20% 90%;
  --navy: 213 55% 16%;
  --navy-light: 213 45% 22%;
  --teal: 175 55% 42%;
  --teal-light: 175 45% 55%;
  --teal-glow: 175 60% 65%;

  --gradient-hero: linear-gradient(160deg, hsl(213 55% 10%), hsl(213 55% 18%), hsl(200 40% 20%));
  --gradient-teal: linear-gradient(135deg, hsl(175 55% 42%), hsl(175 45% 55%), hsl(170 50% 48%));
  --shadow-card: 0 4px 24px -4px hsl(213 55% 16% / 0.06);
  --shadow-card-hover: 0 20px 50px -12px hsl(175 55% 42% / 0.18);
  --shadow-glow: 0 0 40px -8px hsl(175 55% 42% / 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: hsl(var(--bg));
  color: hsl(var(--fg));
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.1; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; }

/* ═══════════════════════════════════════════════
   Utilities
   ═══════════════════════════════════════════════ */
.section-padding { padding: 5rem 1.5rem; }
@media (min-width: 768px) { .section-padding { padding: 7rem 3rem; } }
@media (min-width: 1024px) { .section-padding { padding: 7rem 6rem; } }

.glass-card {
  background: hsl(var(--card) / 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid hsl(var(--border) / 0.4);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  transition: all 0.5s ease;
}
.glass-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: hsl(var(--teal) / 0.2);
}

.gradient-text {
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-line {
  height: 3px;
  background: var(--gradient-teal);
  border-radius: 2px;
  box-shadow: var(--shadow-glow);
}

.btn-teal {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background-image: var(--gradient-teal);
  color: #fff; font-weight: 600;
  padding: 0.875rem 2rem; border-radius: 2rem;
  transition: all 0.3s; letter-spacing: 0.02em;
}
.btn-teal:hover { box-shadow: var(--shadow-glow); transform: translateY(-2px) scale(1.02); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; padding: 0.875rem 2rem; border-radius: 2rem;
  border: 2px solid hsl(var(--primary-fg) / 0.2);
  color: hsl(var(--primary-fg) / 0.8);
  transition: all 0.3s;
}
.btn-outline:hover {
  background: hsl(var(--primary-fg) / 0.1);
  color: hsl(var(--primary-fg));
  border-color: hsl(var(--primary-fg) / 0.4);
}

/* ═══════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════ */
@keyframes blob-morph {
  0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
  25% { border-radius: 58% 42% 30% 70% / 55% 45% 45% 55%; }
  50% { border-radius: 30% 70% 58% 42% / 45% 55% 55% 45%; }
  75% { border-radius: 70% 30% 42% 58% / 55% 55% 45% 45%; }
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(2deg); } }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.blob { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; animation: blob-morph 8s ease-in-out infinite; }
.float-slow { animation: float 6s ease-in-out infinite; }
.float-medium { animation: float 4s ease-in-out infinite; }
.fade-in-up { animation: fade-in-up 0.7s ease forwards; }
.fade-delay-1 { animation-delay: 0.15s; opacity: 0; }
.fade-delay-2 { animation-delay: 0.3s; opacity: 0; }

/* ═══════════════════════════════════════════════
   Scroll progress + cursor spotlight + reveal
   ═══════════════════════════════════════════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gradient-teal);
  z-index: 200; box-shadow: 0 0 10px hsl(var(--teal) / 0.6);
  transition: width 0.05s linear;
}

.cursor-spotlight {
  position: fixed; pointer-events: none; z-index: 1;
  width: 500px; height: 500px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, hsl(var(--teal) / 0.12), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  mix-blend-mode: screen;
}
.cursor-spotlight.visible { opacity: 1; }
@media (hover: none) { .cursor-spotlight { display: none; } }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .45s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .55s; }

/* ═══════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.5s;
}
.site-header.scrolled {
  background: hsl(var(--navy) / 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px hsl(var(--navy) / 0.25);
  border-bottom: 1px solid hsl(var(--primary-fg) / 0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
  padding: 0.75rem 1.5rem; height: 4.75rem;
}

.logo-link { display: inline-flex; align-items: center; }
.header-logo {
  height: 2.5rem; width: auto; display: block;
  filter: brightness(0) invert(1);
  transition: transform 0.3s;
}
.logo-link:hover .header-logo { transform: scale(1.05); }

.header-nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .header-nav { display: flex; } }

.header-nav a {
  position: relative;
  padding: 0.5rem 1rem; border-radius: 2rem;
  font-size: 0.875rem; font-weight: 500;
  color: hsl(var(--primary-fg) / 0.85);
  transition: all 0.3s;
}
.header-nav a:hover {
  color: hsl(var(--primary-fg));
  background: hsl(var(--primary-fg) / 0.1);
}
.header-nav a.active-section::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; background: var(--gradient-teal); border-radius: 2px;
}

.lang-switcher {
  display: none; align-items: center; gap: 4px;
  background: hsl(var(--primary-fg) / 0.08); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 4px;
}
@media (min-width: 768px) { .lang-switcher { display: flex; } }

.lang-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; overflow: hidden;
  transition: all 0.3s; opacity: 0.6;
  border: 2px solid transparent;
}
.lang-btn:hover { opacity: 1; transform: scale(1.08); }
.lang-btn.active { opacity: 1; border-color: hsl(var(--secondary)); box-shadow: 0 2px 8px hsl(var(--teal) / 0.4); }
.lang-btn svg { width: 100%; height: 100%; display: block; }

.mobile-toggle { display: block; color: hsl(var(--primary-fg)); background: none; border: none; }
@media (min-width: 768px) { .mobile-toggle { display: none; } }

.mobile-menu {
  display: none; flex-direction: column;
  background: hsl(var(--card) / 0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(var(--border));
  padding: 0.5rem 1.5rem 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.75rem 1rem; border-radius: 0.75rem;
  font-size: 0.875rem; font-weight: 500;
  color: hsl(var(--fg) / 0.7); transition: all 0.3s;
}
.mobile-menu a:hover { color: hsl(var(--secondary)); background: hsl(var(--secondary) / 0.05); }
.mobile-lang { display: flex; gap: 8px; justify-content: center; padding: 8px; margin-top: 0.5rem; }

/* ═══════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transform: scale(1.05);
}
.hero-overlay { position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-grid {
  position: absolute; inset: 0; opacity: 0.03;
  background-image:
    linear-gradient(hsl(var(--primary-fg)) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--primary-fg)) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-blob1 { position: absolute; top: 25%; right: 10%; width: 18rem; height: 18rem; background: hsl(var(--secondary) / 0.05); }
.hero-blob2 { position: absolute; bottom: 33%; left: 5%; width: 12rem; height: 12rem; background: hsl(var(--secondary) / 0.08); animation-delay: -3s; }
.hero-content { position: relative; z-index: 10; padding: 0 1.5rem; max-width: 1200px; width: 100%; margin: 0 auto; }
.hero-inner { max-width: 48rem; }

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700; color: hsl(var(--primary-fg));
  letter-spacing: -0.02em; line-height: 0.95;
  margin-bottom: 2rem;
}
.h1-services {
  display: block;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--secondary));
  margin-top: 1.5rem;
  line-height: 1.6;
  animation: fade-in-up 0.7s ease 0.15s forwards;
  opacity: 0;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: hsl(var(--primary-fg) / 0.6);
  max-width: 36rem; margin-bottom: 3rem; line-height: 1.7;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  animation: float 2s ease-in-out infinite;
  color: hsl(var(--primary-fg) / 0.3); font-size: 1.5rem;
}
.hero-curve { position: absolute; bottom: 0; left: 0; width: 100%; }

/* ═══════════════════════════════════════════════
   About
   ═══════════════════════════════════════════════ */
.about { position: relative; overflow: hidden; background: hsl(var(--bg)); }
.about-blob { position: absolute; top: -5rem; right: -10rem; width: 20rem; height: 20rem; background: hsl(var(--secondary) / 0.05); }
.about-grid { display: grid; gap: 4rem; align-items: start; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 2fr 3fr; } }

.section-label { color: hsl(var(--secondary)); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.section-label svg { width: 18px; height: 18px; }

.about h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; color: hsl(var(--fg)); }
.about-text { color: hsl(var(--muted-fg)); font-size: 1.125rem; line-height: 1.8; margin-bottom: 2.5rem; }

.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .about-cards { grid-template-columns: 1fr; } }

.about-card { padding: 1.75rem; position: relative; overflow: hidden; }
.about-card-accent {
  position: absolute; top: 0; right: 0;
  width: 6rem; height: 6rem;
  background: hsl(var(--secondary) / 0.05);
  border-bottom-left-radius: 3rem;
  transition: all 0.5s;
}
.about-card:hover .about-card-accent { width: 8rem; height: 8rem; }

.icon-box {
  width: 3rem; height: 3rem; border-radius: 1rem;
  background: hsl(var(--secondary) / 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; transition: transform 0.3s;
  color: hsl(var(--secondary));
}
.about-card:hover .icon-box { transform: scale(1.1); }

.about-card h3 { font-size: 1.125rem; font-weight: 700; color: hsl(var(--fg)); margin-bottom: 0.5rem; }
.about-card p { font-size: 0.875rem; color: hsl(var(--muted-fg)); line-height: 1.6; }

/* ═══════════════════════════════════════════════
   Services
   ═══════════════════════════════════════════════ */
.services-section { position: relative; overflow: hidden; }
.services-bg { background: hsl(var(--primary)); }
.services-blob { position: absolute; top: 5rem; right: 5%; width: 16rem; height: 16rem; background: hsl(var(--secondary) / 0.05); }

.services-header { text-align: center; margin-bottom: 4rem; }
.services-header h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; color: hsl(var(--primary-fg)); margin-bottom: 1.25rem; }
.services-header p { color: hsl(var(--primary-fg) / 0.5); font-size: 1.125rem; max-width: 40rem; margin: 0 auto; }

.services-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  position: relative; padding: 2rem; border-radius: 1rem;
  border: 1px solid hsl(var(--primary-fg) / 0.05);
  background: hsl(var(--primary-fg) / 0.05);
  transition: all 0.5s; cursor: pointer;
}
.service-card:hover, .service-card.active {
  background: hsl(var(--primary-fg) / 0.1);
  border-color: hsl(var(--secondary) / 0.3);
  transform: scale(1.02);
}

.service-accent {
  position: absolute; top: 0; left: 0;
  width: 3px; height: 3rem; border-radius: 0 2rem 2rem 0;
  transition: height 0.5s;
}
.service-card:hover .service-accent, .service-card.active .service-accent { height: 100%; }
.accent-teal { background: linear-gradient(to bottom, hsl(var(--secondary)), hsl(var(--teal-light))); }
.accent-navy { background: linear-gradient(to bottom, hsl(var(--navy)), hsl(var(--navy-light))); }
.accent-glow { background: linear-gradient(to bottom, hsl(var(--teal-light)), hsl(var(--teal-glow))); }

.service-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  background: hsl(var(--secondary) / 0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; transition: all 0.3s;
  color: hsl(var(--secondary));
}
.service-card:hover .service-icon { background: hsl(var(--secondary) / 0.25); transform: scale(1.1); }

.service-card h3 { font-size: 1.25rem; font-weight: 700; color: hsl(var(--primary-fg)); margin-bottom: 0.5rem; }
.service-card .service-short { font-size: 0.875rem; color: hsl(var(--primary-fg) / 0.5); margin-bottom: 1rem; }

.service-details {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.5s, opacity 0.5s;
}
.service-card:hover .service-details, .service-card.active .service-details { max-height: 500px; opacity: 1; }
.service-details-inner { border-top: 1px solid hsl(var(--primary-fg) / 0.1); padding-top: 1.25rem; margin-top: 0.75rem; }

.detail-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.detail-item svg { flex-shrink: 0; margin-top: 2px; color: hsl(var(--secondary)); width: 14px; height: 14px; }
.detail-item h4 { font-size: 0.875rem; font-weight: 600; color: hsl(var(--primary-fg)); }
.detail-item p { font-size: 0.75rem; color: hsl(var(--primary-fg) / 0.5); line-height: 1.5; }

/* ═══════════════════════════════════════════════
   Compliance
   ═══════════════════════════════════════════════ */
.compliance { position: relative; overflow: hidden; background: hsl(var(--bg)); }
.compliance-grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .compliance-grid { grid-template-columns: 1fr 1fr; } }

.compliance-visual { position: relative; max-width: 28rem; margin: 0 auto; aspect-ratio: 1; }
.compliance-ring {
  position: absolute; inset: 0; border-radius: 3rem;
  border: 2px dashed hsl(var(--secondary) / 0.2);
  transform: rotate(6deg);
}
.compliance-card {
  position: absolute; inset: 1rem; border-radius: 2.5rem;
  background: linear-gradient(to bottom right, hsl(var(--primary)), hsl(var(--navy-light)));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.compliance-card-glow {
  position: absolute; inset: 0; opacity: 0.1;
  background: radial-gradient(circle at 30% 30%, hsl(var(--teal)), transparent 60%);
}
.compliance-card-content { text-align: center; position: relative; z-index: 1; }
.compliance-card-content svg { margin: 0 auto 1rem; color: hsl(var(--secondary)); width: 64px; height: 64px; }
.compliance-card-content h3 { font-size: 1.75rem; font-weight: 700; color: hsl(var(--primary-fg)); }

.compliance-badge {
  position: absolute; bottom: -1rem; right: -1rem;
  padding: 0.75rem 1.25rem; display: flex; align-items: center; gap: 0.5rem;
}
.compliance-badge svg { color: hsl(var(--secondary)); width: 20px; height: 20px; }
.compliance-badge span { font-size: 0.875rem; font-weight: 600; color: hsl(var(--fg)); }

.compliance h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: hsl(var(--fg)); margin-bottom: 1.25rem; }
.compliance-desc { color: hsl(var(--muted-fg)); font-size: 1.125rem; line-height: 1.7; margin-bottom: 2.5rem; }
.compliance-items { display: flex; flex-direction: column; gap: 1rem; }
.compliance-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem; border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card) / 0.5);
  transition: all 0.3s;
}
.compliance-item:hover { background: hsl(var(--secondary) / 0.05); border-color: hsl(var(--secondary) / 0.2); }
.compliance-item .icon-box { flex-shrink: 0; }
.compliance-item p { font-size: 0.875rem; color: hsl(var(--muted-fg)); line-height: 1.6; }

/* ═══════════════════════════════════════════════
   Differentials (DNA KALCO)
   ═══════════════════════════════════════════════ */
.differentials { position: relative; overflow: hidden; }
.diff-bg { background: hsl(var(--muted)); }

.diff-header { text-align: center; margin-bottom: 4rem; }
.diff-header h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; color: hsl(var(--fg)); margin-bottom: 1.25rem; }
.diff-header p { color: hsl(var(--muted-fg)); font-size: 1.125rem; }

.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 1024px) { .diff-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.diff-card { padding: 1.5rem; position: relative; overflow: hidden; }
@media (min-width: 768px) { .diff-card { padding: 2rem; } }

.diff-letter {
  position: absolute; bottom: -0.5rem; right: -0.25rem;
  font-size: 8rem; font-weight: 900; line-height: 1;
  color: hsl(var(--secondary) / 0.04);
  user-select: none; transition: color 0.5s;
  font-family: 'Space Grotesk', sans-serif;
}
.diff-card:hover .diff-letter { color: hsl(var(--secondary) / 0.08); }

.diff-icon-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.diff-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 0.75rem;
  background: hsl(var(--secondary) / 0.1);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  font-weight: 700; font-size: 0.875rem; color: hsl(var(--secondary));
}
.diff-card:hover .diff-icon { background: hsl(var(--secondary)); color: #fff; }

.diff-check { color: hsl(var(--secondary) / 0.5); transition: color 0.3s; }
.diff-card:hover .diff-check { color: hsl(var(--secondary)); }

.diff-card h3 { font-size: 1.125rem; font-weight: 700; color: hsl(var(--fg)); margin-bottom: 0.5rem; }
.diff-card p { font-size: 0.875rem; color: hsl(var(--muted-fg)); line-height: 1.6; }

/* ═══════════════════════════════════════════════
   Contact
   ═══════════════════════════════════════════════ */
.contact { position: relative; overflow: hidden; background: hsl(var(--bg)); }
.contact-blob { position: absolute; bottom: -5rem; left: -5rem; width: 20rem; height: 20rem; background: hsl(var(--secondary) / 0.05); }

.contact-header { text-align: center; margin-bottom: 4rem; }
.contact-header h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; color: hsl(var(--fg)); margin-bottom: 1.25rem; }
.contact-header p { color: hsl(var(--muted-fg)); font-size: 1.125rem; }

.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 3fr 2fr; } }

.contact-form { padding: 2rem; }
@media (min-width: 768px) { .contact-form { padding: 2.5rem; } }

.form-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.form-header svg { color: hsl(var(--secondary)); width: 20px; height: 20px; }
.form-header span { font-weight: 600; color: hsl(var(--fg)); }

.form-row { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }

.form-group label {
  display: block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: hsl(var(--muted-fg)); margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 0.875rem 1rem;
  border-radius: 0.75rem; border: 1px solid hsl(var(--border));
  background: hsl(var(--bg)); color: hsl(var(--fg));
  font-size: 0.875rem; transition: all 0.3s; outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: hsl(var(--secondary) / 0.4);
  box-shadow: 0 0 0 3px hsl(var(--secondary) / 0.1);
}
.form-group textarea { resize: none; }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-map {
  width: 100%; height: 14rem; border-radius: 1rem; overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.5);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.2) contrast(1.1) brightness(0.95); }

.contact-details { padding: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; }
.contact-detail + .contact-detail { margin-top: 1.25rem; }
.contact-divider { height: 1px; background: hsl(var(--border)); margin: 1.25rem 0; }

.contact-detail .icon-box { flex-shrink: 0; }
.contact-detail p { font-size: 0.875rem; color: hsl(var(--muted-fg)); }
.contact-detail .detail-label { font-weight: 600; color: hsl(var(--fg)); margin-bottom: 0.125rem; }
.contact-detail .detail-accent { font-size: 0.75rem; font-weight: 500; color: hsl(var(--secondary)); margin-top: 0.25rem; }

.contact-link { font-size: 0.875rem; color: hsl(var(--muted-fg)); transition: color 0.3s; }
.contact-link:hover { color: hsl(var(--secondary)); }

/* ═══════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════ */
.site-footer { position: relative; overflow: hidden; }
.footer-bg { background: hsl(var(--primary)); padding: 4rem 1.5rem 2.5rem; }

.footer-grid { display: grid; gap: 2.5rem; align-items: start; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-logo { height: 3.5rem; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-cert { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.footer-cert svg { color: hsl(var(--secondary)); width: 16px; height: 16px; }
.footer-cert span { color: hsl(var(--primary-fg) / 0.7); font-size: 0.75rem; font-weight: 500; }

.footer-heading { color: hsl(var(--primary-fg) / 0.4); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: hsl(var(--primary-fg) / 0.6); font-size: 0.875rem; transition: color 0.3s; }
.footer-links a:hover { color: hsl(var(--secondary)); }

.footer-social { display: flex; gap: 0.75rem; }
.social-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
  background: hsl(var(--primary-fg) / 0.05);
  border: 1px solid hsl(var(--primary-fg) / 0.1);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; color: hsl(var(--primary-fg) / 0.6);
}
.social-btn:hover { background: hsl(var(--secondary) / 0.2); border-color: hsl(var(--secondary) / 0.3); }

.footer-bottom {
  border-top: 1px solid hsl(var(--primary-fg) / 0.1);
  padding-top: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { color: hsl(var(--primary-fg) / 0.3); font-size: 0.75rem; }

/* SVG section curves */
.curve-svg { display: block; width: 100%; }
.curve-svg.flip { margin-top: -1px; }
.curve-svg.no-flip { margin-bottom: -1px; }

/* ═══════════════════════════════════════════════
   Stats strip
   ═══════════════════════════════════════════════ */
.stats-strip {
  position: relative;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--navy-light)) 100%);
  padding: 3.5rem 1.5rem;
  overflow: hidden;
}
.stats-strip::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, hsl(var(--teal) / 0.18), transparent 40%),
                    radial-gradient(circle at 80% 50%, hsl(var(--teal) / 0.12), transparent 40%);
}
.stats-grid {
  position: relative; display: grid;
  grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; text-align: center;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-item { position: relative; }
.stat-item + .stat-item::before {
  content: ""; position: absolute; left: -0.5rem; top: 20%; bottom: 20%;
  width: 1px; background: hsl(var(--primary-fg) / 0.15);
}
@media (max-width: 767px) { .stat-item + .stat-item::before { display: none; } }
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700; line-height: 1;
  background: var(--gradient-teal);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px hsl(var(--teal) / 0.3);
}
.stat-label {
  color: hsl(var(--primary-fg) / 0.65);
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}

/* ═══════════════════════════════════════════════
   Service card spotlight & enhancements
   ═══════════════════════════════════════════════ */
.service-card {
  --mx: 50%; --my: 50%;
  background:
    radial-gradient(400px circle at var(--mx) var(--my), hsl(var(--teal) / 0.18), transparent 50%),
    hsl(var(--primary-fg) / 0.05);
}
.service-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 1rem; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx) var(--my), hsl(var(--teal) / 0.35), transparent 60%);
  opacity: 0; transition: opacity 0.4s; -webkit-mask: linear-gradient(#fff,#fff) content-box, linear-gradient(#fff,#fff);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.service-card:hover::after { opacity: 1; }

/* Magnetic button */
.btn-teal, .btn-outline { will-change: transform; }

/* DNA card hover lift */
.diff-card { transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s; }
.diff-card:hover { transform: translateY(-6px) rotate(-0.5deg); }

/* About card tilt feel */
.about-card { transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }

/* Hero parallax helper */
.hero-bg { transition: transform 0.1s linear; }

/* Smooth fade for stat numbers */
.stat-number.counted { animation: pop 0.6s ease; }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* CTA inside service card (tech highlight) */
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.25rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: hsl(var(--secondary));
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: .3s;
}
.service-cta:hover { border-bottom-color: hsl(var(--secondary)); transform: translateX(2px); }
