/* SOLUTERRA — v3 Hero (dark editorial) + WhatsApp modal */

/* ============================================================
   HERO V3 — Dark editorial layout (preto jurídico + ouro)
   ============================================================ */
.hero-v3 {
  position: relative;
  isolation: isolate;
  background: var(--graphite);
  color: var(--champagne);
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px);
  overflow: hidden;
}

/* Topographic / map texture bottom layer */
.hero-v3::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* contour lines effect */
    radial-gradient(120% 70% at 50% 105%, rgba(201,178,125,.10), transparent 55%),
    radial-gradient(80% 60% at 90% 0%, rgba(117,100,62,.10), transparent 60%);
}
.hero-v3::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 280px;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 1200px 200px at 50% 100%, rgba(201,178,125,.08), transparent 60%),
    repeating-radial-gradient(circle at 30% 110%, transparent 0 60px, rgba(201,178,125,.06) 60px 61px),
    repeating-radial-gradient(circle at 70% 130%, transparent 0 70px, rgba(201,178,125,.05) 70px 71px),
    repeating-radial-gradient(circle at 50% 140%, transparent 0 80px, rgba(201,178,125,.04) 80px 81px);
  opacity: 0.7;
  mask-image: linear-gradient(180deg, transparent 0%, #000 60%, #000 100%);
}

.hero-v3 .container { position: relative; z-index: 2; }

/* Top wordmark + horizontal rule */
.hero-wordmark {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.hero-wordmark .seal {
  width: 96px; height: 96px;
  border: 1.5px solid var(--gold-aged);
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--gold-light);
  font-family: var(--font-display);
  text-align: center;
  line-height: 1.05;
  position: relative;
}
.hero-wordmark .seal .seal-top {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.hero-wordmark .seal .seal-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 7px;
  letter-spacing: 0.4em;
  color: var(--gold-aged);
  margin-top: 4px;
  text-transform: uppercase;
}
.hero-wordmark .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-aged), transparent);
  max-width: 360px;
}

/* Grid: copy left, visual right */
.hero-v3 .hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) {
  .hero-v3 .hero-grid { grid-template-columns: 1fr 1.05fr; }
}

/* Copy column */
.hero-copy { max-width: 640px; position: relative; z-index: 3; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-aged);
  display: inline-block;
  margin-bottom: 32px;
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ivory);
  margin: 0 0 32px 0;
}
.hero-h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

/* Small rule between heading and description */
.hero-rule {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.hero-rule .dot {
  width: 9px; height: 9px;
  border: 1px solid var(--gold-aged);
  border-radius: 999px;
  background: transparent;
}
.hero-rule .line {
  width: 60px;
  height: 1px;
  background: var(--gold-aged);
}

.hero-lede {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  color: rgba(232,220,193,.78);
  max-width: 500px;
  margin: 0 0 28px 0;
}

.hero-micro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(232,220,193,.65);
  margin-bottom: 36px;
}
.hero-micro .ic-shield {
  width: 26px; height: 26px;
  border: 1px solid var(--gold-aged);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  flex-shrink: 0;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-cta-row .btn {
  padding: 18px 36px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.hero-cta-row .btn-primary {
  background: linear-gradient(180deg, #d8c08a 0%, var(--gold-light) 100%);
  color: var(--black);
  border: 1px solid var(--gold-light);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 18px 40px -12px rgba(201,178,125,.55);
}
.hero-cta-row .btn-primary:hover {
  background: linear-gradient(180deg, #e3cd99 0%, #d8c08a 100%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    0 22px 50px -12px rgba(201,178,125,.7);
}
.hero-cta-row .btn-secondary {
  background: transparent;
  color: var(--champagne);
  border: 1px solid var(--gold-aged);
}
.hero-cta-row .btn-secondary:hover {
  background: rgba(201,178,125,.10);
  border-color: var(--gold-light);
  color: var(--ivory);
}

/* Visual column */
.hero-visual {
  position: relative;
  padding: 18px;
  border: 1px solid var(--gold-aged);
  border-radius: 32px 32px 24px 24px;
  background: linear-gradient(180deg, rgba(201,178,125,.06), rgba(201,178,125,.02));
  box-shadow:
    inset 0 1px 0 rgba(201,178,125,.18),
    0 30px 80px -20px rgba(0,0,0,.6);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201,178,125,.18);
  border-radius: 24px 24px 18px 18px;
  pointer-events: none;
}

.hero-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 22px 22px 16px 16px;
  overflow: hidden;
  background: var(--graphite);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo .ph-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(11,15,19,.5);
  border: 1px solid rgba(201,178,125,.18);
  border-radius: 999px;
  color: var(--gold-light);
  backdrop-filter: blur(8px);
}

/* Circular gold seal */
.hero-medal {
  position: absolute;
  left: -28px;
  bottom: 60px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #e3cd99 0%, #b8a06e 45%, #8a7340 100%);
  display: grid;
  place-items: center;
  color: #2d2418;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -3px 8px rgba(0,0,0,.18),
    0 22px 50px -10px rgba(0,0,0,.55);
  z-index: 4;
  animation: medalRotate 60s linear infinite;
}
@keyframes medalRotate {
  to { transform: rotate(360deg); }
}
.hero-medal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  border: 1px solid rgba(45,36,24,.35);
}
.hero-medal svg.medal-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-medal .medal-ring text {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.34em;
  fill: #2d2418;
  text-transform: uppercase;
}
.hero-medal .medal-inner {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  animation: medalInnerCounter 60s linear infinite;
}
@keyframes medalInnerCounter {
  to { transform: rotate(-360deg); }
}
.hero-medal .medal-inner svg {
  width: 100%;
  height: 100%;
  stroke: #2d2418;
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .hero-v3 { padding: 40px 0 64px; }
  .hero-wordmark .seal { width: 76px; height: 76px; }
  .hero-wordmark .seal .seal-top { font-size: 11px; }
  .hero-wordmark .seal .seal-sub { font-size: 6px; }
  .hero-medal { width: 130px; height: 130px; left: -10px; bottom: 30px; }
  .hero-medal .medal-inner { width: 60px; height: 60px; }
  .hero-medal .medal-ring text { font-size: 8.2px; letter-spacing: 0.28em; }
  .hero-cta-row .btn { padding: 14px 24px; font-size: 11px; }
  .hero-visual { padding: 12px; }
}

/* ============================================================
   WHATSAPP LEAD MODAL
   ============================================================ */
.wa-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(11,15,19,.6);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms var(--ease-out);
}
.wa-modal-backdrop.open { opacity: 1; pointer-events: auto; }

