/* ══════════════════════════════════════════════════
   ZealPHP — 5 Years of SNA landing page
   ════════════════════════════════════════════════════ */

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

:root {
  --accent: #f47a24;
  --accent-soft: rgba(244, 122, 36, 0.10);
  --accent-border: rgba(244, 122, 36, 0.33);
  --accent-glow: rgba(244, 122, 36, 0.25);
  --radius: 16px;
  --maxw: 1760px;
  --gutter: clamp(16px, 4vw, 56px);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

/* ── Dark theme (default) ── */
[data-theme="dark"] {
  --bg: #080808;
  --bg-section: #161616;
  --text: #ffffff;
  --muted: #888888;
  --muted-2: #a3a3a3;
  --muted-3: #8b949e;
  --surface: #111111;        /* small stat cards */
  --surface-card: #1e1e1e;   /* feature / attend cards */
  --surface-cta: #0c0c0c;
  --footer-bg: #0a0a0a;
  --border: #333333;
  --border-soft: #1e1e1e;
  --nav-bg: rgba(10, 10, 10, 0.72);
  --nav-border: rgba(255, 255, 255, 0.10);
  --pill-bg: #111113;
  --pill-border: #27272a;
  --divider: rgba(184, 182, 182, 0.33);
  --foot-years: #71717a;
  --foot-copy: #3f3f46;
}

/* ── Light theme ── */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-section: #f7f7f8;
  --text: #111111;
  --muted: #555555;
  --muted-2: #444444;
  --muted-3: #5a6573;
  --surface: #f4f4f5;
  --surface-card: #ffffff;
  --surface-cta: #fff8f2;
  --footer-bg: #f4f4f5;
  --border: #e4e4e7;
  --border-soft: #ececef;
  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-border: rgba(0, 0, 0, 0.08);
  --pill-bg: #f4f4f5;
  --pill-border: #e4e4e7;
  --divider: rgba(0, 0, 0, 0.12);
  --foot-years: #71717a;
  --foot-copy: #a1a1aa;
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  padding-top: 86px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

.material-symbols-outlined { font-size: 24px; line-height: 1; }
.accent { color: var(--accent); }

/* ══════════ NAVBAR ══════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 76px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--nav-border);
}
.nav-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-fallback { display: none; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--accent); letter-spacing: 0.5px; }
.brand-sub  { font-size: 13px; color: var(--text); }

/* light: show light logo / hide dark logo, and vice versa */
[data-theme="light"] .logo-dark { display: none !important; }
[data-theme="dark"]  .logo-light { display: none !important; }

/* Theme toggle pill */
.dm-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 14px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.dm-pill:hover { transform: translateY(-1px); border-color: var(--accent-border); box-shadow: 0 6px 18px -8px rgba(0,0,0,0.5); }
.dm-pill .dm-icon { font-size: 18px; line-height: 1; color: var(--muted); transition: color 0.2s; }
[data-theme="light"] .dm-pill .sun  { color: #f59e0b; }
[data-theme="dark"]  .dm-pill .moon { color: #e8eaed; }
.toggle-track {
  width: 46px; height: 24px;
  border-radius: 999px;
  background: var(--accent);
  position: relative;
  transition: background 0.25s;
}
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.25s;
}
[data-theme="dark"] .toggle-thumb { left: 25px; }
[data-theme="light"] .toggle-track { background: #c7ccd4; }
.dm-label { font-size: 16px; font-weight: 700; }

/* ══════════ BUTTONS ══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(5px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -8px var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 16px 34px -8px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }

/* ══════════ HERO ══════════ */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter) 0; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 3vw, 60px);
  align-items: start;
}
.hero-left { display: flex; flex-direction: column; align-items: flex-start; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.badge .material-symbols-outlined { font-size: 18px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3vw, 52px);
  line-height: 1.1;
  margin-top: 24px;
  max-width: none;
}
.hero-session {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 500;
  margin-top: 22px;
}
.hero-session .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-desc {
  color: var(--muted);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
  margin-top: 22px;
  max-width: 760px;
}

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}
.stat .material-symbols-outlined { color: var(--text); font-size: 22px; }
.stat-text { display: flex; flex-direction: column; line-height: 1.15; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); }
.stat-label { font-size: 12px; color: var(--muted-2); }

