/*
 * terrazza.css — Folha de Estilos Compartilhada PropImóveis
 * Template: Padrão Terrazza (Dark Luxury)
 * Versão: 1.0 · Abril 2026
 * Uso: Todas as landing pages no padrão Terrazza Boa Viagem
 * Referência: <link rel="stylesheet" href="/terrazza.css"/>
 */

/* =============================================
   VARIÁVEIS GLOBAIS (Design Tokens)
   ============================================= */
:root {
  --color-primary: #0a0a0a;
  --color-primary-light: #18181b;
  --color-accent: #92400e;
  --color-accent-light: #fbbf24;
  --color-gold-gradient: linear-gradient(135deg, #92400e 0%, #fbbf24 50%, #fef3c7 100%);
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #20b858;
  --color-background: #0a0a0a;
  --color-surface: #18181b;
  --color-text: #fafafa;
  --color-text-muted: #a1a1aa;
  --color-border: #27272a;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6), 0 4px 6px -4px rgb(0 0 0 / 0.5);
  --shadow-gold: 0 0 25px rgba(251, 191, 36, 0.3);
  --radius: 12px;
  --radius-pill: 50px;
  --radius-lg: 16px;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --container-max: 1100px;
  --spacing-xs: clamp(0.5rem, 1vw, 1rem);
  --spacing-sm: clamp(1rem, 2vw, 1.5rem);
  --spacing-md: clamp(1.5rem, 3vw, 2.5rem);
  --spacing-lg: clamp(2.5rem, 5vw, 4rem);
  --spacing-xl: clamp(4rem, 8vw, 6rem);
}

/* =============================================
   RESET E BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.7;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: 0.5px;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
p { margin-bottom: 1rem; color: var(--color-text-muted); }
a { color: var(--color-accent-light); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: #fcd34d; }

/* =============================================
   ACESSIBILIDADE
   ============================================= */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--color-accent-light); color: var(--color-primary);
  padding: 0.5rem 1rem; z-index: 10000; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* =============================================
   BOTÕES
   ============================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill); font-weight: 600;
  font-size: 1rem; cursor: pointer; transition: all var(--transition-fast);
  border: none; text-align: center; letter-spacing: 0.5px;
}
.btn:focus-visible { outline: 3px solid var(--color-accent-light); outline-offset: 2px; }
.btn-primary { background: var(--color-whatsapp); color: white; }
.btn-primary:hover {
  background: var(--color-whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(37, 211, 102, 0.5);
}
.btn-secondary { background: var(--color-accent-light); color: var(--color-primary); }
.btn-secondary:hover { background: #fcd34d; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border: 2px solid var(--color-text); color: var(--color-text); }
.btn-outline:hover { background: var(--color-text); color: var(--color-primary); }
.btn-ghost { background: transparent; color: var(--color-text); padding: 0.5rem 1rem; border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(251, 191, 36, 0.15); border-color: var(--color-accent-light); }

/* =============================================
   ANIMAÇÕES
   ============================================= */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}
.pulse { animation: pulse 2.2s infinite; }
.wa-icon { width: 1.25em; height: 1.25em; vertical-align: middle; flex-shrink: 0; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--transition-normal), transform var(--transition-normal); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* =============================================
   HEADER / NAVEGAÇÃO
   ============================================= */
.header {
  position: sticky; top: 0; z-index: 999;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 5%;
}
.header-inner {
  max-width: var(--container-max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-family: var(--font-heading); font-size: 1.6rem;
  font-weight: 600; color: var(--color-text); letter-spacing: 1px; text-decoration: none;
}
.logo span { color: var(--color-accent-light); }
.header-cta .btn { padding: 0.625rem 1.25rem; font-size: 0.85rem; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--color-text-muted);
  font-weight: 500; font-size: 0.9rem; transition: color var(--transition-fast);
}
.nav-links a:hover { color: var(--color-accent-light); }

/* =============================================
   BANNER WHATSAPP
   ============================================= */
.wa-banner {
  background: var(--color-whatsapp); color: white;
  text-align: center; padding: 0.625rem 1rem;
  font-size: 0.9rem; font-weight: 500;
}
.wa-banner a {
  color: white; font-weight: 700; text-decoration: none;
  margin-left: 0.5rem; border-bottom: 2px solid rgba(255,255,255,0.5);
}
.wa-banner a:hover { border-color: white; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative; min-height: 75vh;
  display: flex; align-items: flex-end; padding-bottom: 5rem;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.98) 0%, rgba(10,10,10,0.7) 45%, rgba(146,64,14,0.25) 100%);
  z-index: 2;
}
.hero-content {
  position: relative; z-index: 3;
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 5%; width: 100%; color: white;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.hero-badges span {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid var(--color-accent-light);
  color: var(--color-accent-light);
  padding: 0.375rem 0.875rem; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; backdrop-filter: blur(4px);
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 25px rgba(0,0,0,0.6);
  background: var(--color-gold-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 1.2rem; opacity: 0.95; margin-bottom: 1.5rem; max-width: 650px; font-style: italic; }
.hero-specs { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-bottom: 1.5rem; font-size: 0.95rem; }
.hero-specs span { display: flex; align-items: center; gap: 0.375rem; color: var(--color-text); }
.hero-address { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; opacity: 0.9; margin-bottom: 1.5rem; color: var(--color-text-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-price {
  background: var(--color-gold-gradient);
  color: var(--color-primary); padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill); font-weight: 700;
  font-size: 1.1rem; margin-bottom: 1rem; display: inline-block;
  text-transform: uppercase; letter-spacing: 1.5px;
  box-shadow: var(--shadow-gold);
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  max-width: var(--container-max); margin: -2.5rem auto 3rem;
  background: var(--color-surface); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative; z-index: 10; box-shadow: var(--shadow-lg);
  padding: 1.5rem; border: 1px solid var(--color-border);
}
.stat-item { padding: 1rem; text-align: center; border-right: 1px solid var(--color-border); }
.stat-item:last-child { border-right: none; }
.stat-icon { font-size: 1.5rem; margin-bottom: 0.375rem; }
.stat-val { font-size: 1.25rem; font-weight: 700; color: var(--color-accent-light); font-family: var(--font-heading); letter-spacing: 0.5px; }
.stat-lbl { font-size: 0.7rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* =============================================
   LAYOUT PRINCIPAL
   ============================================= */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 5%; }
.section { padding: var(--spacing-lg) 0; }
.section-title {
  position: relative; padding-bottom: 1rem; margin-bottom: 2rem;
  border-left: 4px solid var(--color-accent-light); padding-left: 1rem;
}
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.rich-text { color: var(--color-text-muted); line-height: 1.9; font-size: 1.05rem; }
.rich-text h3 { color: var(--color-text); margin: 2rem 0 1rem; font-family: var(--font-body); font-weight: 600; font-size: 1.3rem; text-transform: none; letter-spacing: normal; }
.rich-text p { margin-bottom: 1.25rem; }
.rich-text ul { margin: 1rem 0; padding-left: 1.5rem; }
.rich-text li { margin-bottom: 0.5rem; }

/* =============================================
   GRID DE PROXIMIDADE
   ============================================= */
.proximity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.proximity-card {
  background: var(--color-surface); padding: 1rem; border-radius: var(--radius);
  border: 1px solid var(--color-border); display: flex; align-items: center; gap: 0.75rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.proximity-card:hover { transform: translateY(-4px); border-color: var(--color-accent-light); box-shadow: var(--shadow-gold); }
.proximity-card .icon { font-size: 1.3rem; }
.proximity-card .label { font-weight: 500; font-size: 0.85rem; }

/* =============================================
   CTA STRIP (INTERMEDIÁRIO)
   ============================================= */
.cta-strip {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white; padding: var(--spacing-md); border-radius: var(--radius-lg);
  text-align: center; margin: var(--spacing-lg) 0; border: 1px solid var(--color-border);
}
.cta-strip h3 { color: white; margin-bottom: 0.75rem; font-family: var(--font-heading); }
.cta-strip p { opacity: 0.95; margin-bottom: 1.25rem; }
.cta-strip .btn { background: var(--color-whatsapp); }

/* =============================================
   SEÇÃO DE LAZER / AMENIDADES
   ============================================= */
.amenities-section {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-primary) 100%);
  color: white; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
}
.amenities-section .section-title { color: white; border-left-color: var(--color-accent-light); }
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }
.amenity-card {
  background: rgba(251, 191, 36, 0.08); padding: 1rem; border-radius: var(--radius);
  display: flex; align-items: center; gap: 0.75rem; font-weight: 500; font-size: 0.9rem;
  transition: background var(--transition-fast); border: 1px solid rgba(251, 191, 36, 0.2);
}
.amenity-card:hover { background: rgba(251, 191, 36, 0.15); border-color: var(--color-accent-light); }
.amenity-card .check { color: var(--color-whatsapp); font-weight: bold; font-size: 1.1rem; }
.amenity-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.amenity-tag {
  background: rgba(251, 191, 36, 0.15); color: var(--color-accent-light);
  padding: 0.375rem 0.875rem; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 500;
}

/* =============================================
   CARDS DE INVESTIMENTO
   ============================================= */
.investment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.investment-card {
  background: var(--color-surface); padding: 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: center;
}
.investment-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--color-accent-light); }
.investment-card .icon { font-size: 1.75rem; margin-bottom: 0.75rem; color: var(--color-accent-light); }
.investment-card h4 { margin-bottom: 0.5rem; font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: normal; }
.investment-card p { font-size: 0.9rem; }

