/* ---------------------------
   BASE & LAYOUT
--------------------------- */

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  background: white;
  color: #111;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

iframe {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}



/* ---------------------------
TYPOGRAPHY
--------------------------- */

body {
font-family: 'Open Sans', sans-serif;
font-size: 18px;
line-height: 1.7;
}

/* Hero title */

.hero-title h1 {
font-family: 'Bowlby One SC';
font-size: clamp(3rem, 6vw, 5rem);
line-height: 0.95;
letter-spacing: 2px;
color: white;
margin: 0;
}

/* Major section headings */

h2 {
font-family: 'Bowlby One SC';
font-size: clamp(1.8rem, 3vw, 2.5rem);
line-height: 1.2;
letter-spacing: 1px;
text-align: center;
color: #493466;
max-width: 900px;
margin: 0 auto 1.5rem;
}

/* Card headings */

.grid-card h4 {
font-family: 'Open Sans', sans-serif;
font-weight: 900;
font-size: 1.6rem;
line-height: 1.2;
color: #493466;
margin-bottom: 1rem;
}

.cta-card h4 {
font-family: 'Open Sans', sans-serif;
font-weight: 900;
font-size: 1.6rem;
line-height: 1.2;
color: #493466;
margin-bottom: 1rem;
}

/* General paragraphs */

p {
font-size: 1.05rem;
line-height: 1.8;
margin-bottom: 1.25rem;
}

.cta-card p {
font-size: 1.05rem;
line-height: 1.8;
margin-bottom: 1.25rem;
color: #ffffff;
}

/* Intro section */

.intro-section {
max-width: 850px;
margin: 0 auto;
text-align: center;
}

.intro-section p {
font-size: 1.15rem;
}

/* Gallery heading */

.gallery-intro {
max-width: 900px;
margin: 4rem auto 2rem;
}

/* Two-column content area */

.two-column-grid p {
font-size: 1rem;
line-height: 1.8;
}

/* Big campaign stat */

.big-stat {
display: block;
font-family: 'Bowlby One SC', cursive;
font-size: clamp(1.4rem, 7vw, 3.5rem);
line-height: 1.1;
text-align: center;
color: #493466;
margin-bottom: 2rem;
}

/* CTA heading */

.main-content > h2:last-of-type {
margin-top: 4rem;
margin-bottom: 2rem;
}


/* ---------------------------
   HEADER & PAGE HEADER
--------------------------- */
.site-header {
  padding: 1.5rem 2rem;
  text-align: left;
 /* background: rgb(245, 221, 47);*/
  background: #85739e;
  display: flex;
  align-items: center;
}

.site-header .logo {
  width: 140px; /* Fixed width */
  height: auto;
  display: block;
}

/* ---------------------------
   HERO & POSTCARD LAYOUT
--------------------------- */

.hero-section {
  padding: 2rem 2rem;
  background: #85739e;
}

.hero-container {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  flex-wrap: wrap;
}

.postcard-large {
  width: 550px;
  max-width: 90vw;
  flex: 1 1 550px;
  transform: rotate(-2deg);
}

.hero-postcard {
  width: 100%;
  display: block;
  border-radius: 4px;
  box-shadow: 0 0 18px rgba(0,0,0,0.6);
}

/* ---------------------------
   MOVEMENT BANNER
--------------------------- */
.movement-banner {
  background: #493466;
  color: white;
  padding: 1rem;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 1rem;
}

