:root {
  --navy:         #0a1628;
  --blue:         #1a6eb5;
  --sky:          #e8f4fd;
  --coral:        #e05a2b;
  --amber:        #f59e0b;
  --green:        #16a34a;
  --white:        #ffffff;
  --gray50:       #f8fafc;
  --gray100:      #f1f5f9;
  --gray200:      #e2e8f0;
  --gray400:      #94a3b8;
  --gray600:      #475569;
  --gray800:      #1e293b;
  --before-color: #1a6eb5;
  --during-color: #dc2626;
  --after-color:  #16a34a;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    22px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  background: var(--gray50);
  color: var(--gray800);
  line-height: 1.65;
}

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

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, #12305e 60%, #1a5280 100%);
  color: var(--white);
  padding: 60px 24px 70px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("./assets/hero.jpg") center/cover no-repeat;
  opacity: 0.18;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 18px;
  border-radius: 99px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 40px;
}

.phase-cards {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.phase-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 28px 22px 22px;
  width: 240px;
  text-align: left;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.phase-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.phase-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.phase-card h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.phase-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px 60px;
}

.tab-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--white);
  border: 2px solid var(--gray200);
  border-radius: 99px;
  padding: 10px 22px;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray600);
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.tab-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.section-header p {
  color: var(--gray600);
  font-size: 1rem;
}

.content-section { display: none; }

.content-section.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.tip-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray200);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tip-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--gray200);
}

.tip-body { flex: 1; }

.tip-body h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tip-body p {
  font-size: 0.78rem;
  color: var(--gray600);
  line-height: 1.55;
}

.tip-before { border-left: 4px solid var(--before-color); }
.tip-during { border-left: 4px solid var(--during-color); }
.tip-after  { border-left: 4px solid var(--after-color); }

.tip-before .tip-body h3 { color: var(--before-color); }
.tip-during .tip-body h3 { color: var(--during-color); }
.tip-after  .tip-body h3 { color: var(--after-color); }

.emergency {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--navy);
  padding: 50px 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  width: 320px;
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--sky);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.card h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.card p {
  font-size: 0.8rem;
  color: var(--gray400);
}

.progress-bar {
  height: 6px;
  background: var(--gray200);
  border-radius: 99px;
  margin-bottom: 16px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 99px;
  width: 0%;
  transition: width 0.4s ease;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray100);
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.checklist-item:has(input:checked) { background: #f0fdf4; }

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-item label {
  font-size: 13.5px;
  color: var(--gray800);
  cursor: pointer;
  transition: color 0.2s;
}

.checklist-item:has(input:checked) label {
  text-decoration: line-through;
  color: var(--gray400);
}

.print-btn {
  width: 100%;
  padding: 10px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.print-btn:hover { background: var(--blue); }

.contacts-card h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: var(--gray100);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--gray800);
  transition: background 0.2s, transform 0.15s;
}

.contact-item:hover {
  background: var(--sky);
  transform: translateX(4px);
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.rescue    { background: #fee2e2; }
.police    { background: #dbeafe; }
.ambulance { background: #fef3c7; }
.ndma      { background: #dcfce7; }
.fire      { background: #ffedd5; }

.contact-info { display: flex; flex-direction: column; }
.contact-info strong { font-size: 13.5px; font-weight: 600; }
.contact-info span {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  font-family: 'Sora', sans-serif;
}

.contact-note {
  font-size: 12px;
  color: var(--gray400);
  text-align: center;
}

.survival-kit {
  background: var(--white);
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.kit-header {
  text-align: center;
  margin-bottom: 30px;
}

.kit-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.kit-header p {
  color: var(--gray600);
  font-size: 0.95rem;
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.kit-item {
  background: var(--gray100);
  border-radius: var(--radius-md);
  padding: 28px 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s, background 0.18s;
}

.kit-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
  background: var(--sky);
}

.kit-icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-sm);
}

.kit-item p {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray600);
  text-align: center;
}

.kit-tip {
  margin-top: 20px;
  background: var(--sky);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--navy);
  animation: fadeIn 0.3s ease;
}

.tip-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
}

.tip-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px 22px;
  max-width: 360px;
  width: 90%;
  z-index: 101;
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.65;
}

.tip-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray400);
}

.facts-section {
  background: linear-gradient(135deg, var(--navy), #12305e);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}

.facts-section h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.facts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.fact-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  width: 190px;
  backdrop-filter: blur(6px);
}

.fact-num {
  font-family: 'Sora', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 8px;
  line-height: 1;
}

.fact-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

footer {
  background: var(--gray800);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 32px 20px;
}

.footer-brand {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-team { font-size: 0.88rem; margin-bottom: 4px; }
.footer-copy { font-size: 0.8rem; opacity: 0.6; }

@media print {
  .hero, .tab-nav, .tips-grid, .survival-kit,
  .facts-section, footer, .contacts-card, .print-btn {
    display: none !important;
  }
  .emergency { background: white; padding: 0; }
  .checklist-card { box-shadow: none; border: 1px solid #ccc; width: 100%; }
  body { background: white; }
}

@media (max-width: 600px) {
  .phase-cards { flex-direction: column; align-items: center; }
  .phase-card  { width: 100%; max-width: 340px; }
  .facts-grid  { gap: 12px; }
  .fact-card   { width: 140px; padding: 20px 16px; }
  .card        { width: 100%; }
  .tips-grid   { grid-template-columns: 1fr; }
  .kit-grid    { grid-template-columns: repeat(3, 1fr); }
}