:root {
  --navy: #002a68;
  --navy-dark: #001a44;
  --blue: #0a3d8f;
  --teal: #1da1a0;
  --teal-dark: #158584;
  --danger: #b83b52;
  --bg: #f7f8fa;
  --bg-blue: #eef3fa;
  --card: #ffffff;
  --text: #4a4a4a;
  --text-light: #6b7280;
  --border: #e2e6ea;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 42, 104, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 42, 104, 0.16);
  --max-width: 1140px;
  --font-body: 'Open Sans', "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Roboto Condensed', "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.nav-links a, .btn, .eyebrow,
.countdown-num, .countdown-unit, .countdown-label {
  font-family: var(--font-heading);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

section { padding: 88px 0; }
section h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--navy);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-light); font-size: 1.05rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 12px 24px rgba(29, 161, 160, 0.32); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.0);
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 20px rgba(0, 42, 104, 0.08);
  padding: 10px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img {
  height: 58px; width: auto; max-width: none; display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.25s ease, height 0.25s ease;
}
.site-header.scrolled .brand img { height: 48px; filter: none; }

.nav-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  font-weight: 600; font-size: 0.94rem; color: #fff; opacity: 0.9;
  transition: opacity 0.2s, color 0.25s ease;
}
.site-header.scrolled .nav-links a { color: var(--text); }
.nav-links a:not(.nav-cta):hover { opacity: 1; color: var(--teal); }
.nav-cta {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.85);
  color: #fff;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.nav-links .nav-cta:hover { background: rgba(255,255,255,0.14); color: #fff; }
@media (min-width: 861px) {
  .nav-cta { display: inline-flex; }
  .site-header.scrolled .nav-links .nav-cta { border-color: var(--navy); color: var(--navy); }
  .site-header.scrolled .nav-links .nav-cta:hover { background: rgba(0,42,104,0.08); color: var(--navy); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: background 0.25s ease; }
.site-header.scrolled .nav-toggle span { background: var(--navy); }
.nav-close { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 32px;
    gap: 22px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--navy); opacity: 1; }
  .nav-links .btn { width: 100%; }
  #navLinks .nav-cta {
    display: inline-flex; order: 99; margin-top: 8px;
    background: var(--navy); border-color: var(--navy); color: #fff;
  }
  #navLinks .nav-cta:hover { background: var(--navy-dark); color: #fff; }
  .nav-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 24px; right: 24px;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); border: none; color: var(--navy); cursor: pointer;
  }
}

.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,26,68,0.45);
  z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* Hero */
.hero {
  position: relative;
  padding: 190px 0 110px;
  background:
    radial-gradient(circle at 15% 20%, rgba(10,61,143,0.78) 0%, rgba(0,42,104,0.84) 45%, rgba(0,26,68,0.88) 100%),
    url("../img/physio02.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
@media (max-width: 940px) { .hero .container { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 340px; margin: 0 auto; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.22; margin-bottom: 20px; }
.hero h1 span { color: var(--teal); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 560px; margin-bottom: 32px; }

.hero-date-block { margin-bottom: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.16); }
.hero-date-block .date-big {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; color: #fff; margin-bottom: 10px;
}
.hero-date-block .date-big svg { color: var(--teal); flex-shrink: 0; }
.hero-date-block .sub-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 1rem; color: rgba(255,255,255,0.72); padding-left: 38px;
}
.hero-date-block .sub-line .sep { color: rgba(255,255,255,0.35); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)); }
.hero-orbit,
.hero-heart,
.hero-heart-dot {
  transform-box: fill-box;
  transform-origin: center;
}
.hero-orbit-outer { animation: heroOrbitPulse 5.8s ease-in-out infinite; }
.hero-orbit-inner { animation: heroOrbitPulse 5.8s ease-in-out 0.7s infinite; }
.hero-heart { animation: heroHeartbeat 2.8s ease-in-out infinite; }
.hero-heart-dot { animation: heroDotPulse 2.8s ease-in-out infinite; }
.hero-heartline {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: heroLineDraw 3.6s ease-in-out infinite;
}
@keyframes heroHeartbeat {
  0%, 44%, 100% { transform: scale(1); }
  12% { transform: scale(1.035); }
  22% { transform: scale(0.99); }
  32% { transform: scale(1.02); }
}
@keyframes heroDotPulse {
  0%, 44%, 100% { transform: scale(1); opacity: 1; }
  12%, 32% { transform: scale(1.35); opacity: 0.85; }
}
@keyframes heroOrbitPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes heroLineDraw {
  0% { stroke-dashoffset: 340; opacity: 0.35; }
  24%, 68% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -340; opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orbit,
  .hero-heart,
  .hero-heart-dot,
  .hero-heartline {
    animation: none;
  }
  .hero-heartline { stroke-dashoffset: 0; }
}

