/* ============================================================
   Friends Forever — shared stylesheet
   Mobile-first, colorful, arts-&-culture brand system
   ============================================================ */

:root {
  --marigold: #F6A21E;
  --rose: #E23E7A;
  --teal: #119DA4;
  --indigo: #2A1E48;
  --indigo-soft: #3d2e63;
  --cream: #FFF7EC;
  --cream-2: #fdeed8;
  --ink: #241a33;
  --muted: #6b6275;
  --white: #ffffff;
  --grad-sun: linear-gradient(120deg, #F6A21E 0%, #E23E7A 55%, #7b2d8e 100%);
  --grad-warm: linear-gradient(120deg, #ffb347 0%, #E23E7A 100%);
  --grad-cool: linear-gradient(120deg, #119DA4 0%, #2A1E48 100%);
  --shadow: 0 18px 50px -20px rgba(42,30,72,.45);
  --shadow-sm: 0 8px 24px -12px rgba(42,30,72,.4);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--indigo); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

section { padding: clamp(48px, 8vw, 96px) 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--rose);
  margin-bottom: .9rem;
}
.eyebrow.light { color: #ffd9a8; }

.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 60ch; }

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 700; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--grad-warm); color: #fff; box-shadow: 0 12px 30px -10px rgba(226,62,122,.6); }
.btn-dark { background: var(--indigo); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline { background: transparent; color: var(--indigo); border: 1.5px solid var(--indigo); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,247,236,.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(42,30,72,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 600; font-size: 1.32rem; color: var(--indigo); }
.brand:hover { text-decoration: none; }
.brand .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-sun); display: inline-block; box-shadow: var(--shadow-sm); }
.brand-logo { height: 56px; width: auto; display: block; }
/* footer logo on a soft light plate so the colourful logo + tagline read on dark bg */
.site-footer .brand { display: inline-block; background: rgba(255,255,255,.96); padding: 14px 20px; border-radius: 16px; box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.site-footer .brand-logo { height: 74px; }
/* hero logo on a soft light plate so it reads over photos */
.hero-logo { width: min(220px, 60vw); height: auto; display: block; margin-bottom: 1.4rem; background: rgba(255,255,255,.94); padding: 16px 22px; border-radius: 20px; box-shadow: 0 14px 34px rgba(0,0,0,.32); }
.brand small { display: block; font-family: var(--sans); font-weight: 600; font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rose); margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--indigo); font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--rose); text-decoration: none; }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--indigo); border-radius: 3px; margin: 5px 0; transition: .25s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--cream); padding: 12px 22px 26px; align-items: stretch;
    box-shadow: var(--shadow); transform: translateY(-150%); transition: transform .3s ease;
    border-bottom: 3px solid var(--marigold);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid rgba(42,30,72,.08); }
  .nav-links a { display: block; padding: 14px 4px; }
  .nav-links .btn { margin-top: 14px; justify-content: center; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; padding: 0; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.42) 100%); }
