/* ============================================================
   CognoCon 2027 — Stylesheet
   Organized by: variables > reset > utilities > components > sections > responsive
   ============================================================ */

/* -------------------- Brand variables -------------------- */
:root {
  --black: #070707;
  --charcoal: #171717;
  --gold: #FDC426;
  --gold-dark: #DCA500;
  --white: #FFFFFF;
  --off-white: #F5F2ED;
  --gray: #BDBDBD;

  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1400px;
  --gutter: 32px;

  --transition: 0.25s ease;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* safety net against any stray horizontal overflow */
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* -------------------- Section headings -------------------- */
.section-heading {
  font-size: clamp(1.5rem, 2vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 48px;
}
.section-heading.light { color: var(--white); }
.section-heading.dark { color: var(--charcoal); }
.section-heading.gold { color: var(--gold); }
.section-heading.left { text-align: left; margin-bottom: 20px; }
.section-heading.small { font-size: 1.15rem; margin-bottom: 24px; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--black); }

.btn-black {
  background: var(--black);
  color: var(--gold);
  border-color: var(--black);
}
.btn-black:hover { background: var(--charcoal); }

.btn-outline-dark {
  background: rgba(7, 7, 7, 0.15);
  color: var(--black);
  border-color: var(--black);
  backdrop-filter: blur(2px);
}
.btn-outline-dark:hover { background: var(--black); color: var(--gold); }

.gold { color: var(--gold); }
.white { color: var(--white); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(253, 196, 38, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img { height: 40px; width: auto; }

.primary-nav ul {
  display: flex;
  gap: 28px;
}
.primary-nav a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.primary-nav a:hover { color: var(--gold); }
.primary-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle-bar {
  width: 26px;
  height: 2px;
  background: var(--gold);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 480px;
  background: var(--black);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  opacity: 0.55;
  filter: grayscale(30%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7,7,7,0.97) 0%, rgba(7,7,7,0.85) 32%, rgba(7,7,7,0.35) 58%, rgba(220,165,0,0.25) 78%, rgba(253,196,38,0.35) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 30px;
  padding-bottom: 30px;
}
.hero-content { max-width: 720px; }
.hero-year {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(253,196,38,0.4);
  padding-bottom: 22px;
  display: inline-block;
}
.hero-desc {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Gold "badge" background ensures the date/location text stays legible
   whether it sits over the hero photo, the gold triangle, or (on mobile)
   the plain dark hero background. */
.hero-info-card {
  position: absolute;
  top: 40px;
  right: var(--gutter);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--black);
  background: var(--gold);
  padding: 14px 20px;
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.hero-info-icon { font-size: 1.8rem; flex-shrink: 0; }
.hero-info-date { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.5px; white-space: nowrap; }
.hero-info-loc { font-weight: 600; font-size: 0.9rem; letter-spacing: 1px; white-space: nowrap; }

.hero-cards {
  position: absolute;
  bottom: 40px;
  right: 60px;
  width: 200px;
  height: auto;
  z-index: 2;
  opacity: 0.85;
}

/* ============================================================
   TRACKS
   ============================================================ */
.tracks {
  background: var(--black);
  padding: 64px 0 56px;
}
.tracks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.track-card {
  border: 1px solid var(--gold);
  padding: 32px;
  background: rgba(253, 196, 38, 0.03);
}
.track-icon {
  color: var(--gold);
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.track-card h3 {
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.track-card ul li {
  color: var(--white);
  font-size: 0.95rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.track-card ul li:last-child { border-bottom: none; }

.tracks-note {
  text-align: center;
  color: var(--gray);
  margin-top: 32px;
  font-size: 0.95rem;
}
.tracks-note i { color: var(--gold); margin-right: 8px; }

/* ============================================================
   WHY ATTEND
   ============================================================ */
.why-attend {
  background: var(--off-white);
  padding: 64px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.why-item {
  padding: 0 20px;
  text-align: center;
  border-left: 1px solid rgba(220,165,0,0.35);
}
.why-item:first-child { border-left: none; }
.why-icon {
  font-size: 2rem;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.why-item h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.3;
}
.why-item p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
}

/* ============================================================
   BRIDGING ACADEMIA & INDUSTRY
   ============================================================ */
.bridging {
  position: relative;
  background: var(--black);
  padding: 72px 0;
  overflow: hidden;
}
.bridging-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bridging-inner {
  position: relative;
  z-index: 2;
  display: grid;
  /* minmax(0, ...) stops these grid tracks from being forced wider than the
     viewport by the diagram's intrinsic content width (the default grid
     item min-width is "auto", which does not shrink below content size). */
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: center;
}
.bridging-text,
.bridging-diagram {
  min-width: 0;
}
.bridging-text p {
  color: var(--gray);
  margin-bottom: 24px;
  max-width: 420px;
}

/* Mobile-first: stacked column with a downward arrow by default. This does
   not depend on a specific device-width media query matching correctly
   (some in-app browsers/previewers report viewport widths inconsistently),
   so the diagram always renders in a layout its content actually fits. The
   row layout is opt-in at a comfortably wide viewport instead. */
.bridging-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.diagram-node {
  text-align: center;
  color: var(--white);
}
.diagram-node i {
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.diagram-label {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.diagram-sub { font-size: 0.85rem; color: var(--gray); line-height: 1.4; }

.diagram-arrow {
  color: var(--gold);
  font-size: 1.4rem;
  /* display must be inline-block (not the default inline) for `transform`
     to take effect — Safari/WebKit strictly follows the spec that ignores
     transforms on non-replaced inline elements, unlike some other browsers. */
  display: inline-block;
  transform: rotate(90deg);
}

@media (min-width: 900px) {
  .bridging-diagram {
    flex-direction: row;
    gap: 20px;
  }
  .diagram-arrow { transform: rotate(0deg); }
}

.diagram-circle {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}
.diagram-circle-title {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.diagram-circle-sub {
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ============================================================
   FEATURED EXPERIENCES
   ============================================================ */
.experiences {
  background: var(--off-white);
  padding: 64px 0;
}
.experiences-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.exp-item {
  padding: 0 20px;
  text-align: center;
  border-left: 1px solid rgba(220,165,0,0.35);
}
.exp-item:first-child { border-left: none; }
.exp-icon {
  font-size: 1.9rem;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.exp-item h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.3;
}
.exp-item p {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.5;
}

/* ============================================================
   JOIN THE CONVERSATION (CTA)
   ============================================================ */
.join-cta {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
}
.join-cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.join-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(253,196,38,0.85), rgba(220,165,0,0.7));
}
.join-cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.join-cta-text { max-width: 620px; }
.join-cta-text .section-heading { color: var(--black); }
.join-cta-text p { color: rgba(7,7,7,0.85); font-size: 1rem; }
.join-cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   PREVIOUS CONFERENCE / ARCHIVE + STAY CONNECTED
   ============================================================ */
.archive {
  background: var(--black);
  padding: 56px 0;
  border-top: 1px solid rgba(253,196,38,0.15);
}
.archive-inner {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.archive-card {
  position: relative;
  display: block;
  border: 1px solid var(--gold);
  overflow: hidden;
  aspect-ratio: 6 / 3;
}
.archive-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.archive-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,7,0.1), rgba(7,7,7,0.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}
.archive-year { color: var(--white); font-size: 1.8rem; font-weight: 800; line-height: 1; }
.archive-tagline { color: var(--gold); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-top: 4px; }

.archive-middle h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 12px; text-transform: uppercase; }
.archive-middle p { color: var(--gray); margin-bottom: 20px; font-size: 0.95rem; }

.archive-right h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 16px; text-transform: uppercase; }
.social-list {
  display: flex;
  gap: 12px;
}
.social-list a,
.social-list button {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: background var(--transition), color var(--transition);
}
.social-list button {
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.social-list a:hover,
.social-list button:hover { background: var(--gold); color: var(--black); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(253,196,38,0.15);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: start;
}
.footer-logo img { height: 36px; width: auto; }

.footer-nav {
  display: flex;
  gap: 56px;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--gray);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }

.footer-meta {
  text-align: right;
  color: var(--gray);
  font-size: 0.85rem;
}
.footer-meta p { margin-bottom: 6px; }
.footer-meta a.gold:hover { color: var(--gold-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  .why-grid, .experiences-grid { grid-template-columns: repeat(3, 1fr); }
  .why-item, .exp-item { border-left: none; margin-bottom: 32px; }
  .why-item:nth-child(3n+1), .exp-item:nth-child(3n+1) { border-left: none; }

  .archive-inner { grid-template-columns: 200px 1fr; }
  .archive-right { grid-column: 1 / -1; }

  .bridging-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .bridging-text { text-align: center; }
  .bridging-text p { margin-left: auto; margin-right: auto; }
  .bridging-diagram { margin-top: 32px; }
}

/* Tablet / mobile: 768px */
@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    border-bottom: 1px solid rgba(253,196,38,0.15);
  }
  .primary-nav.open { max-height: 480px; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
  }
  .primary-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .hero { min-height: auto; padding-top: 20px; }
  .hero-inner { padding-top: 32px; display: flex; flex-direction: column; }
  .hero-info-card {
    position: static;
    display: inline-flex;
    order: -1;
    margin-bottom: 24px;
    align-self: flex-start;
  }
  .hero-content { max-width: 100%; }
  .hero-cards { display: none; }

  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { text-align: center; }

  .tracks-grid { grid-template-columns: 1fr; }

  .why-grid, .experiences-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .why-item, .exp-item { border-left: none; }

  .join-cta-inner { flex-direction: column; align-items: flex-start; }
  .join-cta-buttons { flex-direction: column; align-items: stretch; }
  .join-cta-buttons .btn { text-align: center; }

  .archive-inner { grid-template-columns: 1fr; }
  .archive-card { max-width: 260px; }

  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-nav { flex-wrap: wrap; gap: 32px; }
  .footer-meta { text-align: left; }
}

/* Phone: 430px */
@media (max-width: 430px) {
  .why-grid, .experiences-grid { grid-template-columns: 1fr; }
  .hero-title { border-bottom: none; padding-bottom: 0; }
  .footer-nav { flex-direction: column; gap: 24px; }
}
