/*
  causes.css — Styles for causes.html (Social Causes page)
  ─────────────────────────────────────────────────────────
  Loaded after main.css and gallery.css on causes.html.
  (gallery.css provides the shared filmstrip + lightbox.)

  Section map:
    Hero              .causes-hero + impact strip
    Card grid         .causes-grid  (2-per-row, stacks to 1 on mobile)
    Card media area   .cause-card-media  (warm paper bg + decorations)
    SVG decorations   .cf-deco (.deco-tl/tr/bl/br) — outline hearts & flowers
    Polaroid frame    .cause-frame  (white frame with tape strips + tilt)
    Slideshow         .cf-photos / .cf-slide  (cross-fades every 2 s)
    Coming soon       .cf-coming / .cf-coming-inner  (animated placeholder)
    Info panel        .cause-info + colour themes (.theme-*)
    CTA banner        .causes-cta
    Responsive        @media blocks at bottom

  Slideshow interval is set in gallery.js (2000 ms).
  Dot colours per card are set via --dot-color inline style on .cause-frame.
*/

/* ═══════════════════════════════════════════════
   SOCIAL CAUSES PAGE
═══════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────── */
.causes-hero {
  background: linear-gradient(135deg, #003169 0%, #1a5fa8 60%, #0e7490 100%);
  color: white;
  padding: 44px 0 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.causes-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,220,80,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.causes-hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 5px 18px;
  margin-bottom: 12px;
}

.causes-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
  line-height: 1.15;
}

.causes-hero h1 span {
  color: var(--accent-yellow);
}

.causes-hero-sub {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 24px;
}

/* impact numbers strip */
.causes-impact-strip {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.causes-impact-num {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 900;
  color: var(--accent-yellow);
  line-height: 1;
}

.causes-impact-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ── Card grid (2 events per row) ──────────── */
.causes-body {
  padding: 36px 0 48px;
}

.causes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cause-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

.cause-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  transform: translateY(-4px);
}

/* ── Warm-paper media panel ─────────────────── */
.cause-card-media {
  position: relative;
  background:
    radial-gradient(circle at 25% 35%, rgba(255,220,120,0.18) 0%, transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(180,210,255,0.14) 0%, transparent 50%),
    #f5efe6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px 28px;
  min-height: 270px;
}

/* ── Decorative hearts & flowers ──────────── */
.cf-deco {
  position: absolute;
  pointer-events: none;
  display: block;
  line-height: 0;
}

.cf-deco svg { display: block; }

.deco-tl { top: 14px; left: 14px; width: 36px; height: 36px; opacity: 0.65; }
.deco-tr { top: 12px; right: 12px; width: 30px; height: 30px; opacity: 0.70; }
.deco-bl { bottom: 14px; left: 16px; width: 22px; height: 22px; opacity: 0.55; }
.deco-br { bottom: 12px; right: 14px; width: 28px; height: 28px; opacity: 0.60; }

/* ── Info panel ─────────────────────────────── */
.cause-info {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  flex: 1;
}

.cause-info::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.cause-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 12px;
  width: fit-content;
}

.cause-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: white;
  margin: 0 0 6px;
}

.cause-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 12px;
}

.cause-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  margin: 0 0 18px;
  flex: 1;
}

.cause-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 2px;
  width: fit-content;
  transition: color 0.2s, border-color 0.2s;
}

.cause-link:hover {
  color: white;
  border-color: white;
}