.hero-cta { margin-top: 44px; width: 100%; padding: 16px 32px; border-radius: 8px; font-size: 20px; }

.hero-right { display: flex; justify-content: flex-end; }
.hero-img { width: 100%; max-width: 720px; height: auto; display: block; }
/* Theme-specific hero image swap */
[data-theme="light"] .hero-img-dark { display: none; }
[data-theme="dark"] .hero-img-light { display: none; }

/* Info bar — sits directly under the CTA in the left column */
.info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
}
.info-item { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: var(--text); }
.info-item .material-symbols-outlined { font-size: 22px; }

/* ══════════ SECTIONS (shared) ══════════ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 80px var(--gutter); }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 46px); text-align: center; }
.section-sub { text-align: center; font-size: 18px; color: var(--text); margin: 16px auto 0; max-width: 520px; line-height: 1.4; }

/* "What will happen" full-width band */
.session-sec { max-width: 100%; background: var(--bg-section); }
.session-sec > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 16px;
  margin-top: 48px;
}
.feature-card {
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,0.6); }
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  margin-bottom: 16px;
}
.feature-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.3; }
.feature-desc { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 8px; }
.feature-points { list-style: none; margin-top: 8px; }
.feature-points li { color: var(--muted); font-size: 14px; line-height: 1.7; padding-left: 16px; position: relative; }
.feature-points li::before { content: "•"; color: var(--accent); position: absolute; left: 2px; }

/* ══════════ AGENDA ══════════ */
.agenda-sec { background: var(--bg); }
.agenda {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.agenda-line {
  position: absolute;
  top: 29px; left: 0; right: 0;
  height: 2px;
  background: var(--divider);
}
.agenda-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.agenda-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}
.agenda-icon .material-symbols-outlined { font-size: 28px; }
.agenda-title { font-weight: 700; font-size: 18px; margin-top: 32px; }
.agenda-desc { color: var(--muted-3); font-size: 14px; line-height: 1.4; margin-top: 12px; max-width: 200px; }

/* ══════════ MEET HOST / WHY ATTEND ══════════ */
.host-sec { background: var(--bg-section); }
.host-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.col-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.8vw, 38px); }
.host-col .col-title { position: relative; padding-bottom: 14px; margin-bottom: 28px; }
.host-col .col-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 160px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.attend-col .col-title { margin-bottom: 28px; }

.host-card {
  position: relative;
  margin-top: 52px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 36px 32px 292px;
  overflow: visible;
  min-height: 300px;
}
/* Photo sits flush to the card bottom and rises above the top edge */
.host-img {
  position: absolute;
  left: 24px;
  bottom: 0;
  width: 240px;
  height: auto;
  object-fit: cover;
  object-position: center top;
  z-index: 2;
}
.host-info { position: relative; z-index: 2; }
.host-name { font-size: 24px; font-weight: 700; }
.host-role { color: var(--accent); font-size: 16px; margin-top: 8px; }
.host-points { list-style: none; margin-top: 16px; }
.host-points li { color: var(--muted-2); font-size: 16px; line-height: 1.7; padding-left: 18px; position: relative; }
.host-points li::before { content: "•"; color: var(--muted); position: absolute; left: 2px; }

.attend-list { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.attend-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  transition: transform 0.18s ease, border-color 0.2s ease;
}
.attend-card:hover { transform: translateX(4px); border-color: var(--accent-border); }
.attend-icon { color: var(--accent); margin-top: 2px; }
.attend-title { font-size: 18px; font-weight: 600; }
.attend-desc { color: var(--text); font-size: 16px; margin-top: 4px; }

