/* ============================================================
   Academia HERO Swiss Roundtable — brand styles
   Bootstrap 5 handles grid & layout utilities; this file adds
   brand-specific styles and supplements Bootstrap where needed.
   ============================================================ */

/* ---- Base ------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background-color: rgba(42, 44, 91, 0.1); }

/* ---- Brand fonts ------------------------------------------ */
.font-brand-primary  { font-family: 'Inter', sans-serif; }
.font-brand-secondary { font-family: 'Inter', sans-serif; }
.font-serif { font-family: Georgia, 'Times New Roman', serif; }

/* ---- Typography ------------------------------------------- */
.fw-900      { font-weight: 900; }
.fw-500      { font-weight: 500; }
.text-xs     { font-size: 0.75rem; line-height: 1rem; }
.text-sm     { font-size: 0.875rem; line-height: 1.25rem; }
.text-10px   { font-size: 10px; }
.text-9px    { font-size: 9px; }
.text-11px   { font-size: 11px; }
.lh-105      { line-height: 1.05; }
.lh-tight    { line-height: 1.25; }
.lh-relaxed  { line-height: 1.625; }
.tracking-tight   { letter-spacing: -0.025em; }
.tracking-wide    { letter-spacing: 0.025em; }
.tracking-wider   { letter-spacing: 0.05em; }
.tracking-widest  { letter-spacing: 0.1em; }
.text-justify { text-align: justify; }

