/* =====================================================
   Ristretto Finance — ristretto.digital
   Stylesheet: deep coffee tones + golden highlights
   ===================================================== */

:root {
  --ink: #120c08;
  --roast: #1c130e;
  --espresso: #2a1a11;
  --bean: #3a2519;
  --crema: #e9d9c3;
  --porcelain: #f8f3ea;
  --paper: #fffdf9;
  --gold: #c9a24b;
  --gold-light: #f0d191;
  --gold-deep: #8c6a28;
  --copper: #a9713c;
  --muted-dark: rgba(233, 217, 195, 0.66);
  --muted-light: #6f5a49;
  --line-dark: rgba(201, 162, 75, 0.24);
  --line-light: rgba(42, 26, 17, 0.12);

  --grad-gold: linear-gradient(135deg, #f0d191 0%, #c9a24b 46%, #8c6a28 100%);
  --grad-dark: linear-gradient(165deg, #2a1a11 0%, #1a110c 55%, #120c08 100%);
  --grad-soft: linear-gradient(180deg, #fffdf9 0%, #f4ece0 100%);

  --shadow-lg: 0 32px 70px -30px rgba(18, 12, 8, 0.55);
  --shadow-sm: 0 12px 30px -18px rgba(18, 12, 8, 0.5);

  --display: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--espresso);
  background: var(--porcelain);
  overflow-x: hidden;
}

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

a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); }

p { margin: 0 0 1.1em; }

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

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

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--dark { background: var(--grad-dark); color: var(--crema); }
.section--dark h2, .section--dark h3 { color: var(--crema); }
.section--soft { background: var(--grad-soft); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.7rem 1.2rem;
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--grad-gold);
}
.section--dark .eyebrow { color: var(--gold-light); }

.lead {
  font-size: 1.1rem;
  color: var(--muted-light);
  max-width: 62ch;
}
.section--dark .lead { color: var(--muted-dark); }

.section-head { max-width: 720px; margin-bottom: 3rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  text-align: center;
}
.btn--gold {
  background: var(--grad-gold);
  color: #22150d;
  box-shadow: 0 14px 30px -16px rgba(201, 162, 75, 0.9);
}
.btn--gold:hover {
  transform: translateY(-2px);
  color: #22150d;
  box-shadow: 0 20px 38px -16px rgba(201, 162, 75, 0.95);
}
.btn--ghost {
  border-color: var(--line-dark);
  color: var(--crema);
  background: rgba(233, 217, 195, 0.05);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.btn--outline {
  border-color: rgba(42, 26, 17, 0.25);
  color: var(--espresso);
  background: transparent;
}
.btn--outline:hover { border-color: var(--gold-deep); color: var(--gold-deep); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 12, 8, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.16);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 12px 30px -22px rgba(0, 0, 0, 0.9); background: rgba(18, 12, 8, 0.96); }

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

.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--crema); }
.brand:hover { color: var(--crema); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
  display: block;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: rgba(233, 217, 195, 0.82);
  font-size: 0.93rem;
  font-weight: 600;
  position: relative;
  padding: 0.3rem 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--grad-gold);
  transition: width 0.28s ease;
}
.nav a:hover { color: var(--gold-light); }
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--gold-light);
  white-space: nowrap;
}
.header-phone:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: var(--crema);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-dark);
  color: var(--crema);
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -220px; top: -260px;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.18) 0%, rgba(201, 162, 75, 0) 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 { color: var(--porcelain); }
.hero h1 em {
  font-style: italic;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 1.14rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 1.6rem; }
.hero-note {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(233, 217, 195, 0.55);
}

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  filter: saturate(0.92) contrast(1.04);
  box-shadow: var(--shadow-lg);
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  z-index: -1;
}
.hero-badge {
  position: absolute;
  left: -18px; bottom: 26px;
  background: rgba(18, 12, 8, 0.92);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  max-width: 230px;
}
.hero-badge strong {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--gold-light);
  display: block;
  line-height: 1;
}
.hero-badge span {
  font-size: 0.82rem;
  color: var(--muted-dark);
  line-height: 1.4;
  display: block;
  margin-top: 0.35rem;
}

/* ---------- Ticker / stats ---------- */
.stats {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(18, 12, 8, 0.55);
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
}
.stat {
  background: var(--ink);
  padding: 1.9rem 1.4rem;
  text-align: center;
}
.stat b {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--gold-light);
  display: block;
  line-height: 1;
}
.stat span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(233, 217, 195, 0.6);
  display: block;
  margin-top: 0.6rem;
}

