/* ============================================================================
   Provincial Climate Change Indaba 2026 — design tokens & base styles
   ========================================================================== */

:root {
  /* Brand palette (Pantone): 8241 C, 871 C, 431 C / 497 C, 186 C, 148-8 U, 877 C, Process Black C, 7548 C */
  --black: #231f20;
  --near-black: #2c2728;
  --ink: #1a1a1a;
  --orange: #fecb00;
  --orange-dark: #cba200;
   --gaps: #ffca28;
  --navy: #5890a3;
  --navy-dark: #467382;
  --green: #07947c;
  --green-dark: #a6bb13;
  --red: #d2232a;
  --blue: #768187;
  --cream: #fdf9ed;
  --white: #ffffff;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-400: #a3a3a8;
  --gray-600: #6a6a70;
  --gray-800: #2b2b2e;

  --gold: #ffca28;

  /* Deep brand green used on the platform-intro / highlights / department blocks */
  --brand-green: #14532d;
  --brand-green-dark: #0f3d21;

  /* Primary / secondary brand palette */
  --primary: #a39161;
  --primary-dark: #8c7b52;
  --secondary: #f4ede0;
  --bg-light: #faf7f0;

  --leaf-green: #41AD49;

  /* Event logo colours (from the Gauteng Climate Change Indaba wordmark) */
  --logo-black: #000000;
  --logo-olive: #9fb233;
  --logo-teal: #07947c;

  --font-display: "Anton", "Archivo Black", "Arial Narrow", sans-serif;
  --font-eyebrow: "Magnolia Sky", cursive;
  --font-body: Arial;
  --font-montserrat: "Montserrat", sans-serif;
  --font-lato: "Lato", sans-serif;
  --font-script: "Fave Script Pro", "Yellowtail", cursive;
  --font-frutiger: "Frutiger Pro 55", Arial, sans-serif;
  --font-avenir: "Avenir LT Pro", Arial, sans-serif;
  --font-avenir-black: "Avenir LT Pro Black", Arial, sans-serif;

  --container: 1240px;
  --radius: 0px;
  --gap: 24px;
  --header-h: 84px;
}

/* ---------------------------------------------------------------------------
   Custom @font-face declarations
   ------------------------------------------------------------------------- */