/* =============================================
   CARDS DE TIPOLOGIA / APARTAMENTO
   ============================================= */
.apartments-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.apartment-card {
  background: var(--color-surface); border-radius: var(--radius-lg);
  border: 1px solid var(--color-border); overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.apartment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-accent-light); }
.apartment-header {
  background: var(--color-gold-gradient); color: var(--color-primary);
  padding: 1rem; text-align: center; border-bottom: 2px solid var(--color-accent);
}
.apartment-header h4 { color: var(--color-primary); margin: 0; font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: normal; }
.apartment-body { padding: 1.25rem; }
.apartment-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.apartment-spec { display: flex; align-items: center; gap: 0.375rem; font-size: 0.85rem; color: var(--color-text-muted); }
.apartment-spec .icon { color: var(--color-accent-light); }
.apartment-price { font-size: 1.15rem; font-weight: 700; color: var(--color-accent-light); margin-bottom: 0.75rem; font-family: var(--font-heading); letter-spacing: 0.5px; }
.apartment-card .btn { width: 100%; font-size: 0.9rem; padding: 0.75rem 1rem; }

/* =============================================
   GALERIA
   ============================================= */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.5rem; grid-auto-rows: 170px;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius); transition: transform var(--transition-normal);
  cursor: pointer; border: 2px solid transparent;
}
.gallery-grid img:hover { transform: scale(1.03); border-color: var(--color-accent-light); box-shadow: var(--shadow-gold); }
.gallery-grid img:first-child { grid-column: span 2; grid-row: span 2; }