/* ── Color themes ───────────────────────────── */
.cause-info.theme-navy {
  background: linear-gradient(145deg, #002a5c 0%, #003e8c 100%);
}
.cause-info.theme-green {
  background: linear-gradient(145deg, #0d5c2e 0%, #1a7a4c 100%);
}
.cause-info.theme-violet {
  background: linear-gradient(145deg, #5b21b6 0%, #7c3aed 100%);
}
.cause-info.theme-amber {
  background: linear-gradient(145deg, #92400e 0%, #d97706 100%);
}
.cause-info.theme-rose {
  background: linear-gradient(145deg, #9f1239 0%, #e11d48 100%);
}

/* ── Coming Soon (inside polaroid frame) ────── */
.cf-coming {
  background: linear-gradient(135deg, #fef9ee 0%, #fce7f3 50%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-coming-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
}

.cf-coming-emoji {
  font-size: 36px;
  line-height: 1;
  display: block;
  animation: cfCamBob 2.4s ease-in-out infinite;
}

@keyframes cfCamBob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%       { transform: translateY(-5px) rotate(4deg); }
}

.cf-coming-sparkle {
  position: absolute;
  font-size: 14px;
  animation: cfSpark 1.8s ease-in-out infinite;
}

.cf-coming-sparkle.s1 { top: -4px;  left: 4px;  animation-delay: 0s; }
.cf-coming-sparkle.s2 { top: -8px;  right: 0px; font-size: 11px; animation-delay: 0.6s; }
.cf-coming-sparkle.s3 { bottom: 20px; right: -6px; animation-delay: 1.2s; }

@keyframes cfSpark {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.2); }
}

.cf-coming-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 900;
  color: #5b21b6;
  letter-spacing: 0.3px;
  margin: 4px 0 0;
}

.cf-coming-sub {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* ── CTA banner at bottom ───────────────────── */
.causes-cta {
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(135deg, #f0f4fa 0%, #fdf8f0 100%);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(0,49,105,0.08);
  margin-top: 28px;
}

.causes-cta h3 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 12px;
}

.causes-cta p {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-navy {
  background: var(--brand-navy, #003169);
  color: white;
  box-shadow: 0 6px 20px rgba(0,49,105,0.28);
}

.btn-navy:hover {
  background: #002451;
  box-shadow: 0 10px 32px rgba(0,49,105,0.38);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .causes-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cause-card-media {
    min-height: 280px;
    padding: 40px 20px 30px;
  }

  .cause-info { padding: 20px 22px 24px; }
  .cause-info::after { display: none; }
}

@media (max-width: 600px) {
  .causes-hero { padding: 52px 0 40px; }
  .causes-impact-strip { gap: 28px; }
  .causes-impact-num { font-size: 26px; }
  .causes-body { padding: 40px 0 56px; }
  .causes-grid { gap: 20px; }

  .cause-card-media {
    min-height: 240px;
    padding: 36px 14px 28px;
  }

  .cause-info { padding: 18px 18px 20px; }
  .cause-title { font-size: 18px; }
  .cause-desc { font-size: 13px; }
}

/* ══════════════════════════════════════════════
   CAUSE PHOTO FRAME — polaroid slideshow
══════════════════════════════════════════════ */

/* the polaroid frame itself */
.cause-frame {
  position: relative;
  width: 230px;
  background: white;
  padding: 10px 10px 56px;
  border-radius: 3px;
  box-shadow:
    0 24px 56px rgba(0,0,0,0.22),
    0 6px 16px rgba(0,0,0,0.10),
    0 1px 3px rgba(0,0,0,0.08);
  transform: rotate(var(--tilt, -1.5deg));
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.cause-frame:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow:
    0 32px 72px rgba(0,0,0,0.26),
    0 8px 24px rgba(0,0,0,0.12);
}

/* tape strip — left corner */
.cause-frame::before {
  content: '';
  position: absolute;
  top: -13px;
  left: 22px;
  width: 54px;
  height: 22px;
  background: rgba(255,235,120,0.78);
  border-radius: 2px;
  transform: rotate(-4deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 4px,
    rgba(255,255,255,0.25) 4px,
    rgba(255,255,255,0.25) 5px
  );
}

/* tape strip — right corner */
.cause-frame::after {
  content: '';
  position: absolute;
  top: -13px;
  right: 22px;
  width: 54px;
  height: 22px;
  background: rgba(255,235,120,0.78);
  border-radius: 2px;
  transform: rotate(4deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 4px,
    rgba(255,255,255,0.25) 4px,
    rgba(255,255,255,0.25) 5px
  );
}

/* photo area */
.cf-photos {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
  background: #e5e7eb;
}

.cf-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.cf-slide.active { opacity: 1; }

/* bottom label */
.cf-label {
  text-align: center;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.3px;
  padding: 0 6px;
  line-height: 1.3;
}

.cf-date {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 3px;
}

/* navigation dots */
.cf-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
}

.cf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 1.5px solid #d1d5db;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.cf-dot.active {
  background: var(--dot-color, #003169);
  border-color: var(--dot-color, #003169);
  transform: scale(1.3);
}

/* hint label */
.cf-hint {
  position: absolute;
  bottom: -26px;
  left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(100,80,60,0.5);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .cause-frame { width: 250px; max-width: calc(100% - 48px); }
}

@media (max-width: 600px) {
  .cause-frame { width: 200px; max-width: calc(100% - 32px); padding: 8px 8px 48px; }
  .cf-label { font-size: 11px; }
  .deco-tl { width: 26px; height: 26px; }
  .deco-tr { width: 22px; height: 22px; }
  .deco-bl { width: 16px; height: 16px; }
  .deco-br { width: 20px; height: 20px; }
}

@media (max-width: 360px) {
  .cause-frame { width: 170px; }
  .cause-card-media { padding: 28px 10px 24px; }
}