/* ---- Brand palette ---------------------------------------- */
.bg-navy    { background-color: #2A2C5B; }
.bg-crimson { background-color: #B2242E; }
.bg-slate-50  { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.text-navy    { color: #2A2C5B; }
.text-crimson { color: #B2242E; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-amber-300 { color: #fcd34d; }

/* ---- Border helpers --------------------------------------- */
.border-color-100 { border-color: #f1f5f9 !important; }
.border-color-200 { border-color: #e2e8f0 !important; }
.border-color-700 { border-color: #334155 !important; }

/* ---- Layout helpers --------------------------------------- */
.h-nav   { height: 5rem; }
.min-w-0 { min-width: 0; }
.backdrop-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.object-cover   { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-top     { object-position: top; }

/* ---- Responsive section spacing --------------------------- */
.py-hero    { padding-top: 4rem; padding-bottom: 4rem; }
.py-section { padding-top: 6rem; padding-bottom: 6rem; }
.mt-section { margin-top: 5rem; }
.pt-section-sm { padding-top: 4rem; }

@media (min-width: 992px) {
  .py-hero { padding-top: 7rem; padding-bottom: 7rem; }
}

/* ---- Responsive heading sizes ----------------------------- */
.hero-title { font-size: clamp(2rem, 5vw, 3.75rem); }
.h2-size    { font-size: clamp(1.5rem, 3vw, 1.875rem); }
.text-lg-custom { font-size: clamp(1rem, 2vw, 1.125rem); }

/* ---- Section accent bars ---------------------------------- */
.section-accent    { width: 5rem; height: 0.375rem; background: #B2242E; }
.section-accent-sm { width: 4rem; height: 0.25rem;  background: #B2242E; }

/* ---- Navigation ------------------------------------------- */
.nav-link-brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link-brand:hover { color: #2A2C5B; }

.btn-nav-cta {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #2A2C5B;
  border: 1px solid #2A2C5B;
  border-radius: 0;
  transition: background 0.3s ease, color 0.3s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.btn-nav-cta:hover { background: #fff; color: #2A2C5B; }

/* ---- Hero buttons ----------------------------------------- */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: #2A2C5B;
  border: none;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
}
.btn-hero-primary:hover { background: #B2242E; color: #fff; }

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1e293b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn-hero-secondary:hover { background: #f8fafc; }

/* ---- Brand label chip ------------------------------------- */
.brand-label {
  border-left: 4px solid #B2242E;
  background: #f8fafc;
  color: #2A2C5B;
  font-size: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* ---- Pillar cards ----------------------------------------- */
.pillar-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #2A2C5B;
  padding: 2rem;
  position: relative;
  border-radius: 0;
  transition: border-top-color 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover {
  border-top-color: #B2242E;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
.pillar-card .card-num {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.3s ease;
}
.pillar-card:hover .card-num { color: #B2242E; }

/* ---- Speaker cards ---------------------------------------- */
.speaker-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #2A2C5B;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0;
  transition: border-top-color 0.3s ease, box-shadow 0.3s ease;
}
.speaker-card:hover {
  border-top-color: #B2242E;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
}
.speaker-img-wrap {
  width: 100%;
  height: 16rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #f1f5f9;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}
.speaker-card:hover .speaker-img-wrap { filter: none; }
.speaker-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.speaker-card:hover .speaker-img-wrap img { transform: scale(1.05); }

/* ---- LinkedIn link ---------------------------------------- */
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2A2C5B;
  text-decoration: none;
  transition: color 0.3s ease;
}
.linkedin-link:hover { color: #B2242E; }

/* ---- Agenda desktop two-column layout --------------------- */
.ag-btn-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}
.ag-btn-text { min-width: 0; }
.ag-detail-title-el { font-size: 1.25rem; }
.ag-detail-focus-el { line-height: 1.7; text-align: justify; }
.ag-detail-cta { text-align: right; }
.ag-detail-subtitle-el { display: none; }

.ag-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1rem;
  margin-bottom: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  color: #1e293b;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ag-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.ag-btn.is-active {
  background: #2A2C5B;
  border-color: #2A2C5B;
  color: #fff;
  box-shadow: 0 4px 12px rgba(42,44,91,0.25);
}
.ag-btn.is-active .ag-badge { background: #B2242E; color: #f1f5f9; border: none; }
.ag-btn.is-active .ag-title  { color: #fff; }
.ag-btn.is-active .ag-presenter { color: rgba(255,255,255,0.65); }
.ag-btn.is-active .ag-chevron { color: #fff; transform: rotate(90deg); }

.ag-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 3px 10px;
  background: rgba(42,44,91,0.10);
  border: none;
  border-radius: 0;
  color: #2A2C5B;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ag-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ag-presenter {
  font-size: 10px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}
.ag-chevron {
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease, translate 0.2s ease;
}
.ag-btn:hover .ag-chevron { translate: 3px 0; }
.ag-btn.is-active .ag-chevron { translate: none; }

#agenda-list-rt {
  max-height: 650px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.agenda-detail {
  position: sticky;
  top: 5rem;
  padding: 1.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  min-height: 420px;
}
.ag-detail-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42,44,91,0.08);
  border-radius: 50%;
  margin-bottom: 1rem;
  color: #2A2C5B;
}

.agenda-attend-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2A2C5B;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s ease;
}
.agenda-attend-link:hover { color: #B2242E; }

/* ---- Agenda accordion ------------------------------------- */
.agenda-accordion { border-radius: 0; }

.agenda-item {
  border: none;
  border-radius: 0 !important;
  margin-bottom: 6px;
}

/* Button (header) */
.agenda-acc-btn {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0 !important;
  color: #1e293b;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}
.agenda-acc-btn:hover {
  background: #f1f5f9;
  color: #2A2C5B;
}
.agenda-acc-btn:not(.collapsed) {
  background: #2A2C5B;
  color: #fff;
  border-color: #2A2C5B;
}
/* Override Bootstrap's default arrow */
.agenda-acc-btn::after {
  flex-shrink: 0;
  margin-left: auto;
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2394a3b8'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1rem;
  transition: transform 0.2s ease;
  content: "";
}
.agenda-acc-btn:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(-180deg);
}

/* Time badge inside button */
.ag-acc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  background: rgba(42,44,91,0.1);
  color: #2A2C5B;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}
.agenda-acc-btn:not(.collapsed) .ag-acc-badge {
  background: #B2242E;
  color: #fff;
}

/* Title inside button */
.ag-acc-title {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

/* Body */
.agenda-acc-body {
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: none;
}

.ag-acc-subtitle {
  font-size: 0.8125rem;
  font-style: italic;
  color: #64748b;
  margin-bottom: 0.875rem;
}

.ag-acc-presenter {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2A2C5B;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ag-acc-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  flex-shrink: 0;
}

.ag-acc-focus {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: justify;
}

.ag-acc-cta {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2A2C5B;
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #2A2C5B;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ag-acc-cta:hover { color: #B2242E; border-color: #B2242E; }

/* ---- Logo bar --------------------------------------------- */
.logo-bar {
  opacity: 0.75;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.logo-bar:hover { opacity: 1; filter: none; }

/* ---- Footer links ----------------------------------------- */
.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover { color: #fff; }

/* ---- RSVP box -------------------------------------------- */
.rsvp-box { padding: 1.5rem; }
@media (min-width: 576px)  { .rsvp-box { padding: 2rem; } }
@media (min-width: 768px)  { .rsvp-box { padding: 3rem; } }
@media (min-width: 992px)  { .rsvp-box { padding: 4rem; } }

/* ---- Hamburger button ------------------------------------- */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #2A2C5B;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile nav panel ------------------------------------- */
.mobile-nav-panel {
  padding: 1rem 0 1.25rem;
}
.mobile-nav-link {
  display: block;
  padding: 0.625rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.2s ease;
}
.mobile-nav-link:hover { color: #2A2C5B; }

/* ---- Video modal ------------------------------------------ */
#video-modal.is-open {
  display: flex !important;
}

/* ---- Hero overlay ----------------------------------------- */
.hero-overlay {
  background: linear-gradient(to right,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.60) 45%,
    rgba(255,255,255,0.25) 70%,
    rgba(255,255,255,0.10) 100%
  );
}
@media (max-width: 767px) {
  .hero-overlay {
    background: rgba(255,255,255,0.88);
  }
}

/* ---- Responsive: hero on mobile --------------------------- */
@media (max-width: 575px) {
  .hero-title { font-size: 1.75rem; }
  .brand-label { font-size: 9px; }
  .btn-hero-primary,
  .btn-hero-secondary { padding: 1rem 1.5rem; width: 100%; justify-content: center; }
}

/* ---- Responsive: section spacing on mobile ---------------- */
@media (max-width: 767px) {
  .py-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .mt-section { margin-top: 3rem; }
  .pt-section-sm { padding-top: 2.5rem; }
  .agenda-acc-body { padding: 1rem; }
  .ag-acc-badge { font-size: 10px; padding: 2px 7px; }
  .ag-acc-title { font-size: 0.6875rem; }
}

/* ---- Responsive: footer on mobile ------------------------- */
@media (max-width: 575px) {
  .footer-link { line-height: 1.8; }
}

/* ---- Responsive: logo bar on mobile ----------------------- */
@media (max-width: 575px) {
  .logo-bar { gap: 1.5rem !important; }
  .logo-bar img { height: 2.5rem !important; }
}

/* ---- Responsive: pillar cards ----------------------------- */
@media (max-width: 767px) {
  .pillar-card { padding: 1.5rem; }
  .speaker-card { padding: 1.5rem; }
}

/* ---- Agenda: show accordion on mobile, two-column on desktop */
@media (min-width: 768px) {
  #agendaAccordion     { display: none !important; }
  #agenda-desktop      { display: block !important; }
  #agenda-hint-mobile  { display: none !important; }
}
@media (max-width: 767.98px) {
  #agenda-desktop      { display: none !important; }
  #agendaAccordion     { display: block !important; }
  #agenda-hint-desktop { display: none !important; }
}

@media (max-width: 767px) {
  .text-sm { font-size: 0.7rem !important; }
}
