/* ============================================================
   Syam Kosigi for Council — Shared Stylesheet
   Primary: #1565C0  Accent/Donate: #E53935  Text: #1a1a1a
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  line-height: 1.25;
  font-weight: 700;
}

a { color: #1565C0; text-decoration: none; transition: color .2s; }
a:hover { color: #0d47a1; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5rem 0; }
.section--gray { background: #f5f7fa; }
.section--blue { background: #1565C0; color: #fff; }

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: .75rem;
  color: #1565C0;
}
.section--blue .section__title { color: #fff; }

.section__sub {
  font-size: 1.05rem;
  color: #555;
  max-width: 620px;
  margin-bottom: 3rem;
}
.section--blue .section__sub { color: rgba(255,255,255,.85); }

.divider {
  width: 56px;
  height: 4px;
  background: #1565C0;
  margin: .75rem 0 2.5rem;
  border-radius: 2px;
}
.divider--white { background: #fff; }
.divider--red   { background: #E53935; }

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  text-transform: uppercase;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: #1565C0;
  color: #fff;
  border-color: #1565C0;
}
.btn-primary:hover { background: #0d47a1; border-color: #0d47a1; color: #fff; }

.btn-outline {
  background: transparent;
  color: #1565C0;
  border-color: #1565C0;
}
.btn-outline:hover { background: #1565C0; color: #fff; }

.btn-outline--white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline--white:hover { background: #fff; color: #1565C0; }

.btn-donate {
  background: #E53935;
  color: #fff;
  border-color: #E53935;
  font-size: 1rem;
  padding: .7rem 1.6rem;
}
.btn-donate:hover { background: #c62828; border-color: #c62828; color: #fff; }

/* ─── Navigation ─── */
#navbar {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.09);
  transition: box-shadow .3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: .75rem;
}

/* Facebook icon always visible in top bar (mobile + desktop), so people
   don't need to open the hamburger menu or scroll to the footer. */
.nav-social-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1565C0;
  color: #fff !important;
  font-weight: 700;
  font-size: .9rem;
  text-transform: none !important;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-social-top:hover { background: #0d47a1; }
@media (max-width: 820px) {
  .nav-social-top { margin-left: auto; margin-right: .5rem; }
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-brand__name {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: #1565C0;
}
.nav-brand__sub {
  font-size: .7rem;
  font-weight: 500;
  color: #555;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1565C0;
  color: #fff !important;
  font-weight: 700;
  font-size: .85rem;
  border-bottom: none !important;
  text-transform: none !important;
}
.nav-social:hover { background: #0d47a1; }
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: #333;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #1565C0;
  border-bottom-color: #1565C0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #1565C0;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Mobile nav */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
  }
  .nav-links.open { max-height: 500px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    border-left: none;
    text-align: left;
    font-size: .9rem;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .nav-social {
    display: flex;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: #1565C0 !important;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    align-items: center;
    justify-content: flex-start;
    font-size: .9rem;
    text-transform: uppercase;
  }
  .nav-links .nav-social::before { content: "Facebook"; }
  .nav-links .nav-social:hover { background: #f5f7fa; }

  /* Nav brand subtitle — keep on one line */
  .nav-brand__sub {
    white-space: nowrap;
    font-size: .62rem;
    letter-spacing: .05em;
  }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 920px;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: 0;
  background-color: #0d47a1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('portrait.jpg');
  background-size: auto 98%;
  background-position: right 5%;
  background-repeat: no-repeat;
  animation: kenBurns 18s ease-in-out infinite alternate;
  transform-origin: right center;
}

@keyframes kenBurns {
  0%   { transform: scale(1)    translateX(0)      translateY(0); }
  100% { transform: scale(1.08) translateX(-1.5%)  translateY(-1%); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 38, 96, 1.0)  0%,
    rgba(10, 38, 96, 1.0)  38%,
    rgba(10, 38, 96, 0.5)  52%,
    rgba(0,  0,  0,  0.0) 65%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 560px;
}

.hero__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: .75rem;
}

.hero__name {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: .5rem;
}

.hero__title {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,.9);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── Issue Cards ─── */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
}

.issue-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
  border-top: 4px solid #1565C0;
  transition: transform .25s, box-shadow .25s;
}
.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(21,101,192,.15);
}

.issue-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.issue-card__title {
  font-size: 1.15rem;
  margin-bottom: .75rem;
  color: #1565C0;
}

.issue-card__text {
  font-size: .92rem;
  color: #444;
  line-height: 1.65;
}

/* ─── Photo Gallery ─── */
.photo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.photo-row img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform .3s;
}
.photo-row img:hover { transform: scale(1.02); }

@media (max-width: 640px) {
  .photo-row { grid-template-columns: 1fr; }
  .photo-row img { height: 220px; }
}

