/* v1.0.38 — return to the visual language of 1.0.35.
   Palette, sizing tokens, motion, grid, cards and button shapes are inherited from
   the original stylesheets. This sheet only adapts the new content and consent UI. */

/* Hero composition: match original two-line editorial rhythm. */
#hero .hero-h1.sef-hero-h1-legacy {
  font-size: clamp(42px, 6.45vw, 86px);
  letter-spacing: -.05em;
  line-height: .98;
  max-width: 680px;
  overflow-wrap: normal;
}
#hero .hero-h1.sef-hero-h1-legacy span { white-space: nowrap; }
#hero .hero-desc { max-width: 520px; }
@media(max-width: 600px) {
  #hero .hero-h1.sef-hero-h1-legacy { font-size: clamp(37px, 11vw, 50px); letter-spacing: -.045em; }
  #hero .hero-h1.sef-hero-h1-legacy span { white-space: normal; }
  #hero .hero-text-block { max-width: 100%; }
}
@media(max-width:360px) {
  #hero .hero-h1.sef-hero-h1-legacy { font-size: 34px; }
}

/* Maps: same rectangular visual footprint as the v1.0.35 iframe card. */
.unit-single-map-card .sef-external-embed,
.unit-map-card .sef-external-embed { margin: 18px 0 12px; border-radius: 18px; overflow: hidden; }
.unit-single-map-card .sef-external-embed .unit-map-iframe,
.unit-map-card .sef-external-embed .unit-map-iframe { margin: 0; width: 100%; height: 260px; display: block; }
/* Cards on /unidades/ originally use a 180px map, not the 260px single-unit map. */
.unit-card .sef-external-embed { margin: 0 0 10px; border-radius: 16px; overflow: hidden; }
.unit-card .sef-external-embed .unit-map-iframe { display: block; width:100%; height:180px; margin:0; border-radius:16px; }
.unit-card .sef-external-embed .sef-external-placeholder { min-height:180px; border-radius:16px; }
.sef-external-embed .sef-external-placeholder {
  min-height: 260px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border-dark,rgba(207,202,195,.18));
  background: linear-gradient(135deg, rgba(76,22,90,.26), rgba(10,10,10,.35));
  color: var(--text-on-dark,#fff);
  font-size: 14px;
  line-height: 1.6;
}
.sef-external-embed .sef-external-placeholder button {
  background: var(--brand-accent,#E62D92);
  border: 0;
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
}
html.light-mode .sef-external-embed .sef-external-placeholder {
  background: linear-gradient(135deg, #F5EDF7, #EFE7F1);
  color: #4C165A;
}

/* Testimonial thumbnails retain their original 16:9 cards without preconsent third-party calls. */
.video-thumb .video-thumb-link { position: relative; background: linear-gradient(145deg, #4C165A 0%, #6A277C 50%, #0A0A0A 100%); }
.video-thumb .video-thumb-link img:not([src]) { opacity: 0; }
.video-thumb .video-thumb-link:has(img:not([src]))::before {
  content: 'Siga em Frente';
  position: absolute;
  left: 0; right: 0; top: 23%;
  color: rgba(255,255,255,.62);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .18em;
  font-size: 11px;
  text-align: center;
  z-index: 1;
}
.video-thumb .video-play-overlay { z-index: 2; }

/* Privacy controls: preserve the compact 680px translucent legacy banner. */
.sef-cookie-consent__inner {
  width: min(100%,680px);
  grid-template-columns: minmax(0,1fr) auto;
  gap: 18px;
  border-radius: 28px;
  padding: 22px 24px;
}
.sef-cookie-consent__actions { gap: 6px; }
.sef-cookie-consent__actions .sef-cookie-consent__button { min-width: 150px; padding: 11px 14px; font-size: 12px; }
.sef-cookie-consent__actions .sef-cookie-consent__button:first-child { font-size: 14px; padding: 13px 18px; }
.sef-cookie-consent__button--outline { box-shadow: none; }
.sef-cookie-consent__button--outline:hover { box-shadow: none; }
.sef-cookie-preferences { padding-top: 12px; }
@media(max-width:760px) {
  .sef-cookie-consent { left: 14px; right: 14px; }
  .sef-cookie-consent__inner { width:100%; grid-template-columns:1fr; gap: 14px; padding: 20px; max-height:calc(100dvh - 120px); overflow-y:auto; border-radius:24px; }
  .sef-cookie-consent__actions { display:grid; grid-template-columns: 1fr 1fr; gap:8px; }
  .sef-cookie-consent__actions .sef-cookie-consent__button { width:100%; min-width:0; white-space:normal; }
  .sef-cookie-consent__actions .sef-cookie-consent__button:first-child { grid-column: 1 / -1; }
}

/* Four field qualification form inherits the original v1.0.35 .form-card. */
.sef-central-lead-form .form-group { display: flex; flex-direction: column; }
.sef-central-lead-form .form-intro { font-size:15px; }
@media(max-width:640px) {
  .form-card, .unit-form-card { max-width:100%; min-width:0; }
}

/* Caption and buttons remain legible with both pre-consent map appearances. */
.unit-card .sef-external-placeholder { font-size: 12px; }
.unit-card .sef-external-placeholder button { font-size: 12px; padding: 9px 14px; }
