/* === index.html — page-specific styles ============================== */

/* HERO ================================================================ */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 96px) var(--pad-x) clamp(60px, 7vw, 120px);
  background:
    radial-gradient(ellipse at 90% 0%, rgba(29,78,95,.06), transparent 50%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero h1 { color: var(--ink); }
.hero h1 em {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
  letter-spacing: -.03em;
}
.hero-lede { margin-top: 26px; }
.hero-meta {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta .hm-k {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--brand);
  line-height: 1;
}
.hero-meta .hm-l {
  margin-top: 6px;
  font-size: 12.5px; color: var(--ink-3);
  letter-spacing: .04em; text-transform: uppercase;
}
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 32px;
  position: relative;
}
.hero-card-logo {
  display: block;
  margin: 0 0 28px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.hero-card-logo img {
  width: 100%;
  height: auto;
  max-width: 320px;
  display: block;
  margin: 0 auto;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 56px; height: 56px;
  border-top: 2px solid var(--brand);
  border-left: 2px solid var(--brand);
}
.hero-card::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 56px; height: 56px;
  border-bottom: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
}
.hero-card-label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
  margin-bottom: 18px;
}
.hero-card h3 {
  font-family: var(--display);
  font-size: 22px; line-height: 1.25;
  font-weight: 600; letter-spacing: -.015em;
  margin-bottom: 16px;
}
.hero-card .contact-line {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
  font-size: 14.5px;
  color: var(--ink-2);
}
.hero-card .contact-line:last-of-type { padding-bottom: 0; }
.hero-card .ci {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 2px; flex-shrink: 0;
}
.hero-card .contact-line strong { color: var(--ink); font-weight: 500; }

@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* TRUST STRIP — services horizontal scroller marquee ================== */
.trust-strip {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: var(--paper-2);
  overflow: hidden;
}
.trust-row {
  display: flex; gap: 56px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-size: 13.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.trust-row span { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.trust-row span::before { content: "·"; color: var(--brand); font-weight: 700; font-size: 22px; line-height: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SERVICES ============================================================ */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: end;
  margin-bottom: 56px;
}
.section-head .right { color: var(--ink-2); font-size: 16px; line-height: 1.65; max-width: 50ch; }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.svc-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 28px 28px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper);
  position: relative;
  transition: background .2s;
  text-decoration: none;
  color: inherit;
  min-height: 230px;
}
.svc-cell:hover { background: var(--paper-2); }
.svc-cell .svc-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, var(--paper-2) 100%);
  color: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 4px;
  box-shadow: inset 0 0 0 4px #ffffff;
  transition: background .25s, border-color .25s, color .25s, box-shadow .25s, transform .25s;
}
.svc-cell:hover .svc-icon {
  border-color: var(--brand);
  color: var(--brand-2);
  transform: translateY(-1px);
}
.svc-cell .svc-icon svg { display: block; }
.svc-cell .num {
  font-family: var(--display);
  font-size: 12px; color: var(--ink-3);
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
}
.svc-cell h3 {
  font-family: var(--display);
  font-size: 21px; font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.18;
  color: var(--ink);
}
.svc-cell p {
  font-size: 13.5px; color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}
.svc-cell .more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--brand);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  opacity: .7; transition: opacity .2s, gap .2s;
}
.svc-cell:hover .more { opacity: 1; gap: 12px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .svc-grid { grid-template-columns: 1fr; } }

