/* ===============================================================
   KIBUSH CONSTRUTORA — Premium Landing Page
   Design System: Geraldino (Navy #001221 · Gold #CDA860 · Montserrat)
   Frontend Skills Applied: frontend-design · landing-page-creation ·
   web-performance · vercel-web-guidelines
   =============================================================== */

:root {
  /* ── Core Brand Colors ── */
  --color-navy: #001221;
  --color-gold: #CDA860;
  --color-amber: #FBDA73;
  --color-dark: #242424;
  --color-white: #FFFFFF;
  --color-cream: #F8F4EE;
  --color-gray: #888888;

  /* ── Derived / Transparent ── */
  --color-gold-08: rgba(205, 168, 96, 0.08);
  --color-gold-15: rgba(205, 168, 96, 0.15);
  --color-gold-30: rgba(205, 168, 96, 0.30);
  --color-gold-50: rgba(205, 168, 96, 0.50);
  --color-navy-95: rgba(0, 18, 33, 0.95);
  --color-navy-70: rgba(0, 18, 33, 0.70);

  /* ── Spacing Scale (8px base) ── */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 80px;
  --sp-8: 96px;
  --sp-9: 128px;
  --sp-10: 160px;

  /* ── Section Padding ── */
  --section-py: clamp(80px, 10vw, 140px);

  /* ── Typography ── */
  --font-body: 'Open Sans', sans-serif;
  --font-heading: 'Cormorant Garamond', serif;
  --leading-tight: 1.05;
  --leading-snug: 1.2;
  --leading-normal: 1.65;

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.25s;
  --dur-base: 0.40s;
  --dur-slow: 0.75s;

  /* ── Radii / Shadows ── */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.14);
  --shadow-lift: 0 24px 72px rgba(0, 0, 0, 0.18);
}

/* ────────────────────────────────
   RESET & BASE (web-performance)
   ──────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* web-performance: avoid FOIT */
  font-display: swap;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-dark);
  background-color: var(--color-navy);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── vercel-guidelines: focus rings ── */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ────────────────────────────────
   TYPOGRAPHY SCALE
   ──────────────────────────────── */
h1,
h2,
h3 {
  font-family: var(--font-heading);
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 600;
  line-height: var(--leading-tight);
  margin-bottom: var(--sp-3);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: var(--leading-snug);
  margin-bottom: var(--sp-3);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-2);
}

p {
  font-size: 1rem;
  line-height: var(--leading-normal);
  color: inherit;
}

/* ────────────────────────────────
   UTILITIES
   ──────────────────────────────── */
.text-gold {
  color: var(--color-gold);
}

.text-white {
  color: var(--color-white);
}

.text-muted {
  color: rgba(255, 255, 255, 0.55);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

/* Eyebrow label */
.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
  color: var(--color-gold);
}

/* Pill badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-gold-15);
  border: 1px solid var(--color-gold-30);
  color: var(--color-gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  margin-bottom: var(--sp-2);
}

/* Gold accent divider */
.divider-gold {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-amber));
  margin: var(--sp-3) 0 var(--sp-5);
}

.divider-gold.center {
  margin-left: auto;
  margin-right: auto;
}

/* Sections default padding */
section {
  padding: var(--section-py) 0;
}

/* Background tokens */
.bg-navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.bg-cream {
  background-color: var(--color-cream);
  color: var(--color-dark);
}

/* ────────────────────────────────
   BUTTONS (vercel: min 44px touch)
   ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  /* vercel: touch target ≥44px */
  padding: 14px 40px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
}

/* Shimmer micro-interaction */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent 35%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out);
}

.btn:hover::after {
  transform: translateX(120%);
}

/* Solid CTA */
.btn-solid {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}

.btn-solid:hover {
  background: var(--color-amber);
  border-color: var(--color-amber);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(205, 168, 96, 0.35);
}

.btn-solid:active {
  transform: translateY(0);
}

/* Outline ghost */
.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold-50);
}

.btn-outline:hover {
  background: var(--color-gold-15);
  border-color: var(--color-gold);
  box-shadow: 0 8px 30px rgba(205, 168, 96, 0.2);
}

/* ────────────────────────────────
   HEADER
   ──────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 22px 0;
  z-index: 1000;
  transition: background var(--dur-base) var(--ease-out),
    padding var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.site-header.scrolled {
  background: rgba(0, 18, 33, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(205, 168, 96, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.3);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}

.logo-wrap img {
  height: 44px;
  width: auto;
  transition: height var(--dur-base) var(--ease-out);
}

.site-header.scrolled .logo-wrap img {
  height: 34px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--dur-base) var(--ease-out);
}

.nav-link:hover {
  color: var(--color-gold);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  min-height: 40px;
  padding: 10px 22px;
  font-size: 0.75rem;
}

/* ────────────────────────────────
   HERO
   ──────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  /* svh = safe viewport height (mobile notch-aware) */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('assets/hero_img.jpg') no-repeat center center / cover;
  transform: scale(1.04);
  transition: transform 10s linear;
  will-change: transform;
}

