:root {
  --ink: #172027;
  --charcoal: #12181c;
  --white: #ffffff;
  --line: #e6e6e6;
  --muted: #3e474e;
  --bronze: #9b8768;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --display-serif: "Hoefler Text", Georgia, serif;
  --header: 72px;
  --anchor-gap: 12px;
  --gutter: 24px;
  --wrap: min(1200px, calc(100% - 2 * var(--gutter)));
  --space: clamp(3.3rem, 6vw, 5rem);
  --title-size: clamp(1.9rem, 1.55rem + 1.4vw, 2.75rem);
}

@property --header-fill {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

* { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header) + var(--anchor-gap)); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a { color: inherit; }

button, a, summary { touch-action: manipulation; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.032em;
  line-height: 1.15;
}

button {
  -webkit-user-select: none;
  user-select: none;
}

/* Limit selection color to copy and labels, keeping layout gaps unpainted. */
::selection { background-color: transparent; }

:where(h1, h2, h3, p, li, a, span, strong, label, summary, figcaption)::selection {
  background-color: #dbe7ef;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-160%);
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.site-entry { display: none; }

html.show-site-entry .site-entry {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #0c0e0f;
  color: var(--white);
  text-align: center;
  pointer-events: none;
  animation: site-entry 1920ms cubic-bezier(0.37, 0, 0.28, 1) both;
}

.site-entry-brand img {
  width: 90px;
  height: 60px;
  margin: 0 auto 0.85rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-entry-name {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  line-height: 1.25;
}

.site-entry-role {
  margin-top: 0.35rem;
  color: #d9d7d2;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

@keyframes site-entry {
  0%, 59% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

html.js .site-header {
  position: fixed;
  inset: 0 0 auto;
}

html.js body { padding-top: var(--header); }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min-content;
  color: inherit;
  text-decoration: none;
}

.brand-marks {
  position: relative;
  flex: 0 0 auto;
  width: 66px;
  height: 44px;
}

.brand-mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 66px;
  height: 44px;
  max-width: none;
  object-fit: contain;
}

.brand-mark.is-light {
  filter: brightness(0) invert(1);
  opacity: 0;
}

.brand-mark.is-dark { opacity: 1; }

html.js body.has-hero .site-header {
  --header-fill: var(--header-scroll-fill, 0);
  --header-tone: clamp(0, (var(--header-fill) - 0.3) * 8, 1);
  --header-ink-weight: calc(var(--header-tone) * 100%);

  background: transparent;
  color: color-mix(in srgb, var(--ink) var(--header-ink-weight), var(--white));
  border-bottom-color: transparent;
  transition: --header-fill 150ms cubic-bezier(0.18, 0.72, 0.3, 1);
}

html.js body.has-hero .site-header.is-menu {
  --header-fill: 1;
  transition: none;
}

html.js body.has-hero .site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 -1px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(18, 24, 28, 0.06);
  opacity: var(--header-fill);
  pointer-events: none;
}

html.js body.has-hero .site-header .brand-mark.is-light {
  opacity: calc(1 - var(--header-tone));
}

html.js body.has-hero .site-header .brand-mark.is-dark {
  opacity: var(--header-tone);
}

html.js body.has-hero .site-header :focus-visible { outline-color: currentColor; }

.brand-text { min-width: min-content; }

.brand-name,
.brand-role {
  display: block;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.brand-role {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

html.js body.has-hero .site-header .brand-role {
  color: color-mix(in srgb, var(--muted) var(--header-ink-weight), #e7e4dc);
}

.menu-toggle {
  display: none;
  flex: 0 0 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }

.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: 0.975rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] { background-size: 100% 1px; }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(640px, 90svh, 720px);
  padding: 2.75rem 0 4.5rem;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
}

html.js .hero {
  margin-top: calc(var(--header) * -1);
  padding-top: calc(var(--header) + 2.25rem);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  overflow: hidden;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.hero-photo {
  position: absolute;
  top: -4%;
  left: -4%;
  width: 108%;
  height: 108%;
  max-width: none;
  object-fit: cover;
  object-position: 72% 46%;
  transform-origin: 68% 50%;
  translate: 0 min(3.2%, var(--hero-photo-offset, 0px));
  -webkit-user-drag: none;
}

.js .hero-photo { animation: hero-drift 4.6s cubic-bezier(0.22, 0.55, 0.36, 1) both; }

.hero-photo.is-still {
  animation: none;
  translate: none;
}

.show-site-entry .hero-photo,
.hero-photo.is-paused { animation-play-state: paused; }

.hero-shade {
  background:
    linear-gradient(180deg, rgba(12, 16, 20, 0.72) 0px, rgba(12, 16, 20, 0.5) 72px, rgba(12, 16, 20, 0.12) 160px, rgba(12, 16, 20, 0) 220px),
    linear-gradient(90deg, rgba(12, 16, 20, 0.62) 0%, rgba(12, 16, 20, 0.28) 36%, rgba(12, 16, 20, 0.06) 58%, rgba(12, 16, 20, 0) 76%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(620px, var(--wrap));
  margin-left: max(var(--gutter), calc((100% - 1200px) / 2));
}

.hero h1 {
  max-width: 14em;
  font-family: var(--serif);
  font-size: clamp(2.05rem, 1.55rem + 1.9vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.lede {
  max-width: 52ch;
  margin-top: 1.15rem;
  color: #f4f2ec;
  font-size: 1rem;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover { background: #f3f3f3; }

.btn-line {
  border-color: rgba(255, 255, 255, 0.62);
  background: transparent;
  color: var(--white);
}

.btn-line:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

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

.btn-dark:hover { background: #24313a; }

.hero .btn:focus-visible,
.hero .btn-line:focus-visible { outline-color: var(--white); }

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-block-size: calc(100dvh - var(--header));
  padding-block: clamp(1.75rem, 3.4vw, 3rem);
  scroll-margin-block-start: calc(-1 * var(--anchor-gap));
}

.about-layout {
  --wrap: min(1248px, calc(100% - 2 * var(--gutter)));
  --about-inset: clamp(1.2rem, 2.5vw, 1.85rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr);
  gap: clamp(1.1rem, 2.5vw, 1.65rem);
}

.about-identity {
  overflow: hidden;
  border: 1px solid #e2e6e7;
  border-radius: 0.85rem;
  background: var(--white);
}

.about-portrait {
  position: relative;
  margin: 0;
}

.about-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  object-position: center top;
  background: #e5e2dc;
}

.about-portrait figcaption {
  position: absolute;
  inset-inline-end: 0.75rem;
  bottom: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.3rem;
  background: #172027e8;
  color: var(--white);
  font-size: 0.75rem;
  line-height: 1.25;
}

.about-details { padding: var(--about-inset); }

.about-identity h2 {
  font-family: var(--display-serif);
  font-size: clamp(1.75rem, 1.45rem + 0.85vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.13;
  text-wrap: balance;
}

.about-role {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.about-summary {
  margin-top: 0.75rem;
  color: #34414a;
  font-size: 0.975rem;
  line-height: 1.55;
}

.about-area {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.about-contact {
  gap: 0.55rem;
  margin-top: 0.8rem;
  border-radius: 0.55rem;
  font-size: 0.93rem;
}

.about-practice {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e6e7;
  border-radius: 0.85rem;
}

.about-copy {
  display: grid;
  flex: 1;
  align-content: start;
  padding: var(--about-inset);
  background: #f6f7f7;
}

.about-copy > div + div {
  margin-top: clamp(1rem, 1.8vw, 1.45rem);
  padding-top: clamp(1rem, 1.8vw, 1.45rem);
  border-top: 1px solid #dce0e1;
}

.about-copy p {
  max-width: 62ch;
  color: var(--muted);
}

.about-copy h3 {
  margin-bottom: 0.55rem;
  font-family: "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: clamp(1.24rem, 1.05rem + 0.45vw, 1.44rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-wrap: balance;
}

@media (min-width: 1120px) {
  .about-copy > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.55fr);
    align-items: baseline;
    gap: clamp(1.25rem, 2.4vw, 2rem);
  }

  .about-copy p { font-size: 1.06rem; }

  .about-copy h3 {
    margin: 0;
    text-wrap: wrap;
  }
}

.about-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #e2e6e7;
  background: var(--white);
}

.about-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-height: 3.65rem;
  padding: 0.65rem clamp(0.75rem, 1.7vw, 1.5rem);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
}

.about-actions a + a { border-inline-start: 1px solid #e2e6e7; }
.about-actions a:hover { background: #f5f6f6; }
.about-actions a:focus-visible { outline-offset: -4px; }

.about-actions a span { color: #725b3e; }

.service-directory {
  padding-block: clamp(2.3rem, 5vw, 4.2rem);
  border-bottom: 1px solid var(--line);
  background: #f7f7f6;
}

.directory-heading {
  max-width: 38rem;
  margin: 0 auto clamp(1.15rem, 2.2vw, 1.75rem);
  text-align: center;
}

.directory-heading h2 { font-size: var(--title-size); }

.directory-heading p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 0.87rem + 0.15vw, 1rem);
  text-wrap: pretty;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.65vw, 1.25rem);
  max-width: 71rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.directory-grid li { grid-column: span 2; min-width: 0; }
.directory-grid li:nth-child(4) { grid-column: 2 / span 2; }
.directory-grid li:nth-child(5) { grid-column: 4 / span 2; }

.directory-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: clamp(0.95rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--white);
  text-align: center;
  text-decoration: none;
  transition: border-color 180ms ease;
}

.directory-grid a:hover,
.directory-grid a:active,
.directory-grid a:focus-visible,
.directory-grid li:has(:target) a { border-color: #737c82; }

.directory-icon {
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: 0.65rem;
  padding: 0.25rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.directory-grid strong {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.3;
  text-wrap: balance;
}

.service-brief {
  margin: 0.5rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.directory-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.3rem;
  margin-top: auto;
  padding: 0.32rem 0.8rem;
  border-radius: 0.25rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
}

.faq-block p,
.legal-body p,
.legal-body li {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1rem;
}

.interior-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(0.55rem, 1.35vw, 1rem);
  padding: clamp(1.6rem, 3.5vw, 2.9rem) clamp(1rem, 3vw, 2rem);
  border: 1px solid #555;
  border-radius: 0.9rem;
  background-color: #292929;
  color: var(--white);
  text-align: center;
}

.interior-hero::before {
  position: absolute;
  z-index: -1;
  inset: -5px;
  background:
    linear-gradient(90deg, #12121229, #12121270 38%, #12121270 62%, #12121229),
    url("assets/portada-sala-tribunal.jpg") center 54% / cover no-repeat;
  filter: blur(1.5px);
  content: "";
}

.interior-hero-copy {
  max-width: 49rem;
  margin-inline: auto;
}

.interior-hero h1 {
  font-size: clamp(1.85rem, 1.35rem + 2.2vw, 3.05rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.interior-hero p {
  max-width: 58ch;
  margin: 0.65rem auto 0;
  color: #f1f1f1;
  font-size: clamp(1rem, 0.95rem + 0.22vw, 1.12rem);
  line-height: 1.55;
  text-wrap: balance;
}

.interior-page-layout {
  margin-block: clamp(1.5rem, 3vw, 2.5rem) var(--space);
}

.section-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.section-choices a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 1px solid #d1ccc4;
  border-radius: 0.3rem;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.section-choices a:hover { background: #f7f6f3; }

.section-choices [aria-current="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.section-choices [aria-current="true"]:hover { background: #2c3941; }

.legal-body.service-topics {
  display: grid;
  gap: 1.45rem;
  max-width: none;
}

.service-topics article:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dfe2e4;
  border-radius: 1rem;
  background: var(--white);
}

.service-overview,
.service-preparation {
  padding: clamp(1.25rem, 3.3vw, 2.65rem);
}

.service-preparation {
  border-inline-start: 1px solid #dfe2e4;
}

.service-preparation,
.method-points li,
.inquiry-message {
  background: #f0f2f3;
}

.legal-body .service-overview h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.75rem, 1.45rem + 1.65vw, 2.6rem);
  text-wrap: balance;
}

.service-topics .service-checklist {
  margin: 0;
  padding-left: 1.2rem;
}

.service-checklist li::marker { color: #58626a; }

.service-preparation h3 {
  margin-bottom: 0.7rem;
  font-size: 1.15rem;
}

.service-consult {
  gap: 0.6rem;
  margin-top: 1.2rem;
  border-radius: 0.55rem;
  font-size: 0.92rem;
}

/* Deep links on the enhanced page keep the selector above the chosen service. */
.js .service-topics article { scroll-margin-top: 100svh; }

.consultation-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: var(--space);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3.4vw, 2.5rem);
  border-radius: 1rem;
  background: #383838;
  color: var(--white);
  text-align: center;
}

.faq-block + .consultation-panel { margin-block: var(--space); }

.consultation-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("assets/brand/equilibrio-a2-isotipo-marca-agua.png") center / min(64%, 25rem) auto no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.13;
  content: "";
}

.consultation-panel h2 {
  max-width: 31ch;
  margin-inline: auto;
  font-size: clamp(1.75rem, 1.24rem + 1.75vw, 2.65rem);
  text-wrap: balance;
}

.consultation-copy .section-label {
  margin-bottom: 0.65rem;
  color: #eadcc8;
}

.consultation-copy > p:not(.section-label) {
  max-width: 53ch;
  margin: 0.85rem auto 0;
  color: #e4e7e8;
  text-wrap: balance;
}

.consultation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.consultation-actions .btn {
  gap: 0.65rem;
  border-radius: 0.6rem;
}

.consultation-actions .btn:focus-visible { outline-color: var(--white); }

.home-invitation {
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #f7f7f6;
}

.home-invitation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 5rem);
}

.home-invitation-copy { padding-block: clamp(2.5rem, 6vw, 5rem); }

.section-label {
  margin-bottom: 0.75rem;
  color: #6b5740;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-invitation h2 {
  font-size: clamp(2.05rem, 1.68rem + 1.5vw, 3rem);
  text-wrap: balance;
}

.home-invitation-copy > p {
  max-width: 42ch;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: clamp(1.04rem, 0.97rem + 0.27vw, 1.13rem);
}

.home-invitation-actions { margin-top: 1.5rem; }

.home-invitation-actions .btn {
  gap: 0.75rem;
  font-size: 1.05rem;
}

.home-invitation-art {
  display: flex;
  align-self: end;
  justify-content: center;
  align-items: end;
  height: clamp(22rem, 37vw, 31rem);
  padding-top: 1rem;
}

.home-invitation-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.method-section,
.faq-block {
  padding-block: clamp(2.15rem, 3.15vw, 2.75rem);
}

.method-heading {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.method-heading h2,
.faq-block h2 {
  font-size: var(--title-size);
  text-wrap: balance;
}

.method-heading p,
.faq-layout header p {
  max-width: 55ch;
  margin-top: 0.65rem;
  color: var(--muted);
}

.method-heading p {
  margin-inline: auto;
  text-wrap: balance;
}

.method-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.4rem);
  margin: clamp(1.15rem, 2.1vw, 1.6rem) 0 0;
  padding: 0;
  list-style: none;
}

.method-points li {
  padding: clamp(1rem, 2vw, 1.55rem);
  border: 1px solid #dfe2e4;
  border-radius: 0.8rem;
}

.method-points h3 {
  margin-bottom: 0.55rem;
  font-family: system-ui, sans-serif;
  font-size: clamp(1.08rem, 0.98rem + 0.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.28;
  text-wrap: balance;
}

.method-points p {
  max-width: 47ch;
  color: var(--muted);
}

.faq-block {
  border-top: 1px solid #ebedef;
  background: #f5f6f7;
}

.faq-layout > header { text-align: center; }

.faq-layout > header p {
  margin-inline: auto;
  text-wrap: balance;
}

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.75rem;
  margin-top: clamp(1.15rem, 3vw, 1.8rem);
}

.faq details {
  border: 1px solid #dfe2e4;
  border-radius: 0.65rem;
  background: var(--white);
}

.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.9rem clamp(0.85rem, 2vw, 1.3rem);
  border-radius: inherit;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
}

.faq summary:focus-visible { outline-offset: -4px; }

.faq summary::-webkit-details-marker { display: none; }

.faq summary span {
  position: relative;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: #eef0f1;
  transition: background-color 150ms ease;
}

.faq summary:hover span,
.faq details[open] summary span { background: #e5ddd1; }

.faq summary span::before,
.faq summary span::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.75px);
  left: calc(50% - 0.4rem);
  width: 0.8rem;
  height: 1.5px;
  background: var(--ink);
}

.faq summary span::after { transform: rotate(90deg); }

.faq details[open] summary span::after { transform: none; }

.faq details p {
  max-width: 68ch;
  margin: 0;
  padding: 0 clamp(0.85rem, 2vw, 1.3rem) 1.1rem;
}

.faq details a { font-weight: 600; }

.contact-main {
  padding-bottom: clamp(2.75rem, 5vw, 4.4rem);
  background: var(--white);
}

.contact-layout { margin-top: clamp(1.2rem, 2.6vw, 2rem); }

.contact-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.8vw, 2rem);
}

