/* =========================================================
   Con La Ley · Uruguay (conlaley.com/uruguay)
   Editorial Legal Design System — Local Palette
   Warm Travertine Ivory + Deep Forest Slate + Terracotta Ochre
   ========================================================= */

:root {
  --bg-page: #F7F4EE;
  --bg-surface: #EDE8DE;
  --bg-forest: #10231E;
  --bg-forest-soft: #18312A;

  --ink-primary: #121E1A;
  --ink-muted: #4A5954;
  --ink-faint: #848C88;
  --ink-on-dark: #F4F2EC;
  --ink-on-dark-muted: #BCC7C2;

  --accent-dark: #8C5327;
  --accent-warm: #C58A4A;
  --accent-amber: #E0B46B;

  --rule: rgba(18, 30, 26, 0.13);
  --rule-strong: rgba(18, 30, 26, 0.26);
  --rule-dark: rgba(244, 242, 236, 0.16);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-heading: clamp(2rem, 3.6vw, 3.125rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.78rem;

  --maxw: 1240px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-forest);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.62;
  color: var(--ink-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.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;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--ink-on-dark);
  background-color: rgba(16, 35, 30, 0.25);
  border-bottom: 1px solid transparent;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease);
}

.site-header.is-scrolled,
.site-header.is-solid {
  background-color: rgba(16, 35, 30, 0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--rule-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink-on-dark);
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-amber);
  padding-left: 0.55rem;
  border-left: 1px solid rgba(244, 242, 236, 0.28);
  line-height: 1;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.45vw, 1.65rem);
}

.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-on-dark-muted);
  position: relative;
  padding-block: 0.25rem;
  white-space: nowrap;
  transition: color 180ms var(--ease);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background-color: var(--accent-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--ink-on-dark);
  outline: none;
}

.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after {
  transform: scaleX(1);
}

.nav-desktop a.nav-cross {
  padding-left: 1rem;
  border-left: 1px solid rgba(244, 242, 236, 0.22);
  color: var(--ink-on-dark);
}

.nav-desktop a.nav-cross-secondary {
  color: var(--ink-on-dark);
}

.nav-desktop a.nav-cross:hover,
.nav-desktop a.nav-cross:focus-visible,
.nav-desktop a.nav-cross-secondary:hover,
.nav-desktop a.nav-cross-secondary:focus-visible {
  color: var(--accent-amber);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.56rem 1.15rem;
  border-radius: 6px;
  background-color: var(--accent-amber);
  color: var(--bg-forest);
  white-space: nowrap;
  transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}

