/* One Philippines Project — first-version site styles */

:root {
  --navy: #07275c;
  --navy-deep: #04193d;
  --blue: #0a3a8c;
  --gold: #e8b01a;
  --gold-soft: #f6d36b;
  --red: #c01020;
  --red-dark: #9a0c18;
  --cream: #fbf6eb;
  --sand: #f3e6c8;
  --ink: #1c1a16;
  --muted: #5c564c;
  --white: #fffdf8;
  --card: #ffffff;
  --line: rgba(7, 39, 92, 0.12);
  --shadow: 0 18px 40px rgba(4, 25, 61, 0.12);
  --radius: 18px;
  --header-h: 4.5rem;
  --font-sans: "Nunito Sans", "Segoe UI", sans-serif;
  --font-serif: "Fraunces", "Palatino Linotype", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.5rem 0.9rem;
  z-index: 1000;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 235, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1140px, calc(100% - 1.5rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy-deep);
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  flex: none;
}

.brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand em {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  place-items: center;
  cursor: pointer;
  flex: none;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 4px auto;
  transition: 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--red);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-donate {
  background: var(--red);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(192, 16, 32, 0.28);
}

.btn-donate:hover {
  background: var(--red-dark);
  color: #fff !important;
}

.btn-ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 253, 248, 0.65);
}

.btn-ghost:hover {
  background: rgba(255, 253, 248, 0.12);
  color: #fff !important;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 25, 61, 0.35) 0%, rgba(4, 25, 61, 0.25) 28%, rgba(4, 25, 61, 0.82) 100%),
    linear-gradient(90deg, rgba(4, 25, 61, 0.72) 0%, rgba(4, 25, 61, 0.2) 60%, rgba(4, 25, 61, 0.45) 100%);
}

.hero-inner {
  position: relative;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 8rem 0 4.5rem;
  max-width: 42rem;
  margin-left: max(1rem, calc((100% - 1100px) / 2));
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 0.7rem;
  text-wrap: balance;
}

.lede {
  font-size: 1.15rem;
  color: rgba(255, 253, 248, 0.9);
  margin-bottom: 1.6rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.section-head .eyebrow {
  color: var(--red);
}

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Story */
.story {
  background: var(--white);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: center;
}

.story-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4/5;
}

.story-photo figcaption {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.story-copy p {
  margin-bottom: 1.05rem;
}

.mission-callout {
  margin: 1.4rem 0 0;
  padding: 1.1rem 1.25rem 1.1rem 1.35rem;
  border-left: 4px solid var(--gold);
  background: var(--cream);
  border-radius: 0 14px 14px 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
}

/* Projects */
.projects {
  background:
    radial-gradient(ellipse at top left, rgba(232, 176, 26, 0.16), transparent 50%),
    var(--cream);
}

.project-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}

.project-image img,
.project-image svg {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.project-image-well {
  background: var(--blue);
}

.project-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.project-body .eyebrow {
  color: var(--red);
  margin: 0;
}

.project-body h3 {
  margin: 0;
  font-size: 1.55rem;
}

.project-body p {
  color: var(--ink);
}

.text-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--blue);
  margin-top: auto;
}

.text-link:hover {
  color: var(--red);
}

.text-link::after {
  content: " →";
}

/* Videos */
.videos {
  background: var(--navy-deep);
  color: var(--cream);
}

.videos .section-head h2,
.videos h3 {
  color: var(--white);
}

.videos .section-intro {
  color: rgba(251, 246, 235, 0.78);
}

.videos .section-intro a {
  color: var(--gold-soft);
}

.video-feature {
  margin-bottom: 2rem;
}

.video-feature h3,
.video-shorts h3 {
  margin: 0.8rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.embed {
  position: relative;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-16x9 {
  aspect-ratio: 16/9;
}

.embed-9x16 {
  aspect-ratio: 9/16;
  max-width: 360px;
  margin-inline: auto;
  width: 100%;
}

.video-shorts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 760px;
  margin-inline: auto;
}

/* Shop */
.shop {
  background: var(--white);
}

.shop-blocks {
  display: grid;
  gap: 2.5rem;
}

.shop-block h3 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.shop-note {
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 50rem;
}

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

.merch-card,
.supply-list li {
  border: 1px dashed rgba(7, 39, 92, 0.28);
  border-radius: 16px;
  padding: 1.1rem 1rem 1.2rem;
  background: var(--cream);
  text-align: center;
}

.merch-card .tee {
  width: 120px;
  margin: 0 auto 0.6rem;
}

.merch-card p {
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sand);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.pill-warn {
  background: #f3d9a0;
}

.supply-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.supply-list li {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
}

.supply-list strong {
  color: var(--navy);
}

.supply-list span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Involved */
.involved {
  background:
    linear-gradient(180deg, var(--sand), var(--cream) 55%);
}

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

.involve-grid article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.involve-grid h3 {
  font-size: 1.4rem;
}

.social-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.social-list a {
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
}

.social-list a span {
  font-weight: 600;
  color: var(--muted);
}

.social-list a:hover {
  color: var(--red);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(251, 246, 235, 0.86);
  padding: 3rem 0 2.4rem;
}

.footer-inner {
  display: grid;
  gap: 1.1rem;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.footer-brand p,
.footer-legal,
.footer-copy {
  margin: 0;
}

.footer-brand p {
  color: rgba(251, 246, 235, 0.75);
  font-size: 0.95rem;
}

.footer-legal {
  font-size: 0.95rem;
  max-width: 40rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 253, 248, 0.12);
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(251, 246, 235, 0.55);
}

/* Responsive */
@media (max-width: 900px) {
  .story-grid,
  .project-cards,
  .involve-grid,
  .supply-list {
    grid-template-columns: 1fr;
  }

  .merch-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .story-photo {
    max-width: 420px;
  }

  .hero-inner {
    margin-left: auto;
    padding-top: 7rem;
  }
}

@media (max-width: 800px) {
  .nav-burger {
    display: grid;
    z-index: 60;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(20rem, 88vw);
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.2rem 1.5rem 2rem;
    gap: 1rem;
    box-shadow: -16px 0 40px rgba(4, 25, 61, 0.18);
    transform: translateX(0);
    visibility: hidden;
    pointer-events: none;
    width: 0;
    padding: 0;
    overflow: hidden;
    box-shadow: none;
  }

  .nav-toggle:checked ~ .site-nav {
    visibility: visible;
    pointer-events: auto;
    width: min(20rem, 88vw);
    padding: 5.2rem 1.5rem 2rem;
    box-shadow: -16px 0 40px rgba(4, 25, 61, 0.18);
  }

  .nav-toggle:checked + .nav-burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-burger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav a {
    font-size: 1.1rem;
  }

  .site-nav .btn {
    margin-top: 0.5rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .section {
    padding: 3.4rem 0;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-inner {
    padding: 6.5rem 0 3rem;
  }

  .brand span strong {
    font-size: 0.92rem;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .merch-cards,
  .video-shorts {
    grid-template-columns: 1fr;
  }

  .embed-9x16 {
    max-width: 320px;
  }

  .project-image img,
  .project-image svg {
    height: 220px;
  }
}

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

  .btn,
  .site-nav,
  .nav-burger span {
    transition: none;
  }
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.play-btn::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 22px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
}

.video-poster:hover .play-btn,
.video-poster:focus .play-btn {
  background: var(--red-dark);
  transform: none;
}

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