:root {
  --blue: #2c5aa0;
  --gold: #c9a24d;
  --light: #f5f6fa;
  --text: #1f2937;
}

* {
  box-sizing: border-box;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

body {
  color: var(--text);
  background: #fff;
}

/* HERO */
/* ================= HERO ================= */

.hero {
  background: url("../../images/cathedral6.png") center bottom / cover no-repeat;
  height: 120vh;
  position: relative;
}

.hero-overlay {
  height: 100%;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(44, 90, 160, 0.65),
    rgba(255, 255, 255, 0.15)
  );
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
}

.hero-content {
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.subtitle {
  margin-top: 18px;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Gold divider */
.divider {
  margin: 18px auto 12px;
  font-size: 1.3rem;
  color: #e7c36a;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  display: inline-block;
  width: 80px;
  height: 2px;
  background: #e7c36a;
  vertical-align: middle;
  margin: 0 12px;
}

/* Responsive tweak */
/* ================= MOBILE HERO FIX ================= */

@media (max-width: 768px) {

  .hero1 {
    height: 70vh; /* reduce height */
    background-position: center top; /* focus on church */
  }
 .hero {
    background-image: url("../../images/cathedral6-mobile.png");
  }
  .hero-overlay {
    padding-top: 120px; /* space for sticky nav */
  }

  .hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .hero-content h2 {
    font-size: 1.3rem;
    margin-top: 6px;
  }

  .subtitle {
    font-size: 0.95rem;
    letter-spacing: 1px;
  }
}


.subtitle {
  margin-top: 10px;
  font-weight: 500;
}

.welcome {
  margin-top: 30px;
  font-size: 1.2rem;
}

/* SECTIONS */
.section {
  padding: 70px 10%;
  text-align: center;
}

.section.light {
  background: var(--light);
}

.section h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 40px;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 25px;
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.card.small {
  padding: 20px;
}

.card.highlight {
  border-top: 4px solid var(--gold);
}

/* JOIN */
.join {
  background: linear-gradient(to right, rgba(44,90,160,.8), rgba(201,162,77,.8)),
              url("../../images/community.jpg") center/cover;
  color: #fff;
  padding: 80px 10%;
}

.join ul {
  list-style: none;
  margin: 20px 0;
}






/* ================= JOIN BANNER ================= */

.join-banner {
  position: relative;

  background-image:
    url("../../images/join-left1.jpg"),
    url("../../images/cathedral6.png");

  background-position:
    left center,
    right center;

  background-size:
    50% 100%,
    50% 100%;

  background-repeat: no-repeat;

  min-height: 360px;
}


/* Overlay gradient */
.join-overlay {
  background: linear-gradient(
    to right,
    rgba(20, 60, 120, 0.85),
    rgba(30, 90, 160, 0.75),
    rgba(20, 60, 120, 0.85)
  );
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content container */
.join-inner {
  text-align: center;
  color: #ffffff;
  padding: 60px 20px;
  max-width: 800px;
}

/* Title */
.join-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: #f5d48b;
  margin-bottom: 10px;
  position: relative;
}

/* Decorative divider */
.join-title::before,
.join-title::after {
  content: "✦";
  color: #f5d48b;
  margin: 0 12px;
}

/* Subtitle */
.join-subtitle {
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-weight: 500;
}

/* List */
.join-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  max-width: 420px;
  text-align: left;
}

.join-list li {
  font-size: 1.05rem;
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
}

/* Gold checkmarks */
.join-list li::before {
  content: "✔";
  color: #f5d48b;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Button */
.join-btn {
  display: inline-block;
  background: linear-gradient(to bottom, #f7d98a, #e0b95c);
  color: #1f2937;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .join-title {
    font-size: 2rem;
  }

  .join-list {
    text-align: center;
  }

  .join-list li {
    padding-left: 0;
  }

  .join-list li::before {
    position: static;
    margin-right: 8px;
  }
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  margin-top: 20px;
}

.btn.gold {
  background: var(--gold);
}

.btn.outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
}

/* SPLIT */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 25px;
}

.panel {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
}

.chatbot img {
  width: 80px;
  margin-bottom: 10px;
}

/* FOOTER */
footer {
  background: #0f172a;
  color: #fff;
  padding: 30px;
  text-align: center;
}



/* ================= ORNATE SECTIONS ================= */

.section.ornate {
  background: #f8f5f0;
  position: relative;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #1f3a5f;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  padding: 0 30px;
}

/* Decorative lines */
.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 120px;
  height: 2px;
  background: linear-gradient(to right, transparent, #c9a24d, transparent);
}

.section-title::before {
  left: -130px;
}

.section-title::after {
  right: -130px;
}

/* ================= PANEL CARDS ================= */

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.panel-grid.five {
  grid-template-columns: repeat(5, 1fr);
}

.panel-card {
  background: linear-gradient(to bottom, #ffffff, #f2efe9);
  border-radius: 14px;
  padding: 30px 20px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.15);
}

.panel-card img {
  width: 94px;
  height: auto;
  margin-bottom: 15px;
}

.panel-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f3a5f;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
  .panel-grid,
  .panel-grid.five {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .panel-grid,
  .panel-grid.five {
    grid-template-columns: 1fr;
  }

  .section-title::before,
  .section-title::after {
    display: none;
  }
}


@media (max-width: 768px) {
  .join-banner {
    background-image: url("../../images/join-left1.jpg");
    background-size: cover;
    background-position: center;
  }
}
/* ================= PERSONALIZED ACCESS ================= */
/* ================= PERSONALIZED ACCESS ================= */

