/* ============================================
   Rebekah Small — Modern Mystic
   Celestial / Dreamy Aesthetic
   ============================================ */

:root {
  --midnight: #0a0e2a;
  --midnight-2: #131845;
  --deep-violet: #1a1244;
  --gold: #e8c87a;
  --gold-bright: #f5d98a;
  --gold-soft: rgba(232, 200, 122, 0.15);
  --cream: #f5f1e8;
  --lavender: #c9b8e8;
  --rose: #e8a8c9;
  --text: #ece8f5;
  --text-dim: rgba(236, 232, 245, 0.7);
  --text-faint: rgba(236, 232, 245, 0.5);
  --border: rgba(232, 200, 122, 0.2);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--midnight);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at top, rgba(26, 18, 68, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(19, 24, 69, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, #0a0e2a 0%, #0d1135 50%, #0a0e2a 100%);
}

/* ===== Background Effects ===== */

#starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cosmic-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  animation: drift 25s ease-in-out infinite;
}

.glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  top: -10%; left: -10%;
}
.glow-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--lavender) 0%, transparent 70%);
  top: 40%; right: -15%;
  animation-delay: -8s;
}
.glow-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, var(--rose) 0%, transparent 70%);
  bottom: -10%; left: 30%;
  animation-delay: -15s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ===== Layout ===== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; }

/* ===== Typography ===== */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--gold);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

/* ===== Header / Nav ===== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 14, 42, 0.4);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 14, 42, 0.85);
  border-bottom-color: var(--border);
  padding: 0.875rem 0;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  color: var(--gold);
  font-size: 1.25rem;
  text-shadow: 0 0 12px rgba(232, 200, 122, 0.6);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand-logo {
  display: block;
  height: 64px;
  width: auto;
  transition: opacity 0.2s, height 0.3s;
}
.brand:hover .brand-logo { opacity: 0.85; }
.site-header.scrolled .brand-logo { height: 52px; }
.brand-logo--footer {
  height: 48px;
  width: auto;
  align-self: flex-start;
  margin-bottom: 0.25rem;
}

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

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}

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

.nav-cta {
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 100px;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--midnight);
  box-shadow: 0 0 24px rgba(232, 200, 122, 0.4);
}

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--midnight);
  box-shadow: 0 8px 30px rgba(232, 200, 122, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232, 200, 122, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-block { width: 100%; }

/* ===== Hero ===== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 32px 4rem;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(10, 14, 42, 0.55) 70%, rgba(10, 14, 42, 0.95) 100%),
    linear-gradient(180deg, rgba(10, 14, 42, 0.4) 0%, rgba(10, 14, 42, 0.7) 100%);
  pointer-events: none;
}

.hero-inner { max-width: 900px; position: relative; z-index: 2; }

.hero-eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 300;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

.title-accent {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, var(--rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-dim);
  margin-bottom: 2.75rem;
  letter-spacing: 0.04em;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Sections General ===== */

.about, .services, .offerings, .newsletter, .contact {
  padding: 8rem 0;
}