.movement-banner .big-stat {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

/* ---------------------------
Postcard Pulse Animation 
--------------------------- */


/* ---------------------------
   HERO & POSTCARD LAYOUT
--------------------------- */

.hero-section {
  padding: 2rem 2rem;
  background: #85739e;
}

.hero-container {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  flex-wrap: wrap;
}


.postcard-large {
  perspective: 1000px;
  width: 550px;
  max-width: 90vw;
  flex: 1 1 550px;
  position: relative;
  height: auto;
  transform: rotate(-2deg); 
}

Postcard Pulse Animation 
.postcard-pulse {
  animation: gentlePulse 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes gentlePulse {
  0%, 100% {
    transform: rotate(-0.6deg) scale(1);
  }
  50% {
    transform: rotate(-0.6deg) scale(1.015);
  }
}


.postcard-large.flipped .postcard-pulse {
  animation: none;
}

.postcard-flip {
  position: relative;
  width: 100%;
  padding-top: 66.66%; 
  transform-style: preserve-3d;
  transition: transform 0.8s ease-in-out;
  cursor: pointer;
}

.postcard-front,
.postcard-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 4px;
  box-shadow: 0 0 18px rgba(0,0,0,0.6);
}

.postcard-front img,
.postcard-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.postcard-back {
  transform: rotateY(180deg);
}

.postcard-large.flipped .postcard-flip {
  transform: rotateY(180deg);
}



.hero-title {
  flex: 1 1 50%;
}



.highlight-word {
  display: inline-block;
  white-space: nowrap;
}

.highlight-word .letter-animate {
  display: inline-block;
  padding: 0 0.02em;
  animation: letterHighlight 0.5s forwards;
}

@keyframes letterHighlight {

  from {
    background-color: transparent;
    color: white;
  }

  to {
    background-color: #493466;
    color: white;
  }

}


.wave-divider {
  line-height: 0;
  overflow: hidden;
  margin-top: -1px; /* overlap with section above */
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

.wave-divider.flipped-horizontal svg {
  transform: scaleX(-1);
}

.flip-arrow {
  position: absolute;
  width: 90px;

  top: -50px;
left: 20px;
transform: rotate(-12deg);

  z-index: 30;

  pointer-events: none;

  animation: flipArrowFloat 2s ease-in-out infinite;

  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

@keyframes flipArrowFloat {

  0%, 100% {
    transform:
      translateX(-50%)
      rotate(-8deg)
      translateY(0);
  }

  50% {
    transform:
      translateX(-50%)
      rotate(-8deg)
      translateY(-8px);
  }

}

/* ---------------------------
   PICKER SECTION
--------------------------- */

.picker-section {
  text-align: center;
  margin-top: 2rem;
}

.card-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.8rem;
}

.card-options img {
  width: 120px;
  cursor: pointer;
  transition: transform 0.2s;
}

.card-options img:hover {
  transform: scale(1.05);
}


/* ---------------------------
   MAIN CONTENT 
--------------------------- */

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.gallery-strip {
  width: 100vw;
  margin-left: calc(50% - 50vw);

  display: flex;
  overflow: hidden;

  margin-top: 3rem;
  margin-bottom: 3rem;
}

.gallery-strip img {
  flex: 1;
  width: 25%;
  height: 320px;
  object-fit: cover;
  display: block;
}


/* ---------------------------
   CONTENT GRIDS
--------------------------- */

.two-column-grid,
.three-column-grid {
  display: grid;
  gap: 1.5rem;
  margin: 1rem 0;
  padding: 3rem;
}

.two-column-grid {
  grid-template-columns: repeat(2, 1fr);
}

.three-column-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Shared card styling */

.grid-card {
  background: #f7f5fa;
  border-radius: 20px;
  padding: 2rem;
    display: flex;
  flex-direction: column;
  text-align: center;
}

.grid-card .btn-primary {
  margin-top: auto;
}

.grid-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;

  display: block;
  border-radius: 12px;

  margin-bottom: 1.5rem;
}


.value-card {
  background: none;
  border: none;
  text-align: center;
  padding: 1rem;
}

.value-card h4 {
  font-family: 'Bowlby One SC';
  color: #493466;
  margin-bottom: 1rem;
}

.value-card::before {
  content: "";
  display: block;
  width: 60px;
  height: 6px;
  background: #493466;
  margin: 0 auto 1rem;
}


.video-wrapper + div h2 {
  text-align: left;
  margin-left: 0;
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}


.cta-card {
  background: #493466;
  border-radius: 24px;

  box-shadow:
    0 8px 24px rgba(0,0,0,0.08);

  padding: 2rem;
    text-align: center;

}


.cta-card {
  background: #493466;
  border-radius: 24px;
  padding: 2rem;

}


.cta-card h4 {
  color: white;
  font-size: 2rem;
}

.cta-card .btn-primary {
  background: white;
  color: #493466;
  border-color: white;
}
.cta-card img {
  width: 90%;
  max-width: 450px;
  height: auto;

  margin: 0 auto 2rem;

  display: block;

  border-radius: 6px;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.25);

  transform: rotate(-3deg);
}

.cta-card .btn-primary:hover {
  background: #f5dd2f;
  border-color: #f5dd2f;
  color: #493466;

  transform: translateY(-2px);
}

.cta-card {
  transition: transform 0.2s ease;
}

.cta-card:hover {
  transform: translateY(-4px);
}


.left-heading {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

/* ---------------------------
   BUTTONS
--------------------------- */

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  text-align: center;
  min-width: 220px;
}

.btn-primary {
  background: #493466;
  color: white;
  border: 3px solid #493466;
}

.btn-primary:hover {
  background: #5c4481;
  border-color: #5c4481;
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: #493466;
  border: 3px solid #493466;
}

.btn-secondary:hover {
  background: #f7f5fa;
  transform: translateY(-2px);
}

.grid-card .btn-primary,
.grid-card .btn-secondary {
  display: block;
  margin-top: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}




/* ---------------------------
   FOOTER
--------------------------- */

.site-footer {
  background-color: #1a1a1a;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.8rem;
  color: #d7d7d7;
  margin-top: 3rem;
}

/* ---------------------------
   MOBILE SETTINGS
--------------------------- */


@media (max-width: 768px) {
  
  .two-column-grid,
  .three-column-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-title h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.1;
    text-align: center;
  }

  .highlight-word {
    margin-bottom: -0.15em;
  }


  .hero-container {
    flex-direction: column;
  }

  .postcard-large {
    width: 100%;
    max-width: 100%;
    flex: none;
  }


}


