/* ════════════════════════════════════════════════════════════
   advisory.css
   Page-specific styles for the Advisory Board page.
   Depends on: styles.css (global tokens + reset + shared UI)
   Consistent with: secretariat.css (patterns, naming, visual language)
   ════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════
   HEADER OVERRIDES
   Inner pages get full opacity from pixel one (matches secretariat)
   ════════════════════════════════════════════════════════════ */
#main-header {
  background: rgba(5, 10, 14, 0.97);
}

/* Logo image height — matches secretariat logo sizing */
#main-header .logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* Nav links — match secretariat font/size/letter-spacing exactly */
#main-header nav a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--grey);
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

#main-header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}

#main-header nav a:hover {
  color: var(--teal);
}

#main-header nav a:hover::after {
  transform: scaleX(1);
}

/* Register CTA button in nav — matches secretariat .nav-cta */
#main-header .nav-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

#main-header .nav-cta:hover {
  background: var(--amber);
  color: var(--black);
}

/* Remove underline pseudo-element on CTA */
#main-header .nav-cta::after {
  display: none;
}

/* Mobile nav CTA */
.mobile-nav .nav-cta {
  display: inline-block;
  margin-top: 0.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav .nav-cta:hover {
  background: var(--amber);
  color: var(--black);
}


/* ════════════════════════════════════════════════════════════
   HERO SECTION  (#hero)
   Two-column grid: text left, image strip right.
   Matches secretariat hero visual language exactly —
   same diagonal stripe bg, same glow blob, same pill/title styles.
   ════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 70vh;
  padding: calc(68px + 5rem) var(--gutter) 5rem;
  overflow: hidden;
  z-index: 1;
  /* Diagonal stripe — identical to .sec-hero in secretariat */
  background:
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 40px,
      rgba(0, 194, 168, 0.04) 40px,
      rgba(0, 194, 168, 0.04) 41px
    ),
    var(--black);
}

/* Ambient glow blob — matches .sec-hero__glow exactly */
.hero-orb {
  position: absolute;
  top: -80px;
  right: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 194, 168, 0.14) 0%,
    rgba(245, 166, 35, 0.04) 50%,
    transparent 72%
  );
  pointer-events: none;
  animation: glow-drift 8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-30px, 30px) scale(1.08); }
}

/* Dark overlay sits behind content but above bg images */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 14, 0.35);
  z-index: 0;
  pointer-events: none;
}

/* Background slider images */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-bg-slider img.active {
  opacity: 0.18;
}

/* ── Left column: text content ───────────────────────────── */
.hero-kicker,
.hero-title,
.hero-sub,
.hero-meta {
  grid-column: 1;
  position: relative;
  z-index: 2;
}

/* Kicker — matches .hero-kicker in styles.css exactly */
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-kicker::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}

/* Title — matches .sec-hero__title in secretariat */
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 1.4rem;
}

.hero-title em {
  color: var(--teal);
  font-style: normal;
  position: relative;
  display: inline-block;
}

/* Amber underline accent — identical to secretariat */
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  transform: scaleX(0.6);
  transform-origin: left;
  animation: underline-grow 1s 0.5s ease forwards;
}

@keyframes underline-grow {
  to { transform: scaleX(1); }
}

/* Subtitle — matches .sec-hero__subtitle */
.hero-sub {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 52ch;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.7;
}

/* Meta items row — matches .hero-meta-item in styles.css */
.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-meta-item {
  border-left: 2px solid var(--teal);
  padding-left: 0.9rem;
}

.hero-meta-item .label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.hero-meta-item .value {
  font-family: var(--font-head);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1.2;
}

/* ── Right column: image strip ───────────────────────────── */
.hero-img-strip {
  grid-column: 2;
  grid-row: 1 / span 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-self: center;
  position: relative;
  z-index: 2;
  /* Fade in from right — matches .sec-hero__image-wrap animation */
  animation: hero-img-in 1s 0.3s ease both;
}

@keyframes hero-img-in {
  from { opacity: 0; transform: translateX(20px) scale(0.98); }
  to   { opacity: 1; transform: translateX(0)    scale(1);    }
}

.hero-img-strip img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  /* Matches .sec-hero__image filter */
  filter: brightness(0.75) saturate(0.85);
  transition: filter 0.3s ease, transform 0.4s ease;
  display: block;
}