.contact-written,
.location-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dfd9d1;
  border-radius: 1rem;
  background: var(--white);
}

.contact-channel { padding: clamp(1.15rem, 3vw, 2rem); }

.contact-alternatives {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.contact-alternatives h3 {
  margin-bottom: 1rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
}

.contact-direct .btn,
.contact-hours {
  justify-content: flex-start;
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
  border-radius: 999px;
  text-align: left;
  overflow-wrap: anywhere;
}

.contact-direct .btn {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}

.contact-direct .btn:not(.btn-dark) {
  border-color: #d5d8da;
}

.contact-direct svg,
.contact-hours svg { flex: 0 0 auto; }

.contact-hours {
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.85rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #d5d8da;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

.contact-hours strong {
  font-weight: 700;
  white-space: nowrap;
}

.contact-written [hidden],
html:not(.js) .inquiry-compose { display: none; }

.inquiry-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: calc(clamp(1rem, 2.3vw, 1.45rem) - 0.35rem) clamp(1.15rem, 3vw, 2rem);
  background: #f5f6f6;
  box-shadow: inset 0 -1px #e2e6e7;
}

.inquiry-heading h2 {
  font-family: system-ui, sans-serif;
  font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.58rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.inquiry-icon {
  display: grid;
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--white);
}

.inquiry-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.35rem;
}