.about      { padding-bottom: 4rem; }
.services   { padding-top: 4rem; padding-bottom: 4rem; }
.offerings  { padding-top: 4rem; padding-bottom: 4rem; }
.newsletter { padding-top: 4rem; padding-bottom: 4rem; }
.contact    { padding-top: 4rem; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.section-lead {
  color: var(--text-dim);
  font-size: 1.0625rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

/* ===== About ===== */

.about-text h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  margin-bottom: 1.75rem;
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

.image-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--border);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

.image-halo {
  position: absolute;
  inset: -20px;
  border-radius: 24px;
  background: radial-gradient(circle at center, var(--gold-soft) 0%, transparent 70%);
  z-index: -1;
  animation: drift 20s ease-in-out infinite;
}

.credentials {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.credentials li {
  color: var(--text);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.credentials span {
  color: var(--gold);
  font-size: 0.875rem;
}

/* ===== Services ===== */

.services {
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 90vw);
  aspect-ratio: 2 / 1;
  background-image: url('../images/logo_final.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 0 60px rgba(232, 200, 122, 0.4));
}

.services .container {
  position: relative;
  z-index: 1;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(232, 200, 122, 0.15);
}

.service-card.featured {
  background: linear-gradient(180deg, rgba(232, 200, 122, 0.08) 0%, rgba(232, 200, 122, 0.02) 100%);
  border-color: rgba(232, 200, 122, 0.4);
}

.service-tag {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  align-self: flex-start;
}

.service-card h3 {
  font-size: 1.625rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.service-price {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.service-price .cents { font-size: 1.5rem; opacity: 0.8; }
.service-price .free { font-style: italic; }

.service-duration {
  font-size: 0.8125rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.service-card p {
  color: var(--text-dim);
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
  flex: 1;
}

.card-cta {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: gap 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.card-cta:hover { gap: 0.75rem; }

/* ===== Offerings ===== */

.offerings {
  position: relative;
}

.offerings::before {
  content: '';
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 90vw);
  aspect-ratio: 2 / 1;
  background-image: url('../images/logo_final.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 0 60px rgba(232, 200, 122, 0.4));
}

.offerings .container {
  position: relative;
  z-index: 1;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.offer-card {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s;
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.offer-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  text-shadow: 0 0 30px rgba(232, 200, 122, 0.6);
}

.offer-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.875rem;
}

.offer-card p {
  color: var(--text-dim);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.offer-price {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-style: italic;
}

/* ===== CTA Band (above offerings) ===== */

.cta-band {
  padding: 5rem 0 4rem;
  position: relative;
  text-align: center;
}

.cta-band-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta-band-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 1.5rem;
  color: var(--text);
}

.cta-band-headline em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, var(--rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-band-body {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 auto 2rem;
  max-width: 56ch;
}

.cta-band-btn {
  display: inline-block;
}

/* ===== Testimonials Marquee ===== */

.testimonials {
  padding-top: 4rem;
  padding-bottom: 6rem;
  overflow: hidden;
  position: relative;
}

.testimonials .section-head { margin-bottom: 3rem; }

.marquee {
  position: relative;
  overflow: hidden;
  /* Soft gradient fade on left & right edges */
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 80px,
    #000 calc(100% - 80px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 80px,
    #000 calc(100% - 80px),
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
  padding: 0.5rem 0;
  will-change: transform;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  /* Since we duplicate the items, halfway through is the loop point */
  to   { transform: translateX(-50%); }
}

.testimonial-card {
  flex: 0 0 380px;
  padding: 2rem 2rem 1.75rem;
  /* Slightly more opaque bg since we dropped backdrop-filter (these cards
     animate in the marquee, and animated backdrop-blur is very costly). */
  background: linear-gradient(180deg, rgba(30, 26, 64, 0.55) 0%, rgba(16, 18, 48, 0.55) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}

.testimonial-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(232, 200, 122, 0.15);
}

.testimonial-quote-mark {
  position: absolute;
  top: 0.25rem;
  left: 1.5rem;
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

.testimonial-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold-bright);
  margin: 0.75rem 0 0.25rem;
  position: relative;
  z-index: 1;
}

.testimonial-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  margin: 1rem 0 0.75rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

.testimonial-quote.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-more {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0 0 0.5rem;
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: gap 0.3s, color 0.2s;
  position: relative;
  z-index: 2;
}

.testimonial-more:hover { color: var(--gold-bright); }

.testimonial-attribution {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.testimonial-name {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}

.testimonial-location {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (max-width: 560px) {
  .testimonial-card { flex-basis: 280px; padding: 1.75rem 1.5rem 1.5rem; }
  .marquee-track { animation-duration: 45s; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .testimonial-card { scroll-snap-align: start; }
}

/* Testimonial modal */
.testimonial-overlay[hidden] { display: none !important; }

.testimonial-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 14, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.testimonial-overlay.is-open { opacity: 1; }

.testimonial-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 3rem 2.75rem 2.5rem;
  background: linear-gradient(180deg, rgba(26, 18, 68, 0.96) 0%, rgba(10, 14, 42, 0.96) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(232, 200, 122, 0.15);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), opacity 0.35s ease;
}

.testimonial-overlay.is-open .testimonial-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.testimonial-modal .testimonial-quote-mark {
  position: static;
  display: block;
  font-size: 4rem;
  margin-bottom: -1rem;
}

.tm-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-bright);
  margin: 0.5rem 0 1rem;
}

.tm-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1.75rem;
}

.tm-attribution { border-top: 1px solid var(--border); padding-top: 1.25rem; }

@media (max-width: 560px) {
  .testimonial-modal { padding: 2.5rem 1.5rem 2rem; border-radius: 18px; }
}

/* ===== Newsletter ===== */

.newsletter-inner {
  margin: 0 auto;
  text-align: center;
  padding: 4rem 3rem;
  background: linear-gradient(135deg, rgba(232, 200, 122, 0.08) 0%, rgba(201, 184, 232, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.newsletter-inner::before {
  content: '';
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 65%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(245, 217, 138, 0.0) 18%,
    rgba(245, 217, 138, 0.18) 35%,
    rgba(245, 217, 138, 0.32) 45%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(245, 217, 138, 0.32) 55%,
    rgba(245, 217, 138, 0.18) 65%,
    rgba(245, 217, 138, 0.0) 82%,
    transparent 100%
  );
  filter: blur(6px);
  transform: translateX(-130%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  animation: newsletter-shimmer 8s linear infinite;
}

.newsletter-inner > * { position: relative; z-index: 1; }

@keyframes newsletter-shimmer {
  /* 0–55%: slow sweep fully across the card (~4.4s) */
  0%   { transform: translateX(-130%); }
  55%  { transform: translateX(220%); }
  /* 55–100%: rest off-screen (~3.6s pause), then loop */
  100% { transform: translateX(220%); }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-inner::before { animation: none; opacity: 0; }
}

.newsletter-inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.newsletter-inner p {
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9375rem;
  outline: none;
  transition: border 0.2s;
}

.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form input::placeholder { color: var(--text-faint); }

/* ===== Contact ===== */

.contact-text h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 1.5rem;
}

.contact-text p {
  color: var(--text-dim);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
}

.social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9375rem;
  outline: none;
  transition: border 0.2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); }

/* ===== Footer ===== */

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand__top {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: nowrap;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: color 0.2s;
}

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

.footer-meta {
  text-align: right;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.footer-meta p { margin: 0.25rem 0; }
.made-with { color: var(--gold); font-style: italic; }

/* ===== Free Prayer Popup ===== */

.popup-overlay[hidden] { display: none !important; }

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 14, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.popup-overlay.is-open { opacity: 1; }

.popup {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 3rem 2.75rem 2.5rem;
  background: linear-gradient(180deg, rgba(26, 18, 68, 0.95) 0%, rgba(10, 14, 42, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(232, 200, 122, 0.15);
  text-align: center;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), opacity 0.4s ease;
}

.popup-overlay.is-open .popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.popup::before {
  content: '';
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  aspect-ratio: 2 / 1;
  background-image: url('../images/logo_final.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.popup > * { position: relative; z-index: 1; }

.popup-close {
  position: absolute;
  top: 14px; right: 18px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  z-index: 2;
}

.popup-close:hover {
  color: var(--gold);
  background: rgba(232, 200, 122, 0.08);
}

.popup-eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.popup-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.popup-accent {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, var(--rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 0.25rem;
}

.popup-body {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0 0 1.75rem;
}

.popup-body strong {
  color: var(--gold-bright);
  font-weight: 500;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.popup-field {
  display: block;
  text-align: left;
}

.popup-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 500;
}

.popup-field input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9375rem;
  outline: none;
  transition: border 0.2s, background 0.2s;
}

.popup-field input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
}

.popup-field input::placeholder { color: var(--text-faint); }

.popup-form .btn { margin-top: 0.5rem; }

.popup-success {
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-bright);
  font-size: 1.05rem;
}

@media (max-width: 560px) {
  .popup { padding: 2.5rem 1.5rem 2rem; border-radius: 18px; }
  .popup-close { top: 8px; right: 10px; }
}

/* ===== Buy modal (PayPal checkout) — shares popup base styles ===== */

.buy-overlay[aria-hidden="true"] { display: none !important; }

.buy-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 14, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.buy-overlay.is-open { opacity: 1; }

.buy-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 3rem 2.75rem 2.5rem;
  background: linear-gradient(180deg, rgba(26, 18, 68, 0.95) 0%, rgba(10, 14, 42, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(232, 200, 122, 0.15);
  text-align: center;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), opacity 0.4s ease;
}

.buy-overlay.is-open .buy-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.buy-price {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  margin: 0.5rem 0 1.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, var(--rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.buy-currency {
  font-size: 0.9rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.18em;
  vertical-align: middle;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  background: none;
  margin-left: 0.25rem;
}

.buy-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 0.5rem;
}

.paypal-btn-mount {
  margin-top: 0.5rem;
  min-height: 50px;
}

.paypal-btn-mount.is-disabled { opacity: 0.45; pointer-events: none; filter: grayscale(0.4); }

.buy-downloads {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 1.5rem 0 0;
}

.buy-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--midnight);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  box-shadow: 0 8px 30px rgba(232, 200, 122, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.buy-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232, 200, 122, 0.5);
}

.buy-fineprint {
  margin: 1.5rem 0 0;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-style: italic;
}

@media (max-width: 560px) {
  .buy-modal { padding: 2.5rem 1.5rem 2rem; border-radius: 18px; }
}

/* ===== Form helpers (honeypot + status notes) ===== */

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.newsletter-note,
.popup-note,
.contact-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  min-height: 1.25em;
  color: var(--rose);
  font-family: var(--sans);
}

.newsletter-note.is-success,
.popup-note.is-success,
.contact-note.is-success {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}

.contact-note { text-align: center; margin-top: 0.5rem; }

/* ===== Reveal Animation ===== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */

@media (max-width: 960px) {
  .nav-links { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: 1fr; }
  .about, .services, .offerings, .newsletter, .contact { padding: 5rem 0; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .footer-links, .footer-meta { justify-content: center; text-align: center; }
  .footer-brand p { margin-left: 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .nav { padding: 0 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .credentials { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-inner { padding: 2.5rem 1.5rem; }
  .contact-form { padding: 1.5rem; }
  .hero { padding-top: 7rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}