.hero-img-strip img:hover {
  filter: brightness(0.95) saturate(1.05);
  transform: scale(1.02);
}

/* First image spans full width — teal corner accent to match secretariat image wrap */
.hero-img-strip img:first-child {
  grid-column: 1 / -1;
  height: 190px;
  position: relative;
}

/* Teal corner accent lines on first (featured) image — matches secretariat ::before/::after */
.hero-img-strip img:first-child {
  outline: none;
  box-shadow:
    inset 3px 3px 0 var(--teal),
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 194, 168, 0.12);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}

.breadcrumb__slash {
  color: var(--amber);
  font-size: 0.8rem;
}

.breadcrumb__link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.2s;
}

.breadcrumb__link:hover {
  color: var(--teal);
}

.breadcrumb__sep {
  color: var(--grey);
  font-size: 0.8rem;
}

.breadcrumb__current {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}


/* ════════════════════════════════════════════════════════════
   SECTION HEADINGS
   Matches secretariat .section-title sizing exactly
   ════════════════════════════════════════════════════════════ */
#board .section-title,
#register .section-title,
#venue .section-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.0;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 1.6rem;
}

#board .section-title em,
#register .section-title em,
#venue .section-title em {
  color: var(--teal);
  font-style: normal;
}

/* Section tag — matches secretariat .section-tag exactly */
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.section-tag::before {
  content: '//';
  color: var(--amber);
}


/* ════════════════════════════════════════════════════════════
   ADVISORY BOARD SECTION  (#board)
   ════════════════════════════════════════════════════════════ */
#board {
  background: var(--deep);
  border-top: 1px solid var(--line);
  padding-block: 6rem;
}

.board-intro-text {
  font-size: 1rem;
  color: var(--grey);
  max-width: 65ch;
  line-height: 1.75;
  margin-bottom: 3rem;
}

/* Board grid — 3-col default, featured card spans 2 */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ── Board card base — consistent with member-card in secretariat ── */
.board-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.board-card:hover {
  border-color: var(--teal);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 194, 168, 0.1);
}

/* Featured card (Chair): spans 2 cols, side-by-side image+text */
.board-card.featured {
  grid-column: span 2;
  flex-direction: row;
  /* Amber top border to distinguish chair — parallels amber accent in secretariat */
  border-top: 2px solid var(--amber);
}

/* ── Card image wrap ─────────────────────────────────────── */
.card-img-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Non-featured: image fills top of card */
.board-card:not(.featured) .card-img-wrap {
  width: 100%;
}

/* Featured: image takes left half */
.board-card.featured .card-img-wrap {
  width: 48%;
  min-height: 320px;
}

/* Card images — consistent with .member-img in secretariat */
.card-img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: top center;
  display: block;
  filter: brightness(0.85) saturate(0.9);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.board-card:hover .card-img {
  filter: brightness(0.95) saturate(1.05);
  transform: scale(1.04);
}

/* Featured image fills full height of card side */
.board-card.featured .card-img {
  height: 100%;
  min-height: 320px;
}

/* Emily Baird headshot contains whitespace, so contain within box */
#emily .card-img {
  object-fit: cover;
  background: rgba(10, 21, 32, 0.6);
}

/* Gradient overlay — matches .member-card__top structure */
.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 45%,
    rgba(5, 10, 14, 0.65) 100%
  );
  pointer-events: none;
}

/* ── Card body ───────────────────────────────────────────── */
.card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Role — matches .member-role in secretariat */
.card-role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.5rem;
}

/* Chair gets amber role label */
.board-card.featured .card-role {
  color: var(--amber);
}

/* Name — matches .member-name in secretariat */
.card-name {
  font-family: var(--font-head);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 0.8rem;
}

/* Bio — matches .member-bio typography */
.card-bio {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.75;
  flex: 1;
}

