/* ==========================================================================
   SFUP — Shikana Frontliners for Unity Party
   Core stylesheet. Palette and type are drawn from the party's own mark
   (navy circle, rust/gold woodtype lettering) — see the design notes at
   the top of index.html for the token rationale.
   ========================================================================== */

:root {
  --navy: #16233f;
  --navy-deep: #0e1830;
  --rust: #8b3a26;
  --rust-light: #a8492f;
  --gold: #a9862f;
  --cream: #f6f1e4;
  --ink: #18140f;
  --white: #ffffff;
  --max-width: 74rem;
  --font-display: "Bitter", Georgia, serif;
  --font-body: "Karla", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p {
  max-width: 62ch;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 0.7rem 1.1rem;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--rust);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--rust-light);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy-deep);
  position: sticky;
  top: 0;
  z-index: 500;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
}

.brand img {
  height: 2.6rem;
  width: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}


.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center; /* keeps text links and the button li on one baseline */
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.main-nav li {
  display: flex;
  align-items: center;
}

.main-nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Smaller padding than the default .btn so "Join SFUP" matches the
   height of the plain text links beside it. */
.btn-nav {
  padding: 0.5rem 1.05rem;
  font-size: 0.85rem;
}
@media (max-width: 1180px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav a:not(.btn) {
    display: block;
    padding: 0.85rem 0;
  }

  /* Mobile: the Join action is the first thing a visitor can tap */
  .main-nav .nav-join {
    order: -1;
    margin: 0 0 0.9rem;
  }

  .main-nav .nav-join .btn {
    display: block;
    text-align: center;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media .hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(14, 24, 48, 0.92) 0%,
    rgba(14, 24, 48, 0.78) 38%,
    rgba(14, 24, 48, 0.55) 68%,
    rgba(14, 24, 48, 0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: 6rem 2rem 5rem;
}

.hero-eyebrow-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.hero-eyebrow-mark img {
  height: 3.4rem;
}

.hero-eyebrow-mark span {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 0.5em;
}

.hero .lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.video-toggle {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  background: rgba(14, 24, 48, 0.65);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.video-toggle:hover,
.video-toggle:focus-visible {
  border-color: var(--white);
}

/* Ridge divider — the mountain motif from the party mark, used as a
   structural device between the hero and the next section. */
.ridge-divider {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -1px;
}

.ridge-divider path {
  fill: var(--cream);
}

.ridge-divider.on-cream path {
  fill: var(--navy-deep);
}

/* ---------- Sections ---------- */

.section {
  padding: 4.5rem 0;
}

.section-navy {
  background: var(--navy-deep);
  color: var(--white);
}

.section-navy p {
  color: rgba(255, 255, 255, 0.82);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.6rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* Intro / pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

@media (max-width: 760px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar h3 {
  font-size: 1.15rem;
  color: var(--rust);
}

.pillar p {
  font-size: 0.98rem;
}

/* Join section */

.join-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 820px) {
  .join-grid {
    grid-template-columns: 1fr;
  }
}

.ussd-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 1.6rem 1.8rem;
}

.ussd-card h3 {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.ussd-card ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.65rem;
}

.ussd-card ol li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.ussd-card code {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
}

/* Leadership teaser */

.leader-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

@media (max-width: 760px) {
  .leader-strip {
    grid-template-columns: 1fr;
  }
}

.leader-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.leader-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

.leader-card .leader-info {
  padding: 1rem 1.1rem 1.3rem;
}

.leader-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.15em;
}

.leader-card .role {
  color: var(--rust);
  font-size: 0.85rem;
  font-weight: 700;
}

/* CTA banner */

.cta-banner {
  background: var(--rust);
  color: var(--white);
  padding: 3.2rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.4em;
}

.cta-banner p {
  margin: 0 auto 1.6rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-banner .btn-primary {
  background: var(--navy-deep);
}

.cta-banner .btn-primary:hover,
.cta-banner .btn-primary:focus-visible {
  background: var(--navy);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.2rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.4rem;
  margin-bottom: 2.4rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.footer-brand img {
  height: 2.4rem;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: inherit;
  text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ---------- Motion & accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
