/* ============================================================
   Junior Service League of Greater New Port Richey
   2026 site refresh — editorial, warm, women-led civic energy
   ============================================================ */

:root {
  --cream: #FAF4EB;
  --paper: #FFFCF7;
  --ink: #241B17;
  --ink-soft: #5C4F48;
  --red: #B01E2A;
  --red-bright: #CE2433;
  --red-deep: #6E1018;
  --rose: #F2E0D8;
  --rose-deep: #E8CFC3;
  --gold: #B98A47;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--red); }

::selection { background: var(--red); color: var(--cream); }

/* ---------- type helpers ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--red);
  flex: none;
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--red);
  flex: none;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -.015em;
}

h2 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.2; }

.script {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 420;
  color: var(--red);
  letter-spacing: 0;
}

.lede {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 38em;
}

/* ---------- layout ---------- */

.wrap {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

section { position: relative; }

.section-pad { padding-block: clamp(4rem, 10vw, 7.5rem); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 244, 235, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(36, 27, 23, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .85rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img { height: 52px; width: auto; }
.brand-text {
  font-family: var(--serif);
  font-size: .8rem;
  line-height: 1.25;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}
.brand-text span { display: block; color: var(--red); }

.desktop-nav { display: none; }

@media (min-width: 980px) {
  .desktop-nav { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.7rem); }
  .desktop-nav a {
    text-decoration: none;
    color: var(--ink);
    font-size: .89rem;
    font-weight: 600;
    letter-spacing: .01em;
    position: relative;
    padding-block: .3rem;
  }
  .desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--red);
    transition: right .3s var(--ease);
  }
  .desktop-nav a:hover::after,
  .desktop-nav a[aria-current="page"]::after { right: 0; }
  .desktop-nav a[aria-current="page"] { color: var(--red); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: .8rem 1.7rem;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-red {
  background: var(--red);
  color: var(--cream);
  box-shadow: 0 10px 24px -12px rgba(176, 30, 42, .65);
}
.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-cream {
  background: var(--cream);
  color: var(--red-deep);
}
.btn-cream:hover { background: #fff; transform: translateY(-2px); }

.header-cta { display: none; }
@media (min-width: 700px) { .header-cta { display: inline-flex; padding: .62rem 1.3rem; font-size: .88rem; } }
@media (min-width: 980px) and (max-width: 1120px) { .brand-text { display: none; } }

/* hamburger */
.nav-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  border: none;
  cursor: pointer;
  z-index: 80;
}
@media (min-width: 980px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cream);
  position: relative;
  transition: background .2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--cream);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .site-header { z-index: 80; }
body.nav-open .site-header .brand,
body.nav-open .site-header .desktop-nav { visibility: hidden; }
body.nav-open .site-header.scrolled { background: transparent; box-shadow: none; backdrop-filter: none; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* mobile overlay nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--red-deep);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.5rem 2rem 2.5rem;
  clip-path: circle(0 at calc(100% - 46px) 46px);
  transition: clip-path .55s var(--ease);
  visibility: hidden;
}
body.nav-open .mobile-nav {
  clip-path: circle(150% at calc(100% - 46px) 46px);
  visibility: visible;
}
.mobile-nav a.mnav-link {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  color: var(--cream);
  text-decoration: none;
  padding-block: .42rem;
  border-bottom: 1px solid rgba(250, 244, 235, .14);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  transition: padding-left .3s var(--ease), color .3s var(--ease);
}
.mobile-nav a.mnav-link:hover { padding-left: .6rem; color: #fff; }
.mobile-nav a.mnav-link small {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .55;
}
.mobile-nav .mnav-foot {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- hero (home) ---------- */

.hero {
  padding-top: clamp(7rem, 16vw, 10.5rem);
  padding-bottom: 0;
  position: relative;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 3.5rem; }
}
.hero h1 {
  font-size: clamp(2.7rem, 7.6vw, 5.2rem);
  font-weight: 500;
}
.hero h1 .script { display: inline; }
.hero .lede { margin-top: 1.4rem; }
.hero-ctas {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 2.6rem;
}
.hero-facts {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(36, 27, 23, .15);
  padding-top: 1.4rem;
  margin-bottom: 2.5rem;
}
.hero-facts div strong {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  display: block;
  color: var(--red);
}
.hero-facts div span {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.arch {
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  position: relative;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch {
  aspect-ratio: 3 / 3.6;
  max-height: 560px;
  width: 100%;
  box-shadow: 0 30px 60px -30px rgba(36, 27, 23, .45);
}
.hero-arch::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(250, 244, 235, .55);
  border-radius: 999px 999px 10px 10px;
  pointer-events: none;
}

.est-badge {
  position: absolute;
  z-index: 5;
  right: clamp(0rem, 4vw, 3rem);
  top: -2.6rem;
  width: 118px;
  height: 118px;
  animation: spin 26s linear infinite;
}
@media (max-width: 879px) { .est-badge { display: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .est-badge { animation: none; }
}

/* ---------- marquee ---------- */

.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding-block: 1rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.marquee span::after {
  content: "✿";
  font-style: normal;
  font-size: .8rem;
  color: var(--red-bright);
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- mission ---------- */

.mission-quote {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4.2vw, 2.6rem);
  font-weight: 480;
  line-height: 1.28;
  max-width: 21em;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}
.mission-quote em {
  font-style: italic;
  color: var(--red);
}

/* ---------- cards / features ---------- */

.card-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.6rem;
}
@media (min-width: 760px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper);
  border: 1px solid rgba(36, 27, 23, .09);
  border-radius: 20px;
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px -28px rgba(36, 27, 23, .35);
}
.card .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
}
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .card-link {
  margin-top: auto;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  color: var(--red);
  display: inline-flex;
  gap: .4rem;
  align-items: center;
}
.card .card-link::after { content: "→"; transition: transform .25s var(--ease); }
.card .card-link:hover::after { transform: translateX(4px); }

/* ---------- stats band ---------- */

.stats-band {
  background: var(--red-deep);
  color: var(--cream);
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(206, 36, 51, .5), transparent 45%),
    radial-gradient(circle at 5% 95%, rgba(206, 36, 51, .35), transparent 40%);
  pointer-events: none;
}
.stats-grid {
  position: relative;
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat strong {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 500;
  display: block;
  line-height: 1;
}
.stat strong sup { font-size: .45em; color: var(--rose-deep); }
.stat span {
  display: block;
  margin-top: .55rem;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

/* ---------- split feature ---------- */

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split.flip > .split-media { order: 2; }
}
.split-media .arch { aspect-ratio: 4 / 4.4; }
.split-media.tall .arch { aspect-ratio: 3 / 4; }
.split-body p { color: var(--ink-soft); margin-top: 1rem; }
.split-body .btn { margin-top: 1.8rem; }

.photo-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 26px 55px -30px rgba(36, 27, 23, .4);
}

