:root {
  --off-white: #faf7f2;
  --sand: #efe7dc;
  --beige: #d8c4ae;
  --ink: #141414;
  --ink-soft: #2b2b2b;
  --gold: #b99a6b;
  --muted: #6b6257;
  --error: #8a4b3a;
  --page-pad: clamp(1.5rem, 6vw, 6rem);
  --section-space: clamp(4rem, 9vw, 7.5rem);
  --max: 75rem;
  color-scheme: light;
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--off-white);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Montserrat, Inter, system-ui, sans-serif;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.125rem;
  font-size: clamp(2.125rem, 8.5vw, 4rem);
  line-height: 1.15;
}

h2 {
  margin-bottom: 1.75rem;
  font-size: clamp(1.875rem, 6.5vw, 3.25rem);
  line-height: 1.15;
}

h3 {
  line-height: 1.25;
}

p {
  line-height: 1.75;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.25rem;
  background: var(--off-white);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.container,
.narrow,
.split {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

.narrow {
  max-width: 47.5rem;
}

.section {
  padding: var(--section-space) var(--page-pad);
  background: var(--off-white);
}

.section--sand {
  background: var(--sand);
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  overflow: hidden;
  background: var(--beige);
  color: var(--off-white);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: 68% 22%;
}

.hero__shade {
  background: linear-gradient(to top, rgb(20 20 20 / 88%) 0%, rgb(20 20 20 / 55%) 38%, rgb(20 20 20 / 10%) 72%, transparent 100%);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: 47rem;
  padding: 1.5rem var(--page-pad) max(2.5rem, env(safe-area-inset-bottom));
  animation: fade-up 900ms ease both;
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--sand);
}

.hero__lead {
  max-width: 46ch;
  margin-bottom: 0.875rem;
  color: var(--sand);
  font-size: clamp(1rem, 2vw, 1.0625rem);
  line-height: 1.6;
}

.credential {
  margin-bottom: 1.75rem;
  color: var(--beige);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  width: min(100%, 22.5rem);
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button--light {
  border-color: var(--off-white);
  background: var(--off-white);
  color: var(--ink);
}

.button--dark {
  background: var(--ink);
  color: var(--off-white);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.gold-line {
  display: block;
  width: 3rem;
  height: 1px;
  margin-bottom: 1.75rem;
  background: var(--gold);
}

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.split__media {
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.split__media img {
  width: 100%;
  height: auto;
}

.split__content > p,
.authority-copy > p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.quote-inline {
  margin-bottom: 2.5rem;
  color: var(--ink) !important;
  font-style: italic;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--gold);
  list-style: none;
}

.timeline li {
  display: grid;
  gap: 0.25rem;
}

.timeline strong {
  color: var(--gold);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 1.1875rem;
  font-weight: 600;
}

.timeline span {
  color: var(--ink-soft);
  font-size: 0.78125rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.manifesto {
  display: grid;
  background: var(--ink);
  color: var(--off-white);
}

.manifesto__media {
  position: relative;
  min-height: 26.25rem;
  margin: 0;
  overflow: hidden;
}

.manifesto__media::after {
  position: absolute;
  inset: 0;
  background: rgb(216 196 174 / 18%);
  content: "";
}

.manifesto__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.manifesto__quote {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: var(--section-space) var(--page-pad);
  flex-direction: column;
  justify-content: center;
}

.manifesto__quote p {
  margin-bottom: 2.25rem;
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.375rem);
  font-weight: 600;
  line-height: 1.35;
}

.manifesto__quote cite {
  color: var(--beige);
  font-size: 0.875rem;
  font-style: normal;
  letter-spacing: 0.14em;
}

.procedure-intro {
  display: grid;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  align-items: end;
}

.procedure-intro figure {
  margin: 0;
  overflow: hidden;
}

.procedure-intro img {
  width: 100%;
  height: clamp(17.5rem, 82vw, 28.75rem);
  object-fit: cover;
  object-position: center 28%;
}

.section-lead {
  max-width: 52ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.procedure-grid,
.location-grid {
  display: grid;
  gap: 1.25rem;
}

.procedure-card {
  display: flex;
  min-width: 0;
  padding: 2rem 1.75rem;
  border: 1px solid var(--beige);
  flex-direction: column;
  gap: 0.875rem;
}

.procedure-card h3 {
  margin-bottom: 0;
  font-size: 1.3125rem;
  font-weight: 600;
}

.procedure-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  flex: 1;
}

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  align-self: flex-start;
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.evaluation-media img {
  max-height: 42.5rem;
  object-fit: cover;
  object-position: center 15%;
}

.steps {
  display: grid;
  gap: 2rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 2.125rem minmax(0, 1fr);
  gap: 1.375rem;
  align-items: start;
}

.steps li > span {
  color: var(--gold);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.steps h3 {
  margin-bottom: 0.375rem;
  font-family: Inter, sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.appointment-note {
  margin: 1.5rem 0 0;
  color: var(--muted) !important;
  font-size: 0.8125rem !important;
  letter-spacing: 0.04em;
}

.faq-list {
  border-bottom: 1px solid var(--beige);
}

.faq-item {
  border-top: 1px solid var(--beige);
}

.faq-item button {
  display: flex;
  width: 100%;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-item button span {
  color: var(--gold);
  font-family: Inter, sans-serif;
  font-size: 1.375rem;
  font-weight: 400;
}

.faq-answer p {
  margin: 0;
  padding: 0 0.25rem 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.review-note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.locations {
  padding-top: 0;
}

.location-card {
  display: flex;
  padding: 2.25rem 2rem;
  border: 1px solid var(--beige);
  flex-direction: column;
  gap: 0.75rem;
}

.location-card--featured {
  border-color: var(--gold);
  background: var(--sand);
}

.location-card p,
.location-card h3 {
  margin: 0;
}

.location-card h3 {
  font-size: 1.4375rem;
  font-weight: 600;
}

.location-card > p:not(.location-state, .appointment-note) {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.location-state {
  color: var(--gold);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.location-card .appointment-note {
  margin-top: 0;
}

.final-cta {
  display: grid;
  background: var(--ink);
  color: var(--off-white);
}

.final-cta__media {
  position: relative;
  min-height: 27.5rem;
  margin: 0;
  overflow: hidden;
}

.final-cta__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 22%;
}

.final-cta__content {
  display: flex;
  padding: var(--section-space) var(--page-pad);
  flex-direction: column;
  justify-content: center;
}

.final-cta__content p {
  max-width: 48ch;
  margin-bottom: 2.5rem;
  color: var(--beige);
}

.site-footer {
  display: flex;
  padding: 2rem var(--page-pad);
  border-top: 1px solid rgb(216 196 174 / 25%);
  background: var(--ink);
  color: var(--beige);
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.site-footer a {
  min-height: 2.75rem;
  align-items: center;
  display: inline-flex;
}

.lead-dialog {
  width: 100%;
  max-width: none;
  max-height: calc(100svh - 3rem);
  margin: auto 0 0;
  padding: 2rem 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  border: 0;
  border-radius: 1rem 1rem 0 0;
  background: var(--off-white);
  color: var(--ink);
  box-shadow: 0 0.75rem 2.5rem rgb(20 20 20 / 25%);
}

.lead-dialog::backdrop {
  background: rgb(20 20 20 / 65%);
  backdrop-filter: blur(3px);
}

.lead-dialog[open] {
  animation: sheet-up 280ms ease both;
}

.lead-dialog h2 {
  margin-bottom: 0.5rem;
  padding-right: 2.5rem;
  font-size: 1.5rem;
}

.lead-dialog > p {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.dialog-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

#lead-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.375rem;
}

.field label {
  font-size: 0.84375rem;
  font-weight: 500;
}

.field input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--beige);
  border-radius: 0.375rem;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.field-help,
.field-error {
  font-size: 0.75rem;
  line-height: 1.5;
}

.field-help {
  color: var(--muted);
}

.field-error {
  min-height: 0;
  color: var(--error);
}

.consent {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.625rem;
  align-items: start;
  color: var(--ink-soft);
  font-size: 0.78125rem;
  line-height: 1.5;
}

.consent input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.125rem 0 0;
  accent-color: var(--ink);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-submit {
  width: 100%;
  border-radius: 0.375rem;
}

.form-status,
.form-fallback,
.privacy-note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
}

.form-status[data-state="error"] {
  color: var(--error);
}

.form-status[data-state="success"] {
  color: #365a42;
}

.form-fallback {
  color: var(--ink);
  font-weight: 500;
}

.privacy-note {
  color: var(--muted);
}

.turnstile-container {
  min-height: 4.0625rem;
}

.whatsapp-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--off-white);
  box-shadow: 0 0.25rem 1.125rem rgb(20 20 20 / 28%);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.legal-header {
  display: flex;
  padding: 1.25rem var(--page-pad);
  border-bottom: 1px solid var(--beige);
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

.legal-header p {
  margin: 0;
  color: var(--muted);
}

.legal-page {
  padding: clamp(2.5rem, 7vw, 5rem) var(--page-pad) var(--section-space);
}

.legal-notice,
.legal-content {
  width: 100%;
  max-width: 47.5rem;
  margin-inline: auto;
}

.legal-notice {
  display: grid;
  gap: 0.375rem;
  margin-bottom: 2.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gold);
  background: var(--sand);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.legal-content h1 {
  color: var(--ink);
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  font-size: clamp(1.375rem, 4vw, 1.75rem);
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal-content li + li {
  margin-top: 0.5rem;
}

.legal-end {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--beige);
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 750ms ease, transform 750ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(1.125rem); }
  to { opacity: 1; transform: none; }
}

@keyframes sheet-up {
  from { opacity: 0; transform: translateY(3rem); }
  to { opacity: 1; transform: none; }
}

@media (hover: hover) {
  .button--light:hover {
    background: transparent;
    color: var(--off-white);
  }

  .button--dark:hover {
    background: transparent;
    color: var(--ink);
  }

  .text-link:hover,
  .site-footer a:hover {
    color: var(--off-white);
    text-decoration: underline;
  }

  .procedure-card .text-link:hover,
  .location-card .text-link:hover {
    color: var(--ink);
  }
}

@media (min-width: 50rem) {
  .hero__content {
    padding-bottom: clamp(4rem, 8vh, 6rem);
  }

  .split,
  .procedure-intro,
  .manifesto,
  .final-cta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split--authority {
    grid-template-areas: "copy media";
  }

  .authority-media {
    grid-area: media;
  }

  .authority-copy {
    grid-area: copy;
  }

  .authority-media img {
    max-height: 45rem;
    object-fit: cover;
    object-position: center 15%;
  }

  .manifesto__media,
  .final-cta__media {
    min-height: 42rem;
  }

  .procedure-intro {
    gap: clamp(2rem, 5vw, 4.5rem);
  }

  .procedure-intro img {
    height: clamp(20rem, 40vw, 28.75rem);
  }

  .procedure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta__media {
    grid-column: 2;
  }

  .final-cta__content {
    grid-column: 1;
    grid-row: 1;
  }

  .site-footer {
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
  }

  .lead-dialog {
    width: min(calc(100% - 2rem), 27.5rem);
    max-width: 27.5rem;
    max-height: calc(100svh - 2rem);
    margin: auto;
    padding: 2.25rem;
    border-radius: 0.625rem;
  }

  .legal-header {
    align-items: center;
    flex-direction: row;
  }
}

@media (min-width: 68.75rem) {
  .procedure-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
