:root {
  color-scheme: light;
  --white: #fff;
  --paper: #f3f4ff;
  --ink: #15213d;
  --muted: #4f5970;
  --indigo: #3f47bf;
  --indigo-dark: #3039a4;
  --line: #dbe0ed;
  --star: #8a550d;
  --font: "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 1rem / 1.6 var(--font);
}

h1, h2, h3, p, figure, blockquote, dd { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
strong { font-weight: 600; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:where(a, button, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.shell { width: min(100% - 5rem, 73rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  transform: translateY(-180%);
  background: var(--white);
}

.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex;
  min-height: 4.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .6rem;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
}

.brand-mark {
  display: flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: .58rem;
  border-radius: .62rem;
  background: var(--indigo);
  color: var(--white);
}

.brand-mark span { width: 3px; height: .42rem; border-radius: 3px; background: currentColor; }
.brand-mark span:nth-child(2) { height: .66rem; }
.brand-mark span:nth-child(3) { height: .9rem; }

.header-links { display: contents; }
.menu-toggle { display: none; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.8rem); }

.site-nav a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover { color: var(--indigo); }

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .62rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms, border-color 160ms;
}

.header-call { min-height: 2.75rem; }
.button-primary { background: var(--indigo); color: var(--white); }
.button-primary:hover { background: var(--indigo-dark); }
.button-primary:focus-visible { outline-color: var(--indigo); }
.button-outline { border-color: #aab2d1; background: var(--white); color: var(--ink); }
.button-outline:hover { border-color: var(--indigo); background: #f6f7ff; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }

.hero { background: var(--paper); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3.1rem, 5.4vw, 5.4rem);
}

.eyebrow {
  color: var(--indigo-dark);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1 {
  margin-top: .95rem;
  font-size: clamp(3.25rem, 6.05vw, 5.65rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.055em;
}

h1 em { color: var(--indigo); font-style: normal; }

.hero-description {
  max-width: 27rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.hero-copy .actions { margin-top: 1.55rem; }

.rating-link {
  display: inline-flex;
  min-height: 2.75rem;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem .65rem;
  margin-top: .85rem;
  color: var(--muted);
  font-size: .94rem;
  text-decoration: none;
}

.rating-link strong { color: var(--ink); }
.rating-link:hover span:last-child { text-decoration: underline; }
.stars { color: var(--star); font: 1rem / 1.1 system-ui, sans-serif; letter-spacing: .11em; white-space: nowrap; }

.hero-figure {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d5d9eb;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 12px 38px rgb(40 49 103 / 10%);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  background: #ddd8d0;
  object-fit: cover;
}

.appointment {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 1.05rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}

.appointment strong { display: block; margin-bottom: .15rem; color: var(--ink); font-size: 1rem; }

.calendar-icon {
  position: relative;
  flex: none;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .5rem;
  background: var(--paper);
  color: var(--indigo);
}

.calendar-icon::before {
  position: absolute;
  inset: .57rem .52rem .55rem;
  border: 1.75px solid currentColor;
  border-radius: 2px;
  background: linear-gradient(currentColor, currentColor) center 3px / 100% 1.5px no-repeat;
  content: "";
}

.section { padding-block: clamp(3rem, 5.6vw, 5rem); }

h2 {
  font-size: clamp(2.2rem, 3.9vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -.045em;
}

.services-grid, .review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.service-card {
  padding: clamp(1.15rem, 2.2vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
}

.service-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: .55rem;
  background: var(--paper);
  color: var(--indigo);
}

.service-percent { font-size: 1.43rem; font-weight: 600; }

.document-icon, .ledger-icon {
  position: relative;
  width: 1rem;
  height: 1.2rem;
  border: 1.7px solid currentColor;
  border-radius: 2px;
}

.document-icon::after {
  position: absolute;
  inset: 4px 2px auto;
  height: 5px;
  border-block: 1.5px solid currentColor;
  content: "";
}

.ledger-icon {
  width: 1.22rem;
  background: linear-gradient(currentColor, currentColor) center 4px / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}

.service-card h3 { margin-top: 1rem; font-size: 1.3rem; font-weight: 600; letter-spacing: -.025em; }
.service-card p { margin-top: .55rem; color: var(--muted); }

.information-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: start;
  gap: clamp(1.5rem, 6vw, 5rem);
}

.preparation { background: var(--paper); }
.preparation h2, .faq h2 { max-width: 13ch; }
.preparation p { max-width: 36ch; margin-top: .85rem; color: var(--muted); }
.preparation-list { margin: 0; }

.preparation-list div, .faq-list details {
  border-top: 1px solid #cdd3e6;
}

.preparation-list div:last-child, .faq-list details:last-child { border-bottom: 1px solid #cdd3e6; }
.preparation-list div { padding-block: .9rem; }
.preparation-list dt { font-weight: 600; }
.preparation-list dd { margin-top: .15rem; color: var(--muted); }

.reviews { background: var(--ink); color: var(--white); }
.reviews .eyebrow { margin-bottom: .5rem; color: #cbd0ff; }
.reviews .stars { color: #f6ca76; }

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .7rem 1.5rem;
}

.text-link, .review figcaption a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .23em;
}

.text-link:hover { color: var(--indigo-dark); }
.reviews a:hover { color: #dfe1ff; }

.review {
  display: flex;
  flex-direction: column;
  padding: clamp(1.15rem, 2.2vw, 1.8rem);
  border: 1px solid #435070;
  border-radius: .85rem;
  background: #202d4e;
}

.review blockquote {
  flex: 1;
  margin-block: .7rem 1.25rem;
  font-size: clamp(1.12rem, 1.65vw, 1.3rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.025em;
}

.review figcaption { color: #dae0f0; font-size: .92rem; }

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

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .9rem;
  list-style: none;
  font-weight: 600;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--indigo-dark); }

.faq-list summary::after {
  flex: none;
  width: 1rem;
  height: 1rem;
  background: linear-gradient(currentColor, currentColor) center / .75rem 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px .75rem no-repeat;
  color: var(--indigo);
  content: "";
}

.faq-list details[open] summary::after { background-size: .75rem 1px, 0 0; }
.faq-list p { max-width: 53ch; padding: 0 1.75rem .9rem 0; color: var(--muted); }

.visit-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.visit address { margin-block: .8rem 1.2rem; color: var(--muted); font-style: normal; }
.office-details { margin-block: 0 1rem; border-bottom: 1px solid var(--line); }

.office-details div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .55rem;
  padding-block: .55rem;
  border-top: 1px solid var(--line);
}

.office-details dt { font-weight: 600; }
.office-details dd, .visit-note { color: var(--muted); }
.visit-note { margin-top: .55rem; font-size: .93rem; }
.visit .actions { margin-top: 1.15rem; }

.map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--paper);
}

.map iframe {
  display: block;
  width: 100%;
  height: clamp(19rem, 34vw, 28rem);
  border: 0;
  background: #e4e7ee;
}

.map-caption { display: block; padding: .75rem 1rem; }
.map-caption:focus-visible { outline-offset: -4px; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .95rem 2rem;
  padding-block: 1.55rem;
  padding-inline-end: 3.75rem;
}

.footer-inner p { color: var(--muted); font-size: .875rem; }

.whatsapp-float {
  position: fixed;
  z-index: 1;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 3px 14px rgb(21 33 61 / 20%);
}

.whatsapp-float:hover { border-color: #378957; }
.whatsapp-float:focus-visible { outline-color: #15733e; }

@media (max-width: 56rem) {
  .shell { width: calc(100% - 3rem); }
  .hero-grid { gap: 1.7rem; }
  h1 { font-size: clamp(2.8rem, 6.25vw, 4rem); }
  .visit-grid { gap: 2rem; }
}

@media (max-width: 42rem) {
  .shell { width: calc(100% - 2.25rem); }
  .header-inner { min-height: 0; flex-wrap: wrap; padding-block: .65rem; gap: .45rem .75rem; }
  .menu-toggle:not([hidden]) {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    padding: 0;
    border: 1px solid #aab2d1;
    border-radius: .62rem;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
  }
  .menu-toggle:hover { background: var(--paper); }
  .menu-icon { display: grid; gap: 4px; }
  .menu-icon span { width: 1.15rem; height: 2px; border-radius: 1px; background: currentColor; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { visibility: hidden; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .header-links { display: grid; flex: 0 0 100%; justify-items: end; gap: .55rem; }
  .menu-toggle[aria-expanded="false"]:not([hidden]) + .header-links { display: none; }
  .site-nav { display: grid; width: 100%; gap: 0; }
  .site-nav a { justify-content: flex-end; border-top: 1px solid var(--line); }
  .hero-grid { grid-template-columns: 1fr; padding-block: 2.3rem; }
  h1 { font-size: clamp(3rem, 11.4vw, 4.4rem); }
  .hero-figure img { aspect-ratio: 16 / 10; }
  .services-grid, .review-grid, .information-grid, .visit-grid { grid-template-columns: 1fr; }
  .preparation h2, .faq h2 { max-width: none; }
  .map iframe { height: 18.5rem; }
}

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