:root {
  --brand: #ff383b;
  --brand-dark: #d32124;
  --ink: #0b0b0c;
  --ink-700: #1a1a1d;
  --ink-50: #f7f6f4;
  --header-h: 5.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: #2c2b29;
  background: var(--ink-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.font-display {
  font-family: Sora, system-ui, sans-serif;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--ink);
}

::selection {
  background: rgba(255, 56, 59, 0.18);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(11, 11, 12, 0.06);
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
    padding 0.3s var(--ease-out);
}

.site-header.is-compact {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(11, 11, 12, 0.06);
}

.site-header.is-compact .header-inner {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.header-inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: padding 0.3s var(--ease-out);
}

.nav-link {
  position: relative;
  color: #4a4845;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--brand-dark);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 0.85rem;
  box-shadow: 0 8px 24px rgba(255, 56, 59, 0.28);
  transition: background 0.2s ease, transform 0.2s var(--ease-out),
    box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(211, 33, 36, 0.32);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      180deg,
      rgba(11, 11, 12, 0.42) 0%,
      rgba(11, 11, 12, 0.72) 55%,
      rgba(11, 11, 12, 0.94) 100%
    ),
    linear-gradient(90deg, rgba(11, 11, 12, 0.55), rgba(11, 11, 12, 0.15)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?q=80&w=2070&auto=format&fit=crop")
      center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: 18%;
  background: radial-gradient(circle, rgba(255, 56, 59, 0.28), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--brand);
}

/* Cards */
.service-card,
.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(11, 11, 12, 0.07);
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(11, 11, 12, 0.04),
    0 12px 32px rgba(11, 11, 12, 0.06);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    border-color 0.35s ease;
}

.service-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease-out);
}

.service-card:hover,
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 56, 59, 0.22);
  box-shadow: 0 1px 2px rgba(11, 11, 12, 0.04),
    0 24px 48px rgba(211, 33, 36, 0.14);
}

.service-card:hover::before,
.feature-card:hover::before {
  transform: scaleY(1);
}

.service-num {
  font-family: Sora, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand-dark);
}

.icon-orb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ff4d50, var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 56, 59, 0.28);
}

.image-frame {
  position: relative;
  padding-right: 1.25rem;
  padding-bottom: 1.25rem;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 1.25rem 0 0 1.25rem;
  border-radius: 1.5rem;
  background: var(--brand);
  z-index: 0;
}

.image-frame img {
  position: relative;
  z-index: 1;
  border-radius: 1.5rem;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  display: block;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(11, 11, 12, 0.2);
}

/* Forms */
.field-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(11, 11, 12, 0.12);
  border-radius: 0.85rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 56, 59, 0.15);
}

.field-input[aria-invalid="true"] {
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 4px rgba(211, 33, 36, 0.12);
}

.field-error {
  min-height: 1.15rem;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--brand-dark);
}

.honeypot {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contact panel */
.contact-panel {
  background: linear-gradient(180deg, #1a1a1d 0%, #0b0b0c 100%);
  color: #f7f6f4;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.contact-panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(255, 56, 59, 0.28), transparent 70%);
  pointer-events: none;
}

.contact-panel a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-panel a:hover {
  color: #ffb3b4;
  border-color: #ffb3b4;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d8d6d2;
}

.site-footer a {
  color: #a8a6a1;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

/* Floating actions */
.float-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(11, 11, 12, 0.22);
  transition: transform 0.25s var(--ease-out);
  position: relative;
}

.float-btn:hover {
  transform: scale(1.06);
}

.float-btn .float-label {
  position: absolute;
  right: calc(100% + 0.7rem);
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.float-btn:hover .float-label,
.float-btn:focus-visible .float-label {
  opacity: 1;
  transform: translateX(0);
}

.float-whatsapp {
  background: #25d366;
}

.float-call {
  background: var(--brand);
}

/* Mobile drawer */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 12, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 60;
}

.menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(22rem, 88vw);
  background: #fff;
  z-index: 70;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out), visibility 0s 0.35s;
  box-shadow: -16px 0 40px rgba(11, 11, 12, 0.16);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.35s var(--ease-out), visibility 0s;
}

body.menu-open {
  overflow: hidden;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Legal prose */
.content-prose h2 {
  font-family: Sora, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(11, 11, 12, 0.08);
  color: var(--ink);
}

.content-prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.content-prose p,
.content-prose ul {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #4a4845;
}

.content-prose a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-prose li {
  margin-left: 1.5rem;
  list-style-type: disc;
  margin-bottom: 0.35rem;
}

/* Check animation */
.check-ring {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.6s var(--ease-out) forwards;
}

.check-mark {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.35s var(--ease-out) 0.45s forwards;
}

@keyframes stroke {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .service-card,
  .feature-card,
  .btn-primary,
  .mobile-drawer,
  .menu-backdrop,
  .nav-link::after {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .check-ring,
  .check-mark {
    animation: none;
    stroke-dashoffset: 0;
  }
}