/* Organizers strip */
.organizers-strip { background: #fff; padding: 34px 0 26px; border-bottom: 1px solid var(--border); }

.countdown { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 12px 0 36px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.countdown-label { font-size: 0.92rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy); }
.countdown-grid { display: flex; align-items: center; gap: 14px; }
.countdown-sep { font-size: 2.2rem; font-weight: 800; color: var(--border); margin: 0 -4px; }
.countdown-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 108px; padding: 18px 10px; border-radius: 16px;
  background: var(--bg-blue, var(--bg)); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.countdown-num { font-size: 2.8rem; font-weight: 800; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-unit { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal); font-weight: 700; margin-top: 6px; }
@media (max-width: 640px) {
  .countdown-grid { gap: 8px; }
  .countdown-sep { display: none; }
  .countdown-item { width: 76px; padding: 12px 6px; border-radius: 12px; }
  .countdown-num { font-size: 1.8rem; }
  .countdown-unit { font-size: 0.66rem; }
}

.organizers-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 34px; }
.organizers-row .org-item { display: flex; align-items: center; gap: 10px; color: var(--text-light); font-weight: 600; font-size: 0.92rem; }
.organizers-row .org-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* About / invitation */
.about { background: var(--card); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { color: var(--text-light); margin-bottom: 18px; }
.about-text p:first-of-type { color: var(--text); font-size: 1.08rem; }

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.about-photo img { width: 100%; height: 220px; object-fit: cover; }

.program-photo {
  max-width: 900px; margin: 0 auto 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.program-photo img { width: 100%; height: 490px; object-fit: cover; object-position: center center; display: block; }
@media (max-width: 640px) {
  .program-photo img { height: 300px; }
}
.program-photo .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,26,68,0.85), transparent);
  color: #fff; padding: 30px 24px 16px; font-weight: 600; font-size: 0.95rem;
}

.topics-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.topics-card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 20px; }
.topics-card ul li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px dashed var(--border);
  color: var(--text);
}
.topics-card ul li:last-child { border-bottom: none; }
.topics-card .num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Program / Timeline */
.program { background: var(--bg); }
.program-note {
  max-width: 720px; margin: -20px auto 40px; text-align: center;
  background: #fff7e6; border: 1px solid #f3d896; color: #7a5c00;
  padding: 14px 20px; border-radius: 10px; font-size: 0.92rem;
}
.timeline { max-width: 760px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 20px; top: 6px; bottom: 6px; width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding: 0 0 34px 62px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 12px; top: 4px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; border: 3px solid var(--teal);
}
.timeline-item .time { font-weight: 700; color: var(--teal); font-size: 0.88rem; letter-spacing: 0.02em; }
.timeline-item h4 { color: var(--navy); font-size: 1.05rem; margin: 4px 0 6px; }
.timeline-item p { color: var(--text-light); font-size: 0.95rem; }

