/* ============================================================
   GIFTEd — page-specific.css
   Shared styles for all inner pages (about / events / impact / contact)
   Mirrors the nav + dropdown system built on index.html
   ============================================================ */

/* ── NAV (single-row, same as homepage) ── */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(20, 60, 75, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.2s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-utility { display: none !important; }

.nav-main {
  height: 90px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

/* Logo lockup: wordmark stacked over the full name */
.nav-logo-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-wordmark-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.01em;
}
.nav-logo-img {
  display: block;
  height: 34px;
  width: auto;
}
/* Kept in the markup for the old inline lockup; the stacked version needs no
   separator between the two lines. */
.nav-logo-wordmark-sep { display: none; }
.nav-logo-wordmark-sub {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-left: 40px;
}

/* The stacked lockup is 268px wide and the right-hand nav group is 708px, so
   below ~1072px the two collide. 1100px leaves a little slack. (The old
   single-row lockup needed 1440px, so this is still a real gain.) */
@media (max-width: 1100px) {
  .nav-logo-wordmark-sub { display: none; }
}
@media (max-width: 1180px) {
  .nav-main  { padding: 0 32px; }
  .nav-links { gap: 26px; }
  .nav-link  { font-size: 1rem; }
  .nav-right .btn { padding: 14px 26px; }
}

.nav-links {
  /* 'flex: 0' means basis 0% with shrink on, so the list collapses toward zero
     width and the links break onto a second row. Size to content and never wrap. */
  flex: 0 0 auto;
  flex-wrap: nowrap;
  position: static;
  display: flex;
  align-items: stretch;
  gap: 36px;
}

.nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}

/* Dropdowns — full-width unified panel */
/* The bar is 90px tall but the links were only as tall as their text, leaving a
   ~35px dead strip above the panel at top:90px. Crossing it dropped :hover and
   closed the menu. Full-height items make link and panel touch. */
/* every li, not just .nav-item — "Team" and "Contact" are bare <li> and were
   left top-aligned inside the stretched row */
.nav-links > li {
  position: static;
  display: flex;
  align-items: center;
  /* explicit, not stretch: .nav-links sits inside centred parents, so stretching
     only fills the text-height line box. A 90px box centred in the 90px bar
     spans it exactly, so the link reaches down to the panel at top:90px. */
  height: 90px;
}
.nav-links > li > .nav-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  min-height: 64px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  background: rgba(20, 60, 75, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(74,173,187,0.3);
  padding: 20px 80px;
  z-index: 998;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  /* grace period on the way out, so a diagonal flick toward a link in the panel
     does not slam it shut mid-move */
  transition-delay: 0.18s;
}

.nav-item:hover .dropdown,
.nav-item.open .dropdown,
.nav-item:focus-within .dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.dropdown-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4AADBB;
  white-space: nowrap;
  margin-right: 8px;
  align-self: center;
  flex-shrink: 0;
}

.dropdown-sep {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.dropdown a {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.dropdown a:hover {
  color: #fff;
  border-bottom-color: #4AADBB;
}

.nav-right .btn {
  margin-left: 16px;
  padding: 16px 36px;
  font-size: 0.82rem;
}

/* Hamburger morph */
.nav-hamburger span { transform-origin: center; }
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-overlay {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.nav-mobile-overlay.open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}
.nav-mobile-overlay .nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* ── PAGE HERO (short banner for inner pages) ── */

.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  /* Top-aligned, not bottom-aligned. Bottom-anchoring made the gap under the
     nav depend on how many lines the headline wrapped to, so every page sat at
     a different height. Anchoring to the top makes that distance identical
     everywhere, with enough clearance that a browser notification bar cannot
     push the text under the fixed 90px nav. */
  align-items: flex-start;
  padding: 168px 80px 72px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,13,13,0.78) 0%,
    rgba(13,13,13,0.45) 50%,
    rgba(13,13,13,0.35) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.page-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4AADBB;
  margin: 0 0 14px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  margin: 0;
  border-left: 4px solid #4AADBB;
  padding-left: 20px;
}

.page-hero-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 540px;
  margin: 20px 0 0;
}

/* ── GENERIC INNER SECTIONS ── */