@font-face {
  font-family: "Frutiger Pro 55";
  src: url("../fonts/Frutiger 55 Roman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fave Script Pro";
  src: url("../fonts/Fave-ScriptPro.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Avenir LT Pro";
  src: url("../fonts/AvenirLTProBlack.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
/* Separate, non-italic registration of the same file for the admin portal's
   headings (the "Avenir LT Pro" family above is locked to italic/500 for the
   public hero's stylised headline text) */
@font-face {
  font-family: "Avenir LT Pro Black";
  src: url("../fonts/AvenirLTProBlack.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0;
  letter-spacing: 0.3px;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--primary); color: var(--white) !important; font-family: "Frutiger Pro 55"; }
.btn--primary:hover { background: var(--primary-dark); }

.btn--outline-light { background: transparent; color: var(--white); border-color: var(--white); font-family: var( --font-montserrat)}
.btn--outline-light:hover { background: var(--white); color: var(--black); }

.btn--outline-dark { background: transparent; color: var(--black); border-color: var(--black);  font-family: var(--font-montserrat);}
.btn--outline-dark:hover { background: var(--black); color: var(--white); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); }

.btn--green { background: var(--primary); color: var(--white); font-family: var(--font-montserrat); font-weight: 700; }
.btn--green:hover { background: var(--primary-dark); }

.btn--outline-green { background: transparent; color: var(--primary); border-color: var(--primary); font-family: var(--font-montserrat); font-weight: 700; }
.btn--outline-green:hover { background: var(--primary); color: var(--white); }

.btn--outline-gold { background: transparent; color: var(--orange-dark); border-color: var(--orange-dark); font-family: var(--font-montserrat); font-weight: 700; }
.btn--outline-gold:hover { background: var(--orange-dark); color: var(--white); }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------------------------------------------------------------------------
   Eyebrow / headings / badges
   ------------------------------------------------------------------------- */

.eyebrow {
  display: block;
  font-family:var(--font-script); font-weight: 400;
  font-size: 15px;
  letter-spacing: 1.6px;
  color: var(--primary);
  margin-bottom: 14px;
}
.section--light .eyebrow,
.section--cream .eyebrow { color: var(--primary); }

.heading-xl { font-size: clamp(36px, 5.6vw, 64px); }
.heading-lg { font-size: clamp(26px, 3.6vw, 38px); font-family: var(--font-montserrat); font-weight: 800;}

.section-head { margin-bottom: 44px; }
.section-head .btn { margin-top: 20px; }

.badge {
  display: inline-block;
  font-family: var(--font-montserrat);
  font-size: 11px;
  letter-spacing: 0.8px;
  padding: 6px 12px;
  border-radius: 3px;
  color: var(--white);
  white-space: nowrap;
}
.badge--orange { background: var( --primary); color: var(--white); }
.badge--green  { background: var(--primary-dark); }
.badge--navy   { background: var(--primary); }
.badge--red    { background: var(--primary-dark); }
.badge--blue   { background: var(--primary); }

/* ---------------------------------------------------------------------------
   Section shells
   ------------------------------------------------------------------------- */

.section { padding: 88px 0; }
.section--dark  { background: var(--cream); color: var(--ink); }
.section--light { background: var(--bg-light); color: var(--ink); }
.section--cream { background: var(--cream); color: var(--ink); }
.section--navy  { background: var(--secondary); color: var(--ink); }
.section--gold  { background: var(--gold); color: var(--black); }
.section--tight { padding: 64px 0; }

.section--dark .eyebrow,
.section--navy .eyebrow { color: var(--primary); }
.section--gold .eyebrow { color: var(--black); }

hr.rule {
  border: none;
  border-top: 3px solid var(--black);
  margin: 0 0 40px;
}
.section--dark hr.rule,
.section--navy hr.rule { border-top-color: var(--gold); }

/* ---------------------------------------------------------------------------
   Placeholder image block (matches "to be supplied" mockups)
   ------------------------------------------------------------------------- */

.placeholder-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 160px;
  width: 100%;
  background: repeating-linear-gradient(
    135deg,
    var(--gray-800) 0 10px,
    var(--near-black) 10px 20px
  );
  color: var(--gray-400);
  border-radius: var(--radius);
  overflow: hidden;
}
.placeholder-box--light {
  background: repeating-linear-gradient(
    135deg,
    var(--gray-200) 0 10px,
    var(--gray-100) 10px 20px
  );
  color: var(--gray-600);
}
.placeholder-box svg { width: 30px; height: 30px; opacity: 0.8; }
.placeholder-box span {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  padding: 0 12px;
}
.placeholder-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------------------
   Header / navigation
   ------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 3px solid var(--primary);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  height: var(--header-h);
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.logo__img {
  height: 56px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

.nav { justify-self: center; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > li { position: relative; }

.nav__actions { display: flex; align-items: center; gap: 16px; justify-self: end; }
.nav__actions-logo { height: 40px; width: auto; object-fit: contain; }
.nav__links a {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}
.nav__links a:hover { color: var(--primary); }
.nav__links .btn { padding: 10px 18px; color: var(--black); }
.nav__links .btn:hover { color: var(--black); }

.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 12px;
  text-transform: none;
  font-weight: 500;
  border-radius: 4px;
}
.dropdown li a:hover { background: var(--primary); color: var(--white); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span { width: 24px; height: 2px; background: currentColor; display: block; }

/* ---------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero { 
  position: relative;
  background: var(--cream); 
  color: var(--ink);
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
  height: 600px;
}
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    /* strong, even cream scrim — your text spans nearly the full width */
    linear-gradient(
      180deg,
      rgba(244, 237, 224, 0.541) 0%,
      rgba(244, 237, 224, 0.635) 100%
    ),
    /* faint gold wash for brand tint, heavier at top/bottom edges */
    linear-gradient(
      180deg,
      rgba(163, 145, 97, 0.20) 0%,
      rgba(163, 145, 97, 0.02) 45%,
      rgba(163, 145, 97, 0.20) 100%
    );
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 90px 0 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.hero__date { margin-top: -20px !important; margin-left: 28px; }
.hero__content { margin-top: -40px; }

.hero__date .eyebrow { color: var(--primary); margin-bottom: 18px; }
.hero__date-stack {
  font-family: var(--font-display);
  line-height: 0.86;
}
.hero__date-stack .d1 { display: block; font-size: clamp(80px, 13vw, 150px); color: var(--primary); }
.hero__date-stack .d2 { display: block; font-size: clamp(80px, 13vw, 150px); color: var(--ink); margin-top: 6px; }
.hero__date-stack .d3 { display: block; font-size: clamp(80px, 13vw, 150px); color: var(--ink); }

.hero__headline { margin-bottom: 18px; }
.headline-gauteng { font-family: var(--font-avenir); font-weight: 500; font-style: italic; color: var(--logo-black); }
.headline-climate { font-family: var(--font-avenir); font-weight: 500; font-style: italic; color: var(--logo-black); }

.hero__headline .headline-script { display: inline-block; margin-top: -14px; }

.headline-script {
  font-family: var(--font-script);
  font-weight: 700;
  font-style: normal;
  text-transform: lowercase;
  color: var(--primary);
  font-size: 1.5em;
  line-height: 1;
}
.hero__sub { color: var(--gray-600); max-width: 520px; margin-bottom: 28px; }
.hero__sub--lato { font-family: var(--font-lato); font-weight: 400; font-style: italic; color: var( --ink);}
.hero__sub-highlight { display: inline-block; font-weight: 700; font-size: 18px; white-space: nowrap; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn--register-lato { font-family: var(--font-lato); font-weight: 300; }

/* ---------------------------------------------------------------------------
   Platform intro (replaces the former RSVP / Watch / Exhibitor action cards)
   ------------------------------------------------------------------------- */

.platform-intro__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.platform-intro__inner p { color: var(--gray-600); font-size: 15px; }
.platform-intro__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 12px; }

/* ---------------------------------------------------------------------------
   Highlights / live coverage band
   ------------------------------------------------------------------------- */

.highlights-live { background: var(--secondary); color: var(--ink); }
.highlights-live__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}
.highlights-live__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(26,26,26,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.highlights-live__icon svg { width: 24px; height: 24px; }
.highlights-live__item h3 {
  font-family: var(--font-montserrat); font-weight: 700; font-size: 20px;
  text-transform: none; margin-bottom: 10px;
}
.highlights-live__item p { color: rgba(26,26,26,0.75); margin-bottom: 22px; }

/* ---------------------------------------------------------------------------
   About / two-column layout
   ------------------------------------------------------------------------- */

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.about-image {
  width: 100%;
  border-radius: var(--radius);
  margin-top: 26px;
}

.numbered-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-800);
}
.section--light .numbered-list li,
.section--cream .numbered-list li,
.section--dark .numbered-list li { border-bottom-color: var(--gray-200); }
.numbered-list li:last-child { border-bottom: none; }
.numbered-list .num { font-family: var(--font-display); color: var(--primary); font-size: 18px; }
.section--light .numbered-list .num,
.section--cream .numbered-list .num { color: var(--primary); }

.lede { font-size: 17px; margin-bottom: 20px; }
.lede em { color: var(--primary); font-style: normal; }
.section--light .lede em,
.section--cream .lede em { color: var(--primary); }

.about-subhead {
  font-family: var(--font-montserrat); font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}

/* ---------------------------------------------------------------------------
   Our objectives
   ------------------------------------------------------------------------- */

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.objective-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.objective-card__bar { display: block; width: 32px; height: 3px; margin-bottom: 16px; }
.objective-card h4 { font-family: var(--font-montserrat); font-weight: 700; font-size: 15px; text-transform: none; margin-bottom: 10px; }
.objective-card p { font-size: 13px; color: var(--gray-600); margin: 0; }

/* ---------------------------------------------------------------------------
   Programme intro / themes
   ------------------------------------------------------------------------- */

.programme-intro { max-width: 640px; color: var(--gray-600); margin-top: 14px; }
.programme-note { max-width: 640px; color: var(--primary); font-size: 13px; margin-top: 10px; font-weight: 600; }
.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 34px 0 44px;
}
.theme-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
}
.theme-card h4 { font-family: var(--font-montserrat); font-weight: 700; font-size: 14px; text-transform: none; margin-bottom: 8px; }
.theme-card p { font-size: 12.5px; color: var(--gray-600); margin: 0; }
.draft-schedule-head { font-family: var(--font-montserrat); font-weight: 700; font-size: 16px; text-transform: none; margin-bottom: 6px; }
.draft-schedule-head span { font-weight: 400; color: var(--gray-600); font-size: 13px; text-transform: none; }

