/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth; /* Smooth scrolling */
}
/* Basic Body Styles */
body {
  font-family: 'Lora', serif; /* Elegant, readable font */
  line-height: 1.6;
  background-color: #faf3e0; /* Calm, sacred base */
  color: #333;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: #2a3f5f;
  color: #fff;
  text-align: center;
  padding: 1.2rem 2rem;
  overflow: hidden;
}

.hero img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain; /* instead of cover */
  border-radius: 5px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Floating Heavenly Orbs */
.floating-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.floating-orbs .orb {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(248, 193, 11, 0.87); /* Soft Gold */
  box-shadow: 0 0 8px rgba(255, 207, 50, 0.945); /* Golden glow */
  border-radius: 50%;
  animation: floatOrb linear infinite;
}

@keyframes floatOrb {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-80px) translateX(40px) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translateY(-160px) translateX(-30px) scale(1);
    opacity: 0;
  }
}

.hero h1 {
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif; /* Elegant font for headings */
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.8); /* Soft glow around text */
}

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

.cta-button {
  background-color: #d4af37; /* Gold */
  color: #fff;
  padding: 0.8rem 2rem;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #7b1e1e; /* Deep Marian Red */
}

section {
  padding: 4.8rem 2rem;
}

/* About Section */
.about {
  text-align: center;
}

.about h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #7b1e1e;
}

.about p {
  font-size: 1.05rem;
  padding: 0 3rem;
  margin: 0 auto;
  margin-bottom: 1rem;
  line-height: 1.9;
  text-align: justify;
}

/* Prayer Preview Section */
.prayer-preview {
  padding: 1rem 5rem 5rem;
  background-color: #faf3e0; /* Soft Cream background */
  text-align: center;
}

.prayer-preview h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #7b1e1e; /* Marian Red */
  padding-bottom: 1.5rem;
}

.prayer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  background-color: #ffffffa9;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2a3f5f; /* Royal Blue */
}

#chaplet {
  font-size: 1.2rem;
  line-height: 1.4;
}

.card p {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: #555;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.2); /* Soft glow effect */
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: #7b1e1e; /* Hover effect to Marian Red */
}

/* Quote Section */
.testimonial-section {
  background-color: #faf3e0;
  color: #2a3f5f;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonial-slider {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  height: 180px;
}