.hero:hover .hero__bg {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg,
      rgba(0, 18, 33, 0.93) 0%,
      rgba(0, 18, 33, 0.72) 55%,
      rgba(0, 18, 33, 0.45) 100%);
}

/* Atmospheric grain texture (frontend-design: depth) */
.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

/* Gold accent bottom line */
.hero__accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--color-gold) 30%,
      var(--color-amber) 50%,
      var(--color-gold) 70%,
      transparent 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  /* header clearance */
  padding-bottom: var(--sp-10);
}

.hero__content {
  max-width: 680px;
  color: var(--color-white);
}

/* Staggered entrance animations (frontend-design: one orchestrated load) */
.hero__label {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.25s forwards;
}

.hero__heading {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.45s forwards;
}

.hero__desc {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.65s forwards;
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.hero__cta {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.85s forwards;
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* Typewriter cursor animation */

.typewriter-cursor {
  opacity: 1;
  animation: blink-cursor 0.75s step-end infinite;
  font-weight: 300;
  margin-left: 2px;
}

@keyframes blink-cursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-cue__line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: pulse-line 2s var(--ease-out) infinite;
}

/* ────────────────────────────────
   AUTHORITY / STATS
   ──────────────────────────────── */
.authority {
  background: var(--color-cream);
}

.authority__intro {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.authority__body {
  max-width: 660px;
  margin: 0 auto var(--sp-8);
  color: #555;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.8;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.stat-card {
  background: var(--color-white);
  padding: var(--sp-6) var(--sp-4);
  border-bottom: 3px solid var(--color-gold);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.stat-card__number {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: var(--sp-1);
}

.stat-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-gray);
}

/* Number + affix layout */
.stat-card__number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
}

.stat-affix {
  color: var(--color-gold);
  font-size: 0.65em;
  /* slightly smaller than the number */
  font-weight: 800;
  margin-left: 2px;
  line-height: 1;
}


/* ────────────────────────────────
   METHODOLOGY
   ──────────────────────────────── */
.methodology {
  background: var(--color-navy);
  position: relative;
  overflow: hidden;
}

/* Radial glow (frontend-design: atmospheric depth) */
.methodology::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 55%;
  height: 120%;
  background: radial-gradient(ellipse, var(--color-gold-08) 0%, transparent 70%);
  pointer-events: none;
}

.methodology__intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--sp-8);
  position: relative;
  z-index: 1;
}

.methodology__intro p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.7;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  position: relative;
  z-index: 1;
}

.method-card {
  padding: var(--sp-6) var(--sp-5);
  border: 1px solid rgba(205, 168, 96, 0.12);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  transition: border-color var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.method-card:hover {
  border-color: var(--color-gold-30);
  background: var(--color-gold-08);
  transform: translateY(-6px);
}

.method-card__num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-gold-15);
  line-height: 1;
  margin-bottom: var(--sp-2);
  font-variant-numeric: tabular-nums;
}

.method-card h3 {
  color: var(--color-gold);
  font-size: 1.15rem;
  margin-bottom: var(--sp-2);
}

.method-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.75;
}

/* ────────────────────────────────
   SHOWCASE (About)
   ──────────────────────────────── */
.showcase {
  background: var(--color-cream);
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

/* Offset border frame (frontend-design: grid-breaking asymmetry) */
.showcase__img-wrap {
  position: relative;
}

.showcase__img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.showcase__img-wrap::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-gold-30);
  pointer-events: none;
  z-index: 0;
  transition: border-color var(--dur-base) var(--ease-out);
}

.showcase__img-wrap:hover::after {
  border-color: var(--color-gold-50);
}

.showcase__content {
  padding: var(--sp-2) 0;
}

.showcase__content p {
  color: #555;
  font-size: 1.08rem;
  font-weight: 300;
  margin-bottom: var(--sp-3);
  line-height: 1.8;
}

.showcase__content p strong {
  color: var(--color-navy);
  font-weight: 600;
}

.feature-list {
  list-style: none;
  margin-top: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.6;
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid rgba(0, 18, 33, 0.07);
}

.feature-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-list li::before {
  content: '◆';
  color: var(--color-gold);
  font-size: 0.55rem;
  flex-shrink: 0;
  margin-top: 5px;
}

/* ────────────────────────────────
   SOCIAL PROOF
   ──────────────────────────────── */
.social-proof {
  background: var(--color-navy);
  position: relative;
  overflow: hidden;
}

.social-proof::before {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -15%;
  width: 55%;
  height: 100%;
  background: radial-gradient(ellipse, var(--color-gold-08) 0%, transparent 70%);
  pointer-events: none;
}