/* THE NOTARY band ===================================================== */
.notary-band {
  background: var(--ink);
  color: white;
  padding: clamp(64px, 8vw, 110px) 0;
}
.notary-band .container {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.notary-band h2 { color: white; }
.notary-band .lede { color: #b6c4c8; }
.notary-band .notary-photo {
  width: 100%;
  background: white;
  border: 1px solid #234c58;
  display: block;
  line-height: 0;
}
.notary-band .notary-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.notary-band .portrait {
  aspect-ratio: 4 / 5;
  background: #1a3a44;
  border: 1px solid #234c58;
  overflow: hidden;
  position: relative;
}
.notary-band .portrait.portrait-wide {
  aspect-ratio: 3 / 2 !important;
  max-width: none !important;
  background: white;
}
.notary-band .portrait.portrait-wide img {
  object-fit: contain !important;
  filter: none !important;
  background: white;
}
.notary-band .portrait.portrait-wide::before,
.notary-band .portrait.portrait-wide::after {
  display: none !important;
}
.notary-band .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.05) brightness(.95);
}
.notary-band .portrait::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(15,42,51,.0) 60%, rgba(15,42,51,.55) 100%);
  z-index: 1;
}
.notary-band .portrait::after {
  content: "";
  position: absolute;
  top: 16px; left: 16px;
  width: 36px; height: 36px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  z-index: 2;
}
.notary-band .stats {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 32px;
  border-top: 1px solid #234c58;
}
@media (max-width: 720px) {
  .notary-band .stats { grid-template-columns: repeat(2, 1fr); }
}
.notary-band .stats .k {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -.02em;
  color: var(--accent);
}
.notary-band .stats .l {
  font-size: 12px; color: #8aa1a8;
  letter-spacing: .06em; text-transform: uppercase;
  margin-top: 4px;
}
@media (max-width: 860px) {
  .notary-band .container { grid-template-columns: 1fr; }
  .notary-band .portrait { max-width: 360px; aspect-ratio: 4/4.4; }
}

/* PILLARS — Inmuebles / Empresas / Testamentos ======================== */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  padding: 40px 32px;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 16px;
  min-height: 320px;
  transition: background .2s;
}
.pillar:hover { background: var(--paper-2); }
.pillar .glyph {
  width: 64px; height: 64px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, var(--paper-2) 100%);
  color: var(--brand);
  display: grid; place-items: center;
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: inset 0 0 0 5px #ffffff;
  transition: border-color .25s, color .25s, transform .25s;
}
.pillar:hover .glyph {
  border-color: var(--brand);
  color: var(--brand-2);
  transform: translateY(-2px);
}
.pillar h3 {
  font-family: var(--display);
  font-size: 26px; font-weight: 600;
  letter-spacing: -.018em;
}
.pillar p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.pillar ul {
  margin: 0; padding: 0; list-style: none;
  font-size: 13.5px; color: var(--ink-3);
  display: flex; flex-direction: column; gap: 6px;
}
.pillar ul li::before { content: "—  "; color: var(--brand); }
.pillar .read {
  margin-top: auto;
  font-size: 13px; font-weight: 600; color: var(--brand);
  letter-spacing: .04em; text-transform: uppercase;
  display: inline-flex; gap: 8px; align-items: center;
  padding-top: 14px;
}
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* CALCULATOR ========================================================== */
.calc {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0;
  display: grid; grid-template-columns: 1.1fr 1fr;
  position: relative;
}
.calc-form { padding: 40px; border-right: 1px solid var(--line); }
.calc-out { padding: 40px; background: var(--paper); }
.calc h3 {
  font-family: var(--display); font-size: 22px;
  margin-bottom: 22px; font-weight: 600;
  letter-spacing: -.015em;
}
.calc .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.calc label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; letter-spacing: .02em; }
.calc select, .calc input[type=text], .calc input[type=number] {
  font-family: var(--sans); font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  width: 100%;
  outline: none;
  transition: border-color .15s;
}
.calc select:focus, .calc input:focus { border-color: var(--brand); }
.calc .slider-row { display: flex; align-items: center; gap: 16px; }
.calc .slider-row input[type=range] { flex: 1; accent-color: var(--brand); }
.calc .slider-val {
  font-family: var(--display); font-weight: 600;
  font-size: 18px; color: var(--brand);
  font-variant-numeric: tabular-nums;
  min-width: 120px;
  text-align: right;
}

