/* ============================================================
   Paróquia São Lourenço Mártir — Global Styles
   Mocha palette • Cormorant Garamond + DM Sans
   ============================================================ */

/* ---- Variables ---- */
:root {
  --bg: #FAFAFA;
  --bg-warm: #F7F3EF;
  --text: #2C2C2C;
  --text-light: #6B6B6B;
  --text-muted: #9A9A9A;
  --mocha: #8B5E3C;
  --mocha-dark: #6B4226;
  --caramel: #D4A76A;
  --copper: #C17B4A;
  --sand: #E8D5BC;
  --sand-light: #F2E8DB;
  --border: #E5DDD5;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: .22s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  line-height: 1.22;
  color: var(--mocha-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin-bottom: .9em; }
p:last-child { margin-bottom: 0; }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.navbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--mocha-dark);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.navbar-brand span { color: var(--caramel); }
.navbar-logo {
  height: 56px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 72px;
  width: auto;
  display: block;
  margin-bottom: .75rem;
  opacity: .95;
}
.nav-menu {
  display: flex;
  gap: .2rem;
  align-items: center;
}
.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-light);
  padding: .45rem .7rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
  color: var(--mocha);
  background: var(--sand-light);
}
.nav-link.active { color: var(--mocha-dark); font-weight: 600; }
#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
}
#nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--mocha-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(145deg, var(--mocha-dark) 0%, var(--mocha) 50%, var(--copper) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  max-width: 780px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 1.2rem;
}
.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  margin-bottom: 1.2rem;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn-mocha {
  background: var(--mocha);
  color: var(--white);
  padding: .7rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-mocha:hover {
  background: var(--mocha-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(107,66,38,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
  padding: .65rem 1.7rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--transition), border-color var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn-sm {
  padding: .4rem 1rem;
  font-size: .82rem;
  border-radius: 50px;
  background: var(--mocha);
  color: var(--white);
  font-weight: 500;
  transition: background var(--transition);
}
.btn-sm:hover { background: var(--mocha-dark); }

/* ---- Section layout ---- */
.section { padding: 5rem 1.5rem; }
.section-warm { background: var(--bg-warm); }
.section-white { background: var(--white); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .6rem; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.divider {
  display: block;
  width: 52px;
  height: 3px;
  background: var(--caramel);
  border-radius: 2px;
  margin: .8rem auto 0;
}

/* ---- Cards grid ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-img-placeholder {
  width: 100%;
  height: 160px;
  background: var(--sand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--mocha);
}
.card-body { padding: 1.25rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card-date { font-size: .78rem; color: var(--text-muted); display: block; margin-bottom: .45rem; }
.card-title { font-size: 1.1rem; font-family: 'Cormorant Garamond', serif; color: var(--mocha-dark); margin-bottom: .6rem; font-weight: 600; }
.card-sub { font-size: .85rem; color: var(--text-light); margin-bottom: .5rem; }
.card-link {
  margin-top: auto;
  color: var(--mocha);
  font-weight: 600;
  font-size: .875rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: color var(--transition);
}
.card-link:hover { color: var(--mocha-dark); }
.card-comunidade { text-decoration: none; }

/* ---- Horários section ---- */
.horarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.horario-dia {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.horario-dia h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--mocha-dark);
  font-size: 1.1rem;
  margin-bottom: .65rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--sand);
}
.horario-dia ul { display: flex; flex-direction: column; gap: .45rem; }
.horario-dia li { font-size: .9rem; color: var(--text); }
.horario-dia .hora { font-weight: 700; color: var(--mocha); }
.horario-dia .local { color: var(--text-light); }
.horarios-update { text-align: center; font-size: .8rem; color: var(--text-muted); margin-top: 1rem; }

/* ---- Pastorais / about cards ---- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.8rem; }
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
}
.about-card .icon { font-size: 2.2rem; margin-bottom: 1rem; }
.about-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }

/* ---- Contato section ---- */
.contato-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.contato-item { display: flex; align-items: flex-start; gap: 1rem; }
.contato-icon {
  width: 44px; height: 44px;
  background: var(--sand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contato-info strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .25rem; }
.contato-info span, .contato-info a { font-size: .95rem; color: var(--text); }
.contato-info a:hover { color: var(--mocha); }

/* ---- Frei card ---- */
.frei-card { text-align: center; }
.frei-card .card-img { height: 240px; border-radius: 50% 50% 0 0; }
.frei-card .card-body { align-items: center; }
.frei-funcao { font-size: .82rem; color: var(--copper); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }

/* ---- Footer ---- */
footer {
  background: var(--mocha-dark);
  color: rgba(255,255,255,.75);
  padding: 3.5rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand h3 {
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  margin-bottom: .6rem;
}
.footer-brand p { font-size: .875rem; line-height: 1.6; }
footer h4 { color: var(--caramel); font-family: 'DM Sans', sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--caramel); }
.footer-social { display: flex; gap: .75rem; margin-top: .5rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition);
}
.footer-social a:hover { background: rgba(255,255,255,.25); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: .5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.tag {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--sand-light);
  color: var(--mocha);
}
.page-hero {
  background: linear-gradient(135deg, var(--mocha-dark) 0%, var(--mocha) 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.8); margin-top: .75rem; font-size: 1.05rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-top: 1rem; font-size: .82rem; color: rgba(255,255,255,.6); }
.breadcrumb a { color: var(--caramel); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Pagination ---- */
.paginacao { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.paginacao button {
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--white);
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.paginacao button:hover, .paginacao button.active {
  background: var(--mocha);
  color: var(--white);
  border-color: var(--mocha);
}

/* ---- Tables ---- */
.tabela { width: 100%; border-collapse: collapse; }
.tabela th { background: var(--sand-light); color: var(--mocha-dark); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; padding: .65rem 1rem; text-align: left; }
.tabela td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--text); }
.tabela tr:hover td { background: var(--bg-warm); }

/* ============================================================
   Breakpoints
   ============================================================ */

/* Tablet ≥ 768px */
@media (min-width: 768px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .horarios-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .horarios-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile < 768px */
@media (max-width: 767px) {
  #nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: .25rem;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: .7rem 1rem; font-size: .95rem; }
  .navbar { position: relative; }
  .hero { min-height: 75vh; }
  .section { padding: 3.5rem 1rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; align-items: center; }
  .contato-grid { grid-template-columns: 1fr; }
}
