/* ==========================================================================
   ECM-52 — Design tokens
   A civil-engineering summit reads institutional, not startup-SaaS:
   ink navy + sandstone + a single terracotta accent, drafting-line motifs,
   a serif for headlines (policy-document gravitas) over a technical sans.
   ========================================================================== */

:root {
  --ink:        #113A3D;   /* deep teal — headers, footer, structure */
  --ink-deep:   #0B2628;   /* darker teal for depth/gradients */
  --sandstone:  #D9B84A;   /* warm gold — labels, hairline accents on dark bg */
  --terracotta: #9C7A0E;   /* deeper gold — single bold accent, CTAs */
  --paper:      #F3F5F3;   /* cool off-white background */
  --paper-line: #DCE3DE;   /* hairline rules on paper */
  --ink-text:   #16241F;   /* body/heading text on paper */
  --slate:      #55655F;   /* secondary text */
  --white:      #FFFFFF;
  --line:       rgba(17, 58, 61, 0.14);

  --font-display: 'Source Serif 4', 'Georgia', serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max: 1160px;
  --radius: 2px; /* deliberately near-sharp: drafting, not app UI */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-text); text-align: justify; text-justify: inter-word; hyphens: auto; }
.lede { font-size: 1.15rem; color: var(--slate); max-width: 56ch; text-align: left; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink p { color: rgba(255,255,255,0.78); }
.section--line-top { border-top: 1px solid var(--paper-line); }

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--terracotta); color: var(--white); }
.btn--primary:hover { background: #7C610B; }
.btn--outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--outline-ink { border-color: var(--ink); color: var(--ink); }
.btn--outline-ink:hover { background: var(--ink); color: var(--white); }
.btn--block { width: 100%; justify-content: center; }

/* ---------------- Top navigation ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__icon { height: 34px; width: 34px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; }
.brand__mark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  color: var(--white); letter-spacing: 0.02em; line-height: 1;
}
.brand__sub { font-size: 0.72rem; color: var(--sandstone); font-family: var(--font-mono); }

.nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 10px 14px; text-decoration: none;
  color: rgba(255,255,255,0.82); font-size: 0.93rem; border-radius: var(--radius);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav__cta { margin-left: 8px; }

.nav__toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); flex-direction: column; padding: 8px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav__links.is-open { display: flex; }
  .nav__cta { margin: 8px 0 0; }
}

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: 40px; padding: 84px 0 64px;
}
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; padding: 56px 0 40px; } }

.hero__eyebrow {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--sandstone);
  border-left: 2px solid var(--sandstone); padding-left: 10px; margin-bottom: 22px;
  letter-spacing: 0.03em;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero .lede { color: rgba(255,255,255,0.82); margin-bottom: 30px; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 28px; margin: 30px 0 34px; }
.hero__meta div { border-left: 1px solid rgba(255,255,255,0.25); padding-left: 14px; }
.hero__meta span { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--sandstone); margin-bottom: 4px; }
.hero__meta strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; }

/* Countdown */
.countdown { display: flex; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.countdown__unit { text-align: left; min-width: 68px; }
.countdown__num {
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--white);
  border-top: 1px solid var(--sandstone); padding-top: 6px; display: block;
}
.countdown__label { font-family: var(--font-mono); font-size: 0.7rem; color: rgba(255,255,255,0.6); }

/* ---------------- Spec sheet (quick facts) ---------------- */
.spec-sheet { border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
.spec-sheet__row { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) { .spec-sheet__row { grid-template-columns: repeat(2, 1fr); } }
.spec-sheet__item {
  padding: 30px 24px; border-right: 1px solid var(--paper-line);
}
.spec-sheet__item:last-child { border-right: none; }
.spec-sheet__item span {
  display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--terracotta);
  text-transform: lowercase; margin-bottom: 8px;
}
.spec-sheet__item strong { font-family: var(--font-display); font-size: 1.2rem; display: block; color: var(--ink); }

/* ---------------- Section header ---------------- */
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head__kicker {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--terracotta); margin-bottom: 10px;
}

/* ---------------- Cards (used sparingly, sharp corners) ---------------- */
.card {
  background: var(--white); border: 1px solid var(--paper-line);
  border-radius: var(--radius); padding: 28px;
}
.card p { text-align: left; } /* narrow columns — justify creates uneven word gaps */
.card--ink { background: var(--ink); color: var(--white); border-color: transparent; }
.card--ink h3 { color: var(--white); }
.card--ink p { color: rgba(255,255,255,0.75); }

