/* =====================
   Base Reset & Layout
===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #f5f7fb;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =====================
   Header / Navigation
===================== */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  position: relative; /* ✅ ADD THIS */
}


.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.2; /* ✅ prevents text from inflating height */
}

.brand-logo {
  height: 36px;          /* ✅ slightly smaller, more institutional */
  max-height: 36px;      /* ✅ prevents flex stretching */
  width: auto;
  object-fit: contain;
  flex-shrink: 0;        /* ✅ stops logo from resizing due to text */
}


.hero::after {
  content: "";
  display: block;
  height: 4px;
  width: 120px;
  background: #facc15;
  margin-top: 24px;
}


.brand-title {
  font-weight: 700;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.1;
}

/* =====================
   Menu
===================== */
.menu {
  display: flex;
  gap: 18px;
}

.menu a {
  font-weight: 500;
}

.menu a.active {
  color: #4f46e5;
}

/* =====================
   Hamburger (Mobile)
===================== */
.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #111;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .menu {
    display: none;
    position: absolute;           /* ✅ */
    top: 100%;                    /* below nav */
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    z-index: 1000;                /* ✅ keeps it above content */
  }

  .menu.open {
    display: flex;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    margin-top: 24px;
  }

  .hero-image img {
    width: 100%;
    max-width: 90vw;        /* ✅ key fix */
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}


/* =====================
   Hero Section
===================== */
.hero {
  background: linear-gradient(90deg, #3730a3, #4f46e5);
  color: #fff;
  padding: 64px 0;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.hero p {
  max-width: 700px;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 520px;        /* ✅ prevents oversized image */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.btn {
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
}

.btn.primary {
  background: #facc15;
  color: #111;
}

.btn.ghost {
  border: 1px solid #fff;
  color: #fff;
}

/* =====================
   Sections & Cards
===================== */
.section {
  padding: 48px 0;
  background: #fff;
}

.section:nth-child(even) {
  background: #f5f7fb;
}

.lead {
  max-width: 700px;
  margin-bottom: 24px;
  color: #374151;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 32px auto 0;
}

.card {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.card h3 {
  margin-bottom: 6px;
}

.card {
  min-height: 140px;
}

.section {
  padding: 56px 0;
}

.notice {
  background: #eef2ff;
  border-left: 4px solid #4f46e5;
  padding: 12px 16px;
  border-radius: 6px;
}

/* =====================
   Footer
===================== */
.footer {
  background: #111827;
  color: #e5e7eb;
  padding: 24px 0;
  text-align: center;
}