/* ══════════ CTA ══════════ */
.cta-sec { background: var(--bg); }
.cta-card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--surface-cta);
  border: 1px solid var(--accent-border);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 60px -10px var(--accent-glow);
}
.cta-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.05; }
.cta-sub { color: var(--muted-2); font-size: 18px; line-height: 1.5; margin: 14px auto 0; max-width: 520px; }
.cta-btn { width: 100%; margin: 28px auto 0; padding: 16px 24px; border-radius: 12px; font-size: 22px; }
.cta-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; margin-top: 28px; }

/* ══════════ FOOTER ══════════ */
.site-footer { background: var(--footer-bg); text-align: center; padding: 48px 24px; }
.footer-brand { justify-content: center; margin-bottom: 16px; }
.footer-brand .brand-logo { height: 40px; }
.footer-years { color: var(--foot-years); font-size: 18px; font-weight: 500; }
.footer-tagline { color: var(--foot-years); font-size: 18px; font-weight: 500; }
.footer-copy { color: var(--foot-copy); font-size: 16px; margin-top: 16px; }

/* Thin footer bar (reserve / inner pages) */
.footer-bar { background: var(--footer-bg); border-top: 1px solid var(--border); padding: 22px var(--gutter); }
.footer-bar-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.footer-bar-links { display: flex; align-items: center; gap: 14px; }
.footer-bar-links a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.footer-bar-links a:hover { color: var(--accent); }
.footer-bar-sep { color: var(--border); }
.footer-bar-copy { color: var(--muted-3); font-size: 14px; }

/* ══════════ RESERVE / CONTACT FORM ══════════ */
.reserve {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--gutter) 80px;
  display: flex;
  justify-content: center;
}
.form-card {
  width: 100%;
  max-width: 1000px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 48px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.45);
}

.form-head { margin-bottom: 28px; }
.form-badge {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: 0.6px;
}
.form-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.form-title { font-family: var(--font-display); font-weight: 700; font-size: 30px; margin-top: 14px; }
.form-sub { color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.5; margin-top: 8px; }

.reserve-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 18px; font-weight: 500; color: var(--text); }
.field-input {
  display: flex; align-items: center; gap: 12px;
  background: #191919;
  border: 1px solid #2c2c2e;
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
[data-theme="light"] .field-input { background: #f5f5f6; border-color: #e2e2e5; }
.field-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-input .material-symbols-outlined { font-size: 20px; color: var(--muted-3); flex: none; }
.field-input input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--font); font-size: 15px; font-weight: 500;
}
.field-input input::placeholder { color: var(--muted); }
.field-error { color: #f04438; font-size: 12.5px; min-height: 0; display: none; }
.field.invalid .field-input { border-color: #f04438; }
.field.invalid .field-error { display: block; }

.form-note {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  color: var(--muted-2); font-size: 16px; margin-top: 4px;
}
.form-note .material-symbols-outlined { font-size: 16px; color: var(--muted-3); }
.form-note-strong { color: var(--text); font-weight: 600; }

.form-submit { width: 100%; padding: 17px 24px; border-radius: 12px; font-size: 18px; margin-top: 4px; }
.form-submit .material-symbols-outlined { font-size: 20px; }
.form-submit.is-loading { opacity: 0.7; cursor: progress; }
.form-message { display: none; text-align: center; font-size: 14px; margin-top: -4px; }
.form-message.show { display: block; }
.form-message.error { color: #f04438; }
.form-message.success { color: #16a34a; }

.form-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 6px; }
.info-item-muted { color: var(--muted-3); font-size: 14px; font-weight: 600; }
.info-item-muted .material-symbols-outlined { font-size: 20px; color: var(--muted-3); }

/* ══════════ CONGRATS MODAL ══════════ */
.congrats-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.congrats-overlay.open { opacity: 1; visibility: visible; }
.congrats-card {
  width: 100%; max-width: 600px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.55);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}
.congrats-overlay.open .congrats-card { transform: translateY(0) scale(1); }
.congrats-icon {
  width: 96px; height: 96px; margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 18px var(--accent-soft);
}
.congrats-icon .material-symbols-outlined { font-size: 52px; color: #fff; font-weight: 700; }
.congrats-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 5vw, 48px); letter-spacing: 1px; }
.congrats-msg { color: var(--text); font-size: 20px; line-height: 1.6; margin: 20px auto 0; max-width: 520px; }
.congrats-date { color: var(--accent); font-size: 20px; font-weight: 500; margin-top: 24px; }
.congrats-back { display: inline-block; margin-top: 28px; color: var(--muted-2); font-size: 15px; text-decoration: none; transition: color 0.2s; }
.congrats-back:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
/* ── Below laptop: hero image is laptop/desktop only → hide it, text goes full width ── */
@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-right { display: none; }
  .hero-cta { max-width: 640px; }
  .hero-title, .hero-desc { max-width: 760px; }
}