.calc-out .out-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.calc-out .out-total {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(38px, 4.6vw, 52px);
  font-weight: 700; letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}
.calc-out .out-range {
  font-family: var(--display); font-size: 14px; color: var(--ink-3);
  margin-top: 8px;
}
.calc-out .breakdown {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
}
.calc-out .brow {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.calc-out .brow:last-child { border-bottom: 0; }
.calc-out .brow .l { color: var(--ink-3); }
.calc-out .brow .v { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 500; }
.calc-out .disclaimer {
  margin-top: 22px;
  font-size: 11.5px; color: var(--ink-3);
  line-height: 1.55;
  padding: 14px;
  background: var(--paper-2);
  border-left: 2px solid var(--brand);
}
@media (max-width: 800px) {
  .calc { grid-template-columns: 1fr; }
  .calc-form { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px; }
  .calc-out { padding: 28px; }
}

/* FAQ ================================================================= */
.faq-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 5vw, 80px);
}
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  cursor: pointer;
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  font-family: var(--display);
  font-size: 18px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -.005em;
  list-style: none;
  transition: color .15s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--brand); }
.faq-icon {
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: all .2s;
}
.faq-item[open] .faq-icon {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 0 24px;
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 15px;
  max-width: 64ch;
}
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }

/* CONTACT + MAP ======================================================= */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.contact-info {
  padding: 48px;
  border-right: 1px solid var(--line);
  background: var(--paper-2);
}
.contact-info-logo {
  display: block;
  max-width: 320px;
  margin: 0 0 28px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.contact-info-logo img {
  width: 100%;
  height: auto;
  display: block;
  /* Hace que el fondo blanco del logo se mezcle con el crema del contenedor */
  mix-blend-mode: multiply;
}
.contact-info h3 { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 16px; }
.contact-info p { font-size: 15px; color: var(--ink-2); line-height: 1.65; margin: 0 0 26px; max-width: 36ch; }
.contact-info .ci-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex; gap: 14px; align-items: flex-start;
}
.contact-info .ci-row:last-child { padding-bottom: 0; }
.contact-info .ci-glyph {
  width: 36px; height: 36px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-info .ci-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.contact-info .ci-val { font-size: 15px; color: var(--ink); margin-top: 2px; line-height: 1.5; }
.contact-info .ci-val a { color: inherit; }
.contact-info .ci-val a:hover { color: var(--brand); }

.contact-form { padding: 48px; }
.contact-form h3 { font-family: var(--display); font-size: 22px; font-weight: 600; margin-bottom: 22px; letter-spacing: -.015em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field-row.full { grid-template-columns: 1fr; }
.field-row label { font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; display: block; }
.field-row input, .field-row select, .field-row textarea {
  width: 100%; padding: 12px 14px;
  font-family: var(--sans); font-size: 15px;
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 2px; outline: none;
  transition: border-color .15s;
  color: var(--ink);
  resize: vertical;
}
.field-row input:focus, .field-row select:focus, .field-row textarea:focus { border-color: var(--brand); }
.field-row textarea { min-height: 110px; font-family: var(--sans); }
.form-ok {
  padding: 22px;
  background: #e8f2ee;
  color: #18573e;
  border-left: 3px solid #18573e;
  font-size: 14.5px;
  line-height: 1.5;
}
.form-err { color: #a13a3a; font-size: 12.5px; margin-top: 4px; }
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px; }
  .contact-form { padding: 32px; }
  .field-row { grid-template-columns: 1fr; }
}

.map-wrap {
  margin-top: 0;
  border: 1px solid var(--line);
  border-top: 0;
  height: 380px;
  position: relative;
  overflow: hidden;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.02); }

