/* =========================================
   Fonts (Primary: Atkinson Hyperlegible)
   ========================================= */
@font-face {
  font-family: 'AtkinsonHyperlegible';
  src: url('../fonts/AtkinsonHyperlegible-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AtkinsonHyperlegible';
  src: url('../fonts/AtkinsonHyperlegible-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================
   Design Tokens / Base
   ========================================= */
:root {
  --brand: #c2086e;
  --brand-700: #8f0751;
  --text: #0b0b0c;
  --bg: #ffffff;
  --muted: #6b7280;
  --black: #000000;

  /* WCAG 2.2 visible focus */
  --focus-ring: 3px solid #1a73e8;
  --focus-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f5;
    --bg: #0e0e0e;
    --muted: #c2c2c2;
    --brand-700: #db0a7a;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; }

body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--bg);
  font-family: 'AtkinsonHyperlegible', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Headings / text */
p,
.default-list li,
.agenda-component.container,
.agenda-component .session h4,
.fw-bold .h3,
h1, h2, h3, h4, h5, li {
  font-family: 'AtkinsonHyperlegible', sans-serif;
}

p { font-size: 1.2rem; }
h1 { font-size: 3rem; font-weight: 700; }
h3 { font-size: 2rem; font-weight: 500; }

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

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100%;
  background: #000;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  z-index: 10000;
}
.skip-link:focus { top: 0.5rem; outline: none; }

/* Global focus */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}
a { text-underline-offset: 0.15em; }
a:focus-visible { border-radius: 4px; }

/* Sections */
/* section { padding: 2rem; } */

/* =========================================
   Header (Fixed magenta header — your design)
   ========================================= */
#site-header {
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: var(--brand);
  height: 180px;
  transition: height 0.4s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  width: 100%;
}
#site-header.shrink {
  height: 120px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.header-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  z-index: 1000;
}
.logo img {
  height: 100%;
  max-height: 180px;
  max-width: 350px;
  width: 100%;
  transition: max-height 0.4s ease;
}
#site-header.shrink .logo img { max-height: 100px; }

/* Primary nav (ensure list semantics if used) */
.primary-nav .nav-list {
  display: flex; gap: 1.5rem;
  list-style: none; margin: 0; padding: 0;
}

/* Backwards compatible: style any header nav links */
nav a,
.primary-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}
nav a:hover,
nav a:focus-visible,
.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: rgba(255,255,255,0.15);
}

/* Respect reduced motion in header */
@media (prefers-reduced-motion: reduce) {
  #site-header, #site-header * { transition: none !important; }
}

/* =========================================
   Hero
   ========================================= */
.hero {
  position: relative;
  background-image: url('../img/Panoramic Event Image 3.jpeg');
  background-size: cover;
  background-position: right;
  background-attachment: scroll;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: left;
  text-align: center;
  color: white;
  padding: 2rem;
  margin-top: 98px; /* offset fixed header */
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  /* keep transparent overlay: none needed since .hero-content is boxed */
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 550px !important;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 50px;
  padding: 50px;
  border: 3px solid #ffffff;
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
	position: absolute;
}

.hero h2 { font-size: 2rem; margin-bottom: 1rem; }
.hero p  { font-size: 1.2rem; margin-bottom: 2rem; }

.hero-button,
.btn.btn-cta {
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: background 0.3s ease, transform 0.05s ease;
  font-weight: 600;
  display: inline-block;
}
.hero-button:hover,
.btn.btn-cta:hover,
.hero-button:focus-visible,
.btn.btn-cta:focus-visible {
  background: #642885;
	    color: #fff;
}

/* Optional outlined button (used for mailto CTA) */
.btn.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
  padding: 0.8rem 1.1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
}
.btn.btn-outline:hover,
.btn.btn-outline:focus-visible {
  background: var(--text);
  color: #fff;
}

/* Pink pill button variant */
.btn-pink {
  background-color: var(--brand);
  color: white;
  font-weight: 600;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: background-color 0.3s ease;
}
.btn-pink:hover,
.btn-pink:focus-visible { background-color: #a0075e; color: #fff; }
.btn-pink .icon-circle {
  background-color: white; color: var(--brand);
  border-radius: 50%; width: 2rem; height: 2rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* Clicky image-button */
.image-button { height: 60px; border-radius: 999px; cursor: pointer; transition: transform .1s, box-shadow .1s; }
.image-button-link:active .image-button,
.image-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 2px rgba(0,0,0,.2) inset;
}

/* =========================================
   Layout helpers (from your CSS)
   ========================================= */
.flex-container { display: flex; flex-direction: column; gap: 1.5rem; }
.flex-column1 { flex: 1; padding: 1rem; background-color: #f4f4f4; border-radius: 8px; }
.flex-column2 { flex: 1; padding: 1rem; border-radius: 8px; }
@media (min-width: 900px) { .flex-container { flex-direction: row; } }
.center-content { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.side { display: flex; flex-direction: column; }

.responsive-logo { max-height: 180px; width: auto; height: auto; }
@media (min-width: 992px) {
  .responsive-logo { max-height: 180px; width: auto; height: auto; }
}

/* =========================================
   Lists (your default list + icon lists)
   ========================================= */
.default-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}
.default-list li { margin-bottom: 0.75rem; font-size: 1.2rem; }

/* Your icon list class (kept) */
.custom-list {
  list-style: none;
  list-style-position: inside;
  margin: 0;
  padding-left: 2.5rem;
}
.custom-list li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.custom-list .icon-bullet {
  position: absolute; left: 0; top: 0.15rem;
  width: 28px; height: 28px;
}

/* New icon-list (used in updated HTML) */
.icon-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 1rem;
}
.icon-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 0.75rem;
}
.icon-bullet { width: 28px; height: 28px; object-fit: contain; margin-top: 0.2rem; }