/* Call for abstracts */
.abstracts { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; }
.abstracts .section-head p { color: rgba(255,255,255,0.75); }
.abstracts .eyebrow { color: var(--teal); }
.abstracts .section-head h2 { color: #fff; }
.abstracts-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: stretch; }
@media (max-width: 860px) { .abstracts-grid { grid-template-columns: 1fr; } }
.abstracts-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 34px;
}
.abstracts-card h3 { font-size: 1.1rem; margin-bottom: 16px; }
.abstracts-card ul li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.12); display: flex; gap: 10px; }
.abstracts-card ul li:last-child { border-bottom: none; }
.abstracts-facts { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.fact-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px; padding: 20px 22px;
}
.fact-box .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); margin-bottom: 6px; font-weight: 700; }
.fact-box .value { font-size: 1.1rem; font-weight: 700; }
.fact-box .value.small { font-size: 0.98rem; font-weight: 600; word-break: break-all; }

/* Sponsors */
.sponsors { background: #fff; }
.sponsors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .sponsors-grid { grid-template-columns: 1fr; } }
.sponsor-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sponsor-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.sponsor-logo {
  width: 88px; height: 88px; border-radius: 18px;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.sponsor-logo-img { width: auto; min-width: 88px; padding: 10px 14px; background: #fff; border: 1px solid var(--border); }
.sponsor-logo-img img { height: 100%; width: auto; max-width: none; object-fit: contain; }
.sponsor-logo-wide {
  width: 188px;
  min-width: 188px;
  height: 108px;
  padding: 12px 18px;
}
.sponsor-logo-wide img {
  max-width: 154px;
  max-height: 78px;
}
.sponsor-logo-frederick {
  width: 270px;
  min-width: 270px;
}
.sponsor-logo-frederick img {
  max-width: 240px;
  max-height: 82px;
}
.sponsor-card h4 { color: var(--navy); font-size: 1rem; }
.sponsor-card .tag {
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--teal); background: rgba(29,161,160,0.1); padding: 4px 12px; border-radius: 999px;
}
.sponsor-card.placeholder { border-style: dashed; color: var(--text-light); }
.sponsor-card.placeholder .sponsor-logo { color: var(--text-light); }
.sponsor-card.placeholder .tag { color: var(--text-light); background: var(--bg); }

/* Registration */
.register { background: var(--bg); }
.register-wrap {
  max-width: 760px; margin: 0 auto;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 44px;
}
@media (max-width: 600px) { .register-wrap { padding: 28px 22px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; font-weight: 700; color: var(--navy); }
.form-field input,
.form-field select {
  width: 100%; min-width: 0; box-sizing: border-box;
  padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--border);
  font-size: 0.96rem; font-family: inherit; color: var(--text);
  transition: border-color 0.15s ease;
  background: #fff;
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--teal); }
.form-field.hidden { display: none; }

.consent-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-size: 0.88rem;
  color: var(--text-light);
}
.consent-row input[type="checkbox"] {
  width: auto;
  min-width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
}
.consent-row label {
  color: var(--text-light);
  text-align: left;
  font-weight: 600;
  line-height: 1.5;
}

.form-msg { margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: 0.92rem; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: #e7f8ee; color: #1a7a44; border: 1px solid #b7ecc9; }
.form-msg.error { background: #fde9ec; color: var(--danger); border: 1px solid #f6c2cb; }

.register-note { text-align: center; margin-top: 22px; font-size: 0.85rem; color: var(--text-light); }

/* Location */
.location { background: #fff; }
.location-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .location-grid { grid-template-columns: 1fr; } }
.location-details { display: flex; flex-direction: column; gap: 20px; }
.location-item { display: flex; gap: 14px; align-items: flex-start; }
.location-item .icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(29,161,160,0.12); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.location-item h4 { color: var(--navy); margin-bottom: 4px; }
.location-item p { color: var(--text-light); font-size: 0.95rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: none; width: 100%; height: 340px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid p, .footer-grid a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: #fff; }
.footer-brand {
  display: inline-flex; align-items: center; margin-bottom: 14px;
  background: #fff; border-radius: 8px; padding: 8px 14px;
}
.footer-brand img { height: 30px; width: auto; max-width: none; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
