/* ===== Tokens ===== */
:root {
  --color-dark: #0a0a0a;
  --color-dark-soft: #161616;
  --color-red: #e0201f;
  --color-red-dark: #b81816;
  --color-green: #22c55e;
  --color-green-dark: #16a34a;
  --color-ink: #17171a;
  --color-ink-muted: #55555c;
  --color-white: #ffffff;
  --color-gray-100: #f4f4f5;
  --color-gray-200: #e7e7ea;
  --color-border: #e4e4e7;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-full: 999px;

  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.08);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 220ms;

  --container: 1200px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; color: var(--color-ink); }

button, a, [role="button"] { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.icon--red { color: var(--color-red); }
.icon--sm { width: 14px; height: 14px; }

.text-red { color: var(--color-red); }

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 12px;
}
.eyebrow--light { color: var(--color-white); opacity: 0.92; }

.section-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(224, 32, 31, 0.08);
  color: var(--color-red);
  border: 1px solid rgba(224, 32, 31, 0.25);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}
.about__text .section-badge,
.gallery .section-badge { margin-bottom: 16px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  border: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--cta {
  background: var(--color-green);
  color: #06210f;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.32);
}
.btn--cta:hover, .btn--cta:focus-visible {
  background: var(--color-green-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4);
}
.btn--cta:active { transform: translateY(0); }

/* ===== Hero entrance animation (pure CSS, no JS dependency) ===== */
.fade-up {
  animation: fade-up 700ms var(--ease) both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
}


/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark);
  overflow: hidden;
  padding: 64px 0 96px;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.62);
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(224,32,31,0.32), rgba(224,32,31,0.1) 55%, transparent 75%);
  filter: blur(10px);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 25%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 45%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 45%, transparent 85%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__logo {
  height: 40px;
  width: auto;
  margin-bottom: 28px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hero__badge svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__badge svg:first-child { fill: var(--color-red); stroke: none; }
.hero__badge:hover, .hero__badge:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.26);
}
.hero__title {
  font-size: clamp(1.25rem, 6.2vw, 3.4rem);
  line-height: 1.2;
  color: var(--color-white);
  margin: 0 0 22px;
  max-width: 26ch;
  white-space: normal;
}
.hero__title br { content: ""; }
.hero__title .line { display: block; }
.hero__subtitle {
  color: rgba(255,255,255,0.66);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 0 36px;
}

/* ===== Scroll blur (fixed at viewport bottom; opacity driven by JS) ===== */
.scroll-blur {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  z-index: 900;
  pointer-events: none;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 75%);
  mask-image: linear-gradient(to bottom, transparent, #000 75%);
  opacity: 0;
  transition: opacity 350ms var(--ease);
}
.scroll-blur.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .scroll-blur { display: none; }
}

/* ===== Features ===== */
.features { background: var(--color-white); padding: 100px 0 100px; position: relative; z-index: 2; }
.features__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 640px;
  margin-bottom: 44px;
}
.features__head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.features__head p { color: var(--color-ink-muted); font-size: 1.02rem; max-width: 52ch; }
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.feature {
  background: var(--color-gray-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(224, 32, 31, 0.28); }
.feature--highlight { border-color: transparent; }
.feature--highlight { background: var(--color-red); color: var(--color-white); }
.feature__icon {
  width: 54px;
  height: 54px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  stroke: var(--color-white);
  fill: none;
  stroke-width: 1.5;
}
.feature__icon--red { stroke: var(--color-red); background: rgba(224, 32, 31, 0.08); }
.feature__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.feature__title--dark { color: var(--color-ink); }
.feature__text { font-size: 0.96rem; line-height: 1.55; opacity: 0.92; }
.feature__text--dark { color: var(--color-ink-muted); opacity: 1; }

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 110px 20px 140px;
  align-items: center;
}
.about__text .eyebrow { margin-bottom: 10px; }
.about h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 18px; }
.about__desc { color: var(--color-ink-muted); margin-bottom: 30px; max-width: 56ch; }
.about__image {
  aspect-ratio: 4 / 3;
  max-height: 460px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Services ===== */
.services { background: var(--color-dark); color: var(--color-white); padding: 100px 0; text-align: center; }
.services__logo { height: 40px; margin: 0 auto 30px; }
.services__title { color: var(--color-red); font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 48px; }
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  text-align: left;
  align-items: stretch;
}
.services__image { aspect-ratio: 4 / 3; max-height: 460px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); position: relative; }
.services__image img { width: 100%; height: 100%; object-fit: cover; }
.services__list {
  list-style: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  backdrop-filter: blur(6px);
}
.services__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.98rem; color: rgba(255,255,255,0.9); }
.services__list li .icon { margin-top: 3px; }
.services__list strong { color: var(--color-white); font-family: var(--font-heading); font-weight: 600; }
.services__cta { margin-top: 48px; }