/* CTA banner ========================================================== */
.cta-banner {
  background: var(--brand);
  color: white;
  padding: clamp(48px, 6vw, 88px) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner .container {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  position: relative; z-index: 2;
}
.cta-banner h2 { color: white; }
.cta-banner p { color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.6; margin-top: 18px; max-width: 50ch; }
.cta-banner .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta-banner .btn--white { background: white; color: var(--brand); border-color: white; }
.cta-banner .btn--white:hover { background: transparent; color: white; }
.cta-banner .btn--outline { background: transparent; color: white; border-color: rgba(255,255,255,.4); }
.cta-banner .btn--outline:hover { background: white; color: var(--brand); border-color: white; }
.cta-banner::before {
  content: "171";
  position: absolute;
  right: -40px; bottom: -120px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 380px;
  color: rgba(255,255,255,.05);
  line-height: 1;
  letter-spacing: -.05em;
  pointer-events: none;
}
@media (max-width: 800px) {
  .cta-banner .container { grid-template-columns: 1fr; }
  .cta-banner .cta-actions { justify-content: flex-start; }
}


/* === GALLERY ========================================================== */
.gallery-section { background: var(--paper); padding-bottom: clamp(64px, 8vw, 120px); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
/* Uniform tiles — every photo same size, 3 per row */
.gx {
  aspect-ratio: 4 / 3;
}
/* Reset the old bento overrides so every cell stays uniform */
.gx-1, .gx-2, .gx-3, .gx-4, .gx-5, .gx-6, .gx-7, .gx-8, .gx-9 {
  grid-column: auto;
  grid-row: auto;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
}

.gx {
  position: relative;
  overflow: hidden;
  border: 0; padding: 0;
  background: var(--paper-3);
  cursor: zoom-in;
  border-radius: 2px;
  isolation: isolate;
}
.gx img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .3s;
  filter: saturate(.92) contrast(1.04);
  display: block;
}
.gx::after {
  /* subtle vignette tint */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(15,42,51,.55) 0%, rgba(15,42,51,0) 45%),
    linear-gradient(135deg, rgba(29,78,95,.0) 60%, rgba(29,78,95,.18) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity .3s;
}
.gx:hover img { transform: scale(1.05); filter: saturate(1.05) contrast(1.06); }
.gx:hover::after { opacity: .55; }

.gx-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  text-align: left;
}
.gx-tag {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .85;
  margin-bottom: 4px;
  background: rgba(29,78,95,.7);
  backdrop-filter: blur(6px);
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 2px;
  width: fit-content;
}
.gx-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .35s, opacity .35s;
}
.gx-zoom {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--brand);
  display: grid; place-items: center;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .25s, transform .25s;
}
.gx:hover .gx-label, .gx:focus-visible .gx-label { transform: translateY(0); opacity: 1; }
.gx:hover .gx-zoom,  .gx:focus-visible .gx-zoom  { opacity: 1; transform: scale(1); }
.gx:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

@media (max-width: 640px) {
  .gx-label { transform: none; opacity: 1; font-size: 14px; }
  .gx-zoom { display: none; }
}

