/* ── Variables ── */
:root {
  --bg: #f4f5f7;
  --bg-soft: #ffffff;
  --text: #1a1c22;
  --text-soft: #4a4f58;
  --text-muted: #6b7280;
  --red: #e30613;
  --red-soft: rgba(227, 6, 19, 0.08);
  --red-glow: rgba(227, 6, 19, 0.18);
  --silver: #8a919a;
  --border: rgba(26, 28, 34, 0.08);
  --shadow: rgba(26, 28, 34, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Background ── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255, 255, 255, 0.95), transparent 70%),
    linear-gradient(180deg, #f8f9fb 0%, #f0f2f5 55%, #e9ecef 100%);
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(227, 6, 19, 0.04), transparent 65%);
}

.road {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 140%;
  height: 38%;
  transform: translateX(-50%) perspective(500px) rotateX(58deg);
  transform-origin: bottom center;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 78px,
      rgba(26, 28, 34, 0.06) 78px,
      rgba(26, 28, 34, 0.06) 82px
    ),
    linear-gradient(180deg, #e2e5ea 0%, #eef0f3 45%, #f4f5f7 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 22%, black 100%);
}

.light-trail {
  position: absolute;
  bottom: 8%;
  width: 3px;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.55;
}

.light-trail--red {
  right: 18%;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--red), #ff4d57);
  box-shadow: 0 0 20px var(--red-glow);
  transform: rotate(-8deg);
}

.light-trail--white {
  left: 22%;
  height: 24%;
  background: linear-gradient(180deg, transparent, rgba(26, 28, 34, 0.12));
  transform: rotate(6deg);
}

.light-trail--red-2 {
  right: 28%;
  height: 20%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(227, 6, 19, 0.35));
  opacity: 0.4;
  transform: rotate(-14deg);
}

/* ── Layout ── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 1.5rem;
}

.content {
  width: min(100%, 560px);
  text-align: center;
}

/* ── Logo (intouché) ── */
.logo-wrap {
  width: min(100%, 340px);
  margin: 0 auto 1.75rem;
  line-height: 0;
}

.logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(227, 6, 19, 0.25);
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Typography ── */
h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lead {
  margin-bottom: 0.75rem;
  color: var(--text-soft);
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
}

.secondary {
  margin-bottom: 1.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hint {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* ── Services ── */
.services {
  width: min(100%, 920px);
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.services-title {
  margin-bottom: 1.25rem;
  text-align: center;
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.services-grid {
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 8px 28px rgba(26, 28, 34, 0.1);
  transform: translateY(-2px);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-body {
  padding: 1rem 1.05rem 1.15rem;
  text-align: left;
}

.service-body h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
}

.service-body p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
}

/* ── Buttons ── */
.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: min(100%, 300px);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
}

.btn--primary:hover {
  background: #c90510;
  box-shadow: 0 6px 24px rgba(227, 6, 19, 0.28);
}

.btn--whatsapp {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 2px 12px var(--shadow);
}

.btn--whatsapp:hover {
  background: #fff;
  border-color: rgba(26, 28, 34, 0.14);
  box-shadow: 0 4px 16px rgba(26, 28, 34, 0.08);
}

.btn svg {
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  padding: 1.5rem 1.25rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
}

.footer-copy {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.82rem;
}

.footer-links a {
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-links .sep {
  color: rgba(26, 28, 34, 0.2);
}

/* ── Legal page ── */
.legal-page main {
  align-items: flex-start;
  padding-top: 3rem;
}

.legal-content {
  width: min(100%, 680px);
  margin: 0 auto;
  text-align: left;
}

.legal-content h1 {
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.1rem;
  color: var(--text);
}

.legal-content p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (min-width: 480px) {
  .actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn {
    width: auto;
    min-width: 210px;
  }
}

@media (min-width: 768px) {
  .logo-wrap {
    width: min(100%, 400px);
  }

  .road {
    height: 34%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