.testimonial {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.testimonial.active {
  opacity: 1;
}

.testimonial blockquote {
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.testimonial footer {
  font-weight: bold;
  font-family: 'Playfair Display', serif;
}

/* Elegant, Glowing Footer */
.site-footer {
  position: relative;
  background: #04132e;
  color: #f3f3f3;
  text-align: center;
  padding: 2rem 2rem 2rem;
  font-family: 'Lora', serif;
  overflow: hidden;
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.site-footer h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 1rem;
}

.footer-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: #e0d9ce;
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-nav a {
  color: #f3f3f3;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #d4af37;
}

.footer-h3 {
  border-bottom: none;
}

.footer-bottom {
  font-size: 0.9rem;
  color: #ccc;
}

/* ========== MEDIA QUERIES ========== */

/* Smaller desktops – max-width: 1344px (84em) */
@media (max-width: 84em) {
  .hero img {
    height: 80vh;
    max-height: 600px;
    object-fit: cover;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .cta-button {
    font-size: 1.1rem;
    padding: 0.7rem 1.8rem;
  }
}

/* Large laptops/desktops – max-width: 1200px (75em) */
@media (max-width: 75em) {
  .hero img {
    height: 73vh;
    max-height: 500px;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .cta-button {
    padding: 0.7rem 1.6rem;
  }

  .floating-orbs .orb {
    width: 7px;
    height: 7px;
  }

  .prayer-cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .card h3 {
    font-size: 1.2rem;
  }

  #chaplet {
    font-size: 1.1rem;
  }
  .card p {
    font-size: 0.95rem;
  }

  .card {
    padding: 1.5rem;
  }

  .prayer-preview h2 {
    padding-bottom: 0;
  }
}

/* Tablets landscape – max-width: 1024px (64em) */
@media (max-width: 64em) {
  .hero img {
    height: 73vh;
    max-height: 450px;
  }

  .hero h1 {
    font-size: 1.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about h2,
  .prayer-preview h2 {
    font-size: 2rem;
  }

  .prayer-preview {
    padding: 3rem 3rem 4rem;
  }

  .about p {
    padding: 0 1rem;
    font-size: 1rem;
  }

  .cta-button {
    font-size: 1rem;
    padding: 0.6rem 1.4rem;
  }

  .floating-orbs .orb {
    width: 6px;
    height: 6px;
  }

  #chaplet {
    font-size: 1rem;
  }
}

/* Medium laptops – max-width: 960px (60em) */

@media (max-width: 60em) {
  .prayer-cards {
    /* to make  grid-template-columns two, not three box */
    grid-template-columns: repeat(2, 1fr);
  }
  .card h3 {
    font-size: 1.3rem;
  }
  .card p {
    font-size: 1rem;
  }
  .card {
    padding: 1.8rem;
  }
  #chaplet {
    font-size: 1.3rem;
  }

  .testimonial blockquote {
    font-size: 1.2rem;
  }

  .site-footer h3 {
    font-size: 1.8rem;
  }

  .footer-quote {
    font-size: 1rem;
  }

  .footer-nav a {
    font-size: 1rem;
  }
}

/* Tablets portrait – max-width: 768px (48em) */
@media (max-width: 48em) {
  .hero img {
    height: 73vh;
    max-height: 400px;
    object-fit: cover;
  }

  .hero h1 {
    font-size: 1.1rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .cta-button {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }

  .about h2,
  .prayer-preview h2 {
    font-size: 2rem;
  }

  .card h3 {
    font-size: 1.3rem;
  }

  .card p {
    font-size: 0.95rem;
  }

  .floating-orbs .orb {
    width: 5px;
    height: 5px;
  }

  .prayer-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
  }
}

/* Small laptops – max-width: 626px (39.1em) */

@media (max-width: 39.1em) {
  .about p {
    text-align: left;
    hyphens: auto; /* allows automatic hyphenation to reduce big gaps */
  }

  #chaplet {
    font-size: 1.2rem;
  }

  .card {
    padding: 1.5rem;
  }

  .prayer-preview {
    padding: 0.7rem 2rem 4rem;
  }
}

/* Small tablets/phones – max-width: 544px (34em) */
@media (max-width: 34em) {
  .hero img {
    height: 75vh;
    max-height: 380px;
  }

  .hero h1 {
    font-size: 1rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .about h2,
  .prayer-preview h2 {
    font-size: 1.6rem;
  }

  .about p {
    padding: 0 0.8rem;
    font-size: 0.95rem;
  }

  .card {
    padding: 1.5rem;
    margin: 0rem 2rem 0rem 2rem;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  #chaplet {
    font-size: 1.1rem;
  }

  .prayer-preview {
    padding-top: 0;
  }

  .floating-orbs .orb {
    width: 4px;
    height: 4px;
  }

  section .about {
    padding: 4.8rem 2rem 3rem 2rem;
  }
}

/* 454px (28.4em) */

@media (max-width: 28.4em) {
  .about h2,
  .prayer-preview h2 {
    font-size: 1.6rem;
  }
  .prayer-cards {
    grid-template-columns: repeat(1, 1fr);
  }

  .card {
    padding: 1.2rem;
  }

  .testimonial blockquote {
    font-size: 1.1rem;
  }

  .site-footer h3 {
    font-size: 1.5rem;
  }
  .footer-quote {
    font-size: 0.9rem;
  }
}

/* Phones – max-width: 416px (26em) */
@media (max-width: 26em) {
  .hero img {
    height: 70vh;
    max-height: 350px;
    object-fit: cover;
  }

  .hero h1 {
    font-size: 0.95rem;
  }

  .hero p {
    font-size: 0.85rem;
  }

  section.about {
    padding: 4.8rem 1.3rem;
  }

  .cta-button {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }

  .about h2,
  .prayer-preview h2 {
    font-size: 1.6rem;
  }

  .prayer-preview {
    padding: 0.7rem 0rem 4rem;
    padding-top: 0;
  }

  .card {
    padding: 1.5rem;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .floating-orbs .orb {
    width: 3.5px;
    height: 3.5px;
  }

  .site-footer {
    padding: 1.5rem 1.5rem 1rem;
  }
}

/* 360px (22.5em) */
@media (max-width: 22.5em) {
  .hero img {
    max-width: 100%;
    height: 65vh;
    max-height: 320px;
    object-fit: cover;
  }

  .hero h1 {
    font-size: 0.9rem;
  }

  .hero p {
    font-size: 0.8rem;
  }

  .about h2,
  .prayer-preview h2 {
    font-size: 1.4rem;
  }

  .cta-button {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }

  .about p {
    padding: 0 0.5rem;
    font-size: 0.9rem;

    text-align: left;
    hyphens: auto; /* allows automatic hyphenation to reduce big gaps */
  }
}

/* 340px (21.25em) */
@media (max-width: 21.25em) {
  .hero img {
    max-width: 100%;
    height: 65vh;
    max-height: 300px;
    object-fit: cover;
  }

  .hero h1 {
    font-size: 1rem;
  }

  .hero p {
    font-size: 0.75rem;
  }

  .cta-button {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .about h2,
  .prayer-preview h2 {
    font-size: 1.4rem;
  }

  .about p {
    padding: 0 0.5rem;
    font-size: 0.85rem;
  }
}

/* 320px (20em) */

@media (max-width: 20em) {
  .hero img {
    max-width: 100%;
    height: 64vh;
    border-radius: 5px;
    object-fit: cover;
  }

  .hero h1 {
    font-size: 0.85rem;
  }

  .hero p {
    font-size: 0.7rem;
  }

  .cta-button {
    font-size: 0.7rem;
    padding: 0.4rem 0.5rem;
  }
}