/* === LIGHTBOX ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7, 18, 22, .92);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 40px;
  animation: lbFade .2s ease;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure {
  margin: 0;
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  display: flex; flex-direction: column;
  gap: 16px;
}
.lb-figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  animation: lbZoom .25s cubic-bezier(.2,.7,.2,1);
}
@keyframes lbZoom { from { transform: scale(.98); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lb-figure figcaption {
  display: flex; gap: 14px; align-items: center;
  color: white;
  font-size: 14px;
}
.lb-tag {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 4px 10px;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600;
}
.lb-label { font-family: var(--display); font-weight: 500; flex: 1; }
.lb-count { color: rgba(255,255,255,.55); font-family: var(--display); font-variant-numeric: tabular-nums; }

.lb-close, .lb-nav {
  position: fixed;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.lb-close { top: 24px; right: 24px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 32px; line-height: 1; padding-bottom: 4px; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.18); }

@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lb-close { top: 12px; right: 12px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-nav { width: 40px; height: 40px; }
}


/* === Hero benefits row ============================================== */
.hero-benefits {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-2);
}
.hero-benefits li { display: flex; align-items: center; gap: 8px; }
.hero-benefits .hb-check {
  width: 18px; height: 18px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.hero-benefits strong { color: var(--ink); font-weight: 600; }

/* === How We Work ==================================================== */
.how-section { background: var(--paper-2); }
.how-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  counter-reset: hs;
}
.hs-card {
  padding: 32px 28px;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 250px;
  position: relative;
  counter-increment: hs;
  transition: background .2s;
}
.hs-card:hover { background: var(--paper-2); }
.hs-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--brand);
  border-radius: 2px;
  flex-shrink: 0;
  margin-bottom: 4px;
  transition: background .2s, border-color .2s;
}
.hs-card:hover .hs-icon {
  background: var(--brand-soft);
  border-color: var(--brand-soft);
}
.hs-icon svg { display: block; }
.hs-num {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--brand);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.hs-card h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.18;
  color: var(--ink);
}
.hs-card p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0;
}
.hs-card::after {
  /* arrow connector */
  content: "→";
  position: absolute;
  right: -10px; top: 44px;
  color: var(--brand);
  background: var(--paper-2);
  width: 20px; height: 20px;
  display: grid; place-items: center;
  font-size: 13px;
  z-index: 1;
}
.hs-card:last-child::after { display: none; }
@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr 1fr; }
  .hs-card:nth-child(2n)::after { display: none; }
}
@media (max-width: 540px) {
  .how-steps { grid-template-columns: 1fr; }
  .hs-card::after { display: none; }
}

/* === Google reviews strip =========================================== */
.google-reviews {
  background: var(--paper);
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}
.gr-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 28px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  transition: background .15s, transform .15s;
  text-decoration: none;
  color: inherit;
  max-width: 720px;
  margin: 0 auto;
}
.gr-card:hover { background: white; transform: translateY(-2px); }
.gr-stars { display: flex; gap: 2px; font-size: 22px; }
.gr-star.gr-full { color: #f5a623; }
.gr-star.gr-half {
  background: linear-gradient(to right, #f5a623 50%, #e0d8c8 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gr-star.gr-empty { color: #e0d8c8; }
.gr-text { font-family: var(--display); font-size: 16px; line-height: 1.3; flex: 1; }
.gr-text strong { color: var(--ink); font-weight: 700; font-size: 20px; }
.gr-text span { color: var(--ink-3); }
.gr-cta {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
  transition: gap .2s;
}
.gr-card:hover .gr-cta { color: var(--brand-2); }
@media (max-width: 640px) {
  .gr-card { flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
  .gr-cta { align-self: flex-start; }
}

/* === Testimonials ==================================================== */
.testimonials { background: var(--paper); }
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.test-card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 36px 28px 28px;
  margin: 0;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.test-card:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15,42,51,.06);
}
.test-quote {
  position: absolute;
  top: -8px; left: 22px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 96px;
  line-height: 1;
  color: var(--brand);
  opacity: .25;
}
.test-stars { display: flex; gap: 2px; font-size: 14px; }
.test-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  flex: 1;
  font-style: italic;
}
.test-meta {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.4;
  font-style: normal;
}
.test-meta strong { color: var(--ink); font-weight: 600; display: block; }
.test-meta span { color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 900px) { .test-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .test-grid { grid-template-columns: 1fr; } }

/* === Testament banner =============================================== */
.test-banner {
  background: linear-gradient(90deg, #b8965a, #c9a961);
  color: var(--ink);
  padding: 14px 0;
}
.test-banner .container {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.tb-tag {
  background: var(--ink);
  color: white;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 2px;
}
.tb-title {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.4;
  flex: 1;
  text-align: center;
}
.tb-cta {
  background: var(--ink);
  color: white;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 2px;
  text-decoration: none;
  transition: background .15s;
}
.tb-cta:hover { background: var(--brand); }
@media (max-width: 700px) { .tb-title { text-align: left; } }