/* ---------- Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 75, 0.5);
  box-shadow: var(--shadow-sm);
}
.card-media { position: relative; overflow: hidden; }
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card-media img { transform: scale(1.05); }
.card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 12, 8, 0) 40%, rgba(18, 12, 8, 0.55) 100%);
}
.card-body { padding: 1.6rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.5rem; }
.card-body p { color: var(--muted-light); font-size: 0.97rem; margin-bottom: 1.1rem; }
.card-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  font-size: 0.92rem;
  color: var(--muted-light);
}
.card-list li {
  padding-left: 1.35rem;
  position: relative;
  margin-bottom: 0.4rem;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad-gold);
}
.card-price {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  border-top: 1px dashed var(--line-light);
  padding-top: 1rem;
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.9rem 1.5rem;
  background: rgba(233, 217, 195, 0.04);
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.step:hover { background: rgba(233, 217, 195, 0.08); border-color: rgba(201, 162, 75, 0.45); }
.step-index {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }
.step p { color: var(--muted-dark); font-size: 0.95rem; margin: 0; }

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.9rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.plan--featured {
  background: var(--grad-dark);
  border-color: rgba(201, 162, 75, 0.5);
  color: var(--crema);
  box-shadow: var(--shadow-lg);
}
.plan--featured h3 { color: var(--porcelain); }
.plan-tag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-gold);
  color: #22150d;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-size: 1.5rem; margin-bottom: 0.15rem; }
.plan-for {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.4rem;
  display: block;
}
.plan--featured .plan-for { color: var(--gold); }

/* signature: crema fill indicator */
.crema-meter {
  height: 6px;
  border-radius: 99px;
  background: rgba(42, 26, 17, 0.1);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.plan--featured .crema-meter { background: rgba(233, 217, 195, 0.14); }
.crema-meter i {
  display: block;
  height: 100%;
  background: var(--grad-gold);
  border-radius: 99px;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
}

.plan-price {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--espresso);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}
.plan--featured .plan-price { color: var(--gold-light); }
.plan-price small {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted-light);
}
.plan--featured .plan-price small { color: var(--muted-dark); }
.plan-billing {
  font-size: 0.85rem;
  color: var(--muted-light);
  margin-bottom: 1.5rem;
}
.plan--featured .plan-billing { color: var(--muted-dark); }

.plan-features { list-style: none; margin: 0 0 1.8rem; padding: 0; font-size: 0.95rem; }
.plan-features li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.65rem;
  color: var(--muted-light);
}
.plan--featured .plan-features li { color: rgba(233, 217, 195, 0.85); }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

.price-extras {
  margin-top: 2.5rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.price-extras h3 {
  margin: 0;
  padding: 1.2rem 1.6rem;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--line-light);
  background: rgba(201, 162, 75, 0.08);
}
.table-scroll { overflow-x: auto; }
table.rates {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 520px;
}
table.rates th, table.rates td {
  text-align: left;
  padding: 0.95rem 1.6rem;
  border-bottom: 1px solid var(--line-light);
}
table.rates th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 500;
}
table.rates td:last-child, table.rates th:last-child { text-align: right; white-space: nowrap; }
table.rates td strong { font-family: var(--mono); font-size: 0.98rem; color: var(--espresso); }
table.rates tr:last-child td { border-bottom: none; }
.price-footnote {
  font-size: 0.88rem;
  color: var(--muted-light);
  margin-top: 1.4rem;
  max-width: 74ch;
}

