/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #1A5C2A;
  --green-mid:    #2D7A3A;
  --green-light:  #4A9A5A;
  --olive-light:  #D4E8A0;
  --gold:         #C8952A;
  --amber:        #E8A020;
  --gray-bg:      #F5F5F7;
  --gray-light:   #E0E0E2;
  --gray-mid:     #6E6E73;
  --white:        #FFFFFF;
  --text-dark:    #1D1D1F;
  --text-mid:     #3D3D3F;

  /* Apple-like system font stack */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display",
          "Segoe UI", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

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

/* ============================================================
   NAV
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 92, 42, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  box-shadow: 0 1px 0 rgba(255,255,255,.1);
  transition: background .3s;
}

.navbar.scrolled {
  background: rgba(18, 68, 28, 0.98);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 50%;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .church-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.nav-logo-text .church-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--olive-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Desktop menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a,
.nav-menu > li > .nav-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  border-radius: 8px;
  transition: background .2s, color .2s;
  cursor: pointer;
  background: none;
  border: none;
  white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > .nav-toggle:hover,
.nav-menu > li.active > a {
  background: rgba(255,255,255,.12);
  color: var(--white);
}

.nav-menu > li > a.active {
  color: var(--olive-light);
}

/* Chevron */
.chevron {
  width: 12px; height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
  display: inline-block;
  flex-shrink: 0;
}

.nav-menu > li:hover .chevron {
  transform: rotate(-135deg) translateY(-2px);
}

/* Dropdown
   FIX: usa padding-top em vez de margin-top para manter
   a área de hover contínua entre o botão e o menu */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;          /* encostado no li, sem gap */
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  padding-top: 8px;   /* espaço visual feito com padding (hover não quebra) */
  list-style: none;
  z-index: 100;
}

/* Caixa visual separada do padding de hover */
.dropdown::before {
  content: '';
  position: absolute;
  top: 8px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.1);
  border: 1px solid rgba(0,0,0,.06);
  z-index: -1;
}

.nav-menu > li:hover .dropdown,
.nav-menu > li:focus-within .dropdown {
  display: block;
  animation: fadeDown .2s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropdown li {
  padding: 4px 8px;
}

.dropdown li:first-child { padding-top: 8px; }
.dropdown li:last-child  { padding-bottom: 8px; }

.dropdown li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 8px;
  transition: background .15s, color .15s;
}

.dropdown li a:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

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

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--green-dark);
  z-index: 999;
  padding: 24px 5%;
  overflow-y: auto;
}

.mobile-menu.open { display: block; animation: slideIn .25s ease; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu ul { list-style: none; }

.mobile-menu ul li a,
.mobile-menu ul li .m-toggle {
  display: flex;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
}

.mobile-submenu {
  display: none;
  padding-left: 16px;
}

.mobile-submenu.open { display: block; }

.mobile-submenu li a {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--olive-light) !important;
  padding: 10px 0 !important;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  margin-top: 64px;
  min-height: calc(100vh - 64px);
  background:
    linear-gradient(160deg,
      rgba(26,92,42,.92) 0%,
      rgba(45,122,58,.82) 45%,
      rgba(200,149,42,.70) 100%),
    url("../images/hero-bg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: .12;
}
.hero::before {
  width: 600px; height: 600px;
  background: var(--olive-light);
  top: -200px; right: -150px;
}
.hero::after {
  width: 400px; height: 400px;
  background: var(--gold);
  bottom: -150px; left: -100px;
}

.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--olive-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

.hero h1 {
  font-size: clamp(36px, 7vw, 76px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.hero h1 span {
  color: var(--gold);
  display: block;
}

.hero-sub {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,.75);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 20px;
}

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.28);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}

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

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-hint .arrow {
  width: 20px; height: 20px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(4px); }
}

/* ============================================================
   SECTIONS SHARED
============================================================ */
section { padding: 96px 5%; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -.5px;
  margin-bottom: 16px;
}

.section-title span { color: var(--green-dark); }

.section-desc {
  font-size: 18px;
  color: var(--gray-mid);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   HORÁRIOS – CARDS
============================================================ */
.schedules { background: var(--gray-bg); }

.schedules-header {
  text-align: center;
  margin-bottom: 56px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-dark), var(--gold));
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.card-icon.green  { background: rgba(26,92,42,.1);  }
.card-icon.gold   { background: rgba(200,149,42,.1); }
.card-icon.olive  { background: rgba(212,232,160,.4); }
.card-icon.amber  { background: rgba(232,160,32,.1); }