.inner-section {
  padding: 110px 80px;
}
.inner-section--cream  { background: #FDFAF6; }
.inner-section--paper  { background: #F7F4F0; }
.inner-section--teal   { background: #1A5C6B; }
.inner-section--plum   { background: #6B2D5E; }

.inner-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.inner-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #D4622A;
  margin: 0;
}
.inner-eyebrow--teal { color: #4AADBB; }

.inner-divider {
  width: 48px;
  height: 2px;
  background: #D4622A;
  margin: 16px 0;
}

.inner-heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #0D0D0D;
  line-height: 1.2;
  margin: 0;
}
.inner-heading--light { color: #fff; }

.inner-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #6B6B6B;
  line-height: 1.75;
  margin: 18px 0 0;
  max-width: 640px;
}
.inner-sub--light { color: rgba(255,255,255,0.78); }

/* Two-column split */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  display: block;
}

/* ── TEAM GRID ── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.team-card {
  background: #FDFAF6;
  border-radius: 12px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: #1A5C6B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.team-avatar--orange { background: #D4622A; }
.team-avatar--plum   { background: #6B2D5E; }
.team-avatar--mid    { background: #2B7A8F; }

.team-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0D0D0D;
  margin: 0;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4AADBB;
  margin: 8px 0 0;
}

.team-bio {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #6B6B6B;
  line-height: 1.65;
  margin: 14px 0 0;
}

/* ── EVENT CARDS ── */

.event-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.event-card {
  background: #FDFAF6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.event-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.event-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-card-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4AADBB;
  margin: 0 0 10px;
}

.event-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #0D0D0D;
  line-height: 1.25;
  margin: 0;
}

.event-card-text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #6B6B6B;
  line-height: 1.65;
  margin: 12px 0 18px;
  flex: 1;
}

.event-card-loc {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #1C1C1C;
}

/* ── GOAL / TIMELINE BLOCKS (impact page) ── */

.goal-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.goal-block {
  border-radius: 12px;
  padding: 40px 32px;
  background: #FDFAF6;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-top: 4px solid #4AADBB;
}
.goal-block--current { border-top-color: #D4622A; }
.goal-block--future  { border-top-color: #6B2D5E; }

.goal-block-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4AADBB;
  margin: 0 0 14px;
}
.goal-block--current .goal-block-tag { color: #D4622A; }
.goal-block--future  .goal-block-tag { color: #6B2D5E; }

.goal-block-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0D0D0D;
  line-height: 1.25;
  margin: 0;
}

.goal-block-text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #6B6B6B;
  line-height: 1.7;
  margin: 14px 0 0;
}

/* Progress bar */
.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(26,92,107,0.12);
  margin-top: 24px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(to right, #1A5C6B, #4AADBB);
  transition: width 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #6B6B6B;
  margin-top: 10px;
  letter-spacing: 0.06em;
}

/* ── CONTACT ── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid #D9D4CE;
}
.contact-method:last-child { border-bottom: none; }

.contact-method-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(74,173,187,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0D0D0D;
  margin: 0;
}

.contact-method-text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #6B6B6B;
  line-height: 1.6;
  margin: 6px 0 0;
}

.contact-method-text a {
  color: #D4622A;
  font-weight: 600;
  transition: opacity 0.15s ease;
}
.contact-method-text a:hover { opacity: 0.75; }

/* ── PLUM CTA (shared) ── */

.plum-section {
  background: #6B2D5E;
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.plum-heading {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

.plum-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin: 16px 0 0;
}

.plum-left .btn { margin-top: 32px; }

.plum-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.plum-col-header {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4AADBB;
  margin: 0 0 16px;
}

.plum-col a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.15s ease;
}
.plum-col a:hover { color: #fff; }

/* Social row: brand glyphs instead of words. Laid out as a row of round
   targets, so it reads as a set rather than three more text links. */
.plum-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.plum-col .plum-social a {
  /* 44px keeps the tap target at the accessible minimum */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.78);
  transition: background 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}
.plum-col .plum-social a:hover {
  background: #4AADBB;
  border-color: #4AADBB;
  color: #fff;
  transform: translateY(-2px);
}
.plum-col .plum-social a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.plum-social svg { width: 19px; height: 19px; display: block; }

/* ── FOOTER BAR (shared) ── */

.footer-bar {
  background: #4A1F42;
  padding: 20px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bar-copy {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.footer-bar-made {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}

/* ── MOBILE ── */

@media (max-width: 768px) {
  .nav-main { padding: 0 24px; }
  .nav-right .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .nav-hamburger { display: flex; }

  /* Same top-aligned reasoning as desktop, scaled for the narrower bar. */
  .page-hero {
    padding: 140px 24px 56px;
    min-height: 62vh;
    height: auto;
  }

  .inner-section { padding: 64px 24px; }
  .split-grid    { grid-template-columns: 1fr; gap: 48px; }
  .team-grid     { grid-template-columns: 1fr 1fr; gap: 20px; }
  .event-list    { grid-template-columns: 1fr; }
  .goal-blocks   { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; gap: 48px; }

  .plum-section {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 24px;
  }
  .plum-links { grid-template-columns: 1fr 1fr; }

  .footer-bar {
    padding: 20px 24px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