/* Top border accent on non-featured cards — teal, matches member-card hover */
.board-card:not(.featured) {
  border-top: 2px solid rgba(0, 194, 168, 0.25);
  transition: border-top-color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.board-card:not(.featured):hover {
  border-top-color: var(--teal);
}


/* ════════════════════════════════════════════════════════════
   REGISTER CTA SECTION  (#register)
   Matches global #register styles from styles.css
   ════════════════════════════════════════════════════════════ */
#register {
  background: linear-gradient(
    135deg,
    rgba(0, 194, 168, 0.1) 0%,
    rgba(245, 166, 35, 0.06) 100%
  );
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.register-inner {
  padding: 6rem var(--gutter);
  text-align: center;
}

.register-inner p {
  color: var(--grey);
  max-width: 55ch;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.register-inner .section-tag {
  justify-content: center;
}


/* ════════════════════════════════════════════════════════════
   VENUE SECTION  (#venue)
   Consistent with global #venue in styles.css
   ════════════════════════════════════════════════════════════ */
#venue {
  background: var(--black);
  border-top: 1px solid var(--line);
}

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.venue-text p {
  color: var(--grey);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* Venue highlights — matches .highlight-item in styles.css */
.venue-highlights {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.highlight-item::before {
  content: '→';
  color: var(--teal);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Venue image */
.venue-image {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.venue-img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.85) saturate(0.9);
  transition: filter 0.3s ease;
}

.venue-image:hover .venue-img {
  filter: brightness(0.95) saturate(1);
}


/* ════════════════════════════════════════════════════════════
   MAP SECTION  (#location-map)
   Matches secretariat .sec-event__map styling
   ════════════════════════════════════════════════════════════ */
#location-map {
  background: var(--black);
  padding: 0;
  border-top: 1px solid var(--line);
}

.map-full {
  height: 500px;
  width: 100%;
  /* Dark theme filter — identical to secretariat map */
  filter: grayscale(75%) invert(88%) hue-rotate(178deg) contrast(0.9);
  transition: filter 0.4s ease;
}

.map-full:hover {
  filter: grayscale(30%) invert(0%) hue-rotate(0deg) contrast(1);
}

.map-full iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


/* ════════════════════════════════════════════════════════════
   FOOTER
   Matches secretariat footer structure exactly
   ════════════════════════════════════════════════════════════ */
footer {
  background: var(--deep);
  border-top: 1px solid var(--line);
  padding: 4rem var(--gutter) 2rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Ambient glow — matches secretariat .footer-glow */
footer::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(0, 194, 168, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Footer top grid — matches secretariat .footer-top */
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Footer brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.6;
  max-width: 30ch;
}

/* Footer column headings — matches secretariat .footer-col__title */
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: block;
}

/* Footer links — matches secretariat */
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--grey);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--white);
}

/* Divider — matches secretariat .footer-divider */
.footer-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin-bottom: 1.6rem;
}

/* Footer bottom bar — matches secretariat .footer-bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Highlighted spans in footer bottom — matches secretariat */
.footer-bottom p span {
  color: var(--teal);
}


/* ════════════════════════════════════════════════════════════
   SCROLL REVEAL — matches secretariat delay helpers
   ════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 960px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {

  /* Hero: stack to single column */
  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(68px + 4rem);
    padding-bottom: 4rem;
  }

  .hero-kicker,
  .hero-title,
  .hero-sub,
  .hero-meta {
    grid-column: 1;
  }

  .hero-img-strip {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    margin-top: 1rem;
  }

  /* Board grid: 2 columns */
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Featured card spans full width, stacks vertically */
  .board-card.featured {
    grid-column: 1 / -1;
    flex-direction: column;
  }

  .board-card.featured .card-img-wrap {
    width: 100%;
    min-height: auto;
  }

  .board-card.featured .card-img {
    height: 280px;
  }

  /* Venue: single column */
  .venue-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Footer: 2-column grid */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 600px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* Hero title size — matches secretariat mobile title */
  .hero-title {
    font-size: 3.4rem;
  }

  /* Hero meta: stack  */
  .hero-meta {
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Hero image strip: single column */
  .hero-img-strip {
    grid-template-columns: 1fr;
  }

  .hero-img-strip img {
    height: 160px;
  }

  .hero-img-strip img:first-child {
    height: 180px;
  }

  /* Board grid: single column */
  .board-grid {
    grid-template-columns: 1fr;
  }

  .board-card.featured {
    grid-column: 1;
  }

  .board-card.featured .card-img {
    height: 240px;
  }

  /* Venue highlights: single column */
  .venue-highlights {
    grid-template-columns: 1fr;
  }

  /* Map height */
  .map-full {
    height: 300px;
  }

  /* Footer: single column */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}