/* ============================================
   GATUBELO RACE TOOLS — Design System
   ============================================ */

:root {
  --red: #E31837;
  --red-dark: #B81230;
  --red-glow: rgba(227, 24, 55, 0.4);
  --orange: #FF6B00;
  --orange-glow: rgba(255, 107, 0, 0.3);
  --black: #0A0A0A;
  --black-light: #111111;
  --black-card: #141414;
  --gray-900: #1A1A1A;
  --gray-800: #222222;
  --gray-700: #333333;
  --gray-500: #666666;
  --gray-400: #8A8A8A;
  --gray-300: #AAAAAA;
  --silver: #C0C0C0;
  --white: #FFFFFF;
  --white-muted: rgba(255, 255, 255, 0.7);

  --font-heading: 'Syncopate', sans-serif;
  --font-body: 'Space Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1200px;
  --gap: 24px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 0 0 0 var(--red-glow);
}

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: 0 0 30px 0 var(--red-glow);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gray-700);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}

.btn--white:hover {
  background: transparent;
  color: var(--white);
  box-shadow: 0 0 30px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 13px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.35s var(--ease-out);
}

.header--scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header--hidden {
  transform: translateY(-100%);
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 44px;
  width: auto;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--white);
}

.header__phone {
  color: var(--white) !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
}

.header__cta {
  display: none;
}

/* Hamburger */
.header__menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.header__menu span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.header__menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__menu.active span:nth-child(2) {
  opacity: 0;
}

.header__menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-nav nav a {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  transition: color 0.2s;
}

.mobile-nav nav a:hover {
  color: var(--white);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--gap) 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(227, 24, 55, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 107, 0, 0.05) 0%, transparent 60%);
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__logo {
  width: 280px;
  margin: 0 auto 40px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white) 0%, var(--silver) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 16px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.hero__scroll span {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  position: relative;
  padding-left: 40px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--red);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  padding: 100px 0;
  background: var(--black);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  position: relative;
  background: var(--black-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 40px 32px;
  overflow: hidden;
  transition: all 0.35s var(--ease-out);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.service-card:hover {
  border-color: rgba(227, 24, 55, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

.service-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(227, 24, 55, 0.08);
  margin-bottom: 24px;
  color: var(--red);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
}

.service-card__number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
}

/* ============================================
   EL HUMILDE — SOCIAL PROOF
   ============================================ */

.proof {
  padding: 100px 0;
  background: var(--black-light);
  position: relative;
  overflow: hidden;
}

.proof::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(227, 24, 55, 0.06) 0%, transparent 60%);
}

.proof__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  z-index: 1;
}

.proof__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}

.proof__stat {
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}

.proof__record {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-800);
}

.proof__desc {
  font-size: 16px;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 480px;
}

.proof__image {
  border-radius: 8px;
}

.proof__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .proof__inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* ============================================
   WHY GATUBELO
   ============================================ */

.why {
  padding: 100px 0;
  background: var(--black-light);
  position: relative;
}

.why::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-800), transparent);
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 60px;
}

.why-item {
  position: relative;
  padding-left: 24px;
}

.why-item__accent {
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 48px;
  background: linear-gradient(to bottom, var(--red), var(--orange));
  border-radius: 2px;
}

.why-item__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.why-item__desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ============================================
   FEATURED WORK
   ============================================ */

.work {
  padding: 100px 0;
  background: var(--black);
}

.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 60px;
}

.work-item {
  border-radius: 8px;
  overflow: hidden;
}

.work-item__placeholder {
  aspect-ratio: 4 / 3;
  background: var(--gray-900);
  border: 1px dashed var(--gray-700);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gray-500);
}

.work-item__placeholder span {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.5s var(--ease-out);
}

.work-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
  padding: 100px 0;
  background: var(--black-light);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(227, 24, 55, 0.1) 0%, transparent 70%);
}

.cta-banner__inner {
  position: relative;
  text-align: center;
  z-index: 1;
}

.cta-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cta-banner__desc {
  font-size: 16px;
  color: var(--gray-400);
  margin-bottom: 40px;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 60px 0 32px;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

.footer__contact h4,
.footer__links h4 {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__contact a,
.footer__links a {
  display: block;
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer__contact a:hover,
.footer__links a:hover {
  color: var(--red);
}

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__bottom p {
  font-size: 12px;
  color: var(--gray-500);
}

/* ============================================
   RESPONSIVE — TABLET (768px+)
   ============================================ */

@media (min-width: 768px) {
  .hero__logo {
    width: 400px;
  }

  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .why__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .work__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ============================================
   RESPONSIVE — DESKTOP (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  .header__nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .header__menu {
    display: none;
  }

  .hero__logo {
    width: 480px;
  }

  .hero__sub {
    font-size: 18px;
  }

  .services__grid {
    gap: 32px;
  }

  .service-card {
    padding: 48px 36px;
  }

  .work__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   RESPONSIVE — WIDE (1440px+)
   ============================================ */

@media (min-width: 1440px) {
  :root {
    --gap: 32px;
  }

  .hero__title {
    font-size: 80px;
  }
}
