/* ================= GLOBAL ================= */


html, body {
  height: auto;
  overflow-y: auto;
}


body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #ffffff;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-content {
  flex: 1;
  padding-top: 0; /* JS handles navbar offset */


}



/* ================= NAVBAR ================= */


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 100;
}


.navbar-inner {
  max-width: 20000px;   /* was 1300px */
  margin: 0 auto;
  padding: 1.1rem 3rem; /* slightly more breathing room */
  display: flex;
  align-items: center;
}


/* Brand */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand-link img {
  height: 28px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

.brand-text small {
  font-size: 0.65em;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

/* Menu */
.nav-menu {
  margin: 0 auto;
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  padding-bottom: 0.4rem;
  position: relative;
}

.nav-menu a:hover {
  color: #2563eb;
}

.nav-menu a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #2563eb;
}

/* ================= DROPDOWN ================= */
.dropdown {
  position: relative;
}

.arrow {
  display: inline-block;
  margin-left: 6px;
  width: 6px;
  height: 6px;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  transform: rotate(45deg);
  position: relative;
  top: -1px;
}


.dropdown > a {
  cursor: pointer;
}

.dropdown-menu {
  z-index: 100;
}


.dropdown:hover .arrow {
  border-color: #2563eb;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  min-width: 220px;
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: #f1f5f9;
}

/* ================= FOOTER ================= */
.footer {
  background: #3b434b;
  color: #e5e7eb;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand img {
  height: 46px;
}

.socials {
  margin-top: 1rem;
  display: flex;
  gap: 10px;
}

.socials a {
  width: 28px;
  height: 28px;
  background: #1f2937;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: white;
}

.socials a:hover {
  background: #2563eb;
}

.socials img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.socials a:hover img {
  filter: none;
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #ffffff;
}

.footer-col a {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 1rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
  .navbar-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* ✅ avoid double spacing on pages that DO have .page-content (like index) */
  .page-content {
    padding-top: 0;
  }

  /* ✅ remove accidental gap after navbar */
  main > section:first-child,
  body > section:first-child {
    margin-top: 0;
    padding-top: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }

  .socials {
    justify-content: center;
  }
}



/* ================= SECTION DIVIDER ================= */

.section-divider {
  position: relative;
  width: 100%;
  height: 1px;
  background: #e5e7eb;           /* light grey */
  margin: 5rem 0 4rem;           /* spacing between sections */
}

.section-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 20%;                    /* blue part */
  height: 1px;
  background: #2563eb;           /* blue */
}