/* ---------- membership steps ---------- */

.steps {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.8rem;
  counter-reset: step;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--paper);
  border: 1px solid rgba(36, 27, 23, .09);
  border-radius: 20px;
  padding: 2.1rem 1.8rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.8rem;
  color: var(--rose-deep);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: .35rem; }
.step .step-sub {
  font-size: .8rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: .9rem;
  display: block;
}
.step ul { list-style: none; }
.step li {
  padding-left: 1.3rem;
  position: relative;
  font-size: .95rem;
  color: var(--ink-soft);
  margin-bottom: .55rem;
}
.step li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--red);
}

/* ---------- events ---------- */

.event-feature {
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
}
@media (min-width: 880px) { .event-feature { grid-template-columns: 1.05fr .95fr; } }
.event-feature .ev-media {
  min-height: 280px;
  position: relative;
}
.event-feature .ev-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-feature .ev-body { padding: clamp(2.2rem, 5vw, 3.5rem); }
.event-feature h3 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-block: .4rem 1rem;
}
.event-feature p { color: rgba(250, 244, 235, .78); }
.ev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-block: 1.4rem;
}
.ev-meta span {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  border: 1px solid rgba(250, 244, 235, .3);
  border-radius: 999px;
  padding: .35rem .9rem;
}

.event-list { display: grid; gap: 1.4rem; margin-top: 1.4rem; }
@media (min-width: 760px) { .event-list { grid-template-columns: 1fr 1fr; } }

