/* =========================================================
   FATHER PETER — Catholic Ministry Website
   Design: peaceful, elegant, timeless
   ========================================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --white: #FFFFFF;
  --deep-blue: #12355B;
  --gold: #D4AF37;
  --cream: #F9F6EF;
  --text-dark: #1a1a1a;
  --text-soft: #555555;
  --shadow-soft: 0 4px 20px rgba(18, 53, 91, 0.08);
  --shadow-hover: 0 8px 30px rgba(18, 53, 91, 0.15);
  --radius: 8px;
  --transition: 0.3s ease;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--deep-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--deep-blue);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 0.8rem; }

p { margin-bottom: 1rem; color: var(--text-soft); }

/* ---------- Loading Screen ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--deep-blue);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease, visibility 1s ease;
  text-align: center;
  padding: 2rem;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-cross {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

.loader h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.loader p {
  color: var(--gold);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 1px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(18, 53, 91, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep-blue);
  letter-spacing: 1px;
}

.logo-name .cross {
  color: var(--gold);
  margin-right: 0.3rem;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--text-soft);
  font-style: italic;
  letter-spacing: 0.5px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-list a {
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
  padding: 0.3rem 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

/* WhatsApp button in header */
.whatsapp-btn {
  background: #25D366;
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  color: var(--white) !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--deep-blue);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

.btn-gold:hover {
  background: #b8932d;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--deep-blue);
  border: 2px solid var(--deep-blue);
}

.btn-outline:hover {
  background: var(--deep-blue);
  color: var(--white);
}

/* ---------- Sections ---------- */
section {
  padding: 5rem 1.5rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
}

.section-title p {
  margin-top: 1rem;
  font-style: italic;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '✝';
  position: absolute;
  font-size: 20rem;
  color: rgba(212, 175, 55, 0.05);
  top: 50%;
  right: -5rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

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

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 4px solid var(--white);
  outline: 1px solid rgba(212, 175, 55, 0.3);
}

/* ---------- About Preview ---------- */
.about-preview {
  background: var(--white);
}

.about-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.about-preview img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1;
  object-fit: cover;
}

/* ---------- Reflection Card ---------- */
.reflection-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--gold);
  text-align: center;
  position: relative;
}

.reflection-card::before {
  content: '✝';
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.bible-verse {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--deep-blue);
  margin: 2rem 0 0.5rem;
  line-height: 1.4;
  position: relative;
  padding: 1rem 0;
}

.bible-verse::before { content: '“'; color: var(--gold); font-size: 2rem; }
.bible-verse::after { content: '”'; color: var(--gold); font-size: 2rem; }

.verse-ref {
  color: var(--gold);
  font-weight: 700;
  font-style: normal;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  display: block;
  margin-top: 0.5rem;
}

.reflection-label {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.reflection-card .prayer {
  font-style: italic;
  color: var(--deep-blue);
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  border-left: 3px solid var(--gold);
  text-align: left;
}

/* ---------- Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-date {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  margin-bottom: 0.8rem;
}

.blog-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ---------- Prayer Section ---------- */
.prayer-section {
  background: var(--deep-blue);
  color: var(--white);
  text-align: center;
}

.prayer-section h2 {
  color: var(--white);
}

.prayer-section h2::after {
  background: var(--gold);
}

.prayer-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 1rem auto 2rem;
  font-size: 1.1rem;
}

/* ---------- Children Preview ---------- */
.children-preview {
  background: var(--cream);
}

.children-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.children-preview img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.event-details {
  list-style: none;
  margin: 1.5rem 0;
}

.event-details li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(18, 53, 91, 0.15);
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.event-details li strong {
  color: var(--deep-blue);
  min-width: 90px;
}

/* ---------- Donate Preview ---------- */
.donate-preview {
  background: var(--white);
  text-align: center;
}

.donate-list {
  list-style: none;
  max-width: 500px;
  margin: 2rem auto;
  text-align: left;
}

.donate-list li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-soft);
}

.donate-list li::before {
  content: '✝';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--deep-blue) 0%, #1a4575 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '✝';
  position: absolute;
  font-size: 15rem;
  color: rgba(212, 175, 55, 0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.page-hero h1 {
  color: var(--white);
  position: relative;
}

.page-hero p {
  color: var(--gold);
  font-style: italic;
  margin-top: 0.8rem;
  position: relative;
}

/* ---------- About Page ---------- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-content img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  position: sticky;
  top: 100px;
}

.about-content h2 {
  margin-top: 2rem;
}

.about-content h2:first-child {
  margin-top: 0;
}

/* ---------- Reflection Page ---------- */
.reflection-page-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--cream);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--gold);
}

.reflection-date {
  text-align: center;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.share-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  color: var(--white) !important;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform var(--transition);
}

.share-btn:hover { transform: translateY(-2px); color: var(--white) !important; }
.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-x { background: #000; }

/* ---------- Prayer Page ---------- */
.prayer-form-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--cream);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.prayer-form-card label {
  display: block;
  text-align: left;
  margin-bottom: 0.5rem;
  color: var(--deep-blue);
  font-weight: 700;
}

.prayer-form-card textarea,
.prayer-form-card input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(18, 53, 91, 0.2);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  background: var(--white);
  transition: border-color var(--transition);
}

.prayer-form-card textarea:focus,
.prayer-form-card input:focus {
  outline: none;
  border-color: var(--gold);
}

.prayer-form-card textarea {
  min-height: 150px;
  resize: vertical;
}

/* ---------- Children Page ---------- */
.children-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.children-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.children-gallery img {
  border-radius: var(--radius);
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.parent-info {
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}

.parent-info h3 {
  color: var(--deep-blue);
  margin-bottom: 1rem;
}

.parent-info ul {
  list-style: none;
}

.parent-info li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-soft);
}

.parent-info li::before {
  content: '✝';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- Donate Page ---------- */
.donate-content {
  max-width: 800px;
  margin: 0 auto;
}

.donate-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.donate-method {
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  border-top: 3px solid var(--gold);
}

.donate-method h3 {
  color: var(--deep-blue);
  margin-bottom: 0.8rem;
}

.donate-method p {
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep-blue);
  color: var(--white);
  padding: 3rem 1.5rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: left;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-col a:hover { color: var(--gold); }

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-logo .cross { color: var(--gold); }

.footer-tagline {
  font-style: italic;
  color: var(--gold);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

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

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner,
  .about-preview-inner,
  .children-preview-inner,
  .about-content,
  .children-content {
    grid-template-columns: 1fr;
  }

  .about-content img {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 1.2rem; }

  .menu-toggle { display: block; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
  }

  .nav.active { right: 0; }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .nav-list a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }

  .whatsapp-btn {
    width: 100%;
    justify-content: center;
  }

  .reflection-card,
  .reflection-page-card,
  .prayer-form-card {
    padding: 2rem 1.5rem;
  }

  .bible-verse { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .logo-tagline { display: none; }
  .hero::before { font-size: 12rem; right: -3rem; }
}