/* =========================================
   Imagery
   ========================================= */
.object-fit-cover { object-fit: cover; }
.img-fluid.custom-image { border: 4px solid #000; border-radius: 50px !important; }

/* =========================================
   Value Split + Sponsors
   ========================================= */
.value-split .text-panel { background: var(--brand); color: #fff; }

.sponsors-section {
  width: 100%;
  margin-left: auto; margin-right: auto;
  background: #f4f4f4;
  border-radius: 15px;
  padding: 2rem 0;
}
.sponsors-box { position: relative; }
.sponsors-component.container .row { width: 100% !important; }
.sponsors-component h4 { display: none !important; z-index: 10; }

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: #000;
  color: #fff;
  margin-top: 50px;
}
.footer-tagline { padding-top: 20px; font-size: 1.25rem; }
.footer-logo { height: 150px; margin: 30px 0 0 20px; }
.footer-legal { color: #fff; }

/* =========================================
   Runevents / Agenda embed tweaks
   ========================================= */
.re-tickets .btn-container { display: none !important; }
.container .card-sidebar { z-index: -10 !important; }
.card-sidebar { display: none; }

.card h4 { display: none; } /* hide label text */
.card .label-buttons-container hr { display: none; } /* hide underline */

.agenda-box runevents-agenda .session {
  background-color: #DEDEDE;
  display: grid !important;
  grid-template-columns: 64px minmax(0, 960px) !important;
  padding: 20px;
  border-radius: 15px;
  gap: 16px !important;
  align-items: start !important;
  margin: 28px 0 !important;
}
.agenda-box runevents-agenda .session:hover { background-color: #CCADBE; box-shadow: 16px 16px 29px -4px #00000026 !important; }
.agenda-component .session .session-content:hover { box-shadow: 16px 16px 29px -4px #00000000 !important; }
.agenda-component .session .speakers-images-container { overflow: visible !important; }
.agenda-box runevents-agenda .session .content-container {
  width: 100% !important;
  max-width: 960px !important;
  margin-inline: auto !important;
}
.agenda-component.container {
  margin: 0 auto;
  display: grid !important;
  flex-wrap: wrap;
  width: 100%;
  overflow-x: hidden;
}
.agenda-component .session h3 {
  background-color: var(--brand) !important;
  border-radius: 8px;
  padding: 5px !important;
  width: auto;
  display: inline-block;
  margin: 0 0 20px;
  font-size: 20px;
}
.agenda-component .session h4 { font-size: 1.4rem !important; margin: 0 0 5px; }
.agenda-component .session .content-container p { text-align: left; }

/* Container width for XL+ */
@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { max-width: 1110px; }
}

/* =========================================
   Anchors / Scroll offset for fixed header
   ========================================= */
:target { scroll-margin-top: 130px; }

/* =========================================
   High contrast & Reduced motion
   ========================================= */
@media (prefers-contrast: more) {
  .btn.btn-cta,
  .btn.btn-outline,
  .btn-pink {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =========================================
   Misc
   ========================================= */
.container .image-button { cursor: pointer; }

/* --- page-specific tiny utilities --- */
.header-spacer { height: 200px; }          /* offset for fixed header */
.panel-bordered { border: 3px solid #000; }/* replaces inline panel borders */
.rounded-5 { border-radius: 50px; }        /* keep your large radius */


.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: #000;
  color: #fff;
  padding: 0.75rem 1rem;
  text-decoration: none;
  border: 3px solid #fff;
  z-index: 10000;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
}

.section-navigation {
  padding: 1rem 0;
}

.section-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-navigation a {
  display: inline-block;
  padding: 0.65rem 1rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.section-navigation a:hover,
.section-navigation a:focus,
.section-navigation a:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
iframe:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #000;
  outline-offset: 4px;
}

section {
  scroll-margin-top: 120px;
}

section[tabindex="0"]:focus,
section[tabindex="0"]:focus-visible {
  outline: 4px solid #000;
  outline-offset: 6px;
}

.newsletter-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem;
  max-width: 900px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.newsletter-card h2,
.newsletter-card p {
  color: #000;
}

.newsletter-card iframe,
.newsletter-card form {
  width: 100%;
}

@media (max-width: 768px) {
  .newsletter-card {
    padding: 1.5rem;
    border-radius: 18px;
  }
}
