/* =====================================================
   Gulf Hearing & Otology Summit — Main Stylesheet
   ===================================================== */

:root {
  /* Core palette */
  --navy: #0E2A4D;
  --navy-light: #15396B;
  --blue: #1C7ED6;
  --blue-dark: #1463AE;
  --blue-pale: #EAF3FC;
  --sky: #D9E9FB;
  --ink: #16213A;
  --surface: #FFFFFF;
  --surface-alt: #F5F8FC;
  --white: #FFFFFF;
  --line: rgba(14, 42, 77, 0.12);

  /* Gold accent — hero banner */
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dark: #A8872C;

  /* Legacy aliases — keeps existing PHP markup working */
  --teal: #0E2A4D;
  --teal-light: #15396B;
  --sand: #D9E9FB;
  --sand-light: #F5F8FC;
  --coral: #1C7ED6;
  --coral-dark: #1463AE;

  /* Typography */
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-light); }

/* ==========================================
   SITE HEADER / NAV
   ========================================== */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; flex-direction: column; color: var(--navy); line-height: 1.2; }
.logo-mark { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.04em; color: var(--navy); }
.logo-sub { font-size: 0.7rem; color: var(--blue); letter-spacing: 0.02em; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--ink); font-size: 0.88rem; font-weight: 500; position: relative; padding: 4px 0; }
.main-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--blue); transition: width 0.2s ease;
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--blue); }
.nav-cta { background: var(--blue); color: var(--white) !important; padding: 9px 18px; border-radius: 4px; }
.nav-cta:hover { background: var(--blue-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); }

/* ==========================================
   HERO BANNER — PHNSCON STYLE
   Full-screen dark navy, gold accents
   ========================================== */
.hero-banner {
  position: relative;
  background: #0B1B33;
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background image (optional, set via admin) */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* opacity + filter driven by PHP inline style — do NOT set here */
}
.hero-bg-dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* background driven by PHP inline style — do NOT set here */
}

/* Two-column grid: left content, right info card */
.hero-banner-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  padding: 90px 0 80px;
  width: 100%;
}

/* Eyebrow: ——— INTERNATIONAL CONFERENCE · ISLAMABAD ——— */
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-eyebrow-line {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--gold);
}
.hero-eyebrow-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* Conference name — white first line, gold second line */
.hero-conf-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.hero-conf-name .gold { color: var(--gold); display: block; }

/* Italic subtitle */
.hero-conf-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.72);
  margin: 0 0 28px;
  font-weight: 300;
}

/* ♦ Date · ♦ Location row */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.hero-diamond { color: var(--gold); font-size: 0.65rem; line-height: 1; }
.hero-bullet  { color: rgba(255,255,255,0.35); font-size: 1rem; }
.hero-meta-text { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--white); }

/* Countdown — gold-bordered box */
.hero-countdown {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(201,168,76,0.50);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 36px;
  background: rgba(0,0,0,0.30);
}
.hcd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  min-width: 85px;
}
.hcd-val {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}
.hcd-lbl {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-top: 7px;
  display: block;
}
.hcd-sep {
  display: flex;
  align-items: center;
  color: rgba(201,168,76,0.40);
  font-size: 1.4rem;
  font-weight: 100;
  padding: 0 2px;
  line-height: 1;
}

/* CTA row — gold + white-outline */
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 34px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  letter-spacing: 0.02em;
}
.hero-btn-gold {
  background: var(--gold);
  color: #0B1B33;
  border-color: var(--gold);
}
.hero-btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }
.hero-btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.60);
}
.hero-btn-outline:hover { background: rgba(255,255,255,0.08); border-color: var(--white); transform: translateY(-2px); }

/* Right-side info card */
.hero-info-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
}
.hero-info-row { padding: 22px 28px; border-bottom: 1px solid rgba(255,255,255,0.10); }
.hero-info-row:last-child { border-bottom: none; }
.hir-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.hir-value {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}

/* ==========================================
   AUDIO TRACE DIVIDER (between hero & content)
   ========================================== */
.audio-trace { width: 100%; height: 32px; display: block; color: var(--blue); }
.audio-trace polyline {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw-trace 2.4s ease-out forwards;
}
@keyframes draw-trace { to { stroke-dashoffset: 0; } }

/* ==========================================
   SECTIONS
   ========================================== */
.section { padding: 80px 0; }
.section-sand { background: var(--surface-alt); }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================
   WELCOME / PRESIDENT MESSAGE
   ========================================== */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.welcome-sig { margin-top: 24px; font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); }
.welcome-sig span { display: block; font-family: var(--font-body); font-size: 0.85rem; color: var(--ink); font-weight: 400; }

