/* Lighthouse-first styles for the RCP event landing page */

:root {
  --color-brand: #1c6294;
  --color-brand-dark: #144a70;
  --color-brand-soft: #e9f1fa;
  --color-sky: #7da9d6;
  --color-sky-dark: #5f8fc2;
  --color-text: #232323;
  --color-text-soft: #4a4a4a;
  --color-bg: #ffffff;
  --color-surface: #f2f2f2;
  --color-surface-strong: #e9e9e9;
  --color-border: #e1e1e1;
  --color-footer: #ffffff;
  --shadow-soft: 0 14px 30px rgba(28, 98, 148, 0.14);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-brand-dark);
}

a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: 3px solid rgba(28, 98, 148, 0.35);
  outline-offset: 3px;
}

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

p,
ul {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
}

h3 {
  font-size: 1.15rem;
}

strong {
  color: var(--color-text);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-brand);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

#page-wrapper {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  min-height: 100svh;
  padding: 4rem 1.5rem 2.5rem;
  background: linear-gradient(180deg, #84abd9 0%, #aecbe8 38%, #ddeaf8 68%, #f3f8fd 100%);
  color: #fff;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.inner,
.section-inner {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.hero-content {
  width: min(1300px, calc(100% - 2rem));
  max-width: 1300px;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
}

.h1-l2 {
  display: block;
}

.eyebrow {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 1px 12px rgba(28, 98, 148, 0.25);
}

.hero-subtitle {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  width: min(var(--container), calc(100% - 2rem));
  margin: auto auto 0;
  padding-top: 2.5rem;
}

.hero-date {
  margin: 0;
  color: var(--color-brand);
  font-size: 1.3rem;
  font-weight: 700;
  text-align: left;
}

.hero-logo img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
}

.hero-cta {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos-strip {
  width: min(var(--container), calc(100% - 2rem));
  margin: auto auto 0;
  padding-top: 2.5rem;
}

.logos-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos-bar li {
  display: flex;
  align-items: center;
}

.logos-bar img {
  width: auto;
  height: 54px;
}

.more {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  color: var(--color-text);
  text-decoration: none;
}

.more:hover {
  border-color: var(--color-sky);
  color: var(--color-brand);
}

.more::after {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  margin-top: -0.35rem;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.875rem 1.6rem;
  border: 1px solid var(--color-brand);
  border-radius: 14px;
  background: var(--color-brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  color: #fff;
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
}

.button.primary {
  border-color: var(--color-brand);
  background: var(--color-brand);
}

.button.primary:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
}

.wrapper {
  padding: 4rem 0;
}

.wrapper.style5 {
  background: var(--color-bg);
}

.wrapper.style2 {
  background: var(--color-brand-soft);
}

.program-section {
  padding-top: 0;
}

.program-header-wrapper {
  background: #fff;
  padding: 2.5rem 1rem 0.5rem;
}

.program-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.program-hero {
  max-width: none;
  padding: 0;
}

.program-kicker {
  display: none;
}

.program-header-title {
  margin: 0;
  color: var(--color-brand);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  text-align: left;
}

.program-logo {
  flex-shrink: 0;
}

.program-logo img {
  width: 72px;
  min-width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.program-header-copy {
  max-width: 58ch;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
}

.program-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  padding-top: 2.5rem;
}

.program-sidebar {
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.program-summary-card,
.schedule-card,
.schedule-group {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.program-summary-card h3,
.schedule-group h3 {
  margin-bottom: 0.75rem;
}

.schedule-card h4 {
  margin-top:-0.85rem;
  margin-bottom: 0.75rem;
}

.program-meta {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.program-meta li {
  margin: 0;
  color: var(--color-text-soft);
}

.program-download-card p {
  color: var(--color-text-soft);
}

.download-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}

.download-link:hover {
  color: var(--color-brand);
  background: var(--color-brand-soft);
}

.download-link img {
  width: 3rem;
  height: 3rem;
}

.program-agenda {
  position: relative;
  display: grid;
  gap: 1.6rem;
  padding-left: 0;
}

.program-agenda::before {
  content: "";
  position: absolute;
  left: 3.2rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 8px;
  background: var(--color-sky);
}

.schedule-group {
  position: relative;
  z-index: 1;
  border-color: var(--color-sky);
  background: var(--color-sky);
  color: #fff;
}

.schedule-group h3 {
  color: #fff;
}

.schedule-group-label {
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedule-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.schedule-time {
  position: relative;
  z-index: 2;
  display: inline-block;
  justify-self: start;
  margin: 0 0 -1rem 1.4rem;
  padding: 0.35rem 1.1rem;
  border-radius: 10px;
  background: var(--color-sky);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.schedule-card {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
}

.schedule-card::before,
.schedule-card::after {
  display: none;
}

.speaker-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.speaker-list li {
  margin: 0 0 0.45rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-brand);
}

.schedule-item-break .schedule-card {
  background: var(--color-brand-soft);
}

.schedule-card p:last-child {
  margin-bottom: 0;
}

.spotlight {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.spotlight .image,
.spotlight .content {
  min-width: 0;
}

.spotlight .image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.venue-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.info-grid {
  align-items: start;
}

.map-container iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

#footer {
  padding: 2rem 1.5rem 3rem;
  background: var(--color-footer);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-soft);
  text-align: center;
}

.footer-logos {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto 1.5rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.footer-logos img {
  width: auto;
  height: 38px;
}

.copyright {
  margin: 0;
}

.copyright a {
  color: var(--color-brand);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-brand);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.back-to-top:hover {
  color: var(--color-brand-dark);
  background: #fff;
}

.back-to-top-icon {
  width: 0.8rem;
  height: 0.8rem;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(45deg);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .program-layout,
  .spotlight {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }

  .hero-date {
    text-align: center;
  }

  .hero-logo img {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .program-sidebar {
    position: static;
  }

  .program-agenda::before {
    left: 1.6rem;
  }

  .logos-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logos-bar img {
    height: 44px;
  }

  .schedule-time {
    margin-left: 0.8rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 4rem;
  }

  .more {
    position: static;
    margin-top: 1.5rem;
  }

  .wrapper {
    padding: 3rem 0;
  }

  .button {
    width: 100%;
  }

  .actions,
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta {
    display: flex;
  }

  .program-summary-card,
  .schedule-group {
    padding: 1.2rem;
  }

  .schedule-card {
    padding: 1.8rem 1.2rem 1.2rem;
  }

  .program-header-wrapper {
    padding: 2rem 1rem 0.5rem;
  }

  .logos-bar img {
    height: 36px;
  }

  .footer-logos .logos-bar img {
    height: 30px;
  }

  .map-container iframe {
    min-height: 280px;
  }

  .back-to-top {
    display: inline-flex;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
