/* =====================
   RESET & BASE
===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
  line-height: 1.6;
  background: #ffffff;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}

/* =====================
   COLORS & UTILS
===================== */
:root {
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --accent: #16a34a;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e5e7eb;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

/* =====================
   HEADER (unchanged logic)
===================== */
/* Top bar */
.top-bar {
  background: #eef2ff;
  font-size: 14px;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.top-bar-right a {
  margin-left: 14px;
  font-weight: 500;
}

/* Header nav */
.desktop-nav {
  display: flex;
  gap: 26px;
}

.desktop-nav a {
  font-weight: 600;
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  background: #eef2ff;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* =====================
   HERO
===================== */
.hero {
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  padding: 90px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero p {
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 28px;
  color: #334155;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Right visual */
.hero-visual {
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* =====================
   TRUST STRIP
===================== */
.trust-strip {
  background: var(--light-bg);
  padding: 30px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* =====================
   SECTION BASE
===================== */
.section {
  padding: 80px 0;
}

.section h2 {
  font-size: 34px;
  margin-bottom: 16px;
}

.section p.section-sub {
  max-width: 600px;
  color: #475569;
  margin-bottom: 40px;
}

/* =====================
   SUBJECT CARDS
===================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
}

/* =====================
   CTA BLOCK
===================== */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 28px;
  padding: 60px;
  text-align: center;
}

.cta h2 { margin-bottom: 16px; }

/* =====================
   FOOTER
===================== */
/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 12px;
  font-size: 16px;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #cbd5f5;
}

.footer-col p {
  font-size: 14px;
  color: #cbd5f5;
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.footer-legal a {
  margin-left: 16px;
}

/* Responsive footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 34px; }
  .card-grid { grid-template-columns: 1fr; }
}

/* Writers */
.writers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.writer-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.writer-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
}

.writer-card h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.writer-card span {
  font-size: 14px;
  color: #475569;
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 992px) {
  .writers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* City slider */
.city-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.city-slider::-webkit-scrollbar {
  display: none;
}

.city-card {
  min-width: 220px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  scroll-snap-align: start;
  text-align: center;
}

.city-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.city-card span {
  display: block;
  padding: 12px;
  font-weight: 600;
}

/* How It Works */
.how-it-works {
  background: #ffffff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.step-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 14px 35px rgba(0,0,0,0.06);
  transition: transform 0.25s ease;
}

.step-card:hover {
  transform: translateY(-6px);
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #ffffff;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 15px;
  color: #475569;
}

/* Responsive */
@media (max-width: 992px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================
   HEADER CORE (MISSING)
===================== */
.main-header {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.logo {
  font-weight: 900;
  font-size: 26px;
  color: var(--primary);
}

/* Shrink on scroll */
.main-header.shrink .header-inner {
  padding: 8px 0;
}

/* =====================
   MOBILE OVERLAY MENU (MISSING)
===================== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 2000;
}

.mobile-overlay.active {
  display: block;
}

.mobile-menu-content {
  background: #ffffff;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.close-menu {
  align-self: flex-end;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-cta {
  background: var(--primary);
  color: #ffffff;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  text-align: center;
}

.mobile-nav a {
  font-size: 18px;
  font-weight: 600;
  padding: 10px 0;
  display: block;
}

/* =====================
   FOOTER CORE (MISSING)
===================== */
.site-footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 70px 0 20px;
}
