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

:root {
  --navy:       #0d1a12;
  --navy-mid:   #152a1e;
  --navy-light: #1e3a2a;
  --red:        #c9a84c;
  --red-light:  #e0c060;
  --red-dim:    #7a6020;
  --white:      #f0f2f5;
  --muted:      #cbf8d0e7;
  --border:     rgba(255,255,255,0.07);
  --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }


body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-image: url("images/220114_Giulian Serafim_PMPA-3985.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}



/* ─── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(11, 22, 35, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-light);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-link--btn {
  color: var(--white) !important;
  border: 1px solid var(--red-dim);
  padding: 5px 14px !important;
  padding-bottom: 5px !important;
  transition: background 0.2s, border-color 0.2s;
}

.nav-link--btn:hover,
.nav-link--btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white) !important;
}

.nav-link--btn::after { display: none !important; }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--red-light);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

/* ─── PAGE ────────────────────────────────────────────── */
.page {
  flex: 1;
  padding-top: 64px;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px;
  max-width: 820px;
}

.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.accent { color: var(--red-light); }

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 56px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px;
}

.meta-item:first-child { padding-left: 0; }

.meta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}

.meta-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ─── SECTION CONTENT ─────────────────────────────────── */
.section-content {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}

/* ─── ABOUT GRID ──────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
}

.about-block { max-width: 320px; }

.about-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 12px;
}

.about-block h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--white);
}

.about-block p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ─── INLINE LINK ─────────────────────────────────────── */
.inline-link {
  color: var(--red-light);
  text-decoration: none;
  border-bottom: 1px solid var(--red-dim);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.inline-link:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ─── PAGE HEADER ─────────────────────────────────────── */
.page-header {
  padding: 80px 48px 48px;
}

.page-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 16px;
}

.page-header h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ─── SPEAKERS ────────────────────────────────────────── */

.speakers-grid {
  display: grid;
  grid-template-columns: 1fr;  /* one column only */
  gap: 10px;
  background: var(--border);
  border: 1px solid var(--border);
}

.speaker-card {
  background: var(--navy);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.speaker-card:hover { border-color: var(--red-dim); }

.speaker-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 2px solid var(--red-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--red-light);
  flex-shrink: 0;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.speaker-avatar img,
.org-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(100%);
  display: block;
}

.speaker-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--white);
}

.speaker-title {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--red-light);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.speaker-affil {
  display: block;
  font-size: 12px;
  color: var(--red-light);
  margin-bottom: 10px;
}

.speaker-info p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── ORGANISERS ──────────────────────────────────────── */
.org-committee { margin-bottom: 56px; }


.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.org-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  padding: 20px 24px;
  transition: border-color 0.2s;
}

.org-card:hover { border-color: var(--red-dim); }

.org-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 2px solid var(--red-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--red-light);
  flex-shrink: 0;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.org-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.org-info span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.org-name-link {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--red-dim);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.org-name-link:hover {
  color: var(--red-light);
  border-color: var(--red-light);
}

.org-affil {
  color: var(--red-light);
  font-size: 11px;
}

/* ─── CONTACT ─────────────────────────────────────────── */
.contact-block {
  margin-top: 16px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.contact-block h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-block p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.contact-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--red-light);
  text-decoration: none;
  border-bottom: 1px solid var(--red-dim);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ─── FORM ────────────────────────────────────────────── */
.form-intro {
  max-width: 680px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-intro p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.form-deadline {
  font-size: 13px !important;
  color: var(--white) !important;
  padding: 12px 16px;
  border-left: 2px solid var(--red-light);
  background: var(--navy-mid);
}

.form-deadline strong { color: var(--red-light); }

.eoi-form {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.required { color: var(--red-light); }
.optional  { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: 0.6; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red-light); }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8fa8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 8px;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
}

.submit-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.submit-btn:hover { background: var(--red-light); }

@media (max-width: 640px) {
  .form-row--two { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: flex-start; }
}

/* ─── SCHEDULE ────────────────────────────────────────── */
.schedule-box {
  max-width: 700px;
  margin: 0 auto 32px;
  padding: 30px;
  background: var(--navy);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.form-box {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px;
  background: var(--navy);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.schedule-day-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.schedule-list {
  display: flex;
  flex-direction: column;
}

.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.schedule-item:last-child { border-bottom: none; }

.schedule-item--meta { opacity: 0.5; }

.sched-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  min-width: 100px;
  padding-top: 2px;
  flex-shrink: 0;
}

.sched-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sched-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  width: fit-content;
  margin-bottom: 4px;
}