.inquiry-body label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.91rem;
  font-weight: 650;
}

.inquiry-body select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #9ba5ac;
  border-radius: 0.55rem;
  background-color: var(--white);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.inquiry-message {
  margin-top: 1.3rem;
  padding: 1rem 1.05rem;
  border: 1px solid #dfe2e4;
  border-radius: 0.65rem;
}

.inquiry-message-label {
  margin-bottom: 0.42rem;
  color: #344352;
  font-size: 0.83rem;
  font-weight: 600;
}

.inquiry-preview {
  min-height: 2lh;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.7;
}

.inquiry-note {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-whatsapp {
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  border-radius: 0.55rem;
  background: var(--ink);
  color: var(--white);
}

.contact-whatsapp:hover { background: #303a43; }

.inquiry-privacy,
.inquiry-mode { font-size: 0.875rem; }

.inquiry-privacy {
  margin: 0.6rem 0 -0.35rem;
  color: var(--muted);
}

.inquiry-privacy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
}

.location-map-frame {
  position: relative;
  box-sizing: content-box;
  flex: none;
  width: 100%;
  min-width: 0;
  min-height: clamp(14.5rem, 20vw, 18.5rem);
  aspect-ratio: 2.05;
  /* Extend the frame beyond the aspect-ratio height. */
  padding-bottom: 2rem;
  background: #edeae5;
}

.location-map-prompt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.15rem;
  text-align: center;
}

