/* --------------------
   Global Styles
--------------------- */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@500;700&family=Poppins:wght@300;400;500&display=swap');

:root {
  --gold: #d4af37;
  --bg-gradient: linear-gradient(135deg, #fdf6f9, #FFCCBF, #D7C7FF, #fce8e6, #f8e9f4);
  --text-dark: #333;
  --text-light: #666;
  --white: #fff;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --radius: 12px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-dark);
  line-height: 1.6;
}

/* --------------------
   Containers
--------------------- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* --------------------
   Typography
--------------------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

/* subtle gradient movement */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

p.subtext {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-light);
  text-align: center;
  margin-top: -10px;
  margin-bottom: 20px;
}

/* --------------------
   Navigation
--------------------- */
header {
  background: linear-gradient(90deg, #fff, #f9f6f1);
  padding: 12px 40px;
  display: flex; 
  justify-content: space-between; /* logo left, links right */
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

header .logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--gold);
}
/* Hero headline shimmer (pink→lavender) */
.hero h1.shimmer {
  font-size: 6rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;

  background: linear-gradient(90deg, #F2A0AE, #B7A0FF);
  background-size: 300% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;

  animation: shimmerPinkLav 6s linear infinite;
}

/* --------------------
   Hero Section
--------------------- */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('hero-women.png') center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero h1 {
  font-size: 6rem;
  margin-bottom: 10px;
}

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

/* --------------------
   Cards
--------------------- */
.card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  text-align: center;
}

/* --------------------
   Programs / Values
--------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card.gold {
  border: 2px solid var(--gold);
}

/* --------------------
   Buttons
--------------------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: all 0.3s;
  text-decoration: none;
}

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

/* --------------------
   Footer
--------------------- */
footer {
  text-align: center;
  padding: 20px;
  background: #f9f6f1;
  color: var(--text-dark);
  font-size: 0.9rem;
}

footer a {
  color: var(--gold);
  margin: 0 8px;
}
.faq-answer {
  padding: 1rem;
  margin-top: 0.5rem;
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

/* AFFIRMATION PILL — blush capsule + golden glow on the BOX */
#affirmation-box {
  max-width: 500px;
  margin: 0 auto 30px;
  padding: 18px 25px;
  text-align: center;

  background: linear-gradient(135deg, #fff3f6, #ffe6ec, #ffeef3, #fdf6f9) !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25) !important;

  /* start visible so you can see it even if JS hasn’t run yet */
  opacity: 1;
  transition: opacity .3s ease-in-out;
}

/* ===== Unbox the hero + headers (clip gradient to text only) ===== */

 
@keyframes shimmerPinkLav {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
/* ===== Section headers — centered + very subtle shimmer (FINAL OVERRIDE) ===== */
section h2.shimmer,
.container h2.shimmer {
  /* visual hierarchy: smaller than hero */
  font-size: 1.6rem;
  font-weight: 700;

  /* make sure they’re centered no matter what */
  text-align: center !important;
  display: block;
  width: 100%;
  margin: 0 auto 1rem;

  /* soft pink–lavender gradient, clipped to text */
  background: linear-gradient(90deg, #F2A0AE, #B7A0FF) !important;
  background-size: 130% 100% !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;

  /* slower + subtle motion */
  animation: shimmerSubtle 18s linear infinite !important;
}

/* keep only ONE copy of this keyframes in your file */
@keyframes shimmerSubtle {
  0%   { background-position: 0% 50%; }
  100% { background-position: 10% 50%; }
}
#affirmation-box .gold-text {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  display: inline-block;

  color: transparent !important;
  background: linear-gradient(
    135deg,
    #d4af37 0%,
    #ffd700 20%,
    #fff8c6 40%,
    #ffd700 60%,
    #d4af37 100%
  ) !important;
  background-size: 300% 300% !important;

  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;

  animation: shimmerGoldDiagonal 5s linear infinite !important;
  text-align: center;
}

/* Diagonal shimmer animation */
@keyframes shimmerGoldDiagonal {
  0%   { background-position: -150% -150%; }
  50%  { background-position: 150% 150%; }
  100% { background-position: -150% -150%; }
}
/* ===== Mobile polish (put at end) ===== */

/* Better spacing on small screens */
@media (max-width: 900px) {
  .container { padding: 32px 18px; }
}

/* Hero: scale down headline, keep it tall enough but not huge */
@media (max-width: 768px) {
  .hero { height: 62vh; }
  .hero h1 { font-size: 3rem; line-height: 1.1; }
  .hero p  { font-size: 0.95rem; }
}

/* Section headers: a touch smaller on phones */
@media (max-width: 768px) {
  section h2.shimmer,
  .container h2.shimmer {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }
}

/* Affirmation pill: keep centered, softer size */
@media (max-width: 768px) {
  #affirmation-box {
    max-width: 90%;
    padding: 14px 18px;
    margin: 0 auto 22px;
  }
  #affirmation-box .gold-text {
    font-size: 1.8rem;
    line-height: 1.2;
  }
}