.btn-header:hover {
  background-color: #ECC98A;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(244, 242, 236, 0.24);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.menu-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  margin-top: -0.75px;
  background-color: var(--ink-on-dark);
  transform-origin: center;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.menu-line:first-child {
  transform: translateY(-4px);
}

.menu-line:last-child {
  transform: translateY(4px);
}

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

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

@media (min-width: 1025px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav {
  background-color: var(--bg-forest);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  padding-block: 1.5rem 2rem;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav nav a {
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--rule-dark);
  color: var(--ink-on-dark);
  font-size: var(--text-body);
  font-weight: 500;
}

.mobile-nav nav a.nav-cross-mobile {
  color: var(--accent-amber);
}

.mobile-nav-cta {
  width: 100%;
}

/* =========================================================
   PRIMARY BUTTONS
   ========================================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background-color: var(--bg-forest);
  color: var(--ink-on-dark);
  font-size: var(--text-body);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

.btn-primary:hover {
  background-color: #1B3B33;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-hero,
.btn-on-dark {
  background-color: var(--accent-amber);
  color: var(--bg-forest);
}

.btn-hero:hover,
.btn-on-dark:hover {
  background-color: #ECC98A;
}

.btn-full {
  width: 100%;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-block: 8rem clamp(4.5rem, 9vh, 7rem);
  background-color: var(--bg-forest);
  color: var(--ink-on-dark);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 35, 30, 0.48) 0%, rgba(16, 35, 30, 0.08) 34%, rgba(16, 35, 30, 0.72) 100%),
    linear-gradient(90deg, rgba(16, 35, 30, 0.82) 0%, rgba(16, 35, 30, 0.44) 52%, rgba(16, 35, 30, 0.06) 82%);
}

.hero-stage {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: min(46rem, 62vw);
}

.hero-kicker {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 1rem;
  animation: hero-rise 620ms var(--ease) both;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.2vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-on-dark);
  margin-bottom: 1.6rem;
  animation: hero-rise 680ms 50ms var(--ease) both;
}

.hero-sub {
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink-on-dark-muted);
  max-width: 50ch;
  margin-bottom: 2.25rem;
  animation: hero-rise 680ms 110ms var(--ease) both;
}

.btn-hero {
  animation: hero-rise 680ms 170ms var(--ease) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   SECTIONS & TYPOGRAPHY
   ========================================================= */

.section {
  padding-block: clamp(4.75rem, 8.5vw, 7.5rem);
  scroll-margin-top: 78px;
}

.section-light {
  background-color: var(--bg-page);
  color: var(--ink-primary);
}

.section-surface {
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-forest {
  background-color: var(--bg-forest);
  color: var(--ink-on-dark);
}

.section h2 {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 28ch;
}

.section-intro {
  font-size: var(--text-body);
  color: var(--ink-muted);
  max-width: 60ch;
  margin-top: 1.15rem;
}

.section-header-left {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* =========================================================
   SCOPE / ENFOQUE LOCAL
   ========================================================= */

.scope-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.82fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: start;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 3rem;
}

.scope-item {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.scope-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-dark);
  margin-bottom: 0.85rem;
}

.scope-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scope-item h3 {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 0.4rem;
}

.scope-item p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.6;
}

.scope-figure {
  position: sticky;
  top: 108px;
}

.scope-image-frame {
  overflow: hidden;
  border-radius: 6px;
  background-color: var(--bg-surface);
  aspect-ratio: 3 / 4;
}

.scope-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scope-figure figcaption {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-top: 0.9rem;
  line-height: 1.55;
  max-width: 44ch;
}

/* =========================================================
   CATALOGO DE SERVICIOS EN UR
   ========================================================= */

.catalog-header {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}

.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 0.85rem;
}

.catalog-controls-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.45rem 1.35rem;
  flex-wrap: wrap;
}

.tab-btn {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  padding: 0.4rem 0 0.55rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.tab-btn:hover {
  color: var(--ink-primary);
}

.tab-btn.is-active {
  color: var(--ink-primary);
  font-weight: 600;
  border-bottom-color: var(--accent-dark);
}

.tab-count {
  font-size: var(--text-xs);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.catalog-search-wrap {
  position: relative;
  width: min(100%, 340px);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--ink-muted);
  stroke-width: 1.8;
  pointer-events: none;
}

.catalog-search-wrap input {
  width: 100%;
  padding: 0.58rem 0.9rem 0.58rem 2.45rem;
  font-size: var(--text-sm);
  background-color: var(--bg-page);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  color: var(--ink-primary);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.catalog-search-wrap input::placeholder {
  color: var(--ink-muted);
}

.catalog-search-wrap input:focus {
  outline: none;
  border-color: var(--bg-forest);
  background-color: #FFFFFF;
}

.ledger-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0.75rem 0.7rem;
  border-bottom: 1px solid var(--rule-strong);
}

.ledger-group-head:first-child {
  padding-top: 1.5rem;
}

.ledger-group-head h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
}

.ledger-group-count {
  font-size: var(--text-xs);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.ledger-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1.8fr) minmax(205px, 0.72fr) auto;
  align-items: center;
  gap: 1rem 1.4rem;
  padding: 1.4rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 96px;
  transition: background-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.ledger-row:hover {
  background-color: rgba(16, 35, 30, 0.032);
}

.ledger-row.is-highlighted {
  background-color: rgba(197, 138, 74, 0.14);
  box-shadow: inset 3px 0 0 var(--accent-dark);
}

.ledger-icon {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid rgba(16, 35, 30, 0.16);
  background-color: var(--bg-page);
  color: var(--bg-forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 180ms var(--ease), color 180ms var(--ease), background-color 180ms var(--ease);
}

.ledger-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.ledger-row:hover .ledger-icon {
  border-color: rgba(140, 83, 39, 0.45);
  color: var(--accent-dark);
  background-color: #FFFFFF;
}

.ledger-cat {
  display: inline-block;
  font-size: var(--text-xs);
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}

.ledger-info h4 {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 0.3rem;
}

.ledger-desc {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  max-width: 64ch;
  line-height: 1.58;
}

.ledger-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  margin-top: 0.5rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: rgba(140, 83, 39, 0.42);
  text-underline-offset: 3px;
  transition: color 180ms var(--ease), text-decoration-color 180ms var(--ease);
}

