:root {
  --white: #FFFFFF;
  --deep-teal: #087F8C;
  --deep-teal-dark: #066670;
  --soft-teal: #E7F5F4;
  --trust-blue: #2878B8;
  --light-blue: #EAF3FB;
  --hope-green: #35966B;
  --soft-green: #EAF6EF;
  --warm-coral: #E87565;
  --warm-coral-dark: #D15C4C;
  --light-coral: #FFF0ED;
  --charcoal: #344054;
  --grey: #667085;
  --border-grey: #E5E7EB;
  --surface-subtle: #F9FAFB;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 6px 20px rgba(16, 24, 40, 0.08);
}

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

html, body {
  background-color: var(--white);
  color: var(--charcoal);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  padding-bottom: 84px;
}

a {
  color: var(--trust-blue);
  text-decoration: none;
}

/* Top Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border-grey);
  padding: 10px 16px;
}

.topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--deep-teal);
  line-height: 1.15;
}

.brand-text p {
  font-size: 0.74rem;
  color: var(--grey);
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border-grey);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.lang-toggle button {
  border: none;
  background: transparent;
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--grey);
  cursor: pointer;
}

.lang-toggle button.active {
  background: var(--deep-teal);
  color: var(--white);
}

.btn-quick-exit {
  background: var(--light-coral);
  color: #B42318;
  border: 1px solid #FECDCA;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-portal-link {
  background: var(--light-blue);
  color: var(--trust-blue);
  border: 1px solid #C8E1F6;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Main Container */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

/* Emergency Ribbon */
.helpline-strip {
  background: var(--light-coral);
  border: 1px solid #F9D2CC;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.helpline-strip span {
  font-size: 0.88rem;
  font-weight: 600;
  color: #7A271A;
}

.helpline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.helpline-pill {
  background: var(--white);
  color: #B42318;
  border: 1px solid #F4B9B0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Welcome Hero */
.hero-box {
  background: var(--soft-teal);
  border: 1px solid #CBE7E4;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}

@media (min-width: 720px) {
  .hero-box {
    grid-template-columns: 1.4fr 1fr;
    padding: 28px 28px;
  }
}

.hero-badge {
  display: inline-block;
  background: var(--white);
  color: var(--deep-teal);
  border: 1px solid #BDE2DE;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-box h2 {
  font-size: 1.65rem;
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-box p {
  color: var(--grey);
  font-size: 1rem;
}

.hero-photo {
  width: 100%;
  height: 185px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

/* 6 Homepage Cards */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 760px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.menu-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--deep-teal);
}

.menu-card.sos-card {
  border: 2px solid var(--warm-coral);
  background: var(--light-coral);
}

.menu-card-img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  display: block;
}

.menu-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
}

.icon-coral { background: var(--warm-coral); color: var(--white); }
.icon-teal { background: var(--soft-teal); color: var(--deep-teal); }
.icon-blue { background: var(--light-blue); color: var(--trust-blue); }
.icon-green { background: var(--soft-green); color: var(--hope-green); }

.menu-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--charcoal);
}

.menu-card p {
  font-size: 0.84rem;
  color: var(--grey);
}

/* Cards, Forms & Buttons */
.card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.card-teal {
  background: var(--soft-teal);
  border-color: #C2E5E1;
}

.card-blue {
  background: var(--light-blue);
  border-color: #C5DEF5;
}

.card-green {
  background: var(--soft-green);
  border-color: #BFE5CF;
}

.card-coral {
  background: var(--light-coral);
  border-color: #F7C7BE;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.45rem;
  color: var(--charcoal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.96rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 46px;
}

.btn-primary { background: var(--deep-teal); color: var(--white); }
.btn-primary:hover { background: var(--deep-teal-dark); }
.btn-blue { background: var(--trust-blue); color: var(--white); }
.btn-green { background: var(--hope-green); color: var(--white); }
.btn-coral { background: var(--warm-coral); color: var(--white); }
.btn-coral:hover { background: var(--warm-coral-dark); }
.btn-outline { background: var(--white); color: var(--charcoal); border-color: var(--border-grey); }
.btn-sm { padding: 8px 13px; min-height: 36px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Big SOS Button */
.sos-big-wrap {
  text-align: center;
  padding: 20px 10px;
}

.sos-big-btn {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--warm-coral);
  color: var(--white);
  border: 10px solid #FAD5CE;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(232, 117, 101, 0.35);
}

.sos-big-btn:hover {
  background: var(--warm-coral-dark);
}

/* Form Elements */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-grey);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  color: var(--charcoal);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--deep-teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.12);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 680px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: capitalize;
}

.badge-teal { background: var(--soft-teal); color: var(--deep-teal); }
.badge-blue { background: var(--light-blue); color: var(--trust-blue); }
.badge-green { background: var(--soft-green); color: var(--hope-green); }
.badge-coral { background: var(--light-coral); color: #B42318; }

/* Men's Corner Banner */
.mens-hero {
  background: var(--white);
  border: 2px solid var(--deep-teal);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}

@media (min-width: 720px) {
  .mens-hero { grid-template-columns: 1.4fr 1fr; }
}

.mens-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .mens-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .mens-grid { grid-template-columns: repeat(4, 1fr); }
}

.mens-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-top: 4px solid var(--deep-teal);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mens-card:hover {
  border-color: var(--trust-blue);
  background: var(--surface-subtle);
}

/* Map Container */
#help-map {
  width: 100%;
  height: 310px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-grey);
  margin-bottom: 16px;
  z-index: 1;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border-grey);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 60;
  box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.06);
}

.nav-item {
  border: none;
  background: transparent;
  padding: 10px 4px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--grey);
  cursor: pointer;
}

.nav-item .nav-icon {
  font-size: 1.2rem;
}

.nav-item.active {
  color: var(--deep-teal);
  font-weight: 800;
}

/* Stepper */
.stepper {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.step-dot {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--border-grey);
}

.step-dot.done { background: var(--hope-green); }
.step-dot.active { background: var(--deep-teal); }

.hidden { display: none !important; }

.alert-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.alert-success { background: var(--soft-green); border: 1px solid #A6DFBF; color: #185B3E; }
.alert-danger { background: var(--light-coral); border: 1px solid #F7C7BE; color: #8A2318; }
.alert-info { background: var(--light-blue); border: 1px solid #C2DCF4; color: #1B4F7A; }