/* =============================================
   FAQ (ACCORDION)
   ============================================= */
.faq-item {
  border: 1px solid var(--color-border); border-radius: var(--radius);
  margin-bottom: 0.5rem; overflow: hidden; background: var(--color-surface);
}
.faq-question {
  width: 100%; padding: 1rem 1.25rem; background: transparent;
  border: none; text-align: left; font-weight: 600; font-size: 0.95rem;
  color: var(--color-text); cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  transition: background var(--transition-fast);
  font-family: var(--font-body); text-transform: none;
}
.faq-question:hover { background: rgba(251, 191, 36, 0.08); }
.faq-question::after { content: '+'; font-size: 1.25rem; color: var(--color-accent-light); transition: transform var(--transition-fast); font-family: var(--font-heading); font-weight: 400; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-normal); background: rgba(251, 191, 36, 0.05); }
.faq-answer-inner { padding: 0 1.25rem 1.25rem; color: var(--color-text-muted); font-size: 0.9rem; }
.faq-item.active .faq-answer { max-height: 600px; }

/* =============================================
   FINAL CTA
   ============================================= */
.final-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #000 100%);
  color: white; padding: var(--spacing-xl) 0; text-align: center;
  border-top: 2px solid var(--color-accent-light);
}
.final-cta .section-title { color: white; border-left-color: var(--color-accent-light); margin-left: auto; margin-right: auto; max-width: fit-content; }
.final-cta h2 { color: white; margin-bottom: 1rem; }
.final-cta p { opacity: 0.95; max-width: 650px; margin: 0 auto 2rem; }
.final-cta-specs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-bottom: 2rem; font-size: 0.9rem; }
.final-cta-specs span { display: flex; align-items: center; gap: 0.375rem; color: var(--color-text-muted); }
.final-cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.final-cta-credentials { font-size: 0.8rem; opacity: 0.7; padding-top: 1.5rem; border-top: 1px solid rgba(251, 191, 36, 0.3); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--color-primary); color: white;
  padding: var(--spacing-lg) 5% var(--spacing-md);
  border-top: 1px solid var(--color-border);
}
.footer-grid {
  max-width: var(--container-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem;
}
.footer-col h4 { color: var(--color-accent-light); font-size: 1rem; margin-bottom: 1rem; font-family: var(--font-heading); letter-spacing: 1px; text-transform: uppercase; }
.footer-col a { color: rgba(255,255,255,0.75); display: block; margin-bottom: 0.5rem; font-size: 0.85rem; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--color-accent-light); }
.footer-bottom { max-width: var(--container-max); margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(251, 191, 36, 0.2); text-align: center; font-size: 0.75rem; opacity: 0.6; }
.legal-disclaimer { font-size: 0.7rem; color: rgba(255,255,255,0.5); line-height: 1.4; margin-top: 1rem; }

