:root {
  --teal-dark: #0e5445;
  --teal: #157a63;
  --lime: #8bc53f;
  --lime-dark: #6ea82e;
  --bg: #ffffff;
  --bg-soft: #f3f9f0;
  --bg-soft-2: #eaf4e6;
  --text: #1f2b26;
  --text-muted: #5b6b63;
  --border: #e1ece0;
  --shadow: 0 4px 20px rgba(14, 84, 69, 0.08);
  --shadow-hover: 0 10px 30px rgba(14, 84, 69, 0.14);
  --radius: 14px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--teal-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--text); }
a { color: var(--teal); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link { display: flex; align-items: center; }
.logo-link img { height: 52px; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active { color: var(--teal-dark); border-color: var(--lime); }

.main-nav .dropdown { position: relative; }
.main-nav .dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-hover);
  padding: 8px;
  min-width: 240px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.main-nav .dropdown:hover .dropdown-panel,
.main-nav .dropdown:focus-within .dropdown-panel { display: flex; }
.dropdown-panel a {
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
}
.dropdown-panel a:hover { background: var(--bg-soft); border: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--teal-dark);
  border-radius: 2px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime);
  color: #14351f;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background .15s;
}
.header-cta:hover { background: var(--lime-dark); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .main-nav a { display: block; padding: 12px 0; }
  .main-nav .dropdown-panel {
    position: static; transform: none; display: none; box-shadow: none;
    border: none; padding: 0 0 0 12px; min-width: 0;
  }
  .main-nav .dropdown.open .dropdown-panel { display: flex; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-soft-2) 100%);
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--lime-dark);
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 640px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal-dark); color: #fff; }
.btn-primary:hover { box-shadow: var(--shadow-hover); }
.btn-accent { background: var(--lime); color: #14351f; }
.btn-accent:hover { box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--teal-dark); border: 2px solid var(--teal-dark); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
section.block.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--text-muted); }

/* ---------- Stats ---------- */
.stats-band {
  background: var(--teal-dark);
  color: #fff;
  padding: 42px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-number {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--lime);
  font-weight: 700;
}
.stat-label { font-size: 0.9rem; opacity: 0.9; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-media { aspect-ratio: 16/10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.card-link { font-weight: 700; color: var(--teal-dark); margin-top: 12px; font-size: 0.92rem; }

/* ---------- Accordion ---------- */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg);
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  color: var(--teal-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion-trigger .icon { flex-shrink: 0; transition: transform .2s; color: var(--lime-dark); font-size: 1.3rem; }
.accordion-item.open .accordion-trigger .icon { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 22px;
}
.accordion-item.open .accordion-panel { padding-bottom: 20px; }
.accordion-panel p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Content prose page (institucional, condicoes) ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.prose p { color: var(--text); }
.source-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Highlight box (residencia datas) ---------- */
.highlight-box {
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  border-left: 5px solid var(--lime);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 24px 0;
}
.highlight-box h3 { margin-bottom: 10px; }
.date-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.date-list li { font-weight: 700; color: var(--teal-dark); }
.date-list span { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.85rem; }

.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--teal-dark);
  font-weight: 600;
  transition: background .15s;
}
.doc-list a:hover { background: var(--bg-soft-2); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--teal-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b3a30;
  color: #d8ece5;
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 750px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: "Source Sans 3", sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 14px; }
.site-footer p, .site-footer li { color: #b9d9cd; }
.site-footer a { color: #cfe8de; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-logo { height: 48px; margin-bottom: 14px; background: #fff; padding: 6px 10px; border-radius: 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #9fc3b7;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .ico {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-soft-2); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 90;
  text-decoration: none;
  font-size: 1.6rem;
}
.float-whatsapp:hover { transform: scale(1.06); }

/* ---------- Breadcrumb / page title bar ---------- */
.page-title-bar {
  background: var(--bg-soft);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-title-bar .eyebrow { color: var(--lime-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }

.condition-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0 auto 32px; max-width: 780px; aspect-ratio: 16/7; }
.condition-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