.hero h1, .hero p, .hero .hero-sub, .page-hero h1, .page-hero p, .page-hero .crumbs { text-shadow: 0 2px 16px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.5); }
.hero-inner { position: relative; z-index: 2; padding: clamp(80px, 14vw, 150px) 0 clamp(64px, 10vw, 120px); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { font-size: clamp(1.05rem, 2.6vw, 1.35rem); max-width: 54ch; color: #ffeede; }
.hero .btn-row { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-sub { display: inline-block; margin-bottom: 1.1rem; padding: .4rem 1rem; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); font-weight: 600; font-size: .8rem; letter-spacing: .04em; }

/* page hero (smaller, for inner pages) */
.page-hero { position: relative; color: #fff; overflow: hidden; }
.page-hero .hero-media::after { background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.12) 45%, rgba(0,0,0,.5) 100%); }
.page-hero .hero-inner { padding: clamp(64px,11vw,120px) 0 clamp(48px,8vw,90px); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #ffeede; max-width: 58ch; }
.crumbs { font-size: .82rem; letter-spacing: .04em; color: #ffd9a8; margin-bottom: 1rem; }
.crumbs a { color: #ffd9a8; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border-radius: var(--radius); padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm); border-top: 4px solid var(--marigold); }
.stat:nth-child(2){ border-top-color: var(--rose); }
.stat:nth-child(3){ border-top-color: var(--teal); }
.stat:nth-child(4){ border-top-color: #7b2d8e; }
.stat .num { font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 2.8rem); color: var(--indigo); line-height: 1; }
.stat .label { font-size: .86rem; color: var(--muted); font-weight: 600; margin-top: .5rem; }
@media (max-width: 720px){ .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards / program grid ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 16/11; overflow: hidden; position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.06); }
.card .tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--indigo); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; }
.card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card .body h3 { margin-bottom: .35rem; }
.card .meta { font-size: .8rem; font-weight: 700; color: var(--teal); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .6rem; }
.card .body p { color: var(--muted); font-size: .96rem; }
.card .more { margin-top: auto; font-weight: 700; color: var(--rose); padding-top: .6rem; }

/* feature row (image + text) */
.feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
/* book covers: show the whole cover (no cropping of the face/title) */
.feature-media img.book-cover { object-fit: contain; background: #efe6d8; }
.card .thumb img.book-cover { object-fit: contain; background: #efe6d8; }
@media (max-width: 820px){ .feature { grid-template-columns: 1fr; } .feature.reverse .feature-media { order: 0; } }

/* ---------- Sections backgrounds ---------- */
.bg-cream2 { background: var(--cream-2); }
.bg-indigo { background: var(--indigo); color: #fff; }
.bg-indigo h1, .bg-indigo h2, .bg-indigo h3 { color: #fff; }
.bg-indigo .lead { color: #d9cfeec0; }
.bg-grad { background: var(--grad-cool); color: #fff; }
.bg-grad h2, .bg-grad h3 { color: #fff; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 820px){ .pillars { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .pillars { grid-template-columns: 1fr; } }
.pillar { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); padding: 22px; }
.pillar .ic { font-size: 1.6rem; }
.pillar h3 { font-size: 1.12rem; margin: .5rem 0 .3rem; }
.pillar p { color: #d9cfeecc; font-size: .92rem; margin: 0; }

/* ---------- Photo marquee ---------- */
.marquee { overflow: hidden; padding: 0; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: scrollx 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 230px; width: 320px; object-fit: cover; border-radius: var(--radius-sm); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Quote / diary ---------- */
.quote { font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 2.1rem); line-height: 1.35; color: var(--indigo); }
.bg-indigo .quote { color: #fff; }

/* ---------- partners ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.partner { background: #fff; border-radius: var(--radius-sm); padding: 18px 26px; box-shadow: var(--shadow-sm); font-weight: 700; color: var(--indigo); display: flex; align-items: center; gap: .6rem; }
.partner span.d { width: 12px; height: 12px; border-radius: 50%; background: var(--grad-sun); }

/* ---------- video band ---------- */
.video-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* click-to-watch card (avoids YouTube playlist embed errors) */
.video-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.video-card:hover img { transform: scale(1.05); }
.video-card .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.22); }
.video-card .play .tri { width: 76px; height: 76px; border-radius: 50%; background: rgba(226,62,122,.95); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; padding-left: 4px; box-shadow: 0 12px 32px rgba(0,0,0,.4); transition: transform .15s ease; }
.video-card:hover .play .tri { transform: scale(1.08); }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--grad-sun); color: #fff; border-radius: var(--radius); padding: clamp(30px,5vw,52px); text-align: center; }
.cta-strip h2 { color: #fff; }
.cta-strip .lead { color: #ffe9d4; }

/* match callout */
.match { background: #fff; border: 2px dashed var(--marigold); border-radius: var(--radius); padding: 26px 28px; }
.match strong { color: var(--rose); }

/* lists */
.tick { list-style: none; padding: 0; margin: 0; }
.tick li { position: relative; padding-left: 1.8rem; margin-bottom: .7rem; color: var(--ink); }
.tick li::before { content: "✦"; position: absolute; left: 0; color: var(--marigold); font-size: 1rem; }

/* note (for placeholders) */
.note { font-size: .82rem; color: var(--muted); background: #fff7e6; border-left: 3px solid var(--marigold); padding: .5rem .8rem; border-radius: 8px; margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo); color: #d9cfee; padding: 60px 0 28px; }
.site-footer a { color: #ffd9a8; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer .brand { color: #fff; }
.newsletter input { width: 100%; padding: .8rem 1rem; border-radius: 999px; border: 0; margin-bottom: .6rem; font-family: var(--sans); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .82rem; color: #b6a9d4; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.spacer { height: 8px; }