.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.6;
}

.card-time {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  background: rgba(26,92,42,.08);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ============================================================
   VERSÍCULO – QUOTE
============================================================ */
.verse {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: var(--white);
  text-align: center;
}

.verse blockquote {
  max-width: 800px;
  margin: 0 auto;
}

.verse blockquote p {
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255,255,255,.92);
  margin-bottom: 24px;
}

.verse blockquote cite {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-style: normal;
}

/* ============================================================
   MINISTÉRIOS
============================================================ */
.ministries { background: var(--white); }

.ministries-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ministries-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.ministry-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1.5px solid var(--gray-light);
  transition: border-color .2s, background .2s, transform .2s;
  cursor: pointer;
}

.ministry-item:hover {
  border-color: var(--green-light);
  background: rgba(26,92,42,.03);
  transform: translateX(6px);
}

.ministry-item .m-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--white);
}

.ministry-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.ministry-item p {
  font-size: 13px;
  color: var(--gray-mid);
  margin-top: 2px;
}

/* Ilustração ministérios */
.ministries-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vis-block {
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

.vis-block:nth-child(1) {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  grid-row: span 2;
  min-height: 376px;
}

.vis-block:nth-child(2) { background: rgba(212,232,160,.6); }
.vis-block:nth-child(3) { background: linear-gradient(135deg, var(--gold), var(--amber)); }

.vis-block .big-emoji {
  font-size: 40px;
  position: absolute;
  top: 24px; right: 20px;
  opacity: .3;
}

.vis-block .vis-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vis-block:nth-child(1) .vis-label { color: var(--olive-light); }
.vis-block:nth-child(2) .vis-label { color: var(--green-dark); }
.vis-block:nth-child(3) .vis-label { color: var(--white); }

.vis-block .vis-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.vis-block:nth-child(1) .vis-num { color: var(--white); }
.vis-block:nth-child(2) .vis-num { color: var(--green-dark); }
.vis-block:nth-child(3) .vis-num { color: var(--white); }

/* ============================================================
   PRÓXIMOS EVENTOS
============================================================ */
.events { background: var(--gray-bg); }

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .25s, box-shadow .25s;
}

.event-item:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
}

.event-date {
  text-align: center;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: 12px;
  padding: 12px 8px;
  color: var(--white);
}

.event-date .day {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.event-date .month {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .8;
}

.event-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.event-info p {
  font-size: 13px;
  color: var(--gray-mid);
}

.event-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.tag-worship { background: rgba(26,92,42,.1); color: var(--green-dark); }
.tag-study   { background: rgba(200,149,42,.12); color: var(--gold); }
.tag-youth   { background: rgba(232,160,32,.12); color: var(--amber); }

/* ============================================================
   CTA
============================================================ */
.cta {
  background:
    linear-gradient(135deg, var(--green-dark) 0%, #0F3A1C 100%);
  text-align: center;
  padding: 96px 5%;
}

.cta h2 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -.5px;
}

.cta p {
  font-size: 18px;
  color: rgba(255,255,255,.7);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-primary {
  background: var(--gold);
  color: var(--white);
}

.cta .btn-primary:hover {
  background: var(--amber);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #0D2E14;
  color: rgba(255,255,255,.65);
  padding: 64px 5% 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo img {
  height: 40px;
  border-radius: 50%;
}

.footer-brand .footer-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.footer-brand .footer-logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--olive-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}

.footer-col ul li a:hover { color: var(--olive-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer-bottom a { color: var(--olive-light); }

/* Social icons */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.85);
  transition: background .2s, transform .2s, color .2s;
  flex-shrink: 0;
}

.social-links a svg {
  display: block;
  width: 18px; height: 18px;
}

.social-links a:hover {
  background: rgba(255,255,255,.22);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }

  .ministries-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ministries-visual { order: -1; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand { grid-column: span 2; }

  .event-item {
    grid-template-columns: 60px 1fr;
  }

  .event-tag { display: none; }
}

@media (max-width: 600px) {
  section { padding: 64px 5%; }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand { grid-column: span 1; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }
}