/* ==========================================
   SPEAKER CARDS
   ========================================== */
.speaker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.speaker-card {
  background: var(--white); border: 1px solid var(--line); padding: 24px;
  border-radius: 6px; text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.speaker-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(14,42,77,0.10); }
.speaker-photo {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.6rem; color: var(--blue-dark);
  margin: 0 auto 16px; overflow: hidden; border: 3px solid var(--sky);
}
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker-card h3 { margin-bottom: 2px; font-size: 1.05rem; }
.speaker-card .cred { font-size: 0.82rem; color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.speaker-card .affil { font-size: 0.85rem; color: var(--ink); opacity: 0.75; }
.speaker-type-tabs { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.speaker-type-tabs a { font-family: var(--font-mono); font-size: 0.8rem; padding: 8px 16px; border: 1px solid var(--navy); border-radius: 4px; color: var(--navy); }
.speaker-type-tabs a.active { background: var(--navy); color: var(--white); }

/* ==========================================
   PARTNER / LOGO GRIDS
   ========================================== */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; align-items: center; }
.logo-tile {
  background: var(--white); border: 1px solid var(--line); padding: 20px;
  display: flex; align-items: center; justify-content: center;
  min-height: 100px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--navy); text-align: center;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.logo-tile:hover { box-shadow: 0 8px 18px rgba(14,42,77,0.08); transform: translateY(-2px); }
.logo-tile img { max-width: 100%; max-height: 56px; object-fit: contain; }
.partner-tier-label {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue); margin: 40px 0 18px; display: block;
}
.partner-tier-label:first-of-type { margin-top: 0; }

/* ==========================================
   EXPERIENCE CITY CARD
   ========================================== */
.experience-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white);
  align-items: stretch;
}
.experience-text { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.experience-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface-alt);
}
.experience-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.experience-card .btn { align-self: flex-start; margin-top: 8px; }

/* ==========================================
   FORMS
   ========================================== */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 40px; max-width: 720px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-row .hint { font-size: 0.78rem; color: var(--ink); opacity: 0.6; margin-top: 4px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="datetime-local"], input[type="password"],
input[type="url"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--font-body); font-size: 0.95rem; background: var(--surface-alt); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; }
textarea { resize: vertical; min-height: 140px; }
.alert { padding: 14px 18px; border-radius: 4px; margin-bottom: 24px; font-size: 0.92rem; }
.alert-success { background: #E5F5EC; color: #1E6B3F; border: 1px solid #B3E0C6; }
.alert-error { background: #FCEAEA; color: #A12E2E; border: 1px solid #F2B8B8; }

/* ==========================================
   PROGRAM / AGENDA
   ========================================== */
.agenda-day { margin-bottom: 48px; }
.agenda-day-title {
  display: inline-block; background: var(--navy); color: var(--white);
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.06em;
  padding: 8px 18px; border-radius: 4px; margin-bottom: 20px;
}
.agenda-row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.agenda-time { font-family: var(--font-mono); font-size: 0.85rem; color: var(--blue-dark); font-weight: 600; }
.agenda-session h4 { margin: 0 0 4px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--navy); }
.agenda-session p { margin: 0; font-size: 0.88rem; opacity: 0.75; }

/* ==========================================
   MEDIA / GALLERY
   ========================================== */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.media-tile { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--surface-alt); }
.media-tile img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer { background: var(--navy); color: var(--sky); margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 50px 0 30px; }
.footer-col h4 { color: var(--white); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; margin-bottom: 10px; font-size: 0.9rem; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: #6FC3FF; }
.footer-col p { font-size: 0.88rem; opacity: 0.85; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; font-size: 0.8rem; opacity: 0.7; }

/* ==========================================
   BADGE (shared utility)
   ========================================== */
.badge { font-family: var(--font-mono); font-size: 0.72rem; padding: 3px 8px; border-radius: 3px; background: var(--sky); color: var(--navy); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 860px) {
  /* Hero */
  .hero-banner-inner { grid-template-columns: 1fr; padding: 60px 0 50px; gap: 36px; }
  .hero-right { order: -1; }
  .hero-conf-name { font-size: clamp(2rem, 8vw, 3.2rem); }
  .hcd-unit { padding: 14px 18px; min-width: 64px; }
  .hcd-val { font-size: 1.9rem; }

  /* Layout */
  .welcome-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .experience-card { grid-template-columns: 1fr; }
  .experience-image { min-height: unset; order: -1; }
  .agenda-row { grid-template-columns: 1fr; gap: 6px; }
  .form-grid-2 { grid-template-columns: 1fr; }

  /* Nav */
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
}