/* ── Tablets: 2-up card grid ── */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Small tablets: single-column host grid + vertical agenda timeline ── */
@media (max-width: 820px) {
  .host-grid { grid-template-columns: 1fr; gap: 40px; }

  .agenda { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
  .agenda-line { display: none; }
  .agenda-item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: 4px;
    align-items: center;
    text-align: left;
  }
  .agenda-icon { grid-row: 1 / span 2; align-self: center; flex: none; }
  .agenda-title { margin-top: 0; }
  .agenda-desc { margin-top: 0; max-width: none; }
}

/* ── Phones ── */
@media (max-width: 680px) {
  body { padding-top: 76px; }
  .navbar { height: 66px; }
  .brand-logo { height: 32px; }
  .dm-label { display: none; }
  .dm-pill { padding: 8px 12px; gap: 8px; }

  .hero { padding: 32px var(--gutter) 0; }
  .hero-title { font-size: 28px; line-height: 1.18; }
  .hero-session { font-size: 17px; }
  .hero-desc { font-size: 16px; }
  .hero-cta { font-size: 18px; max-width: none; }
  .hero-stats { gap: 10px; }
  .stat { flex: 1 1 calc(50% - 5px); }
  .info-bar { gap: 16px; padding-left: 0; }
  .info-item { font-size: 14px; }

  .section { padding: 56px var(--gutter); }
  .card-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 20px; }

  .host-card { padding: 0; min-height: 0; overflow: hidden; margin-top: 0; }
  .host-img { position: static; width: 100%; height: 300px; object-position: center top; }
  .host-info { padding: 22px; }

  .cta-card { padding: 26px 18px; border-radius: 18px; }
  .cta-title { font-size: 26px; line-height: 1.15; }
  .cta-sub { font-size: 16px; }
  .cta-btn { font-size: 16px; padding: 15px 16px; }
  .cta-info { gap: 16px; }

  /* Reserve form + congrats */
  .reserve { padding: 28px var(--gutter) 52px; }
  .form-card { padding: 26px 18px; border-radius: 18px; }
  .form-title { font-size: 25px; }
  .field-label { font-size: 16px; }
  .congrats-card { padding: 40px 22px; }
  .congrats-icon { width: 80px; height: 80px; box-shadow: 0 0 0 14px var(--accent-soft); }
  .congrats-icon .material-symbols-outlined { font-size: 44px; }
  .congrats-msg { font-size: 17px; }
  .congrats-date { font-size: 17px; }

  .footer-bar-inner { flex-direction: column; gap: 10px; text-align: center; justify-content: center; }
}

/* ── Small phones ── */
@media (max-width: 420px) {
  .hero-title { font-size: 25px; }
  .info-bar { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .cta-info { flex-direction: column; align-items: center; }
}