/* =============================================
   FLUTUANTES (Float WA + Mobile CTA)
   ============================================= */
.float-wa {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000;
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--color-whatsapp); color: white;
  padding: 0.75rem 1.25rem; border-radius: var(--radius-pill);
  font-weight: 600; box-shadow: var(--shadow-lg), 0 0 25px rgba(37,211,102,0.5);
  transition: transform var(--transition-fast);
  text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px;
}
.float-wa:hover { transform: translateY(-3px); }
.float-wa .wa-icon { width: 1.5rem; height: 1.5rem; }
.float-wa .text { display: inline; }
.mobile-cta-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--color-surface); padding: 0.75rem 5%;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4); z-index: 998;
  align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--color-border);
}
.mobile-price { font-size: 0.8rem; }
.mobile-price span { display: block; font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.mobile-price strong { display: block; font-size: 1rem; color: var(--color-accent-light); font-family: var(--font-heading); letter-spacing: 0.5px; }
.mobile-cta-bar .btn { padding: 0.75rem 1.25rem; font-size: 0.85rem; }

/* =============================================
   RESPONSIVO — TABLET / MOBILE (≤900px)
   ============================================= */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); margin: -2rem 5% 2rem; padding: 0.75rem; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--color-border); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .header-cta .btn-text { display: none; }
  .nav-links { display: none; }
  .float-wa .text { display: none; }
  .float-wa { padding: 0.875rem; border-radius: 50%; }
  .float-wa .wa-icon { width: 1.75rem; height: 1.75rem; }
  .mobile-cta-bar { display: flex; }
  .gallery-grid img:first-child { grid-column: span 1; grid-row: span 1; }
  .hero { min-height: 65vh; padding-bottom: 3rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* =============================================
   RESPONSIVO — SMARTPHONE PEQUENO (≤480px)
   ============================================= */
@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .hero-specs { flex-direction: column; gap: 0.5rem; }
  .final-cta-specs { flex-direction: column; align-items: center; }
  .final-cta-buttons { flex-direction: column; }
  .final-cta-buttons .btn { width: 100%; }
  .apartment-specs { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   IMPRESSÃO
   ============================================= */
@media print {
  .header, .wa-banner, .float-wa, .mobile-cta-bar { display: none !important; }
  body { background: white; color: black; }
  .hero { min-height: auto; padding: 2rem 0; }
  .hero-bg, .hero::after { display: none; }
  .hero-content { color: black; position: static; }
  .btn { border: 2px solid black; background: none !important; color: black !important; }
}