/* ---------------- Timeline / schedule ---------------- */
.timeline-day { margin-bottom: 52px; }
.timeline-day__head {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px;
}
.timeline-day__num { font-family: var(--font-mono); color: var(--terracotta); font-size: 0.95rem; }
.timeline {
  list-style: none; margin: 0; padding: 0;
  border-left: 1px solid var(--paper-line);
}
.timeline li {
  display: grid; grid-template-columns: 130px 1fr; gap: 20px;
  padding: 18px 0 18px 24px; position: relative; border-bottom: 1px solid var(--paper-line);
}
.timeline li::before {
  content: ''; position: absolute; left: -5px; top: 26px; width: 9px; height: 9px;
  background: var(--terracotta); border-radius: 50%;
}
.timeline li:last-child { border-bottom: none; }
.timeline time { font-family: var(--font-mono); font-size: 0.85rem; color: var(--slate); }
.timeline h4 { font-family: var(--font-body); font-weight: 700; margin: 0 0 4px; font-size: 1rem; color: var(--ink); }
.timeline p { margin: 0; font-size: 0.94rem; color: var(--slate); text-align: left; }
.timeline .tag {
  display: inline-block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--terracotta); border: 1px solid var(--terracotta); padding: 1px 8px; border-radius: 20px;
}
@media (max-width: 620px) { .timeline li { grid-template-columns: 1fr; } }

/* ---------------- Table (committee / member bodies) ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--paper-line); }
table.data { width: 100%; border-collapse: collapse; background: var(--white); }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--paper-line); font-size: 0.95rem; }
table.data th {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--terracotta);
  background: var(--paper); border-bottom: 2px solid var(--ink);
}
table.data tr:last-child td { border-bottom: none; }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.78rem; color: var(--slate); }
input, select, textarea {
  font-family: var(--font-body); font-size: 0.98rem; padding: 12px 14px;
  border: 1px solid #C9C1AE; border-radius: var(--radius); background: var(--white); color: var(--ink-text);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--terracotta); outline-offset: 1px; border-color: var(--terracotta);
}
textarea { resize: vertical; min-height: 100px; font-family: var(--font-body); }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: 0.95rem; }
.alert--success { background: #E4F1E6; color: #1E5C2A; border: 1px solid #B7DABE; }
.alert--error { background: #FBE8E3; color: #7A2A16; border: 1px solid #F0C3B4; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,0.75); padding: 56px 0 26px; }
.site-footer p { text-align: left; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.02em; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--sandstone); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid li { margin-bottom: 8px; list-style: none; }
.footer-grid ul { margin: 0; padding: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }

/* ---------------- Top logo bar (Gujarat / ICE India / ACECC) ---------------- */
.logo-bar { background: var(--paper); border-bottom: 1px solid var(--paper-line); padding: 16px 0; }
.logo-bar__row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
}
.logo-bar__left, .logo-bar__right, .logo-bar__center { display: flex; align-items: center; gap: 10px; }
.logo-bar__left { justify-self: start; }
.logo-bar__right { justify-self: end; flex-direction: row-reverse; }
.logo-bar__center { justify-self: center; flex-direction: column; gap: 4px; }
.logo-bar img { height: 42px; width: auto; }
.logo-bar__center img { height: 54px; }
.logo-bar__label { display: flex; flex-direction: column; line-height: 1.25; }
.logo-bar__label strong { font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.logo-bar__label span { font-family: var(--font-mono); font-size: 0.66rem; color: var(--slate); }
.logo-bar__center span { font-family: var(--font-mono); font-size: 0.66rem; color: var(--slate); text-align: center; }

@media (max-width: 760px) {
  .logo-bar__row { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .logo-bar__left, .logo-bar__right { justify-self: center; flex-direction: column; }
  .logo-bar__right { flex-direction: column; }
  .logo-bar__label { align-items: center; text-align: center; }
}

/* ---------------- Logo placeholders ---------------- */
.footer-hosts {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
  padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-hosts__item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-hosts__item img { height: 48px; width: auto; }
.footer-hosts__item span { font-family: var(--font-mono); font-size: 0.68rem; color: rgba(255,255,255,0.55); }

.logo-strip__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 30px;
}
@media (max-width: 900px) { .logo-strip__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .logo-strip__grid { grid-template-columns: repeat(2, 1fr); } }
.logo-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.logo-slot__frame {
  width: 100%; height: 64px; display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--paper-line); padding: 8px;
}
.logo-slot__frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo-slot span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--slate); text-align: center; }

/* ---------------- Utilities ---------------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; padding: 3px 10px;
  border: 1px solid var(--ink); border-radius: 20px; color: var(--ink); margin-right: 6px;
}
.status-pending { color: #9A6A17; }
.status-confirmed { color: #1E5C2A; }
.status-cancelled { color: #7A2A16; }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: var(--white); padding: 26px 18px; }
.admin-side a { display: block; padding: 10px 12px; color: rgba(255,255,255,0.8); text-decoration: none; border-radius: var(--radius); font-size: 0.92rem; margin-bottom: 2px; }
.admin-side a:hover, .admin-side a.is-active { background: rgba(255,255,255,0.1); color: var(--white); }
.admin-main { padding: 32px 36px; background: var(--paper); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
@media (max-width: 900px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } .admin-shell { grid-template-columns: 1fr; } .admin-side { display: flex; flex-wrap: wrap; gap: 4px; } }
.stat-card { background: var(--white); border: 1px solid var(--paper-line); padding: 20px; }
.stat-card span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--terracotta); display: block; margin-bottom: 8px; }
.stat-card strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--ink); }
.toolbar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.pill-form { display: flex; gap: 8px; }