/* ---------------------------------------------------------------------------
   Horizontal scroll rows (news / media)
   ------------------------------------------------------------------------- */

.scroll-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.scroll-arrows { display: flex; gap: 10px; }
.scroll-arrow {
  width: 40px; height: 40px;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.scroll-arrow:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

.scroll-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  cursor: grab;
}
.scroll-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.scroll-track.is-dragging .scroll-card { pointer-events: none; }
.scroll-card {
  scroll-snap-align: start;
  flex: 0 0 280px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.scroll-card .placeholder-box { border-radius: 0; min-height: 150px; }
.scroll-card__body { padding: 18px; }
.scroll-card .badge { margin-bottom: 12px; }
.scroll-card h4 { font-family: var(--font-montserrat); font-weight: 700; font-size: 15px; line-height: 1.3; margin-bottom: 10px; }
.scroll-card time { font-size: 12px; color: var(--gray-600); }

/* ---------------------------------------------------------------------------
   Programme timeline
   ------------------------------------------------------------------------- */

.prog-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.prog-tab {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--black);
  font-family: var( --font-montserrat);
  font-size: 13px;
  letter-spacing: 0.6px;
  padding: 10px 20px;
  border-radius: 0px;
}
.prog-tab[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--white); }
.prog-panel.is-hidden { display: none; }