.location-map-prompt p {
  max-width: min(32ch, 100%);
  color: var(--muted);
  font-size: 0.9rem;
}

.location-map {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.location-copy {
  flex: 1;
  padding: calc(clamp(1.85rem, 3.75vw, 3.2rem) - 0.75rem) clamp(1.15rem, 3vw, 2rem);
  font-family: system-ui, sans-serif;
}

.location-label {
  margin-bottom: 0.88rem;
  color: #455260;
  font-size: 0.84rem;
  font-weight: 600;
}

.location-copy h2 {
  font-family: inherit;
  font-size: clamp(1.4rem, 1.12rem + 1.04vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.location-description {
  max-width: 51ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.location-note {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: #53606d;
  font-size: 0.83rem;
  line-height: 1.45;
}

.location-copy .btn {
  gap: 0.65rem;
  margin-top: 1.55rem;
  border-radius: 0.55rem;
}

.privacy-copy > section + section {
  margin-top: clamp(1.6rem, 4vw, 3rem);
  padding-top: clamp(1.6rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.privacy-copy h2 {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(1.45rem, 1.15rem + 0.9vw, 1.95rem);
}

.privacy-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.15rem, 3vw, 2rem) clamp(1.6rem, 5vw, 4.5rem);
}

.privacy-copy h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.05rem, 0.98rem + 0.25vw, 1.2rem);
}

.privacy-copy ul { margin-block: 0; }

.privacy-copy a { text-underline-offset: 0.18em; }

.legal-body p + p { margin-top: 0.65rem; }
.legal-body ul { padding-inline-start: 1.2em; }
.legal-body li + li { margin-top: 0.4rem; }

.site-footer {
  background: var(--charcoal);
  color: var(--white);
}

.site-footer :focus-visible { outline-color: var(--white); }

.site-footer .brand-mark.is-light { opacity: 1; }

.site-footer .brand-mark.is-dark { opacity: 0; }

.site-footer .brand-role { color: #ddd9d2; }

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: start;
  gap: 2rem clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(2.75rem, 5.2vw, 4.75rem) 0 clamp(2.5rem, 4.6vw, 4rem);
}

.footer-brand .brand { width: fit-content; }
.footer-brand .brand-name { white-space: normal; }

.footer-brand > p,
.footer-contact-copy {
  max-width: 36ch;
  margin-top: 0.85rem;
  color: #d1d5d6;
  font-size: 0.9rem;
}

.footer-contact-copy { margin: 0 0 1.15rem; }

.footer-label {
  margin-bottom: 0.6rem;
  color: #e2ded7;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #f1f0ed;
  font-size: 0.93rem;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-channel {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #e6e2db;
}

.footer-channel:hover { background: #ffffff14; }
.footer-channel:focus-visible { outline-color: var(--white); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
  padding: 0.9rem 0 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #ddd9d2;
  font-size: 0.9375rem;
}

@keyframes hero-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-1.75%, 0, 0) scale(1.085); }
}

@media (max-width: 899px) {
  html.js .menu-toggle { display: flex; }

  html.js .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem max(var(--gutter), calc((100% - 1200px) / 2)) 0.85rem;
    background: var(--white);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  html.js .nav.is-open { display: flex; }

  html.js .nav a {
    min-height: 48px;
    padding: 0.35rem 0;
    background-image: none;
    color: var(--ink);
    font-size: 1.05rem;
  }

  html.js .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }

}

