/* ═══════════════════════════════════════════════════════════
   Casas de Paz - www.casasdepaz.net
   Segue o design system do site igrejavida.pt (tema dark)
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:          #0f1115;
  --bg-2:        #15171d;
  --bg-3:        #1c1f27;
  --card-bg:     #181b22;
  --text:        #f1f2f5;
  --text-2:      #b9bcc6;
  --text-3:      #7e8290;
  --accent:      #14b8a6;
  --accent-2:    #2dd4bf;
  --accent-dark: #0d9488;
  --red:         #ef4444;
  --border:      #262a33;
  --border-2:    #333845;
  --shadow:      0 1px 4px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.25);
  --shadow-lg:   0 8px 28px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
  --grad:        linear-gradient(135deg, #009688 0%, #00bfa5 55%, #035d54 100%);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --header-h:    64px;
  --radius:      12px;
  --radius-lg:   16px;
  --container:   1200px;
  --ease:        cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent-dark); }
em { font-style: italic; }

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

.site-section { padding: 64px 0; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(15,17,21,.85);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: transform .3s var(--ease);
}

.site-header.hidden { transform: translateY(-100%); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-logo img { height: 36px; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: color .15s, background .15s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover { color: var(--text); background: var(--bg-2); }
.nav-link.active { color: var(--accent); font-weight: 600; }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s var(--ease);
  font-family: inherit;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: scale(1.02); }

.btn-gradient { background: var(--grad); color: #fff; }
.btn-gradient:hover { opacity: .9; color: #fff; transform: scale(1.02); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: 1.5px solid var(--border-2);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: all .2s var(--ease);
  font-family: inherit;
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.02); }

/* Botão pequeno do header */
.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.btn-header:hover { background: var(--accent-dark); color: #fff; transform: scale(1.02); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 56px) 32px 72px;
  background: linear-gradient(160deg, #0c1a18 0%, #0d201d 25%, #11141a 50%, #0c1d1a 75%, #0f1115 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(20,184,166,.16) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45,212,191,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 700px;
}

.hero__badge {
  width: 150px;
  height: 150px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.5));
}

.hero__eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SECTION HEADINGS ── */
.section-heading--center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.section-title em { font-style: italic; }

.section-intro {
  color: var(--text-2);
  font-size: .98rem;
  margin-top: 12px;
}

/* ── O QUE É (texto de destaque) ── */
.lead-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.lead-block .lead {
  font-size: 1.18rem;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 24px;
}

.section-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.section-more:hover { color: var(--accent-dark); }

/* ── CARTÕES "MAIS SOBRE" ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.info-card:hover {
  border-color: rgba(0,150,136,.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.info-card__banner {
  height: 6px;
  background: var(--grad);
  flex-shrink: 0;
}

.info-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}

.info-card p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.65;
}

.info-card em { color: var(--text); }

.info-card blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg-3);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  font-size: .9rem;
  font-style: italic;
  color: var(--text-2);
  line-height: 1.65;
}

.info-card cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── DIRETÓRIO (cartões das congregações) ── */
.churches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.church-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
}

.church-card:hover {
  border-color: rgba(0,150,136,.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.church-card__banner {
  height: 6px;
  background: var(--grad);
  flex-shrink: 0;
}

.church-card__body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.church-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}

.church-card__head svg { flex-shrink: 0; }

.church-card__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  transition: color .15s;
}

.church-card:hover .church-card__name { color: var(--accent); }

.church-card__desc {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
}

.church-card__groups {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: .76rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(0,150,136,.08);
  border: 1px solid rgba(0,150,136,.2);
  border-radius: 999px;
  padding: 5px 12px;
  transition: background .15s, border-color .15s;
}

.church-card:hover .church-card__groups {
  background: rgba(0,150,136,.14);
  border-color: rgba(0,150,136,.4);
}

.church-card__groups svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── CTA BANNER ── */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(0,150,136,.06), rgba(0,191,165,.03));
  border: 1px solid rgba(0,150,136,.15);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

.cta-banner h2 em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-banner p { color: var(--text-2); font-size: .95rem; }
.cta-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: 44px;
  text-align: center;
}

.footer-logo { margin: 0 auto 14px; height: 40px; width: auto; }

.footer-note {
  font-size: .85rem;
  color: var(--text-3);
  line-height: 1.7;
}

.footer-note a { color: var(--accent); font-weight: 600; }
.footer-note a:hover { color: var(--accent-2); }

.footer-bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 20px 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom p { font-size: .78rem; color: var(--text-3); }

/* ── RESPONSIVO ── */
@media (max-width: 900px) {
  .info-grid, .churches-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .burger { display: flex; }

  .header-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px 20px;
    transform: translateY(-130%);
    transition: transform .3s var(--ease);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .header-nav.open { transform: translateY(0); }
  .nav-link { text-align: center; padding: 12px; }

  .site-section { padding: 48px 0; }
  .hero { min-height: 560px; }
  .hero__badge { width: 120px; height: 120px; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}

@media (max-width: 560px) {
  .info-grid, .churches-grid { grid-template-columns: 1fr; }
  .site-container { padding: 0 24px; }
  .header-inner { padding: 0 24px; }
  .hero__actions .btn, .hero__actions .btn-outline { width: 100%; justify-content: center; }
  .btn-header { display: none; }
}