.timeline { border-top: 3px solid var(--black); }
.timeline-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}
.timeline-row time { font-family: var(--font-display); font-size: 18px; }
.timeline-row h4 { font-family: var(--font-montserrat); font-weight: 700; font-size: 16px; margin-bottom: 4px; text-transform: none; }
.timeline-row p { margin: 0; font-size: 13px; color: var(--gray-600); }
.timeline-note { margin-top: 20px; font-size: 13px; color: var(--gray-600); }

.timeline-toggle {
  display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700;
  color: var(--primary); background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit;
}
.timeline-details { display: none; margin-top: 12px; font-size: 13px; }
.timeline-details.is-open { display: block; }
.timeline-details .blurb { color: var(--gray-600); margin: 0 0 10px; }
.timeline-details .prog-people { margin: 0; padding: 0; list-style: none; }
.timeline-details .prog-people li { padding: 6px 0; border-top: 1px solid var(--gray-200); }
.timeline-details .prog-people li:first-child { border-top: 0; }
.timeline-details .name { font-weight: 700; }
.timeline-details .role { color: var(--gray-600); }

.timeline-parallel { padding: 20px 0; border-bottom: 1px solid var(--gray-200); }
.timeline-parallel__head {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: center;
}
.timeline-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.timeline-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px 18px; background: var(--cream); }
.timeline-card h5 { font-family: var(--font-montserrat); font-weight: 700; font-size: 15px; margin: 0 0 6px; text-transform: none; line-height: 1.3; }
.timeline-card .prog-room { font-size: 12px; color: var(--gray-600); margin-top: 10px; display: block; }

/* ---------------------------------------------------------------------------
   Venue
   ------------------------------------------------------------------------- */

