
html{
    height: 100%;
}

body{
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    padding: 0;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;

}
header{
    padding: 0;
    margin: 0;
}

.main-header {
  display: block;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.75rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.main-header a{
  display: block;
}


nav a {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-decoration: none;
  }

.nav-list{
    list-style-type: none;
    padding: 0.75rem 0;
    margin: 0;
    display: flex;
    background-color: white;
    font-size: 1.25rem;
    gap: 3rem;
    justify-content: flex-end;
    flex-wrap: nowrap; 
}

.nav-list a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  line-height: 1.1;
  border-radius: 8px;

}


.nav-list li a {
    text-decoration: none;
    color: #23407c;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    white-space: nowrap;
  }
  #contact {
  color: #ed1b26;
  padding: 0.5rem 0.9rem;
  border: 1px solid #ed1b26;
  border-radius: 999px;
}

  #contact:hover {
  background: #ed1b26;
  color: white;
}

.nav-list li a:hover {
    background: #f2f2f2;
  }

.nav-list a.active {
  border-bottom: 2px solid #23407c;
  padding-bottom: 0.4rem;
}

.logo{
    height: 5rem;
    width: auto;
    padding: 0;
    margin: 0;
  }

  .header-divider {
    border: none;
    background-color: #e5e5e5; /* light neutral */
    margin: 0;
}

.top-bar {
  display: block;
  align-items: center;
  padding: 0.1rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #ffffff; /* keep white */
  border-bottom: 1px solid #e5e5e5;
  width: 100%;
}

.top-left {
  display: flex;
  gap: 1rem;
  align-items: center;
}



.top-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Top bar links */
.top-bar a {
  color: #1f3a6d; /* same family as nav text */
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* Social icons */
.top-bar .socials {
  height: 1rem;
  width: auto;
  display: block;
  opacity: 0.85;
}

.top-bar .socials:hover {
  opacity: 1;
}

.top-bar .info {
  height: 1rem;
  width: auto;
  display: block;
  opacity: 0.85;
}
.top-bar .info:hover {
  opacity: 1;
}

.info-text {
  font-family: 'Inter', sans-serif;
  color: #12213f;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;  /* 👈 bottom align */
}

/* --- Critical: prevent flex children from causing overflow --- */
.main-header .container > * {
  min-width: 0;
}

/* Desktop: keep as-is */
.nav-list {
  /* keep your styles, but reduce gap so it fits longer */
  gap: 2rem; /* was 3rem — this alone helps a lot */
}

/* Hide mobile UI on desktop */
.menu-toggle,
.mobile-nav {
  display: none;
}

/* Hamburger button styling */
.menu-toggle {
  border: 1px solid #e7e7e7;
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
  color: #23407c;
  cursor: pointer;
}

/* Mobile dropdown menu */
.mobile-nav {
  width: 100%;
  border-top: 1px solid #e5e5e5;
  background: #fff;
}

.mobile-nav-list {
  list-style: none;
  padding: 0.75rem 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.mobile-nav-list a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  color: #23407c;
  font-weight: 500;
}

/* When open */
.main-header.menu-open .mobile-nav {
  display: block;
}

/* Breakpoint: swap desktop nav for hamburger */
@media (max-width: 900px) {
  .nav-bar {
    display: none; /* hide your existing desktop nav */
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  /* Make main header container wrap so dropdown can sit underneath */
  .main-header .container {
    flex-wrap: wrap;
    align-items: center;
  }

  /* Ensure logo + button stay on same row, menu drops below */
  .menu-toggle {
    margin-left: auto;
  }

  .mobile-nav {
    display: none; /* shown only when .menu-open is added */
  }
}

/* Optional: if ANYTHING else causes horizontal scroll */
html, body {
  overflow-x: hidden;
}



/* @media (max-width: 48rem) {
    .nav-list {
      flex-direction: column;
    }
  } --> *\
  

  /* Footer begins here */

  .site-footer {
  background: #0f172a; /* deep navy */
  color: #e7ecf6;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
}

.footer-title {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.footer-text {
  margin: 0 0 1rem;
  color: rgba(231, 236, 246, 0.85);
  line-height: 1.6;
  max-width: 42ch;
}

.footer-landack {
  margin: 0;
  color: rgba(231, 236, 246, 0.75);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(231, 236, 246, 0.9);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.6rem;
}

.footer-contact a {
  color: rgba(231, 236, 246, 0.9);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.contact-label {
  display: inline-block;
  min-width: 75px;
  color: rgba(231, 236, 246, 0.75);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-socials a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.footer-socials img {
  display: block;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: rgba(231, 236, 246, 0.75);
}

.footer-small-links a {
  color: rgba(231, 236, 246, 0.75);
  text-decoration: none;
}

.footer-small-links a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-text {
    max-width: none;
  }
}

/* End of footer Start of Main*/

.page-content {
  flex: 1; /* pushes footer to bottom */
}
