/* KAMSA — Korean American Mayo Staff Association Inc */
:root {
  --navy: #0c2340;
  --navy-deep: #071628;
  --navy-soft: #163a5f;
  --red: #c41e3a;
  --red-deep: #9e1830;
  --silver: #d8dde6;
  --mist: #eef1f6;
  --paper: #f7f8fb;
  --ink: #142033;
  --muted: #5a6678;
  --white: #ffffff;
  --ring: rgba(12, 35, 64, 0.12);
  --shadow: 0 18px 50px rgba(7, 22, 40, 0.18);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(196, 30, 58, 0.06), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(12, 35, 64, 0.08), transparent 50%),
    linear-gradient(180deg, #fbfcfe 0%, var(--paper) 40%, #f3f5f9 100%);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 251, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12, 35, 64, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(12, 35, 64, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--ring);
  background: var(--white);
  color: var(--navy);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  padding: 0.55rem 0.7rem;
  color: var(--navy-soft);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 0.45rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  background: rgba(12, 35, 64, 0.06);
}

.site-nav .nav-cta {
  margin-left: 0.35rem;
  background: var(--red);
  color: var(--white) !important;
  padding-inline: 1rem;
}

.site-nav .nav-cta:hover {
  background: var(--red-deep);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 22, 40, 0.35) 0%, rgba(7, 22, 40, 0.55) 45%, rgba(7, 22, 40, 0.88) 100%),
    linear-gradient(90deg, rgba(7, 22, 40, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4rem;
  max-width: 42rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero-brand img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-brand-copy strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.hero-brand-copy span {
  font-size: 0.95rem;
  opacity: 0.88;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.25s forwards;
}

.hero p {
  margin: 0 0 1.75rem;
  font-size: 1.12rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-deep);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-deep);
}

.btn-outline {
  background: transparent;
  border-color: rgba(12, 35, 64, 0.22);
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: rgba(12, 35, 64, 0.04);
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.page-hero .hero-media {
  position: absolute;
  inset: 0;
}

.page-hero .hero-content {
  padding: 3.5rem 0 2.75rem;
  max-width: 40rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  font-weight: 600;
  line-height: 1.1;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.15s forwards;
}

.page-hero p {
  margin: 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.3s forwards;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.section-head .eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.band {
  background:
    linear-gradient(135deg, rgba(12, 35, 64, 0.04), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(238, 241, 246, 0.9));
  border-block: 1px solid rgba(12, 35, 64, 0.06);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-copy h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--navy);
  line-height: 1.15;
}

.split-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.split-media {
  position: relative;
  overflow: hidden;
  border-radius: 1.1rem;
  min-height: 22rem;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.9rem;
  min-height: 28rem;
}

.mosaic figure {
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  position: relative;
}

.mosaic figure:first-child {
  grid-row: 1 / span 2;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 12rem;
  transition: transform 0.7s var(--ease);
}

.mosaic figure:hover img {
  transform: scale(1.04);
}

.mosaic figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(7, 22, 40, 0.78));
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
}

/* Feature list / pathways */
.pathways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pathway {
  padding: 1.5rem 1.35rem 1.4rem;
  border-top: 3px solid var(--navy);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 241, 246, 0.55));
}

.pathway h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--navy);
}

.pathway p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.pathway a {
  color: var(--red);
  font-weight: 600;
  font-size: 0.92rem;
}

.pathway a:hover {
  text-decoration: underline;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Leadership */
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.person {
  text-align: left;
  padding: 0.25rem 0 0.5rem;
  border-top: 3px solid var(--navy);
}

.person h3 {
  margin: 1rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--navy);
}

