:root {
  --red: #e8333b;
  --red-dark: #c41f27;
  --red-soft: #ffd7d4;
  --paper: #fafaf8;
  --paper-2: #f4f1eb;
  --ink: #14171f;
  --ink-soft: #242834;
  --muted: #5b606c;
  --line: #e4e1db;
  --white-soft: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --shadow: 0 24px 70px rgba(20, 23, 31, 0.18);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Trebuchet MS", Verdana, sans-serif;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20, 23, 31, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  touch-action: manipulation;
}

a:hover {
  color: var(--red-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

section[id],
.hero[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-150%);
  background: var(--red);
  color: var(--white-soft);
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 58px);
  color: var(--white-soft);
  transition: background-color 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(250, 250, 248, 0.94);
  box-shadow: 0 14px 44px rgba(20, 23, 31, 0.12);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: currentColor;
  opacity: 0.74;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: contain;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a,
.phone-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 2px solid var(--red);
  border-radius: 4px;
  background: var(--red);
  color: var(--white-soft);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(232, 51, 59, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  color: var(--white-soft);
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(232, 51, 59, 0.32);
}

.button--small {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 0.9rem;
}

.button--ghost {
  color: var(--white-soft);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.button--ghost:hover {
  color: var(--ink);
  background: var(--white-soft);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white-soft);
  background: var(--ink);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 22vh;
  background: linear-gradient(to top, rgba(20, 23, 31, 0.88), transparent);
  content: "";
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.94) contrast(1.02);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 23, 31, 0.92) 0%, rgba(20, 23, 31, 0.72) 42%, rgba(20, 23, 31, 0.18) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  padding: calc(var(--header-height) + 34px) 0 clamp(46px, 8vh, 92px);
  margin-left: clamp(18px, 8vw, 108px);
  animation: hero-enter 480ms ease-out both;
}

.eyebrow,
.section__kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.9;
  font-weight: 700;
}

.hero h1 span {
  display: block;
}

.hero__lead {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: rgba(255, 253, 247, 0.92);
  overflow-wrap: break-word;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.hero__proof span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-left: 3px solid var(--red);
  background: rgba(255, 253, 247, 0.12);
  backdrop-filter: blur(6px);
}

.hero__proof strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: var(--white-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-strip article {
  min-height: 188px;
  padding: clamp(22px, 3vw, 36px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-strip span {
  color: var(--red);
  font-weight: 900;
}

.trust-strip h2 {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.trust-strip p,
.site-footer p,
.site-footer a {
  color: rgba(255, 253, 247, 0.78);
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 5vw, 72px);
}

.section--intro,
.section--gallery {
  background: var(--paper);
}

.section--services,
.quote {
  background: var(--white-soft);
}

.split,
.section-heading,
.quote,
.site-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.section h2,
.feature-row h2,
.quote h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.98;
  color: var(--ink);
  text-wrap: balance;
}

.rich-text p,
.section-heading p,
.feature-row p,
.quote p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.metrics {
  width: min(1180px, 100%);
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.metrics div {
  padding: clamp(20px, 3vw, 34px);
  background: var(--paper);
}

.metrics dt {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  color: var(--red-dark);
}

.metrics dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 42px;
}

.service-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-grid article {
  min-height: 188px;
  padding: clamp(20px, 3vw, 30px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 248, 0.72);
  transition: background-color 180ms ease, transform 180ms ease;
}

.service-grid article:hover {
  background: var(--paper);
  transform: translateY(-4px);
}

.service-grid h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.service-grid p {
  margin: 0;
  color: var(--muted);
}

.feature-stack {
  background: var(--ink);
  color: var(--white-soft);
}

.feature-row {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-row--reverse {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
}

.feature-row--reverse img {
  order: 2;
}

.feature-row img {
  width: 100%;
  height: min(68vw, 640px);
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.feature-row h2 {
  color: var(--white-soft);
  font-size: clamp(2rem, 4.4vw, 4.4rem);
}

.feature-row p {
  max-width: 610px;
  color: rgba(255, 253, 247, 0.76);
}

.feature-row a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 12px;
  color: var(--red);
  font-weight: 900;
}

.gallery {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}

.gallery figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.testimonials {
  background: var(--red-soft);
}

.testimonials > h2,
.testimonials > .section__kicker {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.testimonial-grid {
  width: min(1180px, 100%);
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

blockquote {
  margin: 0;
  padding: clamp(22px, 3vw, 34px);
  background: var(--white-soft);
  border-top: 4px solid var(--red);
  box-shadow: 0 18px 40px rgba(20, 23, 31, 0.1);
}

blockquote p {
  margin: 0 0 22px;
  color: var(--ink);
}

blockquote cite {
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 900;
}

.quote {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.contact-list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  font-weight: 900;
  text-decoration: none;
}

.quote-form {
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  color: var(--ink);
  background: var(--white-soft);
  border: 1px solid rgba(20, 23, 31, 0.28);
  border-radius: 4px;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #9f3216;
  box-shadow: 0 0 0 3px rgba(159, 50, 22, 0.12);
}

.field textarea {
  resize: vertical;
}

.field-error {
  min-height: 1.35em;
  margin: 6px 0 0;
  color: #9f3216;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 0.75fr 0.65fr;
  gap: clamp(26px, 5vw, 70px);
  padding: clamp(50px, 7vw, 86px) clamp(18px, 5vw, 72px);
  color: var(--white-soft);
  background: var(--ink);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 10px;
}

.brand--footer {
  margin-bottom: 20px;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #0b2b17;
  background: var(--whatsapp);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(20, 23, 31, 0.25);
  font-weight: 900;
  text-decoration: none;
}

.floating-whatsapp span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--white-soft);
  background: var(--whatsapp-dark);
  border-radius: 50%;
}

@keyframes hero-enter {
  from {
    transform: translateY(18px);
  }

  to {
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .split,
  .section-heading,
  .quote,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .metrics,
  .service-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
  }

  .feature-row--reverse img {
    order: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    padding: 11px 16px;
  }

  .brand small,
  .phone-link {
    display: none;
  }

  .hero {
    min-height: 92svh;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(20, 23, 31, 0.94), rgba(20, 23, 31, 0.62)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
  }

  .hero__content {
    width: min(358px, calc(100vw - 32px));
    margin-left: 16px;
    padding-bottom: 42px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 17vw, 4.2rem);
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__proof span {
    width: 100%;
  }

  .hero__actions,
  .hero__actions .button,
  .quote-form .button {
    width: 100%;
  }

  .trust-strip,
  .metrics,
  .service-grid,
  .testimonial-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: min(66vw, 280px);
    aspect-ratio: auto;
  }

  .trust-strip article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .feature-row {
    min-height: auto;
  }

  .feature-row img {
    height: 78vw;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    min-height: 50px;
    padding: 10px 14px;
    font-size: 0;
  }

  .floating-whatsapp span {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