.venue-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.venue-map { min-height: 340px; }
.venue-map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }
.venue-details dd { margin: 0 0 6px; color: var(--gray-600); }
.venue-details dt.strong { font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.venue-details { margin-bottom: 24px; }
.venue-note { font-size: 13px; color: var(--gray-600); margin-bottom: 22px; }
.venue-intro { max-width: 560px; color: var(--gray-600); margin-top: 14px; }

/* ---------------------------------------------------------------------------
   Department feature (MEC name card)
   ------------------------------------------------------------------------- */

.mec-card {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 20px 26px;
  border-radius: var(--radius);
  margin-top: 20px;
}
.mec-card__label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.mec-card__name {
  display: block;
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--white);
}

/* ---------------------------------------------------------------------------
   Speakers
   ------------------------------------------------------------------------- */


.headline-speakers { font-family: "Avenir LT Pro";; font-weight: 800;  font-style: italic; color: var(--logo-black); }
.headline-climate { font-family: var(--font-avenir); font-weight: 500; font-style: italic; color: var(--logo-black); }

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.speaker-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.speaker-card .placeholder-box { min-height: 150px; border-radius: 0; }
.speaker-card__body { padding: 16px 18px 20px; }
.speaker-card h4 { font-family: var(--font-montserrat); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.speaker-card .role-org { font-size: 12.5px; color: var(--gray-600); margin-bottom: 10px; }
.speaker-card .role-org .sep { margin: 0 5px; color: var(--gray-400); }
.speaker-card .bio-placeholder { font-size: 12.5px; font-style: italic; color: var(--gray-400); margin-bottom: 12px; }
.speaker-card .read-bio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  background: transparent;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  padding: 9px 16px;
  font-family: var(--font-montserrat);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.speaker-card .read-bio:hover { background: var(--primary); color: var(--white); }

/* ---------------------------------------------------------------------------
   Department feature band
   ------------------------------------------------------------------------- */

.department-feature { background: var(--secondary); color: var(--ink); }
.department-feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.department-feature__image { min-height: 340px; }
.department-feature__body p { color: rgba(26,26,26,0.75); margin: 18px 0 28px; max-width: 480px; }

/* ---------------------------------------------------------------------------
   Partners
   ------------------------------------------------------------------------- */

.section-subhead {
  font-family: var(--font-montserrat);
  font-weight: 700;
  font-size: 20px;
  text-transform: none;
  margin-bottom: 10px;
}
.muted-note { font-size: 13px; color: var(--gray-600); margin-bottom: 8px; }

.section-divider { border: none; border-top: 1px solid var(--gray-200); margin: 44px 0; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 26px 0 0;
}
.partner-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
}
.partner-card img { max-width: 100%; max-height: 60px; object-fit: contain; }
.partner-card a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* ---------------------------------------------------------------------------
   Exhibition
   ------------------------------------------------------------------------- */

.exhibition-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: start;
}
.exhibition-grid .placeholder-box { min-height: 220px; margin-bottom: 24px; }
.exhibitor-callout {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.exhibitor-callout h4 { font-family: var(--font-montserrat); font-weight: 700; font-size: 16px; text-transform: none; margin-bottom: 10px; }
.exhibitor-callout p { font-size: 13px; color: var(--gray-600); margin-bottom: 20px; }
.committee-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
}
.committee-list li:last-child { border-bottom: none; }
.committee-list strong { font-weight: 700; }
.exhibition-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-info a { text-decoration: underline; }
.contact-info p { color: var(--gray-300); }

/* ---------------------------------------------------------------------------
   Modal section divider (centred label over a rule — Register modal)
   ------------------------------------------------------------------------- */

.modal-section-head {
  position: relative;
  text-align: center;
  margin: 28px 0 20px;
}
.modal-section-head:first-child { margin-top: 4px; }
.modal-section-head::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--orange-dark);
}
.modal-section-head span {
  position: relative;
  display: inline-block;
  background: var(--white);
  padding: 0 14px;
  font-family: var(--font-montserrat);
  font-weight: 700;
  font-size: 15px;
  text-transform: none;
  color: var(--primary);
}

/* Pill-style inputs used by the Register modal */
.form--pill .form-field { margin-bottom: 12px; }
.form--pill .form-field input,
.form--pill .form-field select {
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--ink);
}
.form--pill .form-field select { appearance: none; }