.ledger-more-link span {
  transition: transform 180ms var(--ease);
}

.ledger-more-link:hover,
.ledger-more-link:focus-visible {
  color: var(--ink-primary);
  text-decoration-color: var(--ink-primary);
  outline: none;
}

.ledger-more-link:hover span {
  transform: translateX(3px);
}

.ledger-price-col {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ledger-price {
  display: block;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
}

.ledger-unit {
  display: block;
  font-size: var(--text-xs);
  color: var(--ink-muted);
  margin-top: 0.12rem;
}

/* Equivalencia en pesos uruguayos: pequeña, discreta y en gris apagado */
.ledger-uyu {
  display: block;
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 0.28rem;
  letter-spacing: 0.005em;
}

.ledger-action {
  justify-self: end;
}

.row-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1.15rem;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid var(--bg-forest);
  background-color: var(--bg-forest);
  color: var(--ink-on-dark);
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}

.row-cta:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.ledger-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: var(--text-body);
  border-bottom: 1px solid var(--rule);
}

.ledger-footer-notes {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ur-rate-note {
  font-size: var(--text-xs);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.ur-rate-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ledger-footnote {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  max-width: 76ch;
}

/* =========================================================
   ALCANCE / REGLAS CLARAS (Deep Forest Stage)
   ========================================================= */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.about-lead h2 {
  color: var(--ink-on-dark);
}

.about-prose {
  font-size: var(--text-body);
  color: var(--ink-on-dark-muted);
  max-width: 52ch;
  margin-top: 1.25rem;
  margin-bottom: 2.25rem;
}

.about-pillars {
  border-top: 1px solid var(--rule-dark);
}

.pillar-row {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule-dark);
}

.pillar-row h3 {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--accent-amber);
  margin-bottom: 0.4rem;
}

.pillar-row p {
  font-size: var(--text-body);
  color: var(--ink-on-dark-muted);
  max-width: 58ch;
}

/* =========================================================
   PROCESS (4 Sequential Steps)
   ========================================================= */

.process-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.process-step {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-strong);
}

.step-index {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  line-height: 1;
  color: var(--accent-dark);
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.process-step h3 {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: var(--text-body);
  color: var(--ink-muted);
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 108px;
}

.faq-list {
  border-top: 1px solid var(--rule-strong);
}

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

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink-primary);
  transition: color 180ms var(--ease);
}

.faq-q:hover {
  color: var(--accent-dark);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent-dark);
  transition: transform 220ms var(--ease);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms var(--ease);
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
}

.faq-a p {
  padding-bottom: 1.45rem;
  font-size: var(--text-body);
  color: var(--ink-muted);
  max-width: 62ch;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.contact-meta {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.meta-row {
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}

.meta-row dt {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 0.2rem;
}

.meta-row dd {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.meta-row dd a {
  color: var(--ink-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.selected-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background-color: var(--bg-surface);
  border-left: 3px solid var(--accent-dark);
  border-radius: 6px;
}

.selected-banner[hidden] {
  display: none;
}

.selected-banner-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
}

.selected-banner-name {
  display: block;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink-primary);
  margin-top: 0.15rem;
}

.selected-banner-price {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-top: 0.1rem;
}

.selected-banner-uyu {
  font-size: var(--text-xs);
  color: var(--ink-faint);
}

.selected-clear {
  border: 1px solid var(--rule-strong);
  background: var(--bg-page);
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}

.selected-clear:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-primary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background-color: #FFFFFF;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  font-size: var(--text-body);
  color: var(--ink-primary);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.field select {
  cursor: pointer;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bg-forest);
  box-shadow: 0 0 0 3px rgba(16, 35, 30, 0.1);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.5;
}

.form-consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 0.2rem;
  accent-color: var(--bg-forest);
  cursor: pointer;
  flex-shrink: 0;
}

.form-consent a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-submit-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-sla-note {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  text-align: center;
}