.social-proof__intro {
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: var(--sp-8);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(205, 168, 96, 0.15);
  padding: var(--sp-6) var(--sp-5);
  position: relative;
  transition: border-color var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.testimonial-card:hover {
  border-color: var(--color-gold-30);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
}

.testimonial-card__quote {
  font-size: 2.8rem;
  color: var(--color-gold-30);
  line-height: 1;
  margin-bottom: var(--sp-3);
  font-family: var(--font-heading);
  font-style: italic;
}

.testimonial-card__text {
  font-size: 1.02rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--sp-5);
  line-height: 1.75;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.testimonial-card__role {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ────────────────────────────────
   CONTACT / LEAD CAPTURE
   ──────────────────────────────── */
.contact {
  background: var(--color-navy);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-gold-08) 0%, transparent 60%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact__text h2 {
  color: var(--color-white);
}

.contact__text p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
  margin-bottom: var(--sp-5);
  line-height: 1.7;
}

.contact__bullets {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}

.contact__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact__bullets li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact__bullets li::before {
  content: '✓';
  color: var(--color-gold);
  font-weight: 800;
  flex-shrink: 0;
  font-size: 0.85rem;
  margin-top: 2px;
}

/* Form card (glassmorphism — frontend-design: layered transparencies) */
.form-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(205, 168, 96, 0.2);
  padding: var(--sp-6) var(--sp-5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.form-card h3 {
  color: var(--color-white);
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: var(--sp-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.form-group {
  margin-bottom: var(--sp-3);
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}

/* vercel-guidelines: focus states on inputs */
.form-control {
  display: block;
  width: 100%;
  min-height: 52px;
  /* touch target */
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(205, 168, 96, 0.18);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

/* Style native select */
.form-control option {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-submit {
  width: 100%;
  margin-top: var(--sp-2);
  font-size: 0.85rem;
}

.form-legal {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.38);
  margin-top: var(--sp-2);
  text-align: center;
  line-height: 1.5;
}

/* ────────────────────────────────
   FOOTER
   ──────────────────────────────── */
footer {
  background: var(--color-navy);
  border-top: 1px solid rgba(205, 168, 96, 0.12);
  padding: var(--sp-6) 0 var(--sp-5);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
}

.footer__logo img {
  height: 30px;
}

footer p {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.8rem;
}

/* ────────────────────────────────
   KEYFRAMES
   ──────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-line {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.5) translateY(-8px);
  }

  50% {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}

/* ────────────────────────────────
   SCROLL REVEAL
   ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 {
  transition-delay: 0.10s;
}

.reveal-d2 {
  transition-delay: 0.20s;
}

.reveal-d3 {
  transition-delay: 0.30s;
}

.reveal-d4 {
  transition-delay: 0.38s;
}

/* ────────────────────────────────
   RESPONSIVE
   ──────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: clamp(60px, 8vw, 100px);
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .nav {
    display: none;
  }

  .hero__desc {
    font-size: 1rem;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
  }

  .stat-card {
    padding: var(--sp-4) var(--sp-3);
  }

  .showcase__img-wrap img {
    height: 300px;
  }

  .showcase__img-wrap::after {
    display: none;
  }

  .form-card {
    padding: var(--sp-4) var(--sp-3);
    margin: 0 auto;
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 100dvh;
  }

  /* dvh avoids mobile browser chrome */
}

/* ────────────────────────────────
   TYPEWRITER CURSOR
   ──────────────────────────────── */
.typewriter-cursor {
  display: inline-block;
  color: var(--color-gold);
  font-weight: 300;
  margin-left: 1px;
  animation: blink-cursor 0.85s step-start infinite;
  /* prevent layout shift when word changes length */
  will-change: opacity;
}

@keyframes blink-cursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ────────────────────────────────
   GALLERY / CAROUSEL
   ──────────────────────────────── */
.gallery {
  padding: 0;
  position: relative;
}

.gallery .container {
  max-width: 100%;
  padding: 0;
}

.gallery__intro {
  text-align: center;
  margin-bottom: 0;
  padding: 100px 24px 56px;
}

.gallery__carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
}

.gallery__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery__slide {
  min-width: 100%;
  position: relative;
}

.gallery__slide img {
  width: 100%;
  height: 100svh;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: rgba(0, 18, 33, 0.7);
  color: var(--color-gold);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.gallery__btn:hover {
  background: var(--color-gold);
  color: var(--color-navy);
}

.gallery__btn--prev {
  left: 16px;
}

.gallery__btn--next {
  right: 16px;
}

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  padding: 0;
}

.gallery__dot.active {
  background: var(--color-gold);
  transform: scale(1.2);
}

.gallery__counter {
  text-align: center;
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

/* ────────────────────────────────
   REDUCED MOTION (a11y)
   ──────────────────────────────── */
@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;
  }

  /* Show the first word statically instead of animating */
  #typewriter-word::before {
    content: 'legado.';
  }

  .typewriter-cursor {
    display: none;
  }
}