.wa-modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--ivory);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.55);
  position: relative;
  transform: translateY(16px) scale(.96);
  transition: transform 420ms var(--ease-out);
  border: 1px solid var(--divider);
}
.wa-modal-backdrop.open .wa-modal { transform: translateY(0) scale(1); }

.wa-modal-head {
  position: relative;
  padding: 32px 32px 24px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(201,178,125,.20), transparent 55%),
    linear-gradient(180deg, var(--black) 0%, var(--graphite) 100%);
  color: var(--champagne);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
}
.wa-modal-head::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent 0, transparent 18px, rgba(201,178,125,.04) 18px, rgba(201,178,125,.04) 19px);
}
.wa-modal-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  position: relative; z-index: 2;
}
.wa-modal-head .eyebrow .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,211,102,.18);
  color: #4ade80;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 600;
}
.wa-modal-head .eyebrow .badge .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #4ade80;
}
.wa-modal-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ivory);
  position: relative; z-index: 2;
  margin: 0;
}
.wa-modal-head h2 em { font-style: italic; color: var(--gold-light); font-weight: 400; }
.wa-modal-head .sub {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(232,220,193,.75);
  max-width: 380px;
  position: relative; z-index: 2;
}
.wa-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(232,220,193,.08);
  border: 1px solid rgba(232,220,193,.18);
  color: var(--champagne);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 240ms var(--ease-out);
  z-index: 3;
}
.wa-modal-close:hover { background: rgba(232,220,193,.18); transform: rotate(90deg); }
.wa-modal-body { padding: 28px 32px 32px; }
.wa-modal-body .field { display: grid; gap: 8px; margin-bottom: 16px; }
.wa-modal-body .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.wa-modal-body .input, .wa-modal-body .select {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
}
.wa-modal-body .field-error { color: var(--error); font-size: 12px; }
.wa-modal-terms {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--cream-light);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  cursor: pointer;
}
.wa-modal-terms input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--gold-deep);
  margin-top: 2px;
  flex-shrink: 0;
}
.wa-modal-terms .text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.wa-modal-terms .text strong { color: var(--text); }
.wa-modal-terms .text a { color: var(--gold-deep); text-decoration: underline; }
.wa-modal-submit {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.1em;
}
.wa-modal-foot {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  justify-content: center;
}
.wa-modal-foot .ic { color: var(--success); }
.wa-modal-thanks { padding: 48px 32px 40px; text-align: center; display: none; }
.wa-modal.is-thanks .wa-modal-thanks { display: block; }
.wa-modal.is-thanks .wa-modal-head, .wa-modal.is-thanks .wa-modal-body { display: none; }
.wa-modal-thanks .check {
  width: 72px; height: 72px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25D366 0%, #1DA855 100%);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  box-shadow: 0 14px 36px -8px rgba(37,211,102,.55);
  animation: checkPop 540ms var(--ease-out);
}
@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.wa-modal-thanks h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--black);
}
.wa-modal-thanks h3 em { font-style: italic; color: var(--gold-deep); }
.wa-modal-thanks p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto 28px;
}
.wa-modal-thanks .redir {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(201,178,125,.12);
  border: 1px solid rgba(201,178,125,.3);
  border-radius: var(--radius-pill);
}
.wa-modal-thanks .redir .spinner {
  width: 12px; height: 12px;
  border-radius: 999px;
  border: 2px solid var(--gold-light);
  border-top-color: transparent;
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .wa-modal-head { padding: 24px 22px 20px; }
  .wa-modal-body { padding: 22px 22px 26px; }
  .wa-modal-thanks { padding: 36px 22px 30px; }
}
