/* ==========================================================================
   APYC Foundation — Official Site (placeholder static build)
   Design tokens reused from the journal platform so both sites share a look.
   ========================================================================== */

:root {
  --bg: #f6f9fc;
  --paper: #ffffff;
  --paper-alt: #f9fbfd;
  --line: #dde7f0;
  --text: #16324f;
  --muted: #60758b;
  --blue: #1769aa;
  --blue-deep: #0e4a84;
  --teal: #168c8d;
  --shadow: 0 10px 28px rgba(22, 50, 79, 0.06);
  --shadow-lg: 0 20px 48px rgba(22, 50, 79, 0.1);
  --radius: 20px;
}

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

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-deep); }
img { max-width: 100%; }

.page-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Utility bar ---------- */
.utility-bar { border-bottom: 1px solid var(--line); background: #f7fbfe; }
.utility-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px;
}
.utility-inner p, .utility-inner a {
  margin: 0; color: var(--muted); font-size: 0.82rem; text-decoration: none;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 70px;
}
.brand-lockup { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: 300px; max-width: 60vw; height: auto; }
.nav-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 600;
  position: relative; padding: 4px 0;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--blue-deep); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--teal);
}
.nav-actions { display: flex; gap: 10px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 20px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 0.92rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; }
.button-secondary { border: 1px solid var(--line); background: #fff; color: var(--text); }
.button-ghost { border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.09); color: #fff; }

/* ---------- Surfaces ---------- */
.card-surface {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 540px;
  margin-top: 18px; border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(11,23,32,.78) 0%, rgba(11,23,32,.5) 34%, rgba(11,23,32,.22) 60%, rgba(11,23,32,.55) 100%),
    url("../img/hero.jpg") center/cover no-repeat;
  display: flex; align-items: center;
}
.hero-inner { padding: 48px 44px; max-width: 640px; }
.hero .eyebrow { color: #8fe3e4; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 5.6vw, 4.4rem); line-height: 1; max-width: 14ch; }
.hero p.lead { color: rgba(255,255,255,.9); font-size: 1.08rem; line-height: 1.6; max-width: 48ch; margin: 18px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* page hero (sub-pages) — shorter */
.page-hero { min-height: 320px; }
.page-hero .hero-inner { padding: 40px 44px; }

/* ---------- Typography ---------- */
.eyebrow, .section-tag, .meta-line {
  margin: 0 0 10px; color: var(--teal); font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: "Cormorant Garamond", serif; color: var(--text); line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.34rem; }
.lead, .section-summary, p.body { color: var(--muted); line-height: 1.65; }
.section-summary { max-width: 56ch; }

/* ---------- Section blocks ---------- */
main { padding-bottom: 20px; }
.section-block { margin: 40px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 18px; margin-bottom: 22px; flex-wrap: wrap;
}

/* ---------- Info ribbon ---------- */
.info-ribbon {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 16px; padding: 6px; margin-top: 18px;
}
.info-ribbon article { padding: 14px 20px; border-right: 1px solid var(--line); }
.info-ribbon article:last-child { border-right: none; }
.info-ribbon h3 { font-size: 1.05rem; margin-bottom: 6px; }
.info-ribbon p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Generic card grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Activity / post cards ---------- */
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card .post-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-card .post-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 0.82rem; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(22,140,141,.1); color: var(--teal);
  font-size: 0.72rem; font-weight: 700; letter-spacing: .04em;
}
.post-card h3 { font-size: 1.28rem; }
.post-card p { color: var(--muted); line-height: 1.6; font-size: 0.94rem; margin: 0; }
.post-card .text-link { margin-top: auto; padding-top: 8px; }
.text-link { color: var(--blue-deep); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Team / structure cards ---------- */
.org-tier-label {
  display: inline-block; margin: 28px 0 14px; padding: 6px 16px;
  border-radius: 999px; background: var(--paper-alt); border: 1px solid var(--line);
  color: var(--blue-deep); font-weight: 700; font-size: 0.85rem;
}
.team-card { padding: 0; overflow: hidden; text-align: center; }
.team-card .portrait {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  background: var(--paper-alt); border-bottom: 1px solid var(--line);
}
.team-card .team-body { padding: 18px 18px 22px; }
.team-card h3 { font-size: 1.3rem; margin-bottom: 2px; }
.team-card .role { color: var(--teal); font-weight: 700; font-size: 0.86rem; margin: 4px 0 10px; }
.team-card .bio { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin: 0; }

/* ---------- Product / related event cards ---------- */
.product-card {
  display: flex; flex-direction: column; gap: 14px; padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-kicker { display: flex; align-items: center; gap: 10px; }
.product-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff; font-family: "Cormorant Garamond", serif; font-size: 1.3rem; font-weight: 700;
}
.product-card h3 { font-size: 1.5rem; }
.product-card .product-type { color: var(--teal); font-weight: 700; font-size: 0.8rem; letter-spacing: .1em; text-transform: uppercase; }
.product-card p { color: var(--muted); line-height: 1.6; font-size: 0.95rem; margin: 0; flex: 1; }
.product-card .button { align-self: flex-start; margin-top: 4px; }
.product-card.is-pending { opacity: .92; }
.product-card.is-pending .product-badge { background: #b9c7d6; }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; height: 100%; object-fit: cover; }
.prose p { color: var(--text); line-height: 1.75; margin: 0 0 16px; }
.prose p.muted { color: var(--muted); }

/* values list */
.value-list { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.value-list li { padding-left: 28px; position: relative; color: var(--muted); line-height: 1.6; }
.value-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px;
  border-radius: 4px; background: var(--teal);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 32px 36px; flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-alt); margin-top: 48px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 40px 0; }
.footer-inner h4 { font-family: "Manrope", sans-serif; font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer-inner a { display: block; color: var(--text); text-decoration: none; font-size: 0.92rem; margin-bottom: 8px; }
.footer-inner a:hover { color: var(--blue-deep); }
.footer-inner p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.footer-logo { width: 240px; max-width: 100%; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: 0.82rem; text-align: center; }

/* placeholder hint banner (remove before launch) */
.placeholder-note {
  background: repeating-linear-gradient(45deg, #fff8e6, #fff8e6 10px, #fff3d6 10px, #fff3d6 20px);
  border: 1px dashed #e0c060; color: #8a6d1f; border-radius: 12px;
  padding: 10px 16px; font-size: 0.84rem; margin-top: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .info-ribbon { grid-template-columns: 1fr; }
  .info-ribbon article { border-right: none; border-bottom: 1px solid var(--line); }
  .info-ribbon article:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-inner { padding: 36px 24px; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}
