/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy-deep: #071A3D;
  --blue-main: #123574;
  --blue-mid: #1B438A;
  --blue-light: #5D8FE8;
  --gold: #D6AD52;
  --gold-light: #F2D487;
  --white: #FFFFFF;
  --off-white: #F7F3EA;
  --gray-blue: #B9C6DE;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

* { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}

body {
  font-family: var(--font-sans);
  background-color: var(--navy-deep);
  color: var(--white);
  overflow-x: hidden;
}

.font-serif-sacred {
  font-family: var(--font-serif);
}

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

/* Focus visibility for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Ambient glow behind hero / dark sections */
.divine-glow-bg { position: relative; }
.divine-glow-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(93, 143, 232, 0.10) 0%, rgba(7, 26, 61, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--blue-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Missal styled divider */
.missal-divider { display: flex; align-items: center; justify-content: center; margin: 2rem 0; }
.missal-divider::before,
.missal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
}
.missal-divider-cross { font-size: 1.25rem; color: var(--gold-light); margin: 0 1rem; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in { animation: none; }
}

/* Subtle halo for the flagship App plan (static, no exaggerated pulse) */
.featured-card {
  border: 2px solid rgba(214, 173, 82, 0.55);
  box-shadow: 0 0 0 1px rgba(214, 173, 82, 0.15), 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Pricing numerals: clean sans-serif, highly legible */
.pricing-digits {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

button, a { transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease; }

/* ============ Mobile menu ============ */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
#mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
#mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
#mobile-menu.open { max-height: 480px; }

/* ============ Carousel ============ */
.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img,
.carousel-slide .slide-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(160deg, rgba(27, 67, 138, 0.55), rgba(7, 26, 61, 0.85));
  color: var(--gray-blue);
  text-align: center;
  padding: 1.5rem;
}
.slide-placeholder .slide-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(214, 173, 82, 0.15);
  border: 1px solid rgba(214, 173, 82, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(to top, rgba(7,26,61,0.92), rgba(7,26,61,0));
  font-size: 0.8rem;
  color: var(--white);
  font-weight: 500;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(7, 26, 61, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.carousel-arrow:hover { background: rgba(214, 173, 82, 0.85); color: var(--navy-deep); border-color: transparent; }
.carousel-prev { left: 0.6rem; }
.carousel-next { right: 0.6rem; }

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  padding: 0;
  border: none;
}
.carousel-dot.active { background: var(--gold); width: 18px; border-radius: 9999px; }

/* Accordion */
.accordion-panel { overflow: hidden; }

/* 3D-style icon badge */
.icon-3d {
  position: relative;
  background: linear-gradient(150deg, #2a4a8f 0%, #123574 55%, #0a1a3d 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -6px 10px rgba(0, 0, 0, 0.35),
    0 10px 18px rgba(0, 0, 0, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(214, 173, 82, 0.45);
  transform: perspective(300px) rotateX(6deg);
}
.icon-3d::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 45%);
  pointer-events: none;
}
.icon-3d i {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}

/* 3D-style gold sphere (step numbers / icons) */
.sphere-3d {
  position: relative;
  background: radial-gradient(circle at 32% 28%, #FBEAC0 0%, #F2D487 28%, #D6AD52 62%, #a97f34 100%);
  box-shadow:
    inset 0 -6px 10px rgba(90, 60, 10, 0.45),
    inset 0 3px 4px rgba(255, 255, 255, 0.55),
    0 10px 18px rgba(0, 0, 0, 0.4),
    0 2px 0 rgba(0, 0, 0, 0.2);
}
.sphere-3d::after {
  content: '';
  position: absolute;
  top: 12%;
  left: 20%;
  width: 35%;
  height: 22%;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.65);
  filter: blur(3px);
  pointer-events: none;
}
.sphere-3d i,
.sphere-3d span {
  filter: drop-shadow(0 1px 1px rgba(90, 60, 10, 0.5));
  position: relative;
  z-index: 1;
}

/* Infinite marquee strip: images pass edge-to-edge, right to left, looping */
.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 20s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
.marquee-item {
  flex: 0 0 auto;
  width: clamp(150px, 32vw, 240px);
  aspect-ratio: 4 / 5;
  height: auto;
  margin-right: clamp(0.6rem, 2vw, 1.25rem);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(214, 173, 82, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