@media (max-width: 979px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .directory-grid li:nth-child(4) { grid-column: span 2; }
  .directory-grid li:nth-child(5) { grid-column: 2 / span 2; }
}

@media (max-width: 789px) {
  .contact-columns,
  .method-points,
  .about-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 759px) {
  :root { --gutter: 20px; }

  html.show-site-entry .site-entry { animation-duration: 2250ms; }

  .brand { gap: 10px; }

  .home-invitation-layout,
  .faq,
  .about-actions,
  .privacy-topics { grid-template-columns: minmax(0, 1fr); }

  .about-contact {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .about-actions a + a {
    border-top: 1px solid #e2e6e7;
    border-inline-start: 0;
  }

  .service-topics article:not([hidden]) { grid-template-columns: minmax(0, 1fr); }

  .service-preparation {
    border-inline-start: 0;
    border-top: 1px solid #dfe2e4;
  }

  .directory-heading p { text-wrap: balance; }

  .home-invitation-layout { gap: 0.5rem; }

  .home-invitation-copy { padding-block: 2.35rem 0.6rem; }

  .home-invitation-actions {
    display: flex;
    justify-content: center;
  }

  .home-invitation-art {
    height: clamp(17rem, 73vw, 23.5rem);
    padding-top: 0.65rem;
  }

  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-brand .brand {
    margin-inline: auto;
    text-align: start;
  }

  .footer-brand > p,
  .footer-contact-copy {
    margin-inline: auto;
    text-wrap: balance;
  }

  .footer-nav {
    align-items: center;
    text-align: center;
  }

  .footer-nav .footer-label {
    font-size: clamp(0.65rem, 2.95vw, 0.75rem);
    letter-spacing: 0.09em;
  }

  .footer-nav a { min-height: 44px; }

  .footer-nav .footer-home-link { display: none; }

  .footer-channels,
  .footer-base { justify-content: center; }

  .footer-base { text-align: center; }

  .brand-marks,
  .brand-mark { width: 54px; height: 36px; }

  .brand-name { font-size: 0.78rem; letter-spacing: 0.03em; }

  .brand-role { letter-spacing: 0.14em; }

  html.js body.has-hero .site-header {
    --header-fade: 290ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  html.js body.has-hero .site-header,
  html.js body.has-hero .site-header.is-menu,
  html.js body.has-hero .site-header .brand-role {
    transition: color var(--header-fade);
  }

  html.js body.has-hero .site-header::before,
  html.js body.has-hero .site-header .brand-mark {
    transition: opacity var(--header-fade);
  }

  .hero {
    min-height: clamp(38.5rem, 94svh, 52rem);
    padding: 2rem 0;
  }

  html.js .hero { padding-block: calc(var(--header) + 1rem); }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(12, 16, 20, 0.78) 0%, rgba(12, 16, 20, 0.5) 46%, rgba(12, 16, 20, 0.28) 100%),
      linear-gradient(90deg, rgba(12, 16, 20, 0.4) 0%, rgba(12, 16, 20, 0.1) 72%, rgba(12, 16, 20, 0) 100%);
  }

  .hero-photo { object-position: 78% 42%; }

  .hero-copy {
    width: min(34rem, var(--wrap));
    margin-inline: auto;
    text-align: center;
  }

  .hero h1 {
    margin-inline: auto;
    text-wrap: balance;
  }

  .hero .lede { margin: 1.4rem auto 0; }

  .hero-actions {
    justify-content: center;
    margin-top: 1.6rem;
  }
  .hero-actions .btn { padding-inline: 0.75rem; font-size: 0.9rem; }
}

@media (max-width: 599px) {
  .directory-grid a { padding: 0.8rem clamp(0.45rem, 2.75vw, 0.8rem); }

  .directory-icon {
    width: 2.45rem;
    height: 2.45rem;
    margin-bottom: 0.55rem;
  }

  .directory-grid strong {
    font-size: clamp(0.94rem, 0.84rem + 0.5vw, 1.05rem);
    line-height: 1.25;
  }

  .service-brief {
    margin: 0.45rem 0 0.65rem;
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .directory-action {
    gap: 0.3rem;
    padding-inline: 0.55rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 380px) {
  .header-bar { gap: 12px; }

  .site-header .brand { gap: 8px; }

  .site-header .brand-marks,
  .site-header .brand-mark { width: 48px; height: 32px; }

  .site-header .brand-name {
    font-size: 0.72rem;
    letter-spacing: 0.025em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.show-site-entry .site-entry { display: none; }
  .hero-photo { translate: none; }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .page-arrival main h1,
  .page-arrival main :target h2 {
    animation: page-heading-arrival 220ms ease-out;
  }
}

@keyframes page-heading-arrival {
  from { transform: translateY(5px); }
  to { transform: translateY(0); }
}