/* ---------------------------------------------------------------------------
   Forms (shared: contact / modals)
   ------------------------------------------------------------------------- */

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-field .req { color: var(--red); }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="password"],
.form-field input[type="file"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(163, 144, 96, 0.25);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  margin: 18px 0;
}
.form-check input { margin-top: 3px; }

.radio-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}
.radio-pill input:checked + span {

  background: var(--primary); color: var(--white);
  border-color: var(--primary); font-family:
   var(--font-montserrat); font-weight: 700;
}

.form-note { font-size: 12px; color: var(--gray-600); margin-top: 6px; }
.form-error { color: var(--red); font-size: 13px; margin-top: 10px; display: none; }
.form-error.is-visible { display: block; }
.form-success {
  text-align: center;
  padding: 40px 10px;
}
.form-success .icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--leaf-green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.form-success .icon-circle svg { width: 28px; height: 28px; color: var(--white); }
.form-success h3 { font-family: var(--font-montserrat); font-weight: 800; font-size: 22px; margin-bottom: 10px; }
.form-success p { color: var(--gray-600); max-width: 380px; margin: 0 auto; }

/* honeypot field, kept off-screen for humans, visible to bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
  background: var(--white);
  color: var(--ink);
  border-top: 3px solid var(--primary);
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 44px;
}
.footer-logo { font-family: var(--font-montserrat); font-size: 18px; text-transform: uppercase; margin-bottom: 18px; line-height: 1.15; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid var(--gray-800);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { border-color: var(--white); color: var(--white); background-color: var(--primary); }
.footer-col h5 {
  font-family: var(--font-montserrat);
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; font-size: 13px; color: var(--gray-600); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--gray-600);
}
.footer-bottom a { margin-left: 18px; }
.footer-bottom a:hover { color: var(--primary); }

/* ---------------------------------------------------------------------------
   Reveal-on-scroll
   ------------------------------------------------------------------------- */

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  /* Small-laptop breakpoint (covers 1024px-wide devices) — the full
     link bar no longer fits next to both logos, so switch to the
     hamburger menu here instead of waiting for the phone breakpoint. */
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px 24px;
    border-bottom: 3px solid var(--primary);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; padding: 0 0 0 14px; display: none;
  }
  .nav.is-open .has-dropdown.is-open .dropdown { display: block; }

  .two-col,
  .venue-grid,
  .exhibition-grid,
  .contact-grid,
  .highlights-live__grid,
  .department-feature__grid { grid-template-columns: 1fr; gap: 36px; }

  .speaker-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; align-items: center; justify-items: center; gap: 24px; text-align: center; }
  .hero__date { margin-top: 0; margin-left: 0; }
  .hero__content { margin-top: 28px; }

  .objectives-grid,
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .department-feature__image { min-height: 260px; }
}

/* Short-viewport laptops (e.g. 1024x600) — trim the hero and section
   padding so key content doesn't sit mostly below the fold. */
@media (max-height: 650px) and (min-width: 761px) {
  .hero { min-height: 480px; }
  .hero__inner { padding: 50px 0 36px; }
  .section { padding: 56px 0; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .section { padding: 60px 0; }

  .nav__actions-logo { height: 30px; }

  .speaker-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .timeline-row, .timeline-parallel__head { grid-template-columns: 70px 1fr; }
  .timeline-row > .badge { grid-column: 1 / -1; justify-self: start; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom a { margin-left: 0; margin-right: 16px; }
  .scroll-card { flex-basis: 240px; }

  .objectives-grid,
  .themes-grid { grid-template-columns: 1fr; }
  .platform-intro__actions { flex-direction: column; align-items: stretch; }
  .platform-intro__actions .btn { width: 100%; }
}

/* ============================================================================
   Speakers hero banner
   ========================================================================== */

.speakers-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
.speakers-hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.speakers-hero__overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.5);
}
.speakers-hero__inner { position: relative; z-index: 1; width: 100%; padding: 70px 0; }
.speakers-hero__title {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 0.98;
  max-width: 10ch;
}
.speakers-hero .headline-gauteng,
.speakers-hero .headline-climate { color: var(--white); }
