/*
  Global, professional, responsive styles for Mozambique International Cyber Week pages
*/
:root{
  --bg: #0b132b;
  --bg-2: #111827;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --focus: #22c55e;
  --danger: #ef4444;
  --radius: 12px;
  --shadow: 0 10px 20px rgba(2,8,20,0.06), 0 2px 6px rgba(2,8,20,0.04);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  color: var(--text);
  background: var(--surface-2);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
.container { width: min(1080px, 92%); margin: 0 auto; }

/* Top bar */
.topbar {
  width: 100%;
  background: var(--bg);
  color: #fff;
  padding: 36px 0;
  position: relative;
  z-index: 0;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,19,43,0.6) 0%, rgba(17,24,39,0.9) 100%);
  z-index: 0;
}
.topbar .header-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 0;
}
.topbar .container {
  position: relative;
  z-index: 1;
}
.hero {
  position: relative;
  z-index: 1;
}
.brand { font-weight: 700; letter-spacing: 0.3px; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.8rem); }
.header-copy {
  margin-top: 24px;
  max-width: 700px;
}
.header-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  margin: 0 0 12px;
  color: rgba(255,255,255,0.85);
}
.header-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 1.5rem + 3vw, 3.4rem);
  line-height: 1.05;
}
.header-copy .subtitle {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}

/* Hero */
.hero { padding: clamp(36px, 6vw, 80px) 0; background: linear-gradient(180deg, #0b132b 0%, #1f2937 100%); color:#fff; }
.hero h1 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 3rem); margin: 0 0 16px; }
.hero .lead { font-size: clamp(1rem, 0.95rem + 0.5vw, 1.25rem); color: #e5e7eb; margin: 0 0 24px; }
.cta { margin-top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; cursor: pointer; font-weight: 700; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn:focus { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Cards and sections */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.section { padding: 40px 0; }

/* Footer */
.footer { color: var(--muted); padding: 24px 0; }

/* Form */
label { display: block; font-weight: 600; margin-bottom: 6px; }
.required::after { content: ' *'; color: var(--danger); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 0.95rem; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
textarea { resize: vertical; min-height: 120px; }
.help { color: #64748b; font-size: 0.85rem; margin-top: 4px; }
.checkbox-group { display: flex; gap: 16px; flex-wrap: wrap; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }

/* Grid */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.row { display: grid; grid-template-columns: 1fr; gap: 12px; }

@media (min-width: 680px){
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: 1fr auto 1fr; align-items: end; }
}

/* Utilities */
hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.lead { color: var(--muted); }

/* Alerts */
.alert { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border); }
.alert-danger { background: #fff1f2; border-color: #fecdd3; color: #991b1b; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
