:root {
  --bg: #fffdf9;
  --soft: #f7f1e8;
  --text: #2f2a26;
  --muted: #756d66;
  --wine: #6f2635;
  --wine-dark: #4d1925;
  --gold: #c69a55;
  --line: #e8ddd0;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(58, 42, 30, .10);
}


/* =========================================================
   BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

.narrow {
  width: min(820px, calc(100% - 40px));
  margin: auto;
}


/* =========================================================
   TOPO / NAVEGAÇÃO
   ========================================================= */

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  color: white;
}

.topbar.solid {
  position: relative;
  background: var(--wine-dark);
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  font-size: 28px;
  color: #f1d19d;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  line-height: 1;
}

.brand small {
  opacity: .8;
  font-size: 12px;
  margin-top: 3px;
}

nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}

nav a {
  opacity: .9;
}

nav a:hover {
  opacity: 1;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 760px;
  height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: white;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(20, 10, 8, .08) 20%,
      rgba(28, 12, 11, .28) 55%,
      rgba(25, 11, 12, .82) 100%
    );
}

.hero-content {
  position: relative;
  padding-bottom: 86px;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .17em;
  font-weight: 700;
  font-size: 12px;
  color: #f1d19d;
}

.eyebrow.dark {
  color: var(--wine);
}

.hero h1,
.history-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(46px, 6vw, 78px);
  line-height: .98;
  margin: 14px 0 20px;
  max-width: 980px;
}

.hero p {
  max-width: 700px;
  font-size: 18px;
  color: rgba(255, 255, 255, .88);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}


/* =========================================================
   BOTÕES
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: .2s ease;
}

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

.btn-primary:hover {
  background: var(--wine-dark);
  transform: translateY(-1px);
}

.btn-light {
  background: rgba(255, 255, 255, .94);
  color: var(--wine-dark);
}

.btn-light:hover {
  background: white;
  transform: translateY(-1px);
}


/* =========================================================
   SEÇÕES
   ========================================================= */

.section {
  padding: 96px 0;
}

.soft {
  background: var(--soft);
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading.centered {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 42px;
}

.section h2,
.history-main h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.05;
  margin: 8px 0 14px;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}


/* =========================================================
   HORÁRIOS DAS MISSAS
   ========================================================= */

.mass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mass-card {
  min-height: 155px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(55, 37, 25, .05);
}

.mass-card span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.mass-card strong {
  font-family: "Cormorant Garamond", serif;
  color: var(--wine);
  font-size: 38px;
  line-height: 1.1;
  margin-top: 4px;
}

.mass-card small {
  color: var(--muted);
  margin-top: 4px;
}

.mass-card.featured {
  border-color: #d6b58a;
  background: #fff9f0;
}


/* =========================================================
   NOSSA PARÓQUIA
   ========================================================= */

.split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.portrait-wrap {
  max-width: 440px;
}

.portrait-wrap img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.lead {
  font-size: 18px;
  color: #524b45;
}

.info-list {
  margin: 28px 0;
}

.info-list > div {
  padding: 16px 0;
  border-bottom: 1px solid #decfbe;
}

.info-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.info-list strong {
  display: block;
  margin-top: 3px;
}

.info-list a {
  color: var(--wine);
}

.text-link {
  color: var(--wine);
  font-weight: 700;
}


/* =========================================================
   LOCALIZAÇÃO
   ========================================================= */

.location-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: stretch;
}

.address-card {
  min-height: 380px;
  background: var(--wine-dark);
  color: white;
  border-radius: 26px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.address-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  margin: 0 0 10px;
}

.address-card p {
  color: rgba(255, 255, 255, .82);
  margin: 0 0 28px;
}

.address-card .btn {
  align-self: flex-start;
  background: white;
  color: var(--wine-dark);
}

.map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 26px;
  box-shadow: var(--shadow);
}


/* =========================================================
   CONTATO
   ========================================================= */

.dark-section {
  background: #2f2020;
  color: white;
}

.dark-section h2 {
  color: white;
}

.dark-section p {
  color: rgba(255, 255, 255, .68);
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 14px;

  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;

  padding: 16px 18px;
  transition: .2s ease;
}

.contact-links a:hover {
  background: rgba(255,255,255,.06);
}

.contact-links .contact-icon {
  display: block !important;

  width: 22px !important;
  height: 22px !important;

  min-width: 22px !important;
  min-height: 22px !important;

  max-width: 22px !important;
  max-height: 22px !important;

  flex: 0 0 22px !important;

  fill: #f1d19d;
}

.contact-links a:hover .contact-icon {
  transform: scale(1.08);
}

.contact-links span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-links strong {
  display: block;
  margin-top: 2px;
}


/* =========================================================
   RODAPÉ
   ========================================================= */

footer {
  background: #201616;
  color: white;
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
}

.footer-inner p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
}


.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links img {
  width: 180px;
  height: auto;
  display: block;
}

.footer-links span {
  font-size: 13px;
  line-height: 1;
  opacity: 0.75;
  align-self: center;
}



/* =========================================================
   PÁGINA DE HISTÓRIA
   ========================================================= */

.history-main {
  background: var(--bg);
}

.history-hero {
  padding: 90px 0 45px;
  background: var(--soft);
}

.history-hero h1 {
  color: var(--wine-dark);
  font-size: clamp(42px, 6vw, 68px);
}

.history-hero p {
  color: var(--muted);
  font-size: 18px;
}

.prose {
  font-size: 17px;
}

.prose p {
  margin: 0 0 24px;
  color: #4c4641;
}

.history-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center 55%;
  border-radius: 28px;
  margin-bottom: 42px;
  box-shadow: var(--shadow);
}

.source-box {
  background: var(--soft);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  margin: 36px 0;
}

.source-box p {
  margin: 5px 0 0;
  font-size: 14px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  nav {
    display: none;
  }

  .hero {
    min-height: 680px;
    height: 88vh;
  }

  .hero-content {
    padding-bottom: 55px;
  }

  .mass-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .location-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    max-width: 360px;
    margin: auto;
  }

  .address-card {
    min-height: auto;
  }

  .map {
    height: 360px;
    min-height: 360px;
  }
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 600px) {

  .container,
  .narrow {
    width: min(100% - 28px, 1160px);
  }

  .nav {
    height: 68px;
  }

  .brand strong {
    font-size: 19px;
  }

  .hero {
    min-height: 640px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 70px 0;
  }

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

  .mass-card {
    min-height: 130px;
  }

  .location-grid {
    gap: 16px;
  }

  .map {
    height: 340px;
    min-height: 340px;
  }

  .address-card {
    padding: 30px;
  }

  .contact-grid {
    gap: 40px;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 16px;
    display: block;
  }

  .footer-links span {
    display: block;
    margin-top: 8px;
  }
}