/* ===== Gallery ===== */
.gallery {
  background: linear-gradient(160deg, #ffffff 0%, #fdf1f1 60%, #fdece9 100%);
  padding: 100px 0;
  text-align: center;
}
.gallery h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 44px; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 140px;
  gap: 14px;
  margin-bottom: 44px;
}
.gallery__item {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: none;
  font: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.06); }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }

/* ===== Lightbox ===== */
body.no-scroll { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--color-white);
  transition: background var(--dur) var(--ease);
}
.lightbox__close svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.lightbox__close:hover, .lightbox__close:focus-visible { background: rgba(255,255,255,0.2); }

/* ===== Clients ===== */
.clients { background: var(--color-red); color: var(--color-white); padding: 90px 0; }
.clients__grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.clients h2 { color: var(--color-white); font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin-bottom: 16px; }
.clients__text p { color: rgba(255,255,255,0.92); margin-bottom: 26px; max-width: 46ch; }
.clients .btn--cta { background: var(--color-white); color: var(--color-red); }
.clients .btn--cta:hover, .clients .btn--cta:focus-visible { background: var(--color-dark); color: var(--color-white); }
.clients__logos {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* ===== Final CTA ===== */
.final-cta { background: var(--color-dark); color: var(--color-white); text-align: center; padding: 110px 0; }
.final-cta__logo { height: 40px; margin: 0 auto 30px; }
.final-cta h2 { color: var(--color-white); font-size: clamp(1.8rem, 4vw, 2.5rem); max-width: 22ch; margin: 0 auto 22px; }
.final-cta p { color: rgba(255,255,255,0.72); max-width: 60ch; margin: 0 auto 34px; }

/* ===== Footer ===== */
.footer { background: var(--color-red-dark); color: var(--color-white); padding: 44px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer__logo { height: 34px; }
.footer__address { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: rgba(255,255,255,0.9); }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer__social a:hover { background: rgba(255,255,255,0.24); transform: translateY(-2px); }
.footer__social .icon { fill: var(--color-white); }

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: var(--color-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  z-index: 999;
  animation: whatsapp-pop 600ms var(--ease) 900ms both, whatsapp-pulse 2.6s ease-in-out 2s infinite;
}
.whatsapp-float .icon { width: 30px; height: 30px; fill: #06210f; }
.whatsapp-float:hover { background: var(--color-green-dark); }
.whatsapp-float .icon { fill: var(--color-white); }
@keyframes whatsapp-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(0,0,0,0.28), 0 0 0 0 rgba(34,197,94,0.5); }
  50% { box-shadow: 0 10px 26px rgba(0,0,0,0.28), 0 0 0 12px rgba(34,197,94,0); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* ===== Scroll reveal (class applied by JS; no-JS users see everything).
   Kept late in the stylesheet so it wins over component transitions while active. ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-auto-rows: 160px; }
}

@media (min-width: 768px) {
  .clients__logos img { width: 100%; }
}

@media (min-width: 1024px) {
  .features__grid { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: 1fr 1fr; padding: 140px 20px 160px; }
  .about__image { order: 2; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; }
  .clients__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1440px) {
  .container { padding-left: 40px; padding-right: 40px; }
}
