/* ISEF theme: all palette values live here; layout stays in existing styles. */
:root {
  --navy: #040C1B;
  --blue: #2AA8F0;
  --turquoise: #00C4A8;
  --gold: #D4A843;
  --background: #EEF6FF;
  --white: #FFFFFF;
  --ink: #0B1C33;
  --blue-deep: #145B82;
  --muted: #4B6178;
  --border: #B9DCEC;
  --navy-rgb: 4, 12, 27;
  --blue-rgb: 42, 168, 240;
  --gold-hover: #E5BB57;
  --text-on-dark: rgba(255, 255, 255, .9);
  --text-on-light: rgba(11, 28, 51, .9);
  --text-muted-90: rgba(75, 97, 120, .9);
  --heading-opacity: .9;
  --heading-on-dark: rgba(255, 255, 255, var(--heading-opacity));
  --heading-on-light: rgba(11, 28, 51, var(--heading-opacity));
  --text-dark: var(--text-on-light);
  --text-mid: var(--text-muted-90);
  --dark-gradient: linear-gradient(110deg, var(--navy), var(--ink) 70%, var(--blue-deep));
}
body { background: var(--pattern-image) repeat, var(--background); color: var(--text-on-light); font-family: 'Lato', sans-serif; }
nav, footer { background: var(--dark-gradient); }
.nav-logo img { width: 150px; height: 50px; object-fit: contain; filter: none; }
.nav-logo img:hover { filter: none; }
.brand-fallback { color: var(--white); font-weight: 800; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.video-container { background: var(--hero-poster) center / cover; min-height: 420px; }
.video-overlay { background: linear-gradient(100deg, rgba(var(--navy-rgb),.85), rgba(var(--navy-rgb),.6)); }
.hero .content { max-width: 100%; left: 0; right: 0; text-align: center; padding: 24px; }
.hero .hero-logo { width: clamp(230px, 40vw, 530px); height: auto; max-height: 30vh; object-fit: contain; }
.hero-title { color: var(--heading-on-dark); font-family: 'Montserrat', sans-serif; font-size: clamp(26px, 4vw, 56px); margin-top: 20px; line-height: 1.2; text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, .75); }
.hero-intro { margin-top: 14px; font-size: clamp(14px, 2vw, 20px); }
.event-status { color: var(--white); letter-spacing: .5px; margin-top: 20px; }
.faq-section, .organizer-section { background: var(--pattern-image) repeat, var(--background); }
.btn-registrasi, .btn-registrasi1, .btn-buat-surat, .btn-detail, .modal-confirm, #backToTop { background: var(--gold); color: var(--text-on-light); box-shadow: 0 4px 18px var(--shadow); }
.btn-registrasi:hover, .btn-registrasi1:hover, .btn-buat-surat:hover, .btn-detail:hover, .modal-confirm:hover, #backToTop:hover { background: var(--gold-hover); color: var(--text-on-light); }
.btn-icon { fill: currentColor; }
.contact-icon, .icon-ig, .icon-wa { background: var(--blue-deep); box-shadow: none; }
.faq-answer a { color: var(--blue-deep); }
.img-zoom, .size-chart-image, .organizer-section img { object-fit: contain; }
.hero-intro, .event-status { color: var(--text-on-dark); text-shadow: 0 2px 10px rgba(0, 0, 0, .75); }
.menu-card, .faq-question, .faq-answer { color: var(--text-on-light); }
footer p { color: var(--text-on-dark); }
.about-copy h2, .rpc-card-head h3 { color: var(--heading-on-dark); }
.page-header h1, .route-map h3, .benefits-section h3, .rpc-timeline h3,
.surat-kuasa-title, .jersey-detail-card h3, .coming-soon-card h2, .kontak-pill {
  color: var(--heading-on-light);
}
.pending-note { color: var(--muted); margin: 0 0 22px; line-height: 1.6; }
.contact-info, .menu-card, .benefit-card { min-width: 0; overflow-wrap: anywhere; }
.note-box { background: var(--background); color: var(--ink); }
.info-card { border-top-color: var(--blue); }
.benefit-card { border-bottom-color: var(--turquoise); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
dialog { margin: auto; padding: 36px; border: 1px solid var(--border); border-top: 4px solid var(--turquoise); border-radius: 18px; width: min(480px, calc(100% - 32px)); color: var(--ink); background: var(--white); box-shadow: 0 16px 48px var(--shadow); }
dialog::backdrop { background: rgba(var(--navy-rgb), .8); }
dialog h2 { font-size: 24px; padding-right: 20px; margin-bottom: 16px; }
dialog p { line-height: 1.7; color: var(--muted); }
.modal-close { position: absolute; right: 14px; top: 10px; border: 0; background: transparent; font-size: 28px; color: var(--ink); cursor: pointer; }
.modal-confirm { margin-top: 24px; border: 0; border-radius: 30px; padding: 12px 28px; font-weight: 700; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1024px) { .nav-logo img { margin-left: 0; } }
@media (max-width: 640px) {
  .nav-links { background: var(--dark-gradient); visibility: hidden; }
  .nav-links.open { visibility: visible; }
  .nav-logo img { width: 130px; }
  footer { grid-template-columns: 1fr; }
  footer p, .footer-icons { grid-column: 1; justify-content: center; }
  .btn-registrasi, .btn-registrasi1 { min-width: 0; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
