:root {
  --ink: #161412;
  --ink-soft: #3d3832;
  --muted: #6b645b;
  --paper: #f6f1e8;
  --paper-2: #efe7d9;
  --white: #fffcf7;
  --line: #ddd4c6;
  --red: #c4161c;
  --red-dark: #9a1015;
  --navy: #1c2430;
  --navy-2: #121821;
  --wa: #128c7e;
  --wa-dark: #0e6e63;
  --shadow: 0 18px 50px rgba(22, 20, 18, 0.12);
  --radius: 18px;
  --header: 4.5rem;
  --max: 72rem;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(246, 241, 232, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 252, 247, 0.95);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 1.5rem, var(--max));
}
.logo img {
  height: 2.6rem;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a { text-decoration: none; }
.nav a:hover { color: var(--red); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--wa);
  color: #fff !important;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
}
.nav-cta:hover { background: var(--wa-dark); }
.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset: var(--header) 0 auto;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
    gap: 0.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.65rem 0; }
  .nav-cta { justify-content: center; margin-top: 0.5rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
}
.btn-ghost.dark {
  color: var(--ink);
  border-color: var(--ink);
}
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }

.kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red);
}

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5vw, 4.1rem); margin: 0.3rem 0 1rem; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42rem;
}
.hero .lede { color: #f3ece3; }
.mt, .stack { margin-top: 1.5rem; }
.mt-2, .stack-lg { margin-top: 2rem; }

.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.bg-white { background: var(--white); }
.bg-dark {
  background: var(--navy-2);
  color: #f3ece3;
}
.bg-dark .kicker { color: #f0a3a6; }
.bg-dark .lede { color: rgba(243,236,227,0.82); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,24,33,0.15) 0%, rgba(18,24,33,0.72) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3.5rem;
}
.hero .lede { color: rgba(243, 236, 227, 0.92); }
.stack-lg { margin-top: 2rem; }
.stack { margin-top: 1.5rem; }
.faq-wrap { max-width: 46rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

.hero-landing {
  min-height: 72vh;
  align-items: center;
}
.hero-landing .hero-copy { padding: 5rem 0; max-width: 44rem; }

/* Cards */
.grid-3, .grid-2, .grid-6, .gallery {
  display: grid;
  gap: 1.15rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.gallery { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7);
  transition: transform 0.2s, box-shadow 0.2s;
}
a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card img.cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--paper-2);
}
.card-body { padding: 1.15rem 1.2rem 1.3rem; }
.card-body p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; }
.logo-slot {
  height: 4.2rem;
  display: grid;
  place-items: center;
  padding: 0.75rem 1rem 0;
}
.logo-slot img { max-height: 2.6rem; width: auto; max-width: 80%; object-fit: contain; }

.feature {
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.feature strong { display: block; margin-bottom: 0.35rem; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.split img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.provinces {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}
.province {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  padding: 1.1rem 0.5rem;
  text-decoration: none;
}
.province b { display: block; color: var(--red); font-size: 1.3rem; }

/* Form */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.wa-form {
  display: grid;
  gap: 0.85rem;
  background: var(--white);
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.wa-form label { font-size: 0.88rem; font-weight: 600; display: grid; gap: 0.35rem; }
.wa-form input,
.wa-form select,
.wa-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: var(--paper);
  color: var(--ink);
}
.wa-form input:focus,
.wa-form select:focus,
.wa-form textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  background: #fff;
}
.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 400 !important;
  font-size: 0.82rem !important;
  color: var(--muted);
}
.check input { width: auto; margin-top: 0.2rem; }
.form-error {
  display: none;
  color: var(--red);
  font-size: 0.88rem;
}
.form-error.is-on { display: block; }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.65rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); margin: 0.6rem 0 0.2rem; }

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer {
  background: var(--navy-2);
  color: rgba(243,236,227,0.78);
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #f0a3a6; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.wa-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(18,140,126,0.35);
  text-decoration: none;
}
.wa-fab:hover { background: var(--wa-dark); }
.wa-fab svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  fill: currentColor;
}

.nav-cta svg,
.btn-wa svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
  flex-shrink: 0;
  fill: currentColor;
}

.brand-next {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  text-align: center;
}
.brand-next-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}
.brand-next p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.prose { max-width: 46rem; }
.prose p { color: var(--ink-soft); }
.prose h2 { margin-top: 2rem; }

@media (max-width: 900px) {
  .grid-3, .grid-2, .gallery, .split, .contact, .foot-grid { grid-template-columns: 1fr; }
  .grid-6, .provinces { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: 78vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, a.card:hover { transform: none; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
