/* =====================================================================
   Residencial da Torre — Folha de estilo compartilhada
   Paleta de cores mantida exatamente como no original.
   ===================================================================== */

/* ── Reset & Tokens ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #1a4a6e;
  --blue-dk: #123650;
  --teal:    #634b4b;
  --sand:    #f5f0eb;
  --dark:    #634b4b;
  --text:    #444444;
  --muted:   #B1B0A8;
  --white:   #fff;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(99,75,75,.12);
  --nav-h:   72px;
  --trans:   .25s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); }

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ── Utility ─────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section--alt { background: var(--sand); }

.badge {
  display: inline-block; background: var(--teal); color: var(--white);
  font-size: .75rem; font-weight: 600; letter-spacing: .05em;
  padding: 4px 12px; border-radius: 99px; text-transform: uppercase; margin-bottom: 12px;
}
h2.section-title {
  font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--blue); margin-bottom: 16px;
}
.section-lead { color: var(--text); font-size: 1.05rem; max-width: 560px; line-height: 1.7; margin-bottom: 40px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 99px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 2px solid transparent; transition: var(--trans);
}
.btn-primary   { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dk); }
.btn-outline   { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-whatsapp  { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1ebe5d; }

/* ── NAV ────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); background: #634b4b;
  box-shadow: 0 1px 12px rgba(0,0,0,.2);
  display: flex; align-items: center;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 0 20px;
}
.nav-logo {
  display: flex; align-items: center;
  height: var(--nav-h);
  padding: 0 4px;
}
.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: .9rem; font-weight: 500;
  color: rgba(255,255,255,.9); transition: var(--trans);
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.15); }

.nav-cta { display: flex; gap: 10px; }

/* hamburger */
.hamburger { display: none; cursor: pointer; padding: 5px 12px; background: none; border: 2px solid rgba(255,255,255,0.6); border-radius: 4px; color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: 2px; }
.hamburger span { display: none; }

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-cta   { display: none; }
  .nav-links {
    display: none; flex-direction: column; position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: #634b4b; padding: 24px; gap: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; padding: 14px 16px; border-radius: 10px; }
}

/* Espaçamento de topo para páginas internas (compensa a nav fixa) */
.page-top { padding-top: var(--nav-h); }

/* ── PAGE HERO (cabeçalho das páginas internas) ──── */
.page-hero {
  margin-top: var(--nav-h);
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--teal);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,54,80,.45), rgba(99,75,75,.65));
}
.page-hero .container { position: relative; z-index: 1; color: var(--white); }
.page-hero .badge { background: rgba(255,255,255,.22); }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--white);
  margin: 6px 0 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.page-hero p { font-size: 1.05rem; opacity: .95; max-width: 620px; line-height: 1.6; }
.page-hero .breadcrumb { color: rgba(255,255,255,.85); margin-bottom: 4px; }
.page-hero .breadcrumb a { color: var(--white); }
@media (max-width: 600px) {
  .page-hero { min-height: 200px; }
}

/* ── HERO ───────────────────────────────────────── */
#hero {
  margin-top: var(--nav-h);
  position: relative;
  width: 100%;
  background: #634b4b;
  overflow: hidden;
}
.hero-slides {
  display: flex;
  width: 100%;
  transition: transform .7s ease;
  cursor: grab;
}
.hero-slides:active { cursor: grabbing; }
/* cada slide ocupa 100% da largura do container */
.hero-slide-item {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #634b4b;
  max-height: 560px;
}
.hero-slides img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 768px) {
  .hero-slide-item { max-height: none; }
  .hero-slides img { max-height: none; }
}

/* H1 oculto visualmente mas indexável pelos buscadores */
.seo-h1 {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.hero-nav {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4);
  cursor: pointer; transition: var(--trans); border: none;
}
.hero-dot.active { background: var(--white); transform: scale(1.3); }

/* ── FEATURES STRIP ─────────────────────────────── */
.features-strip {
  background: var(--blue); color: var(--white);
  padding: 28px 0;
}
.features-strip-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px;
}
.feature-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; }
.feature-icon { font-size: 1.6rem; }

/* ── APARTMENTS ─────────────────────────────────── */
.apt-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px;
}
.apt-card {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--white); transition: transform var(--trans), box-shadow var(--trans);
}
.apt-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,50,.14); }
.apt-card-img { height: 220px; object-fit: cover; width: 100%; }
.apt-card-body { padding: 24px; }
.apt-card-body h3 { font-size: 1.2rem; color: var(--blue); margin-bottom: 8px; }
.apt-card-body ul { list-style: none; color: var(--text); font-size: .9rem; line-height: 2; }
.apt-card-body ul li::before { content: "✓  "; color: var(--teal); font-weight: 700; }

