/* ================================================================
   Conference PopUp — main.css
   Aesthetic: Bold editorial / conference-industrial
   Fonts: Barlow Condensed (headings) + Lora (body)
   Palette: Deep charcoal, warm white, electric amber accent
   ================================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #1a1714;
  --ink-light:  #3d3830;
  --paper:      #f5f2ed;
  --paper-mid:  #e8e3da;
  --amber:      #e8a020;
  --amber-dark: #c4841a;
  --white:      #ffffff;
  --black:      #0d0b09;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Lora', Georgia, serif;

  --radius:   4px;
  --max-w:    1180px;
  --header-h: auto;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.12);
  --shadow-md: 0 6px 24px rgba(0,0,0,.15);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.18);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); text-transform: uppercase; }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* ── UTILITIES ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--compact { padding: 48px 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--paper); }
.section--amber { background: var(--amber); color: var(--ink); }
.section--mid { background: var(--paper-mid); }

.label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .18s, color .18s, transform .12s;
  text-decoration: none;
}
.btn--primary {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}
.btn--primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.btn--outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline-dark:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* ── HEADER ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--paper-mid);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img { display: block; max-height: 120px; width: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color .15s;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active { color: var(--amber-dark); }

.site-header.scrolled { box-shadow: var(--shadow-md); }

/* ── PAGE HERO ────────────────────────────────────────────── */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(255,255,255,.025) 80px,
      rgba(255,255,255,.025) 81px
    );
  pointer-events: none;
}
.page-hero__inner { position: relative; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero h1 em { font-style: normal; color: var(--amber); }
.page-hero .subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(245,242,237,.7);
  margin-top: .6em;
}

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(245,242,237,.5);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--amber); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span + span::before { content: ' / '; margin: 0 6px; }

/* ── EVENT PAGE ───────────────────────────────────────────── */
.event-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.event-body h2, .event-body h3 {
  margin: 1.6em 0 .5em;
  padding-bottom: .3em;
  border-bottom: 2px solid var(--paper-mid);
}
.event-body h2:first-child, .event-body h3:first-child { margin-top: 0; }

.event-body ul, .event-body ol {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
.event-body ul li, .event-body ol li { margin-bottom: .4em; }

.event-body .photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.event-body .photo-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .25s;
}
.event-body .photo-grid img:hover { transform: scale(1.02); }

/* Sidebar / Event card */
.event-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.event-card {
  background: var(--white);
  border: 1px solid var(--paper-mid);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.event-card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.event-meta-list { font-family: var(--font-display); font-size: .95rem; }
.event-meta-list dt {
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--ink-light);
  margin-top: 12px;
}
.event-meta-list dt:first-child { margin-top: 0; }
.event-meta-list dd { color: var(--ink); }

.event-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.event-tag {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--paper-mid);
  color: var(--ink-light);
  padding: 2px 10px;
  border-radius: 100px;
  text-decoration: none;
}
.event-tag:hover { background: var(--amber); color: var(--ink); text-decoration: none; }

.calendar-widget { margin-top: 16px; }
.calendar-widget summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-light);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--paper-mid);
}
.calendar-widget summary::before { content: '📅'; }
.calendar-links { padding: 8px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.calendar-links a {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--amber-dark);
  text-decoration: none;
  padding: 4px 0;
}
.calendar-links a:hover { text-decoration: underline; }

/* FAQ Accordion */
.faq-accordion { margin-top: 32px; }
.faq-accordion summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 0;
  border-bottom: 1px solid var(--paper-mid);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-accordion summary::after { content: '+'; font-size: 1.3rem; flex-shrink: 0; }
details[open] .faq-accordion summary::after { content: '−'; }
.faq-accordion-body { padding: 16px 0; }

/* ── ABOUT / ARTICLE PAGE ─────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}

.article-content h2, .article-content h3 {
  margin: 1.6em 0 .5em;
}
.article-content p { font-size: 1.05rem; }

.share-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--paper-mid);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity .15s;
}
.share-btn:hover { opacity: .85; text-decoration: none; }
.share-btn--facebook { background: #1877f2; color: #fff; }
.share-btn--twitter  { background: #000; color: #fff; }
.share-btn--linkedin { background: #0a66c2; color: #fff; }
.share-btn--email    { background: var(--ink); color: var(--paper); }

/* Sidebar card */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--paper-mid);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.sidebar-card h4 { margin-bottom: 12px; font-size: .9rem; }

/* Honeypot field */
.hp { position: absolute; left: -9999px; }

/* ── HOME PAGE ────────────────────────────────────────────── */
.home-hero {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent, transparent 60px,
      rgba(255,255,255,.02) 60px, rgba(255,255,255,.02) 61px
    ),
    repeating-linear-gradient(
      0deg,
      transparent, transparent 60px,
      rgba(255,255,255,.02) 60px, rgba(255,255,255,.02) 61px
    );
  pointer-events: none;
}
.home-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; }
.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: var(--ink-light);
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--amber);
}
.home-hero h1 { color: var(--white); }
.home-hero h1 em { font-style: normal; color: var(--amber); }
.home-hero .hero-sub {
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  margin: 20px 0 32px;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .home-hero__inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
}

/* Events grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.event-card-grid {
  background: var(--white);
  border: 1px solid var(--paper-mid);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.event-card-grid:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.event-card-grid__img {
  height: 200px;
  background: var(--ink-light);
  overflow: hidden;
}
.event-card-grid__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.event-card-grid:hover .event-card-grid__img img { transform: scale(1.04); }

.event-card-grid__body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.event-card-grid__date {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 6px;
}
.event-card-grid h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.event-card-grid p {
  font-size: .9rem;
  color: var(--ink-light);
  flex: 1;
}
.event-card-grid__footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(245,242,237,.45);
  padding: 24px;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.site-footer a {
  color: rgba(245,242,237,.55);
  text-decoration: none;
}
.site-footer a:hover { color: var(--amber); }

/* ── STATUS BADGE ─────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.status-badge--active  { background: #e8f5e9; color: #2e7d32; }
.status-badge--expired { background: #f5f5f5; color: #757575; }
.status-badge--upcoming{ background: #fff8e1; color: #f57f17; }
.status-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .event-layout,
  .article-layout { grid-template-columns: 1fr; }
  .event-sidebar { position: static; }

}

@media (max-width: 768px) {
  .event-body .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── COOKIE BANNER ────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 560px;
  background: var(--ink);
  color: var(--paper);
  border-left: 4px solid var(--amber);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 999;
  font-family: var(--font-display);
  font-size: .9rem;
}
#cookie-banner p { margin: 0; flex: 1; }
#cookie-banner a { color: var(--amber); }
#cookie-banner button {
  background: var(--amber);
  color: var(--ink);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── SCROLLED HEADER ──────────────────────────────────────── */
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.35); }

@media (max-width: 480px) {
  .event-body .photo-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}