/* ==========================================================================
   AES 2026 Landing — page-specific layout
   --------------------------------------------------------------------------
   Lives on the HCP side but has its OWN chrome (no site nav / utility bar /
   footer). Inherits design tokens, fonts ('Gotham'), reset, base type and
   buttons from 2026-assets/css/style.css — this file only adds what's unique.

   Convention: full-bleed <section> / bars; inner content capped by
   .aes-container (max 1440, 20px side padding). Reuse --brand-* / --gray-*.
   ========================================================================== */

/* --- Shared container: 1440 max, 20px gutters --- */
.aes-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.aes {
  background: var(--color-white);
  color: var(--color-body-text);
}

/* ==========================================================================
   Header bar
   132px tall, full-bleed gradient; inner capped by .aes-container.
   ========================================================================== */
.aes-header {
  width: 100%;
  background: linear-gradient(90deg, #0DA4D1 0%, #384C9D 97.33%);
}

.aes-header__inner {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo stays ~38px tall on desktop AND mobile */
.aes-header__logo { display: inline-flex; align-items: center; }
.aes-header__logo img { height: 38px; width: auto; display: block; }

/* Right-side: two stacked lines, right-aligned */
.aes-header__social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Shared type for both header text lines (differ only by color) */
.aes-header__booth,
.aes-header__follow-label {
  font-weight: 700;
  font-size: 17px;
  line-height: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.aes-header__booth        { color: #FFEB16; }
.aes-header__follow-label { color: #8BD5EE; }

/* FOLLOW US + icons on one row: 24px between label and the icon group */
.aes-header__follow {
  display: flex;
  align-items: center;
  gap: 24px;
}
.aes-header__icons {
  display: flex;
  align-items: center;
  gap: 12px;           /* between the two icons */
}
.aes-header__icons a   { display: inline-flex; }
.aes-header__icons img { height: 20px; width: auto; display: block; }

/* ==========================================================================
   Hero
   Frame matches the HCP hero (20px frame, 30px inner radius). 30px gap under
   the header (via the frame's top padding). Fixed heights (not 100vh).
   ========================================================================== */
.aes-hero {
  width: 100%;
  padding: 30px 20px 0;      /* 30px under header; 20px L/R frame. Bottom 0 → 100px total to events */
}

.aes-hero__inner {
  position: relative;
  max-width: 1440px;
  width: 100%;
  height: 527px;             /* desktop */
  margin: 0 auto;
  border-radius: 24px;       /* main-container convention: 24 desktop / 16 mobile */
  overflow: hidden;
}

.aes-hero__media {
  position: absolute;
  inset: 0;
  background-image: url('../images/landing/desktop-hero-image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Subtle scrim for white/yellow legibility over the photo (adjustable) */
.aes-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
              rgba(5, 20, 45, 0.45) 0%,
              rgba(5, 20, 45, 0.12) 32%,
              rgba(5, 20, 45, 0)   55%);
}

.aes-hero__content {
  position: absolute;
  left: 64px;
  bottom: 56px;
  max-width: 620px;
}

.aes-hero__eyebrow {
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFEB16;
  margin-bottom: 16px;
}

.aes-hero__title {
  font-weight: 400;          /* Book */
  font-size: 56px;
  line-height: 110%;
  letter-spacing: -0.04em;
  color: var(--color-white);
}

.aes-hero__reg {
  font-size: 0.88em;
  vertical-align: baseline;
  position: relative;
  top: -0.1em;
  letter-spacing: 0;
}

/* ==========================================================================
   NeuroPace Events at AES
   Section content capped at 1200 (narrower than the 1440 page container).
   ========================================================================== */
.aes-events {
  padding: 100px 0;
}

/* Stacked event sections share one 100px gap (not 100 + 100) */
.aes-events + .aes-events {
  padding-top: 0;
}

/* This section's inner is 1200 max, centered (keeps the 20px gutters) */
.aes-events .aes-container {
  max-width: 1200px;
}

.aes-events__eyebrow {
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00B2E5;
  margin-bottom: 50px;          /* 50px below the type is the card */
}

/* --- Event card (two columns, gradient bg) --- */
.aes-events__card {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding: 72px 80px;
  background: linear-gradient(180deg, #30408A 0%, #3083BE 132.5%), #E2F1F5;
  border-radius: 24px;       /* main-container convention: 24 desktop / 16 mobile */
}

.aes-events__main    { flex: 1 1 auto; min-width: 0; }
.aes-events__speakers {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Left column type */
.aes-events__kicker {
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #FFEB16;
  margin-bottom: 24px;
}

.aes-events__title {
  font-weight: 500;
  font-size: 40px;
  line-height: 46px;
  letter-spacing: normal;       /* override base h3 -2px leak */
  color: var(--color-white);
  margin-bottom: 24px;
}

.aes-events__copy {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white);
  margin-bottom: 32px;
}

/* Date / location rows */
.aes-events__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.aes-events__detail {
  display: flex;
  align-items: center;
  gap: 12px;
}
.aes-events__detail-icon { width: 36px; height: 36px; flex-shrink: 0; }
.aes-events__detail span {
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white);
}

/* Register button — HCP .btn styles, AES colors, no arrow */
.aes-events__register.btn {
  margin-top: 0;
  width: auto;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 18px;
  background: #00BFE6;
}
.aes-events__register.btn:hover   { background: #257BD4; }
.aes-events__register.btn::after  { display: none; }

/* Right column speakers */
.aes-events__speaker {
  display: flex;
  align-items: center;
  gap: 24px;
}
.aes-events__speaker-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.aes-events__speaker-name {
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: #FFEB16;
}
.aes-events__speaker-role {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-white);
}

.aes-events__footnote {
  margin-top: 24px;
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: #535862;
}

/* --- Light variant (2026 AES Product Theater) --- */
.aes-events--light .aes-events__card    { background: #E2F1F5; }
.aes-events--light .aes-events__kicker  { color: #00BFE6; text-transform: none; letter-spacing: normal; }
.aes-events--light .aes-events__title   { color: #30408A; }   /* inferred from screenshot */
.aes-events--light .aes-events__copy    { color: #091A33; }
.aes-events--light .aes-events__detail span   { color: #5C6671; }
.aes-events--light .aes-events__speaker-name  { color: #00BFE6; }
.aes-events--light .aes-events__speaker-role  { color: #30408A; }  /* inferred from screenshot */

/* ==========================================================================
   Visit the Booth — contained CTA card (bg image has gradient + photo baked in)
   ========================================================================== */
.aes-booth-section {
  padding: 0 0 100px;   /* 100px gap above comes from the prior section's bottom */
}
.aes-booth-section .aes-container { max-width: 1200px; }

.aes-booth {
  position: relative;
  aspect-ratio: 2400 / 808;
  border-radius: 24px;              /* main-container convention: 24 desktop / 16 mobile */
  overflow: hidden;
  background-image: url('../images/landing/visit-booth.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.aes-booth__content {
  padding-left: 96px;
  padding-right: 24px;
  max-width: 680px;     /* type runs further into the image, per reference */
}

.aes-booth__title {
  font-weight: 500;                 /* Medium */
  font-size: 40px;
  line-height: 46px;
  letter-spacing: normal;
  text-transform: none;
  color: #FFEB16;
  margin-bottom: 24px;
}

.aes-booth__copy {
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: var(--color-white);
}
.aes-booth__copy + .aes-booth__copy { margin-top: 24px; }

/* ==========================================================================
   CTA banner — gradient band above the footer
   ========================================================================== */
.aes-cta {
  width: 100%;
  background: linear-gradient(232.22deg, #39499C -10.6%, #00B4E4 69.71%), #E2F1F5;
}
/* bg stays full-bleed; content capped at 1200 like the sections above */
.aes-cta .aes-container { max-width: 1200px; }

.aes-cta__inner {
  min-height: 298px;
  display: flex;
  align-items: center;
  gap: 72px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.aes-cta__title {
  flex: 1 1 0;
  font-weight: 400;                 /* Book */
  font-size: 44px;
  line-height: 56px;
  letter-spacing: -0.04em;
  text-transform: none;
  color: var(--color-white);
  margin: 0;
}

.aes-cta__right { flex: 1 1 0; }

.aes-cta__copy {
  font-weight: 400;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin-bottom: 24px;
}

/* Contact button — HCP .btn styles, no arrow */
.aes-cta__btn.btn        { margin-top: 0; width: auto; }
.aes-cta__btn.btn::after { display: none; }

/* ==========================================================================
   Footer bar — black, full-bleed; content capped at 1200 (aligns w/ sections)
   ========================================================================== */
.aes-footer {
  width: 100%;
  background: #000;
}
.aes-footer .aes-container { max-width: 1200px; }
.aes-footer__inner {
  padding-top: 72px;
  padding-bottom: 56px;
}

/* ISI / legal — white, 16/22 book */
.aes-footer__isi {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.aes-footer__copy {
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-white);
}
.aes-footer__link {
  color: var(--color-white);
  text-decoration: underline;
}

.aes-footer__divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 40px 0 32px;
}

/* Bottom bar — ending text in grey #A4A7AE */
.aes-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.aes-footer__copyright,
.aes-footer__privacy {
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #A4A7AE;
}
.aes-footer__privacy { text-decoration: none; }
.aes-footer__privacy:hover { text-decoration: underline; }

.aes-footer__social {
  display: flex;
  align-items: center;
  gap: 20px;
}
.aes-footer__social a   { display: inline-flex; }
.aes-footer__social img { height: 20px; width: auto; display: block; }

/* ==========================================================================
   Responsive  (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {

  /* Header stacks; bar grows. Logo stays 38px. */
  .aes-header__inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .aes-header__social { align-items: flex-start; }

  /* Hero: taller, text moves to the TOP-left */
  .aes-hero__inner { height: 723px; border-radius: 16px; }

  .aes-hero__media {
    background-image: url('../images/landing/mobile-hero-image.png');
  }

  /* Scrim darkens the top (text sits up there on mobile) */
  .aes-hero__scrim {
    background: linear-gradient(180deg,
                rgba(5, 20, 45, 0.5) 0%,
                rgba(5, 20, 45, 0)  38%);
  }

  .aes-hero__content {
    left: 24px;
    right: 24px;
    top: 32px;
    bottom: auto;
    max-width: none;
  }

  .aes-hero__eyebrow { font-size: 18px; }
  .aes-hero__title   { font-size: 32px; }

  /* --- Events section --- */
  .aes-events { padding: 88px 0; }
  .aes-events__eyebrow { margin-bottom: 32px; }

  .aes-events__card {
    flex-direction: column;
    gap: 40px;
    padding: 40px 24px;
    border-radius: 16px;
  }
  .aes-events__speakers { flex: 1 1 auto; gap: 24px; }

  .aes-events__kicker { font-size: 16px; line-height: 24px; }
  .aes-events__title  { font-size: 30px; line-height: 38px; }
  .aes-events__copy   { font-size: 14px; line-height: 20px; }
  .aes-events__detail span { font-size: 14px; line-height: 20px; }

  .aes-events__speaker { gap: 12px; }
  .aes-events__speaker-img { width: 48px; height: 48px; }
  .aes-events__speaker-name,
  .aes-events__speaker-role { font-size: 14px; line-height: 18px; }

  .aes-events__footnote { font-size: 14px; line-height: 20px; }

  /* --- Visit the Booth: portrait bg, text top-left --- */
  .aes-booth {
    aspect-ratio: 690 / 1452;
    border-radius: 16px;
    align-items: flex-start;
    background-image: url('../images/landing/visit-booth-mobile.png');
  }
  .aes-booth__content { padding: 40px 32px; max-width: none; }
  .aes-booth__copy { font-size: 18px; }

  /* --- CTA banner: stack, keep type sizes --- */
  .aes-cta__inner {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  /* --- Footer --- */
  .aes-footer__inner { padding-top: 48px; padding-bottom: 40px; }
  .aes-footer__bottom { flex-wrap: wrap; row-gap: 24px; }
  .aes-footer__copyright { flex: 0 0 100%; }   /* own line; Privacy + icons below */
}