/* ── AMENITIES ──────────────────────────────────── */
.amenities-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
}
.amenity-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 20px;
  text-align: center; box-shadow: var(--shadow);
}
.amenity-icon { font-size: 2.4rem; margin-bottom: 12px; }
.amenity-card h4 { font-size: 1rem; color: var(--blue); margin-bottom: 6px; }
.amenity-card p  { font-size: .85rem; color: var(--text); }

/* ── NORMAS ─────────────────────────────────────── */
.normas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.norma-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.norma-card h3 { color: var(--blue); font-size: 1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.norma-card ul { list-style: none; color: var(--text); font-size: .88rem; line-height: 2; }
.norma-card ul li { padding-left: 16px; position: relative; }
.norma-card ul li::before { content: "•"; position: absolute; left: 0; color: var(--teal); }
.norma-card p { color: var(--text); font-size: .88rem; line-height: 1.7; }

/* ── MAPA ───────────────────────────────────────── */
.map-wrap {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  height: 400px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ── CONTATO ────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h3 { font-size: 1.1rem; color: var(--blue); margin-bottom: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-item-icon { font-size: 1.4rem; margin-top: 2px; }
.contact-item-text strong { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 2px; }
.contact-item-text a { color: var(--blue); font-weight: 600; }

.contact-form { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.1rem; color: var(--blue); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 14px; border: 1.5px solid #e0e0e0; border-radius: 8px;
  font-size: .95rem; font-family: inherit; transition: border-color var(--trans);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--blue); }
.form-group textarea { height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
#form-msg { margin-top: 12px; font-size: .88rem; font-weight: 600; min-height: 20px; }
#form-msg.ok  { color: #1ebe5d; }
#form-msg.err { color: #e63946; }

/* ── FOOTER ─────────────────────────────────────── */
footer {
  background: #634b4b; color: rgba(255,255,255,.85); padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px;
}
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; font-size: .88rem; line-height: 2.2; }
.footer-col ul a:hover { color: #B1B0A8; }
.footer-col p { font-size: .88rem; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .82rem;
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: background var(--trans);
}
.social-link:hover { background: var(--blue); }
.social-link--instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link--whatsapp:hover { background: #25d366; }

/* ── WhatsApp FAB ───────────────────────────────── */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.25); font-size: 1.8rem;
  transition: transform var(--trans);
  animation: pulse 2s infinite;
}
.wa-fab:hover { transform: scale(1.1); }
@keyframes pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,.7); }
}

/* ── GALLERY BLOCKS ─────────────────────────────── */
.gallery-block {
  margin-bottom: 56px;
}
.gallery-block-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--sand);
}
.gallery-block-icon { font-size: 1.8rem; }
.gallery-block-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--blue); margin: 0;
}
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-masonry img {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: 8px; cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
  display: block;
}
.gallery-masonry img:hover { opacity: 0.8; transform: scale(1.02); }
@media (max-width: 600px) {
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
  .gallery-masonry img { height: 150px; }
}

/* ── ORIENTAÇÕES ────────────────────────────────── */
.orientacoes-box {
  background: #fff8f0;
  border: 1.5px solid #f0d8c0;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 24px;
}
.orientacoes-box h4 {
  color: var(--blue); font-size: 1rem; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.orientacoes-box .ori-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 10px; font-size: .9rem; color: var(--text); line-height: 1.5;
}
.orientacoes-box .ori-item .ori-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.orientacoes-box .ori-item strong { color: #c0392b; }

/* ── CONTADOR DIÁRIAS ───────────────────────────── */
.diarias-counter {
  background: var(--blue); color: white;
  border-radius: 8px; padding: 10px 14px;
  font-size: .9rem; font-weight: 600;
  margin-top: 8px; display: none;
  align-items: center; gap: 8px;
}
.diarias-counter.visible { display: flex; }
.diarias-counter .d-num {
  font-size: 1.4rem; font-weight: 700;
}

/* ── FAQ (accordion) ────────────────────────────── */
.faq-wrap { display: grid; gap: 16px; }
.faq-item {
  background: var(--white); border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow); cursor: pointer;
}
.faq-item summary {
  font-weight: 600; color: var(--blue); font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: 12px; color: var(--text); line-height: 1.7; font-size: .92rem; }

/* ── BREADCRUMB ─────────────────────────────────── */
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--blue); font-weight: 600; }
.breadcrumb span { margin: 0 6px; }