/* ---------- orgs list ---------- */

.org-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2.4rem;
}
.org-cloud span {
  border: 1px solid rgba(36, 27, 23, .18);
  background: var(--paper);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font-size: .9rem;
  color: var(--ink-soft);
  transition: background .25s, color .25s, border-color .25s;
}
.org-cloud span:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}

/* ---------- board list ---------- */

.board-list {
  margin-top: 2.4rem;
  border-top: 1px solid rgba(36, 27, 23, .14);
}
.board-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem .2rem;
  border-bottom: 1px solid rgba(36, 27, 23, .14);
  flex-wrap: wrap;
}
.board-row .role {
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.board-row .name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 520;
}

/* ---------- scholarships ---------- */

.dollar-hero {
  font-family: var(--serif);
  font-size: clamp(4rem, 14vw, 8.5rem);
  font-weight: 500;
  line-height: .95;
  color: var(--red);
  letter-spacing: -.03em;
}
.dollar-hero small {
  font-size: .28em;
  font-style: italic;
  color: var(--ink);
  letter-spacing: 0;
  font-weight: 450;
}

.schol-grid { display: grid; gap: 1.4rem; margin-top: 2.4rem; }
@media (min-width: 760px) { .schol-grid { grid-template-columns: 1fr 1fr; } }

.timeline { margin-top: 2.2rem; }
.timeline li {
  list-style: none;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 1.1rem;
  padding-bottom: 1.6rem;
  position: relative;
}
.timeline li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  margin-top: .45rem;
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 1.35rem;
  bottom: .2rem;
  width: 1px;
  background: rgba(36, 27, 23, .2);
}
.timeline strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; display: block; }
.timeline p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- award band ---------- */

.award {
  display: grid;
  gap: 2rem;
  align-items: center;
  background: var(--rose);
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 820px) { .award { grid-template-columns: .8fr 1.2fr; gap: 3rem; } }
.award .arch { aspect-ratio: 3/3.8; max-width: 320px; margin-inline: auto; }
.award h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--red);
  color: var(--cream);
  text-align: center;
  border-radius: 28px;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(110, 16, 24, .55), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.cta-band p {
  color: var(--rose);
  max-width: 34em;
  margin: 1rem auto 2rem;
}
.cta-band .btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- page hero (interior pages) ---------- */

.page-hero {
  padding-top: clamp(8rem, 18vw, 12rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.page-hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 500;
  max-width: 14em;
}
.page-hero .lede { margin-top: 1.2rem; }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 1.4rem; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  background: var(--paper);
  border: 1px solid rgba(36, 27, 23, .09);
  border-radius: 20px;
  padding: 2.2rem 2rem;
}
.contact-card h3 { margin-bottom: .6rem; }
.contact-card p { color: var(--ink-soft); }
.contact-card a.big {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  font-weight: 550;
  text-decoration: none;
  display: inline-block;
  margin-top: .4rem;
  border-bottom: 2px solid var(--rose-deep);
  transition: border-color .25s;
  overflow-wrap: anywhere;
}
.contact-card a.big:hover { border-color: var(--red); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  margin-top: clamp(4rem, 10vw, 7rem);
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; }
}
.footer-brand img {
  height: 74px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(93%) sepia(9%) saturate(370%) hue-rotate(340deg) brightness(103%);
}
.footer-brand p {
  color: rgba(250, 244, 235, .6);
  font-size: .95rem;
  margin-top: 1.1rem;
  max-width: 30em;
}
.site-footer h4 {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(250, 244, 235, .5);
  margin-bottom: 1.1rem;
  font-weight: 700;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a {
  color: var(--cream);
  text-decoration: none;
  font-size: .98rem;
  transition: color .2s;
}
.site-footer a:hover { color: var(--red-bright); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(250, 244, 235, .12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(250, 244, 235, .45);
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
