/* LP Sobrado MGS-025 — inspirada em landing de alto padrão (estrutura Kiná) */

:root {
  --bg-deep: #0f1419;
  --bg-soft: #f4f1ec;
  --bg-card: #ffffff;
  --text: #1a1f26;
  --text-muted: #5c6570;
  --accent: #8b7355;
  --accent-hover: #6d5a44;
  --gold-line: #c4a574;
  --white: #fff;
  --shadow: 0 24px 60px rgba(15, 20, 25, 0.12);
  --radius: 2px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --header-h: 72px;
  --mobile-bar-h: 56px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.55;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
  }
}

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

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(252, 250, 247, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 115, 85, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: min(200px, 52vw);
  object-fit: contain;
  object-position: left center;
}

.brand:hover .brand-logo {
  opacity: 0.92;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  color: rgba(26, 31, 38, 0.78);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-desktop a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
}

.nav-cta:hover {
  background: rgba(139, 115, 85, 0.1);
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      160deg,
      rgba(15, 20, 25, 0.18) 0%,
      rgba(15, 20, 25, 0.32) 55%,
      rgba(15, 20, 25, 0.38) 100%
    ),
    url("imagens/fachada-garagem.jpg") center /
      cover no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 20, 25, 0.42) 0%,
    rgba(15, 20, 25, 0.12) 42%,
    transparent 62%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold-line);
  margin: 0 0 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--white);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 2px 16px rgba(0, 0, 0, 0.2);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.94);
  margin: 0 0 2rem;
  max-width: 560px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-sub strong {
  color: var(--white);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--gold-line);
  color: var(--bg-deep);
  border-color: var(--gold-line);
}

.btn-primary:hover {
  background: #d4b88a;
  border-color: #d4b88a;
  color: var(--bg-deep);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  border-color: var(--gold-line);
  color: var(--gold-line);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

/* Resumo */
.section {
  padding: 4rem 0;
}

.resumo {
  margin-top: -3rem;
  position: relative;
  z-index: 3;
  padding-top: 0;
}

.resumo .wrap {
  background: var(--bg-card);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(139, 115, 85, 0.12);
}

.resumo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem 1rem;
  text-align: center;
}

.resumo-val {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.resumo-lbl {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.resumo-preco {
  grid-column: 1 / -1;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(139, 115, 85, 0.15);
}

@media (min-width: 640px) {
  .resumo-preco {
    grid-column: auto;
    border-top: none;
    padding-top: 0;
    border-left: 1px solid rgba(139, 115, 85, 0.15);
    padding-left: 1.5rem;
  }
}

.resumo-preco .resumo-val {
  font-size: 1.75rem;
  color: var(--accent);
}

.resumo-ref {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Section heads */
.section-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Galeria */
.galeria {
  background: var(--bg-soft);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
}

.galeria-item {
  grid-column: span 12;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e8e4de;
}

@media (min-width: 600px) {
  .galeria-item {
    grid-column: span 6;
  }
}

.galeria-open {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.galeria-open:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 3px;
  z-index: 3;
}

.galeria-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  pointer-events: none;
}

.galeria-item:hover .galeria-open img {
  transform: scale(1.03);
}

.galeria-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(15, 20, 25, 0.75));
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Lightbox / carrossel da galeria */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: min(5vw, 2rem);
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(6px);
  box-sizing: border-box;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(96vw, 1200px);
  max-height: 92vh;
  gap: 0.75rem;
}

.lightbox-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 2vw, 1rem);
  width: 100%;
  min-height: 0;
}

.lightbox-frame {
  flex: 1;
  min-width: 0;
  max-height: min(78vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-frame img {
  max-width: 100%;
  max-height: min(78vh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.lightbox-legenda {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 42rem;
  line-height: 1.35;
}

.lightbox-contador {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.12em;
}

.lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-nav {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox-nav:hover {
  background: rgba(196, 165, 116, 0.35);
  border-color: var(--gold-line);
}

.lightbox-nav:focus-visible,
.lightbox-close:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }

  .lightbox-close {
    top: -2.5rem;
  }
}

/* Benefícios */
.beneficios {
  background: var(--bg-card);
}

.beneficios-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .beneficios-list {
    grid-template-columns: 1fr 1fr;
  }
}

.beneficios-list li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(139, 115, 85, 0.12);
  background: var(--bg-soft);
}

.beneficio-icon {
  color: var(--gold-line);
  font-size: 0.75rem;
  line-height: 1.8;
  flex-shrink: 0;
}

.beneficios-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.beneficios-list p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Prova */
.prova {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #ebe6df 100%);
}

.prova-card {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(139, 115, 85, 0.12);
  box-shadow: var(--shadow);
  max-width: 800px;
}

@media (min-width: 640px) {
  .prova-card {
    grid-template-columns: 200px 1fr;
    align-items: start;
  }
}

.prova-foto-wrap {
  justify-self: center;
}

.prova-foto-wrap img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold-line);
}

.prova-nome {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
}

.prova-creci {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.prova-horario {
  font-size: 0.9rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.prova-fones {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.prova-fones a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.prova-fones a:hover {
  color: var(--accent);
}

.prova-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.prova-actions .btn-primary {
  color: var(--bg-deep);
}

/* Mapa — Google Maps embed */
.local .mapa-wrap {
  border: 1px solid rgba(139, 115, 85, 0.2);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 420px;
}

.local .mapa-wrap--google {
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(15, 20, 25, 0.12);
  border-color: rgba(0, 0, 0, 0.08);
}

.local iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.mapa-abrir {
  margin: 0.85rem 0 0;
  text-align: center;
}

.mapa-abrir-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.mapa-abrir-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.mapa-nota {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 720px;
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0;
  font-size: 0.875rem;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.footer-brand-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.95;
}

.footer-copy {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Botão flutuante WhatsApp */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 250;
  display: grid;
  place-items: center;
  width: clamp(52px, 14vw, 60px);
  height: clamp(52px, 14vw, 60px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.06);
  box-shadow:
    0 6px 22px rgba(37, 211, 102, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .wa-float {
    transition: none;
  }

  .wa-float:hover {
    transform: none;
  }
}

.wa-float:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.wa-float-icon {
  width: 58%;
  height: 58%;
  display: block;
}

@media (max-width: 768px) {
  .wa-float {
    bottom: calc(var(--mobile-bar-h) + 0.75rem + env(safe-area-inset-bottom));
    right: max(0.75rem, env(safe-area-inset-right));
  }
}

/* Mobile bar */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  height: var(--mobile-bar-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg-deep);
  border-top: 1px solid rgba(196, 165, 116, 0.25);
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {
  .mobile-bar {
    display: grid;
  }
}

.mobile-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-bar-btn:last-child {
  border-right: 0;
}

.mobile-bar-wa {
  background: #25d366;
  color: #062d16 !important;
}

.mobile-bar-tel {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-bar-agenda {
  background: var(--gold-line);
  color: var(--bg-deep) !important;
}
