/* ─────────────────────────────────────────
   St. Teresa's Church, Nungambakkam
   Stylesheet
───────────────────────────────────────── */

/* Tokens */
:root {
  --cream: #faf8f4;
  --warm-white: #fff9f2;
  --gold: #c9a84c;
  --gold-light: #e8cc80;
  --deep: #1a1209;
  --brown: #3d2b0e;
  --text: #2c1f0d;
  --text-muted: #6b5c44;
  --border: #e5ddd0;
  --section-alt: #f3ede4;

  --font-display: "Cinzel", serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --max-w: 1140px;
  --nav-h: 68px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAV ── */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--brown);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  transition:
    color 0.2s,
    background 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover {
  color: var(--brown);
  background: var(--section-alt);
}
.nav-cta {
  background: var(--gold) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 7px 14px !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--brown) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 6, 2, 0.15) 0%,
    rgba(10, 6, 2, 0.1) 40%,
    rgba(10, 6, 2, 0.72) 80%,
    rgba(10, 6, 2, 0.88) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: 20px;
}
.hero-heading em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #a8883c;
  border-color: #a8883c;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline {
  background: transparent;
  color: var(--brown);
  border-color: var(--brown);
}
.btn-outline:hover {
  background: var(--brown);
  color: #fff;
}

/* ── SECTION BASICS ── */
.section {
  padding: 80px 0;
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--brown);
  line-height: 1.2;
  max-width: 680px;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* ── ABOUT ── */
.section-about {
  background: var(--warm-white);
}
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}
.about-body p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.stat {
  flex: 1;
  min-width: 160px;
  padding: 36px 32px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat:not(:last-child) {
  border-right: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--brown);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ── MASS ── */
.section-mass {
  background: var(--section-alt);
}
.mass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.mass-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 28px 24px;
}
.mass-card-accent {
  background: var(--brown);
  border-color: var(--brown);
}
.mass-card-accent .mass-card-scope {
  color: rgba(255, 255, 255, 0.55);
}
.mass-card-accent .mass-card-title {
  color: #fff;
}
.mass-card-accent .mass-card-desc {
  color: rgba(255, 255, 255, 0.78);
}
.mass-card-scope {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
  font-weight: 600;
}
.mass-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 1500;
  color: var(--brown);
  margin-bottom: 20px;
}
.mass-card-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
}
.mass-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mass-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mass-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.mass-time {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--brown);
  white-space: nowrap;
  min-width: 68px;
}
.mass-lang {
  font-size: 0.87rem;
  color: var(--text-muted);
}
.mass-lang small {
  display: block;
  font-size: 0.78rem;
  color: #9c8a72;
  margin-top: 2px;
}
.mass-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: #9c8a72;
  padding: 10px 14px;
  background: var(--section-alt);
  border-radius: 6px;
}
.sacrament-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sacrament-list li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.sacrament-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sacrament-list strong {
  font-size: 0.9rem;
  color: var(--brown);
  display: block;
  margin-bottom: 4px;
}
.sacrament-list p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── FULL BLEED IMAGE ── */
.full-bleed-img {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.full-bleed-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.full-bleed-img--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 2, 0.52);
}
.verse-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.verse-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.verse-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: #fff;
  font-weight: 400;
  max-width: 600px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.verse-cite {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: normal;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

/* ── HISTORY ── */
.section-history {
  background: var(--warm-white);
}
.timeline {
  margin-top: 48px;
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 1px var(--gold);
}
.timeline-marker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
}
.timeline-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 560px;
}

/* ── MINISTRIES ── */
.section-ministries {
  background: var(--cream);
}
.ministry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.ministry-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 28px 24px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.ministry-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.1);
}
.ministry-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.ministry-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 10px;
}
.ministry-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── REVIEWS ── */
.section-reviews {
  background: var(--section-alt);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.review-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.review-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}
.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review-card footer strong {
  font-size: 0.87rem;
  color: var(--brown);
  font-style: normal;
}
.review-card footer span {
  font-size: 0.78rem;
  color: #9c8a72;
}
.reviews-cta {
  text-align: center;
}

/* ── VISIT ── */
.section-visit {
  background: var(--warm-white);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.visit-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.visit-detail h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.visit-detail p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.visit-detail a {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.visit-map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 400px;
}
.visit-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── FOOTER ── */
.footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-body {
    grid-template-columns: 1fr;
  }
  .visit-grid {
    grid-template-columns: 1fr;
  }
  .visit-map {
    height: 300px;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--cream);
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-bottom: 48px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn {
    width: auto;
  }

  .section {
    padding: 60px 0;
  }
  .full-bleed-img {
    height: 280px;
  }
  .stat:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stats-row {
    flex-direction: column;
  }

  .timeline {
    padding-left: 28px;
  }

  .
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

full-bleed-img--dome {
    height: 560px;
  }

  .full-bleed-img--dome img {
    object-position: center center;
  }