/* ─── About Layout ─── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-portrait {
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
}

.about-text p { margin-bottom: 1.25rem; font-size: 1.02rem; color: #333; }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.fact-box {
  background: #f0f4ff;
  border-left: 3px solid #1565C0;
  padding: 1rem 1.25rem;
  border-radius: 4px;
}
.fact-box__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1565C0;
  margin-bottom: .3rem;
}
.fact-box__value { font-size: .95rem; font-weight: 600; color: #1a1a1a; }

@media (max-width: 720px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; margin: 0 auto; }
  .about-facts { grid-template-columns: 1fr; }
}

/* ─── Donate CTA Band ─── */
.donate-band {
  background: linear-gradient(135deg, #0d47a1 0%, #1565C0 60%, #1976d2 100%);
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}
.donate-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: .75rem;
  color: #fff;
}
.donate-band p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* ─── Quote / Pull ─── */
.pull-quote {
  border-left: 5px solid #1565C0;
  padding: 1.5rem 2rem;
  background: #f0f4ff;
  margin: 2.5rem 0;
  border-radius: 0 6px 6px 0;
}
.pull-quote p {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #1a1a1a;
  margin: 0;
}
.pull-quote cite {
  display: block;
  margin-top: .75rem;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-style: normal;
  font-weight: 600;
  color: #1565C0;
}

/* ─── Events ─── */
.events-placeholder {
  text-align: center;
  padding: 5rem 2rem;
  background: #f5f7fa;
  border-radius: 8px;
}
.events-placeholder__icon { font-size: 3.5rem; margin-bottom: 1rem; }
.events-placeholder__title {
  font-size: 1.5rem;
  color: #1565C0;
  margin-bottom: .75rem;
}

/* ─── Get Involved ─── */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.involve-card {
  border: 2px solid #e8eff8;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .25s, box-shadow .25s;
}
.involve-card:hover {
  border-color: #1565C0;
  box-shadow: 0 4px 20px rgba(21,101,192,.12);
}
.involve-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.involve-card__title { font-size: 1.1rem; color: #1565C0; margin-bottom: .5rem; }
.involve-card__text { font-size: .9rem; color: #555; }

/* ─── Forms ─── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: #333;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid #cdd5e0;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1565C0;
  box-shadow: 0 0 0 3px rgba(21,101,192,.15);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-note {
  font-size: .8rem;
  color: #777;
  margin-top: .5rem;
}

/* ─── Footer ─── */
footer {
  background: #0d1b2a;
  color: rgba(255,255,255,.75);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand__name {
  font-family: 'Merriweather', serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: .4rem;
}
.footer-brand__tag {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-brand__desc {
  font-size: .88rem;
  line-height: 1.65;
  max-width: 300px;
}

.footer-col__title {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: color .2s;
}
.footer-col ul a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  transition: background .2s;
}
.social-btn:hover { background: #1565C0; color: #fff; }

.footer-bottom {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  text-align: center;
}
.footer-legal {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}

/* Newsletter strip in footer */
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}
.newsletter-form input {
  flex: 1 1 140px;
  padding: .55rem .85rem;
  border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus { border-color: rgba(255,255,255,.7); }
.newsletter-form button {
  padding: .55rem 1.1rem;
  background: #E53935;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.newsletter-form button:hover { background: #c62828; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  background: linear-gradient(135deg, #0d47a1 0%, #1565C0 100%);
  padding: 5rem 0 3.5rem;
  margin-top: 0;
  color: #fff;
}
.page-hero__eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: .6rem;
}
.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: .75rem;
}
.page-hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  max-width: 560px;
}

/* ─── Issue Full Cards ─── */
.issue-full {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.75rem;
  margin-bottom: 3rem;
  align-items: start;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  border-left: 5px solid #1565C0;
}
.issue-full__num {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #1565C0;
  opacity: .25;
  line-height: 1;
}
.issue-full__title {
  font-size: 1.35rem;
  color: #1565C0;
  margin-bottom: .75rem;
}
.issue-full__body { font-size: .97rem; color: #444; line-height: 1.75; }

@media (max-width: 540px) {
  .issue-full { grid-template-columns: 1fr; gap: 1rem; }
  .issue-full__num { font-size: 1.8rem; }
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.text-blue    { color: #1565C0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ─── Mobile overrides (must be at bottom to win cascade) ─── */
@media (max-width: 820px) {
  /* Hero eyebrow — reduce letter-spacing so it stays one line */
  .hero__eyebrow {
    letter-spacing: .09em;
    font-size: .75rem;
  }
  /* Sections compress */
  .section { padding: 3.5rem 0; }

  /* Hero photo — on mobile switch back to cover, face at very top */
  .hero__bg {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }
  /* Overlay — light at top so face shows clearly, heavy at bottom for text */
  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(10, 38, 96, 0.08) 0%,
      rgba(10, 38, 96, 0.20) 32%,
      rgba(10, 38, 96, 0.72) 58%,
      rgba(10, 38, 96, 0.92) 100%
    );
  }
  /* Text — full width on mobile */
  .hero__content {
    max-width: 100%;
    padding: 3rem 1rem 2rem;
    margin-top: auto;
  }
}

@media (max-width: 480px) {
  .nav-brand__name { font-size: 1rem; }
  .nav-brand__sub {
    font-size: .58rem;
    letter-spacing: .04em;
    white-space: nowrap;
  }

  .hero { min-height: 520px; }

  .hero__eyebrow {
    font-size: .68rem;
    letter-spacing: .06em;
  }

  .hero__name { font-size: clamp(2rem, 9vw, 3rem); }

  .hero__title {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Face visible on very small phones */
  .hero__bg { background-position: center top; }

  /* CTA buttons stack vertically */
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
  .hero__actions .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  /* Issue cards: force 1 column */
  .issues-grid { grid-template-columns: 1fr; }

  .section { padding: 2.75rem 0; }

  .donate-band { padding: 3rem 0; }
  .donate-band h2 { font-size: 1.5rem; }

  /* Footer stack */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