.form-success-card {
  padding: 1.75rem 1.6rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--bg-forest);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-form[hidden],
.form-success-card[hidden] {
  display: none;
}

.success-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background-color: var(--bg-forest);
  color: var(--accent-amber);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-success-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink-primary);
}

.success-summary {
  font-size: var(--text-sm);
  color: var(--ink-primary);
  padding: 0.75rem 0.9rem;
  background-color: var(--bg-page);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.success-sla {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.6;
}

.success-sla strong {
  color: var(--ink-primary);
}

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0.65rem 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--bg-forest);
  background: transparent;
  color: var(--bg-forest);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.35rem;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.btn-secondary-outline:hover {
  background-color: var(--bg-forest);
  color: var(--ink-on-dark);
}

/* =========================================================
   LEGAL VIEWS
   ========================================================= */

.legal-view {
  min-height: 75vh;
  padding-block: 8.5rem 5.5rem;
  background-color: var(--bg-page);
  color: var(--ink-primary);
}

.legal-view[hidden] {
  display: none;
}

.legal-container {
  max-width: 780px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 2rem;
  padding: 0;
  transition: color 180ms var(--ease);
}

.back-btn:hover {
  color: var(--ink-primary);
}

.legal-title {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule-strong);
}

.legal-prose h3 {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 2rem;
  margin-bottom: 0.55rem;
}

.legal-prose p,
.legal-prose li {
  font-size: var(--text-body);
  color: var(--ink-muted);
  max-width: 66ch;
  margin-bottom: 0.75rem;
}

.legal-prose ul {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.legal-prose b,
.legal-prose strong {
  color: var(--ink-primary);
  font-weight: 600;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background-color: var(--bg-forest);
  color: var(--ink-on-dark);
  padding-block: 4.5rem 2.5rem;
  border-top: 1px solid var(--rule-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--ink-on-dark-muted);
  margin-top: 1rem;
  max-width: 34ch;
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-on-dark);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink-on-dark-muted);
  margin-bottom: 0.65rem;
  transition: color 180ms var(--ease);
}

.footer-col a:hover {
  color: var(--accent-amber);
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  font-size: var(--text-sm);
  color: var(--ink-on-dark-muted);
}

.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   TOAST
   ========================================================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(calc(100% + 2.5rem));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 300;
  background-color: var(--bg-forest);
  color: var(--ink-on-dark);
  border: 1px solid rgba(224, 180, 107, 0.5);
  border-radius: 6px;
  padding: 0.85rem 1.35rem;
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  transition: transform 240ms var(--ease), opacity 200ms var(--ease), visibility 200ms var(--ease);
  max-width: calc(100vw - 2rem);
  text-align: center;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 480ms var(--ease), transform 480ms var(--ease);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js-ready .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
  .nav-desktop,
  .btn-header {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .scope-layout,
  .about-layout,
  .faq-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .scope-figure,
  .faq-intro {
    position: static;
  }

  .scope-image-frame {
    max-width: 480px;
  }

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

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

@media (max-width: 720px) {
  .header-inner {
    height: 70px;
    gap: 0.75rem;
  }

  .brand-name {
    font-size: 1.32rem;
  }

  .hero {
    min-height: 100dvh;
    padding-block: 7rem 3.75rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-photo {
    object-position: 65% center;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(16, 35, 30, 0.58) 0%, rgba(16, 35, 30, 0.36) 40%, rgba(16, 35, 30, 0.92) 100%);
  }

  .scope-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .filter-tabs {
    gap: 0.4rem 1rem;
  }

  .tab-btn {
    padding: 0.3rem 0 0.4rem;
  }

  .catalog-search-wrap {
    width: 100%;
  }

  .ledger-row {
    grid-template-columns: 46px 1fr;
    align-items: start;
    gap: 0.85rem 0.9rem;
    padding: 1.25rem 0.25rem;
  }

  .ledger-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
  }

  .ledger-icon svg {
    width: 21px;
    height: 21px;
  }

  .ledger-price-col {
    grid-column: 1 / -1;
    text-align: left;
  }

  .ledger-action {
    grid-column: 1 / -1;
    justify-self: start;
    width: 100%;
  }

  .row-cta {
    width: 100%;
  }

  .process-grid,
  .form-row-two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .selected-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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

  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