/* Tiny-phone tweaks */
@media (max-width: 420px) {
  .hero h1 { font-size: 2.4rem; }
  #affirmation-box .gold-text { font-size: 1.6rem; }
}

/* In case aspect-ratio isn't supported (very old browsers),
   keep a minimum height so it never collapses */
@supports not (aspect-ratio: 16 / 9) {
  .card iframe { min-height: 315px; }
}

/* Tighten card spacing around the video */
section .card.gold { padding: 14px; }
@media (prefers-reduced-motion: reduce) {
  .hero h1.shimmer,
  section h2.shimmer,
  .container h2.shimmer,
}
/* --------------------
   Cards (Upgraded)
--------------------- */
.card {
  background: var(--white);
  padding: 25px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  text-align: center;
  min-height: 250px; /* makes all cards more uniform */
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.card.gold {
  border: 2px solid var(--gold);
}
/* Video Embed with Gold Border (final) */
.video-container {
  position: relative;
  width: 100%;
  max-width: 500px;            /* smaller, balanced */
  margin: 0 auto 30px;
  padding-top: 56.25%;         /* 16:9 */
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}
@media (max-width: 768px) {
  .video-container { max-width: 90%; margin: 0 auto 24px; }
}
  .video-card { 
    border: 0 !important;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .container { padding: 28px 18px; }
  section .card { margin-bottom: 16px; }
  section + section { padding-top: 10px; }  /* trims space between back-to-back sections */
  .grid-3 .card {
    padding: 12px;
    border-radius: 14px;
  }

  .grid-3 img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
  /* Gradient container for image bands */
  .panel-gradient {
    background: linear-gradient(135deg, #fdebf2, #e9e0ff 45%, #ffe6dc 90%);
    padding: 16px 18px;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.6);
    overflow: hidden;               /* crisp rounded corners */
    margin: 14px 0 24px;            /* a bit tighter between sections */
  }

  /* Left-aligned title inside the panel */
  .panel-gradient .panel-title {
    text-align: left !important;
    margin: 2px 0 12px 4px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #a36bd8;                 /* soft lavender like your shot */
    -webkit-text-fill-color: initial; /* ensure it's solid color, not shimmer */
    background: none;
  }

  /* Images inside the panel */
  .community-grid {
    gap: 14px;                      /* slightly tighter spacing */
  }

  .community-grid img,
  .panel-gradient .card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
  }

  /* Optional: if your images are inside .card, make those cards slimmer */
  .panel-gradient .card {
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 0;               /* grid handles spacing */
    background: #fff;
  }

  /* Mobile tweaks */
  @media (max-width: 768px) {
    .panel-gradient { padding: 12px 14px; }
    .panel-gradient .panel-title { font-size: 1.1rem; margin-bottom: 10px; }
    .community-grid { gap: 10px; }
  }
  /* --- Center the section header (and keep shimmer) --- */
  h2.center { text-align: center !important; }

  /* --- Gradient box with optional gold border --- */
  .section-box{
    background: linear-gradient(135deg,#f6eaf9,#efe2ff 35%,#ffe6e0 70%,#fdf6f9);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    padding: 22px 22px 26px;
    margin: 26px auto;                       /* tighter spacing between sections */
  }
  .section-box.gold{
    border: 2px solid var(--gold);           /* brings back the gold border */
  }

  /* --- Carousel layout (scroll-snap, no libs) --- */
  .carousel{
    position: relative;
    margin: 8px 0 4px;
  }
  .carousel-track{
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 6px 10px;
    scrollbar-width: none;
  }
  .carousel-track::-webkit-scrollbar{ display: none; }

  /* each slide card */
  .slide{
    flex: 0 0 clamp(250px, 30vw, 320px);   /* responsive width */
    scroll-snap-align: center;
    background: #fff;
    border: 1.5px solid var(--gold);
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,.10);
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
  }
  .slide:hover{
    transform: translateY(-6px);           /* elevated hover */
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
  }
  .slide img{
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
  }
  .slide .caption{
    padding: 10px 12px 14px;
    font-size: .95rem;
    color: var(--text-dark);
    font-style: italic;
  }

  /* nav buttons */
  .carousel-btn{
    position: absolute;
    top: 50%; transform: translateY(-50%);
    border: 0;
    width: 38px; height: 38px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    cursor: pointer;
    display: grid; place-items: center;
    color: #666;
  }
  .carousel-btn:hover{ color: #000; }
  .carousel-btn.prev{ left: 4px; }
  .carousel-btn.next{ right: 4px; }

  /* mobile tuning */
  @media (max-width: 768px){
    .slide{ flex-basis: clamp(230px, 70vw, 320px); }
    .slide img{ height: 220px; }
  }
  /* universal section spacing (slightly tighter) */
  .section-title { 
    margin: 28px auto 14px !important; 
    display: block; 
    width: 100%;
  }

  /* extra-tight for the Affirmations & Discover sections */
  .section-compact { margin-top: 12px !important; margin-bottom: 12px !important; }

  /* reduce default container spacing a bit */
  .container { padding: 32px 18px; }
  .soft-box{
    background: linear-gradient(135deg, #fff7fb, #efe9ff, #ffe9e2);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    border: 1px solid rgba(212,175,55,.25); /* subtle gold edge */
  }
  .carousel{
    overflow: hidden;
    position: relative;
  }

  .carousel-track{
    display: flex;
    gap: 16px;
    /* the magic: continuously slide left */
    animation: carouselScroll 28s linear infinite;
  }

  .soft-box:hover .carousel-track{
    animation-play-state: paused; /* pause on hover */
  }

  .carousel-item{
    height: 220px;
    width: 320px;               /* consistent card sizes */
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,.10);
    transition: transform .25s ease, box-shadow .25s ease;
    flex: 0 0 auto;             /* don’t shrink in the flex row */
  }

  .carousel-item:hover{
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
  }

  /* smooth endless loop — track slides the width of half its items
     (we duplicated the images once in HTML) */
  @keyframes carouselScroll{
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 8px)); } /* 50% of track + half the gap */
  }

  /* mobile sizing */
  @media (max-width: 768px){
    .carousel-item{
      width: 76vw;
      height: 48vw;
    }
  }
  .video-frame{
    max-width: 720px;
    margin: 0 auto 24px;
    padding: 8px;                         /* space for the border */
    border-radius: 18px;
    background:
      linear-gradient(#fff,#fff) padding-box,
      linear-gradient(135deg,#e1c66a,#d4af37,#f8e48f) border-box;
    border: 2px solid transparent;        /* shows the gradient border */
    box-shadow: 0 8px 22px rgba(0,0,0,.10);
  }

  .video-container{
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
  }

  .video-container iframe{
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
  }
  /* --- Member Spotlight carousel (reuses soft-box & carousel base) --- */

  .member-card{
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    flex: 0 0 auto;
    width: 320px;                 /* same width as community item */
    height: 380px;                /* taller to fit caption */
    background: #fff;
    border: 2px solid rgba(212,175,55,.35);        /* subtle gold edge */
    box-shadow: 0 8px 18px rgba(0,0,0,.10);
    transition: transform .25s ease, box-shadow .25s ease;
  }

  .member-card:hover{
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
  }

  .member-card img{
    width: 100%;
    height: 74%;
    object-fit: cover;
    display: block;
  }

  /* caption area */
  .member-card figcaption{
    height: 26%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    text-align: center;
    background:
      linear-gradient(#fff,#fff) padding-box,
      linear-gradient(135deg,#e1c66a,#d4af37,#f7e595) border-box;
    border: 1px solid transparent;  /* gradient border around caption */
    border-radius: 0 0 14px 14px;
  }

  .member-card figcaption strong{
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: #6e54a3;                 /* lavender title */
  }

  .member-card figcaption span{
    font-size: .95rem;
    color: #555;
    font-style: italic;
    line-height: 1.25;
  }

  /* reuse the same motion from Community Energy */
  #memberCarousel .carousel-track{
    display: flex;
    gap: 16px;
    animation: carouselScroll 30s linear infinite; /* slightly slower */
  }

  .soft-box:hover #memberCarousel .carousel-track{
    animation-play-state: paused;
  }

  /* responsive sizing */
  @media (max-width: 768px){
    .member-card{
      width: 76vw;
      height: 96vw;          /* keep room for caption */
    }
    .member-card figcaption span{ font-size: .9rem; }
  }
  #communityCarousel .carousel-track {
    display: flex;
    gap: 16px;
    animation: communityScroll 25s linear infinite; /* medium speed */
  }

  .soft-box:hover #communityCarousel .carousel-track {
    animation-play-state: paused;
  }

  @keyframes communityScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* scroll LEFT */
  }
  #memberCarousel .carousel-track {
    display: flex;
    gap: 16px;
    animation: memberScroll 35s linear infinite; /* slower */
  }

  .soft-box:hover #memberCarousel .carousel-track {
    animation-play-state: paused;
  }

  @keyframes memberScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(50%); } /* scroll RIGHT */
  }