.personalized-section {
  background: #f8f5f0;
  padding: 90px 6%;
  text-align: center;
}

/* Section title */
.personalized-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: #1f3a5f;
  margin-bottom: 70px;
}

.personalized-title::before,
.personalized-title::after {
  content: "✦";
  color: #c9a24d;
  margin: 0 12px;
}

/* Layout */
.personalized-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

/* Panel container */
.personalized-panel {
    height: 220px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  background: transparent;
  text-align: left;
}

/* Panel headers */
.panel-header {
  padding: 14px 18px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #ffffff;
}

/* Header color variants */
.panel-header.blue {
  background: linear-gradient(to right, #2c5aa0, #3b73c8);
}

.panel-header.green {
  background: linear-gradient(to right, #5f7f73, #7fa69a);
}

/* Panel body */
.panel-body {
  
  padding: 0px 0px 0px;
  background: linear-gradient(to bottom, #ffffff, #f1ede6);
}

/* Check list */
.panel-body ul {
  list-style: none;
  padding: 0;
}

.panel-body ul li {
  font-size: 1.05rem;
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
}

.panel-body ul li::before {
  content: "✔";
  color: #c9a24d;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Church image */
.personalized-panel.right .church-image {
  height: 170px;
  background: url("../../images/cathedral9.png") center / cover no-repeat;
  border-radius: 8px;
}

/* Chatbot */
.personalized-chatbot {
  text-align: center;
}

.personalized-chatbot img {
  width: 170px;
  display: block;
  margin: 0 auto;
}

.personalized-chatbot h4 {
  margin-top: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #1f3a5f;
}

/* Responsive */
@media (max-width: 900px) {
  .personalized-wrapper {
    grid-template-columns: 1fr;
  }

  .personalized-chatbot img {
    width: 140px;
  }
}



/* ================= TITHING & PROJECTS ================= */

.tithing-section {
  background: #f8f5f0;
}

.tithing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

/* Card container */
.tithing-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  background: transparent;
}

/* Headers */
.tithing-header {
  padding: 16px 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #ffffff;
}

/* Header colors */
.tithing-header.blue {
  background: linear-gradient(to right, #4b6fa9, #6f91c7);
}

.tithing-header.gold {
  background: linear-gradient(to right, #c49a3a, #e1b860);
}

/* Body */
.tithing-body {
  background: linear-gradient(to bottom, #ffffff, #f1ede6);
  padding: 26px 22px;
}

/* Body content */
.tithing-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.15rem;
  font-weight: 500;
  color: #1f2937;
}

/* Icon */
.tithing-icon {
  font-size: 1.6rem;
}

/* Responsive */
@media (max-width: 768px) {
  .tithing-grid {
    grid-template-columns: 1fr;
  }
}


.tithing-icon-img {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

/* ================= TOP NAVIGATION ================= */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;

  /* animated properties */
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

/* Default (over hero) */
.top-nav:not(.sticky) {
  background: linear-gradient(
    to bottom,
    rgba(20, 40, 80, 0.65),
    rgba(20, 40, 80, 0.25)
  );
  box-shadow: none;
  backdrop-filter: blur(4px);
}

/* Sticky state */
.top-nav.sticky {
  background: rgba(20, 40, 80, 0.95);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

/* Inner container */
.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 22px 20px; /* TALL state */
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.25);

  transition: padding 0.3s ease;
}

/* Shrink on sticky */
.top-nav.sticky .nav-inner {
  padding: 12px 20px; /* COMPACT state */
}

/* Brand */
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
  transition: font-size 0.3s ease;
}

.top-nav.sticky .nav-brand {
  font-size: 1.3rem;
}

/* Menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  transition: gap 0.3s ease;
}

.top-nav.sticky .nav-menu {
  gap: 22px;
}

.nav-menu li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.nav-menu li a:hover {
  opacity: 0.85;
  border-bottom: 2px solid #f5d48b;
}

/* Active menu item */
.nav-menu li a.active {
  color: #f5d48b;
  border-bottom: 2px solid #f5d48b;
  opacity: 1;
}

/* ================= HAMBURGER MENU ================= */

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .nav-toggle {
    display: flex;
  }

  .nav-brand {
    font-size: 1.2rem;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: rgba(20, 40, 80, 0.97);
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li a {
    font-size: 1.1rem;
  }
  
  
   .nav-auth {
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
  }

  .btn-login,
  .btn-register {
    width: 80%;
    text-align: center;
    font-size: 1rem;
  }
}


/* ================= AUTH BUTTONS ================= */

.nav-auth {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Login button */
.btn-login {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.7);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-login:hover {
  background: rgba(255,255,255,0.15);
}

/* Register button (CTA) */
.btn-register {
  padding: 8px 20px;
  border-radius: 20px;
  background: linear-gradient(to bottom, #f7d98a, #e0b95c);
  color: #1f2937;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* ================= PARISH LOGO ================= */

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo */
.nav-logo {
  width: 60px;
  height: auto;
  transition: width 0.3s ease;
}

/* Shrink logo on sticky */
.top-nav.sticky .nav-logo {
  width: 34px;
}

/* Brand text */
.brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.4px;
  transition: font-size 0.3s ease;
}

/* Shrink text on sticky */
.top-nav.sticky .brand-text {
  font-size: 1.25rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav-logo {
    width: 40px;
  }

  .brand-text {
    font-size: 1.15rem;
  }
}



#parish-chat-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #1f3c88;
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  z-index: 9999;
}
