/* -------------------------------------------------
   Global reset & base
   ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f8f9fa;
}

/* -------------------------------------------------
   Layout helpers
   ------------------------------------------------- */
.container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

/* -------------------------------------------------
   Header & navigation
   ------------------------------------------------- */
.header {
  background: #0a2540;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Desktop menu */
.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color .3s;
}
.nav-list a:hover,
.nav-list a.active { color: #3ba4ff; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* -------------------------------------------------
   Hero
   ------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #007bff, #00c2ff);
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}
.hero h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: .5rem;
}
.hero p {
  font-size: 1.1rem;
  max-width: 38rem;
  margin: 0 auto 1.5rem;
}
.btn {
  display: inline-block;
  background: #fff;
  color: #007bff;
  padding: .75rem 1.5rem;
  border-radius: .4rem;
  text-decoration: none;
  font-weight: 600;
  transition: background .3s, color .3s;
}
.btn:hover { background: #e6f2ff; }

/* -------------------------------------------------
   Sections
   ------------------------------------------------- */
.section {
  padding: 4rem 0;
  text-align: center;
}
.section h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Cards */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: .8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: transform .3s;
}
.card:hover { transform: translateY(-4px); }
.card h4 { margin-top: 0; }

/* Contact */
.contact a { color: #007bff; }

/* -------------------------------------------------
   Footer
   ------------------------------------------------- */
.footer {
  background: #0a2540;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
  font-size: .9rem;
}

/* -------------------------------------------------
   Responsive breakpoints
   ------------------------------------------------- */
@media (max-width: 768px) {
  /* Show mobile toggle, hide desktop list */
  .nav-toggle { display: block; }
  .nav-list {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a2540;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-list.open { max-height: 400px; }   /* enough for all items */
  .nav-list li { border-top: 1px solid rgba(255,255,255,.1); }
  .nav-list a { display: block; padding: 1rem; }

  .hero { padding: 4rem 0; }
}
/* -------------------------------------------------
   Mobile: Menu drops down UNDER the header
   ------------------------------------------------- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-list {
    position: absolute;
    top: 100%;                 /* right below header */
    left: 0; right: 0;
    background: #0a2540;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    z-index: 999;
  }

  .nav-list.open {
    max-height: 266px;        /* enough for all items */
    padding: 1rem 0;
  }

  /* -------------------------------------------------
     NEW – push the page down when the menu is open
     ------------------------------------------------- */
  body.menu-open {
    overflow: hidden;         /* prevent scroll while menu is open */
  }
  body.menu-open .hero {
    margin-top: 266px;        /* same as .nav-list.open max-height */
    transition: margin-top .35s ease;
  }

  /* -------------------------------------------------
     NEW – hide the floating blue block while menu is open
     ------------------------------------------------- */
  body.menu-open .hero .btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
}

/* keep the original .hero margin-top transition for the closed state */
.hero {
  transition: margin-top .35s ease;
}

/* -------------------------------------------------
   ABOUT PAGE – reuse everything from the main site
   ------------------------------------------------- */
.about {
  padding: 4rem 0;
  text-align: center;
  background: #fff;
}
.about h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #0a2540;
}
.about p,
.about ul {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}
.about h3 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  color: #007bff;
}
.about ul {
  list-style: none;
  padding: 0;
}
.about li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: .6rem;
}
.about li::before {
  content: "Checkmark";
  position: absolute;
  left: 0;
  color: #007bff;
  font-weight: 600;
}

/* -------------------------------------------------
   RE-USE HEADER / NAV / FOOTER from index.html
   ------------------------------------------------- */
header {               /* same as .header in index */
  background: #0a2540;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}
.logo {                /* same as .logo a */
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color .3s;
}
nav a:hover,
nav a.active { color: #3ba4ff; }

/* -------------------------------------------------
   MOBILE MENU – copy the exact rules from index.html
   ------------------------------------------------- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav ul {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #0a2540;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    z-index: 999;
  }
  nav ul.open {
    max-height: 400px;
    padding: 1rem 0;
  }
  nav li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  nav li:last-child { border-bottom: none; }
  nav a { display: block; padding: 1rem; font-size: 1.1rem; }

  /* push page down when menu open */
  body.menu-open .about { margin-top: 400px; transition: margin-top .35s ease; }
  body.menu-open { overflow: hidden; }
}

/* -------------------------------------------------
   FOOTER – same as index
   ------------------------------------------------- */
footer {
  background: #0a2540;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
  font-size: .9rem;
}

.about li::before {
content: none !important;
}