/* /assets/css/prayer-cards.css */

:root {
  /* --- Dark Premium Palette --- */
  --pc-bg-root: #0C0A09;      /* Deep Warm Black (Volcanic Stone) */
  --pc-bg-surface: #1C1917;   /* Dark Charcoal surface */
  
  /* Typography Colors */
  --pc-text-main: #E7E5E4;    /* Warm Stone White */
  --pc-text-muted: #A8A29E;   /* Muted Grey */
  --pc-text-gold: #D4C59A;    /* Light Antique Gold */

  /* Accents */
  --pc-accent-gold: #B79A5A;  /* Rich Gold */
  --pc-accent-hover: #C5A059;
  
  /* Dimensions & Effects */
  --pc-shadow-deep: 0 30px 60px -10px rgba(0, 0, 0, 0.9);
  --pc-transition: all 0.4s ease;
  --pc-radius: 4px;
}

body {
  margin: 0;
  background-color: var(--pc-bg-root);
  color: var(--pc-text-main);
  font-family: 'Inter', sans-serif;
}

h1, h2, h3 {
  font-family: 'Spectral', serif;
  font-weight: 300;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

/* --- DARK HERO SECTION --- */
.pc-hero {
  position: relative;
  /* Desktop Layout */
  min-height: 85vh; 
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding-top: 10rem; 
  padding-bottom: 10rem;
  overflow: hidden;
}

.pc-hero-bg {
  position: absolute;
  inset: 0;
  background: url("/assets/images/cardswidehero.png") no-repeat center center;
  background-size: cover;
  z-index: 0;
  filter: brightness(0.5) contrast(1.1);
}

.pc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, var(--pc-bg-root) 95%);
  z-index: 1;
}

.pc-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  animation: fadeUp 1s ease-out;
}

.pc-hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  text-shadow: 0 10px 30px rgba(0,0,0,0.9);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.pc-utility-sub {
  color: var(--pc-text-muted);
  font-size: 1.25rem;
  margin-bottom: 3rem;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Stylized Collection Label */
.hero-collection-label {
    font-family: 'Spectral', serif;
    font-style: italic;
    font-size: 1.8rem;
    color: var(--pc-accent-gold);
    margin-top: 2rem;
    position: relative;
    display: inline-block;
}

.hero-collection-label::before,
.hero-collection-label::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--pc-accent-gold);
    vertical-align: middle;
    margin: 0 1rem;
    opacity: 0.6;
}


/* --- FLOATING CAROUSEL SECTION --- */
.pc-carousel-section {
  position: relative;
  z-index: 10;
  padding-bottom: 8rem;
  margin-top: -12rem; /* Desktop negative margin */
}

/* Carousel Container */
.carousel-wrapper {
  position: relative;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 2rem;
}

.carousel-track {
  display: flex;
  gap: 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem 0.5rem 4rem;
  scrollbar-width: none; 
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

/* The Carousel Card */
.carousel-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--pc-bg-surface);
  border: 1px solid rgba(183, 154, 90, 0.4);
  border-radius: var(--pc-radius);
  overflow: hidden;
  box-shadow: var(--pc-shadow-deep);
  display: grid;
  grid-template-columns: 1fr;
  transition: var(--pc-transition);
}

@media (min-width: 900px) {
  .carousel-card {
    grid-template-columns: 1.1fr 0.9fr; 
    min-height: 550px;
  }
}

/* Image Half */
.cc-image-wrap {
  position: relative;
  overflow: hidden;
  height: 400px; 
  border-bottom: 1px solid #333;
}
@media (min-width: 900px) { 
    .cc-image-wrap { height: 100%; border-bottom: none; border-right: 1px solid #333; } 
}

.cc-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
  filter: contrast(1.1);
}
.carousel-card:hover .cc-image-wrap img { transform: scale(1.05); }

/* Content Half */
.cc-content {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.cc-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--pc-accent-gold);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.cc-content h3 {
  font-size: 2.8rem;
  margin: 0 0 1.5rem 0;
  color: #FFF;
  line-height: 1.1;
}

.cc-content p {
  color: var(--pc-text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 420px;
}

/* Button Group */
.cc-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.cc-btn {
  flex: 1;
  text-align: center;
  padding: 1rem 1.5rem;
  border: 1px solid var(--pc-accent-gold);
  color: var(--pc-accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pc-transition);
  text-decoration: none;
  white-space: nowrap;
}

.cc-btn:hover {
  background: var(--pc-accent-gold);
  color: #000;
}

/* Navigation Buttons */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--pc-accent-gold);
  color: #000;
  border: 2px solid #FFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.carousel-nav-btn:hover { 
    transform: translateY(-50%) scale(1.1);
    background: #FFF;
}

.carousel-nav-btn.prev { left: -10px; }
.carousel-nav-btn.next { right: -10px; }

/* --- FOOTER --- */
.site-footer {
  background-color: #000;
  border-top: 1px solid #222;
  padding: 3rem 0;
  text-align: center;
  color: #555;
}

.footer-brand-name {
  color: #FFF;
  font-family: 'Spectral', serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-mission {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0.7;
}

.footer-safety-notice {
  font-size: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- MOBILE COMPACT OPTIMIZATION --- */
@media (max-width: 900px) {
  /* 1. Bring Hero Words Up */
  .pc-hero {
    align-items: flex-start; /* Aligns content to top */
    padding-top: 5rem;      /* Reduced top padding */
    padding-bottom: 12rem;  /* Keeps space for overlap */
    min-height: 70vh;
  }
  
  .pc-hero h1 { font-size: 2.5rem; }
  .pc-utility-sub { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero-collection-label { font-size: 1.4rem; margin-top: 1rem; }

  /* 2. Raise Carousel Higher */
  .pc-carousel-section {
    margin-top: -10rem; /* Pulls carousel high up into hero */
  }

  /* 3. Compact Card Layout */
  .carousel-wrapper { padding: 0 1rem; }
  .carousel-track { gap: 1rem; }
  
  .carousel-card {
    flex: 0 0 85%; /* Peek effect so user knows to swipe */
    grid-template-columns: 1fr;
  }
  
  .cc-image-wrap {
    height: 180px; /* Drastically reduced height */
    border-bottom: 1px solid rgba(183, 154, 90, 0.2);
  }
  
  .cc-content {
    padding: 1.5rem; /* Tight padding */
  }
  
  .cc-label { font-size: 0.7rem; margin-bottom: 0.5rem; }
  
  .cc-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }
  
  .cc-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  
  .cc-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .cc-btn {
    padding: 0.8rem;
    font-size: 0.8rem;
  }
  
  /* Hide nav arrows on mobile (swipe is native) */
  .carousel-nav-btn { display: none; }
}