.person .role {
  margin: 0 0 0.65rem;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.person p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Membership tiers — interactive forms, so bordered panels OK */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.tier {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem;
  background: var(--white);
  border: 1px solid rgba(12, 35, 64, 0.1);
  border-radius: 0.9rem;
  box-shadow: 0 10px 28px rgba(7, 22, 40, 0.06);
}

.tier.featured {
  border-color: var(--navy);
  background: linear-gradient(180deg, #102a4a, #0c2340);
  color: var(--white);
}

.tier.featured p,
.tier.featured li {
  color: rgba(255, 255, 255, 0.82);
}

.tier h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.tier .price {
  margin: 0 0 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red);
}

.tier.featured .price {
  color: #ffb3bf;
}

.tier ul {
  margin: 0 0 1.4rem;
  padding-left: 1.1rem;
  flex: 1;
  color: var(--muted);
}

.tier li + li {
  margin-top: 0.4rem;
}

/* Blog */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.post {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.post-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.9rem;
  margin-bottom: 1rem;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.post:hover .post-thumb img {
  transform: scale(1.05);
}

.post time {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.post h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy);
  line-height: 1.2;
}

.post p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.96rem;
  flex: 1;
}

.post a.read {
  color: var(--red);
  font-weight: 600;
  font-size: 0.92rem;
}

.article {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3.5rem 0 4.5rem;
}

.article header {
  margin-bottom: 2rem;
}

.article h1 {
  margin: 0.4rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--navy);
  line-height: 1.15;
}

.article .meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.article .lead-img {
  border-radius: 1rem;
  overflow: hidden;
  margin: 0 0 1.75rem;
  box-shadow: var(--shadow);
}

.article .lead-img img {
  width: 100%;
  height: auto;
  max-height: 28rem;
  object-fit: cover;
}

.article p {
  color: var(--ink);
  margin: 0 0 1.1rem;
}

/* Donate form */
.donate-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.donate-panel {
  background: var(--white);
  border: 1px solid rgba(12, 35, 64, 0.1);
  border-radius: 1rem;
  padding: 1.6rem;
  box-shadow: 0 12px 32px rgba(7, 22, 40, 0.07);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1rem 0 1.2rem;
}

.amount-btn {
  border: 1px solid rgba(12, 35, 64, 0.15);
  background: var(--paper);
  color: var(--navy);
  border-radius: 0.5rem;
  padding: 0.85rem 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.amount-btn:hover,
.amount-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(12, 35, 64, 0.16);
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(196, 30, 58, 0.35);
  border-color: var(--red);
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  background: rgba(12, 35, 64, 0.06);
  color: var(--navy);
  font-weight: 600;
}

.form-success.show {
  display: block;
}

.facts {
  display: grid;
  gap: 1rem;
}

.fact {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(12, 35, 64, 0.08);
}

.fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fact strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.fact span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Events */
.timeline {
  display: grid;
  gap: 1.25rem;
}

.event {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(12, 35, 64, 0.08);
}

.event-date {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.event h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy);
}

.event p {
  margin: 0;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-details dt {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.contact-details dd {
  margin: 0.25rem 0 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.contact-details a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-soft) 55%, #1a2f4d);
  padding: 4rem 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 120%;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.28), transparent 60%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.cta-band p {
  margin: 0;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--white);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.92rem;
  max-width: 22rem;
}

.site-footer h4 {
  margin: 0 0 0.85rem;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.legal-line {
  color: rgba(255, 255, 255, 0.65);
}

/* Animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .split,
  .split.reverse,
  .donate-layout,
  .contact-grid,
  .footer-grid,
  .mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic {
    min-height: auto;
  }

  .mosaic figure:first-child {
    grid-row: auto;
    min-height: 16rem;
  }

  .pathways,
  .people,
  .tiers,
  .posts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.1rem;
    background: rgba(247, 248, 251, 0.98);
    border-bottom: 1px solid rgba(12, 35, 64, 0.08);
    box-shadow: 0 16px 30px rgba(7, 22, 40, 0.08);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav .nav-cta {
    margin: 0.4rem 0 0;
    text-align: center;
  }

  .brand-text span {
    max-width: 11rem;
  }

  .pathways,
  .people,
  .tiers,
  .posts {
    grid-template-columns: 1fr;
  }

  .event {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .amount-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content,
  .page-hero .hero-content {
    padding-bottom: 2.5rem;
  }
}