.sched-tag--keynote   { background: var(--red-dim);    color: #e8a0a0; }
.sched-tag--talk      { background: #102828;            color: #50d0c0; }
.sched-tag--short     { background: #1a2010;            color: #90b870; }
.sched-tag--panel     { background: #122840;            color: #6aafd4; }
.sched-tag--online-talk    { background: #102828;            color: #50d0c0; }

.sched-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.sched-speaker {
  font-size: 13px;
  color: var(--muted);
}

/* ─── ABSTRACT FLOATING POPUP ─────────────────────────── */
.sched-title-wrap {
  position: relative;
  display: block;
}

.sched-title-wrap .sched-title {
  cursor: help;
  border-bottom: 1px dotted var(--red-dim);
  display: inline;
}

.sched-abstract-popup {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 200;
  width: 420px;
  max-width: calc(100vw - 120px);
  background: var(--navy-mid);
  border: 1px solid var(--red-dim);
  border-top: 2px solid var(--red);
  padding: 16px 18px;
  border-radius: 0 6px 6px 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

.sched-title-wrap:hover .sched-abstract-popup {
  opacity: 1;
  visibility: visible;
}

/* ─── VENUE ───────────────────────────────────────────── */
.venue-section {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 48px;
  padding: 64px 48px;
  border-top: 1px solid var(--border);
  align-items: start;
}

.venue-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 12px;
}

.venue-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.venue-address {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.venue-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.venue-directions {
  font-size: 13px;
  font-weight: 600;
  color: var(--red-light);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.venue-directions:hover { color: var(--red); }

.venue-map iframe {
  width: 100%;
  height: 300px;
  border: 1px solid var(--border);
  border-radius: 3px;
  display: block;
  filter: grayscale(0.2) brightness(0.85);
}

/* ─── PARTNERS ────────────────────────────────────────── */
.partners-section {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px 48px;
  background: var(--navy);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.partners-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.partners-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.partners-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.partner-logo {
  height: 88px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.65;
  transition: opacity 0.2s;
}

/* For logos with internal detail (e.g. seals) — invert after grayscale makes dark text/crest white */
.partner-logo--detail {
  filter: grayscale(1) invert(1) brightness(1.1);
  height: 123px; /* ~40% larger than base */
}

.partner-logo--md {
  height: 106px; /* ~20% larger than base */
}

.partner-logo:hover { opacity: 0.85; }

.partners-divider {
  width: 1px;
  height: 56px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .venue-section { grid-template-columns: 1fr; padding: 40px 20px; gap: 28px; }
  .partners-section { gap: 32px; padding: 40px 20px; }
  .partners-divider { display: none; }
}

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.footer-sep { opacity: 0.4; }

/* ─── HAMBURGER (hidden on desktop) ──────────────────── */
.nav-toggle-input { display: none; }
.nav-toggle-btn   { display: none; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 640px) {
  nav {
    padding: 0 20px;
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    align-items: stretch;
  }

  .nav-brand {
    flex: 1;
    display: flex;
    align-items: center;
    height: 56px;
  }

  .nav-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 0 8px 8px;
    height: 56px;
    align-self: center;
  }

  .nav-toggle-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--muted);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
  }

  .nav-toggle-input:checked + .nav-toggle-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--red-light);
  }
  .nav-toggle-input:checked + .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-input:checked + .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--red-light);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 16px;
    gap: 0;
    border-top: 1px solid var(--border);
  }

  .nav-toggle-input:checked ~ .nav-links {
    display: flex;
  }

  .nav-link {
    padding: 12px 4px;
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .nav-link::after { display: none; }

  .nav-link.active {
    color: var(--red-light);
  }

  .nav-link--btn {
    margin-top: 8px;
    display: inline-block;
    padding: 10px 18px !important;
  }

  .page { padding-top: 56px; }
  .hero { padding-top: 56px; min-height: calc(100vh - 56px); }
  .hero, .page-header, .section-content { padding-left: 20px; padding-right: 20px; }
  .hero-meta { flex-direction: column; gap: 12px; align-items: flex-start; }
  .meta-divider { display: none; }
  .meta-item { padding: 0; }
  footer { padding: 20px; }
}
