/* ============================================
   PANI — Pakistan American National Institute
   Design tokens
   ============================================ */
:root {
  --navy: #12294F;
  --navy-dark: #0A1A33;
  --navy-tint: #E7ECF3;
  --green: #1E5B34;
  --green-dark: #123D22;
  --green-tint: #E7F0EA;
  --red: #C0272C;
  --red-dark: #8F1D21;
  --cream: #F7F3EA;
  --white: #FFFFFF;
  --ink: #1B1B18;
  --muted: #5B5A52;
  --line: rgba(18, 41, 79, 0.14);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }

.btn-outline-light { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }

/* ============ Header / Nav ============ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 46px; width: 46px; }
.brand-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.2;
}
.brand-text span {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--red);
}
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

@media (max-width: 880px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 28px 24px;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 14px;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-actions .btn { display: none; }
}

/* ============ Hero ============ */
.hero {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding-top: 84px;
  padding-bottom: 84px;
}
.hero h1 { color: var(--white); }
.hero-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: #C9D4E4;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.hero p.lede { color: #C9D4E4; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-art img {
  width: min(360px, 90%);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}
.hero-video {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.18);
  background-image: linear-gradient(135deg, #1A3A66 0%, var(--navy-dark) 100%);
}
.hero-youtube {
  background-size: cover;
  background-position: center;
}
.hero-youtube::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.25);
  pointer-events: none;
}
.hero-youtube .video-play {
  position: relative;
  z-index: 1;
}
.hero-video .video-play {
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}
.hero-carousel {
  position: relative;
  width: 100%;
}
.hero-slide {
  display: none;
  width: 100%;
}
.hero-slide.is-active {
  display: block;
  animation: heroFade 0.5s ease;
}
@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-photo-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.18);
  background: repeating-linear-gradient(
    45deg,
    #1A3A66,
    #1A3A66 12px,
    var(--navy-dark) 12px,
    var(--navy-dark) 24px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo-placeholder .placeholder-pill {
  position: static;
}
.hero-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.is-active {
  background: var(--white);
  transform: scale(1.2);
}
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 48px; }
  .hero-art { order: -1; }
  .hero-art img { width: 220px; }
  .hero-video { max-width: 420px; margin: 0 auto; }
}

/* Page header (interior pages) */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 56px;
}
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header .lede { color: #C9D4E4; }

/* ============ Sections ============ */
section { padding: 80px 0; }
section.alt { background: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 44px; }

/* Mission strip */
.mission-strip {
  background: var(--cream);
  padding: 76px 0;
  text-align: center;
}
.mission-seal {
  width: 64px;
  margin: 0 auto 24px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mission-seal-link {
  display: inline-block;
  cursor: pointer;
}
.mission-seal-link:hover .mission-seal {
  opacity: 1;
  transform: scale(1.05);
}
.mission-strip blockquote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--navy);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.4;
}
.mission-strip cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Pillar cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.pillar-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: 30px 26px;
  background: var(--white);
}
.pillar-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 18px;
}
.pillar-card h3 { margin-bottom: 8px; }
.pillar-card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0; }

/* Video message */
.video-message {
  background: var(--navy-tint);
  padding: 76px 0;
}
.video-message-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .video-message-inner { grid-template-columns: 1fr; }
}
.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.video-play {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.video-play:hover { background: rgba(255,255,255,0.22); }
.video-placeholder .placeholder-pill {
  position: absolute;
  bottom: 14px;
  right: 14px;
  margin-left: 0;
}
.video-message-copy h2 { margin-bottom: 14px; }
.video-message-copy .hero-eyebrow { color: var(--green); }

/* Community highlights */
.highlights-grid { margin-top: 0; }
.highlight-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  background: var(--white);
  overflow: hidden;
}
.highlight-card:nth-child(2) { border-top-color: var(--green); }
.highlight-card:nth-child(3) { border-top-color: var(--red); }
.highlight-image {
  aspect-ratio: 16 / 10;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.highlight-card h3,
.highlight-card p { padding: 0 22px; }
.highlight-card h3 { margin-top: 22px; margin-bottom: 8px; }
.highlight-card p { color: var(--muted); font-size: 0.96rem; padding-bottom: 22px; margin-bottom: 0; }

/* Get involved band */
.involve-band {
  background: var(--green);
  color: var(--white);
}
.involve-band h2 { color: var(--white); }
.involve-band .lede { color: #DCEBE1; }
.involve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 900px) { .involve-grid { grid-template-columns: 1fr; } }
.involve-item {
  border: 1px solid rgba(255,255,255,0.25);
  border-top: 3px solid var(--cream);
  padding: 26px;
}
.involve-item h3 { color: var(--white); }
.involve-item p { color: #DCEBE1; font-size: 0.95rem; }

/* Timeline / history */
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.timeline-item .year {
  font-family: var(--serif);
  color: var(--red);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Goal sections (Programs page) */
.goal {
  border-top: 1px solid var(--line);
  padding: 56px 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
}
.goal:first-of-type { border-top: none; }
@media (max-width: 820px) { .goal { grid-template-columns: 1fr; gap: 20px; } }
.goal-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.goal-num {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
}
.goal-label h3 { margin: 0; color: var(--navy); }
.goal-statement { color: var(--muted); font-size: 0.98rem; margin-top: 8px; }
.goal-body ul { margin: 0; padding-left: 20px; }
.goal-body li { margin-bottom: 8px; color: var(--ink); }
.goal-body h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin-bottom: 10px;
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--navy);
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
}

/* Contact info list */
.info-list { display: flex; flex-direction: column; gap: 22px; }
.info-list .label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--red);
  margin-bottom: 4px;
}

/* Two-column layout helper */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; } }

/* ============ Footer ============ */
footer.site-footer {
  background: var(--navy-dark);
  color: #B9C4D6;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: #B9C4D6; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 40px; width: 40px; }
.footer-brand span { font-family: var(--serif); color: var(--white); font-size: 1.05rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem;
}

/* ============ News ============ */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 3px;
}
.tag-press { background: var(--navy-tint); color: var(--navy); }
.tag-advocacy { background: rgba(192,39,44,0.1); color: var(--red); }
.tag-community { background: var(--green-tint); color: var(--green-dark); }

.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 40px;
}
@media (max-width: 860px) { .news-featured { grid-template-columns: 1fr; } }
.news-featured .date { color: var(--muted); font-size: 0.85rem; margin: 14px 0 4px; }
.news-featured .art {
  aspect-ratio: 4/3;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.news-featured .art img { width: 55%; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.news-card .art {
  aspect-ratio: 16/10;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card .art img { width: 34%; opacity: 0.85; }
.news-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.news-card .date { color: var(--muted); font-size: 0.82rem; }
.news-card h3 { margin: 0; font-size: 1.1rem; }
.news-card p { color: var(--muted); font-size: 0.92rem; margin: 0; flex-grow: 1; }
.news-card .read-more { font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-top: 4px; }

.news-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.news-filter button {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  border-radius: 3px;
}
.news-filter button.active,
.news-filter button:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* Placeholder pill */
.placeholder-pill {
  display: inline-block;
  font-size: 0.72rem;
  background: rgba(192,39,44,0.12);
  color: var(--red);
  border: 1px solid rgba(192,39,44,0.3);
  padding: 3px 9px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