/* Apply to the gradient container that wraps each carousel */
.soft-box.fade-edges {
  /* Fades the left/right edges so items appear to fade in/out */
  -webkit-mask-image: linear-gradient(to right,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,1) 8%,
      rgba(0,0,0,1) 92%,
      rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,1) 8%,
      rgba(0,0,0,1) 92%,
      rgba(0,0,0,0) 100%);
  overflow: hidden; /* ensure the mask clips the overflow */
}
  /* base state while near the edges */
  .carousel-track .card,
  .carousel-track img {
    opacity: 0.85;
    transition: opacity .4s ease, transform .35s ease, box-shadow .35s ease;
  }

  /* when you hover any item, let it pop a bit */
  .carousel-track .card:hover,
  .carousel-track img:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 22px rgba(0,0,0,.14);
  }
  /* Community Energy: scroll LEFT, medium speed */
  #communityCarousel .carousel-track {
    display: flex;
    gap: 16px;
    animation: communityScroll 25s linear infinite;
  }
  .soft-box:hover #communityCarousel .carousel-track { animation-play-state: paused; }
  @keyframes communityScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* Member Spotlight: scroll RIGHT, slower */
  #memberCarousel .carousel-track {
    display: flex;
    gap: 16px;
    animation: memberScroll 35s linear infinite;
  }
  .soft-box:hover #memberCarousel .carousel-track { animation-play-state: paused; }
  @keyframes memberScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(50%); }
  }
  @media (prefers-reduced-motion: reduce) {
    #communityCarousel .carousel-track,
    #memberCarousel .carousel-track {
      animation: none !important;
    }
  }