/* ---------- Split / about ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-figure img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.checklist { list-style: none; margin: 1.5rem 0 2rem; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 1rem;
  color: var(--muted-light);
}
.section--dark .checklist li { color: var(--muted-dark); }
.checklist li strong { color: var(--espresso); display: block; font-size: 1rem; }
.section--dark .checklist li strong { color: var(--crema); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(201, 162, 75, 0.14);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 0.72em;
  width: 8px; height: 4px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.quote {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.quote p {
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--espresso);
  font-style: italic;
}
.quote-author { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.quote-initials {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #22150d;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  flex: none;
}
.quote-author b { display: block; font-size: 0.95rem; }
.quote-author span { font-size: 0.82rem; color: var(--muted-light); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq-item {
  border-bottom: 1px solid var(--line-dark);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  font-family: var(--display);
  font-size: 1.15rem;
  text-align: left;
  padding: 1.35rem 3rem 1.35rem 0;
  cursor: pointer;
  position: relative;
  line-height: 1.35;
}
.faq-q::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-25%) rotate(-135deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a p {
  color: var(--muted-dark);
  font-size: 0.98rem;
  padding-bottom: 1.4rem;
  margin: 0;
  max-width: 70ch;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-info {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 2rem 1.9rem;
}
.info-row {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px dashed var(--line-light);
}
.info-row:last-of-type { border-bottom: none; }
.info-row dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
  width: 92px;
  flex: none;
  padding-top: 0.25rem;
}
.info-row dd { margin: 0; font-size: 1rem; }
.info-row dd a { font-weight: 600; }

.form {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 2rem 1.9rem 2.1rem;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 0.45rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--espresso);
  background: #fff;
  border: 1px solid rgba(42, 26, 17, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%), linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
  outline: none;
}
.field .error {
  display: none;
  color: #a33a2a;
  font-size: 0.82rem;
  margin-top: 0.35rem;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #a33a2a; }
.field.is-invalid .error { display: block; }

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.87rem;
  color: var(--muted-light);
  margin: 1.3rem 0 1.5rem;
}
.consent input { margin-top: 0.25rem; width: 18px; height: 18px; accent-color: var(--gold-deep); flex: none; }

.form-status {
  display: none;
  margin-top: 1.1rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  background: rgba(201, 162, 75, 0.13);
  border: 1px solid rgba(201, 162, 75, 0.45);
  color: var(--espresso);
}
.form-status.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(233, 217, 195, 0.75);
  padding: 4rem 0 2rem;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.6rem; }
.footer-list a { color: rgba(233, 217, 195, 0.75); }
.footer-list a:hover { color: var(--gold-light); }
.footer-about p { max-width: 42ch; color: rgba(233, 217, 195, 0.6); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.6rem;
  font-size: 0.84rem;
  color: rgba(233, 217, 195, 0.5);
}
.footer-bottom button {
  background: none;
  border: none;
  color: rgba(233, 217, 195, 0.72);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.footer-bottom button:hover { color: var(--gold-light); }

/* ---------- Cookies ---------- */
.cookie-bar {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 300;
  background: rgba(24, 16, 11, 0.97);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  color: var(--crema);
  box-shadow: var(--shadow-lg);
  display: none;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1080px;
  margin-inline: auto;
  backdrop-filter: blur(10px);
}
.cookie-bar.is-open { display: flex; }
.cookie-bar p { margin: 0; font-size: 0.92rem; color: var(--muted-dark); flex: 1 1 320px; }
.cookie-bar .btn { padding: 0.72rem 1.3rem; font-size: 0.88rem; }
.cookie-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10, 7, 5, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  backdrop-filter: blur(4px);
}
.modal.is-open { display: flex; }
.modal-card {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  padding: 2rem 1.9rem;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-card h3 { margin-bottom: 0.4rem; }
.modal-card > p { font-size: 0.94rem; color: var(--muted-light); }
.cookie-option {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
}
.cookie-option input { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: var(--gold-deep); flex: none; }
.cookie-option b { display: block; font-size: 0.97rem; }
.cookie-option span { font-size: 0.86rem; color: var(--muted-light); }
.modal-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* ---------- Legal pages ---------- */
.page-hero {
  background: var(--grad-dark);
  color: var(--crema);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.page-hero h1 { color: var(--porcelain); font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-hero p { color: var(--muted-dark); max-width: 60ch; margin: 0; }
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(233, 217, 195, 0.55);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--gold); }

.legal {
  max-width: 820px;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5rem);
}
.legal h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
}
.legal h2:first-of-type { margin-top: 1rem; border-top: none; padding-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: 1.7rem; }
.legal ul, .legal ol { padding-left: 1.3rem; color: var(--muted-light); }
.legal li { margin-bottom: 0.55rem; }
.legal p { color: var(--muted-light); }
.legal strong { color: var(--espresso); }
.legal-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  border-left: 3px solid var(--gold);
  padding: 0.6rem 0 0.6rem 1rem;
  margin-bottom: 2rem;
}
.legal-box {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin: 1.8rem 0;
}
.legal-box p:last-child { margin-bottom: 0; }

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 520px; }
  .hero-figure img { aspect-ratio: 16 / 11; }
  .hero-badge { left: auto; right: -6px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(18, 12, 8, 0.99);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.5rem 1.3rem 1.3rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid rgba(201, 162, 75, 0.12); }
  .header-phone { display: none; }
  .header-cta .btn { padding: 0.7rem 1.2rem; font-size: 0.85rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-badge { position: static; margin-top: 1rem; max-width: none; }
  .btn { width: 100%; }
  .hero-actions .btn, .modal-actions .btn, .cookie-actions .btn { width: 100%; }
  .info-row { flex-direction: column; gap: 0.2rem; }
  .info-row dt { width: auto; }
}

/* ---------- Utility ---------- */
.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;
}
