/* ================================
   NZSAE – Base Styles
   ================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
  background: #ffffff;
  line-height: 1.6;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #00538C;
  margin-top: 0;
  font-weight: 600;
}

p {
  margin: 0 0 12px;
}

/* push main content below the fixed header */
#contentwrapper {
  padding-top: 90px;  /* tweak to taste; 80–100px is fine */
}

/* Links */
a {
  color: #00538C;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #003b66;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.btn-primary {
  background: #ffffff;
  color: #00538C;
  border-color: #ffffff;
}
.btn-primary:hover {
  background: #f1f5f9;
  border-color: #f1f5f9;
}

.btn-secondary {
  background: #ffffff;
  color: #00538C;
  border-color: #ffffff;
}
.btn-secondary:hover {
  background: #f1f5f9;
}

.btn-join {
  background: #00538C;
  color: #ffffff;
  border-color: #00538C;
}
.btn-join:hover {
  background: #003b66;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */

#site-header {
  background: #ffffff;
  color: #00538C;
  border-bottom: 1px solid #e2e8f0;

  /* keep the header always visible at the top */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;

  /* default: no (or very little) shadow at top */
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}

/* Stronger shadow once the page has scrolled down a bit */
body.scrolled #site-header {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo img {
  max-height: 60px;
  display: block;
}

/* Main nav */
.main-nav {
  flex: 1 1 auto;
}

.main-nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

/* Top-level menu items (links AND non-clickable labels) */
.main-nav > ul > li > a,
.main-nav > ul > li > .nav-label {
  display: inline-block;
  color: #00538C;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
}

/* Active + hover */
.main-nav > ul > li.active > a,
.main-nav > ul > li > a:hover,
.main-nav > ul > li > .nav-label:hover {
  background: #e2e8f0;
}

/* Join button in header */
.btn-join {
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #00538C;
  color: #00538C;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 20px;
  cursor: pointer;
}

/* Non-clickable parent menus with dropdowns */
.has-submenu {
  position: relative;
}

/* Dropdown menu styling (desktop) */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 20;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu li a {
  display: block;
  padding: 8px 12px;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.85rem;
}

.submenu li a:hover {
  background: #e2e8f0;
  color: #00538C;
}

/* ================================
   HERO BANNER (with optional image)
   ================================ */

#hero-banner {
  position: relative;
  text-align: center;
  color: #ffffff;
  padding: 80px 16px;
  background-color: #00538C;
  background-image: url("/images/home-banner.jpg"); /* optional hero image */
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* dark blue overlay for readability */
#hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 83, 140, 0.65);
}

#hero-banner .container {
  position: relative;
  z-index: 1;
}

#hero-banner h1 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 16px;
  color: #ffffff;
}

#hero-banner p {
  max-width: 700px;
  margin: 0 auto 24px;
  font-size: 1rem;
  color: #e2e8f0;
}

/* ================================
   PROMO PANELS – 3 COLUMNS ON DESKTOP
   ================================ */

#promo-panels {
  padding: 60px 0;
}

.promo-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;          /* 1 column on mobile */
}

.promo-box {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-box img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 14px;
}

.promo-box h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.promo-box p {
  margin-bottom: 0;
  color: #475569;
}

.promo-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

/* ================================
   ABOUT SECTION
   ================================ */

#about-nzsae {
  background: #f9fafb;
  padding: 70px 16px;
  text-align: center;
}

#about-nzsae h2 {
  margin-bottom: 16px;
}

#about-nzsae .lead {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  color: #334155;
}

/* ================================
   VALUE PROPS
   ================================ */

#value-props {
  padding: 60px 16px 70px;
  text-align: center;
}

#value-props h2 {
  margin-bottom: 30px;
}

.value-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;          /* 1 column on mobile */
}

.value-box h4 {
  margin-bottom: 8px;
}

.value-box p {
  margin: 0;
  color: #475569;
}

/* ================================
   JOIN CTA
   ================================ */

#join-banner {
  background: #00538C;
  color: #ffffff;
  padding: 60px 16px 70px;
  text-align: center;
}

#join-banner h2 {
  max-width: 800px;
  margin: 0 auto 20px;
  font-weight: 500;
}

/* ================================
   FOOTER
   ================================ */

#site-footer {
  background: #00538C;
  color: #ffffff;
  margin-top: 40px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px 16px 20px;
  gap: 24px;
}

.footer-left h5 {
  margin-bottom: 10px;
}

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

.footer-left ul li {
  display: inline-block;
  margin-right: 16px;
}

.footer-left ul li a {
  color: #ffffff;
  font-size: 0.9rem;
}

.footer-right img {
  max-height: 55px;
  display: block;
  margin-bottom: 8px;
}

.footer-right p {
  margin: 0;
  font-size: 0.85rem;
}

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

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
}

.footer-links span {
  margin: 0 8px;
}

.footer-links a {
  color: #ffffff;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {

  /* Give space for the fixed header so content isn't hidden under it */
  body {
    padding-top: 70px;
  }

  .header-inner {
    align-items: center;
  }

  /* Show burger button on mobile */
  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  /* Mobile NAV PANEL (hidden by default) */
  .main-nav {
    position: fixed;
    top: 70px;              /* height of your header */
    left: 0;
    right: 0;
    bottom: 0;              /* go all the way to the bottom */
    background: #ffffff;
    display: none;          /* toggled with .open */
    overflow-y: auto;       /* scroll INSIDE the panel */
    padding: 12px 16px 40px;/* extra bottom padding so last item isn’t cut off */
    border-top: 1px solid #e2e8f0;
    z-index: 999;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .main-nav > ul > li {
    width: 100%;
    margin-bottom: 4px;
  }

  /* Submenus stacked under the parent label on mobile */
  .submenu {
    position: static;
    box-shadow: none;
    border: none;
    display: block;
    padding-left: 16px;
    margin-top: 4px;
  }

  .submenu li a {
    padding: 6px 0;
    font-size: 0.8rem;
  }

  /* Footer layout tweaks still OK */
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================
   ABOUT PAGE
   ================================ */

.page-hero {
  background: #f9fafb;
  padding: 50px 16px 40px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.page-hero h1 {
  margin-bottom: 10px;
}

.page-hero-intro {
  max-width: 720px;
  color: #475569;
}

/* Main about section */
#about-main {
  padding: 40px 16px 80px;
}

.about-lead {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 900px;
  margin-bottom: 24px;
  color: #0f172a;
}

/* Blue tagline band */
.about-tagline {
  background: #00538C;
  color: #ffffff;
  padding: 18px 16px;
  text-align: center;
  margin: 24px 0 32px;
  border-radius: 4px;
}

.about-tagline h2 {
  margin: 0;
  font-size: 1.4rem;
}

/* Two-column layout */
.about-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.about-main-col {
  flex: 2 1 520px;
  min-width: 280px;
}

.about-side-col {
  flex: 1 1 320px;
  min-width: 260px;
}

.about-main-col p,
.about-side-col p {
  margin-bottom: 12px;
}

/* Strategic plan tile image */
.about-download-image {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-top: 16px;
}

/* Small subheading next to “The What” */
.about-subheading {
  font-size: 0.9rem;
  font-weight: 400;
  color: #0f172a;
}

/* CTA buttons row */
.about-cta-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .page-hero {
    text-align: center;
  }

  .about-layout {
    flex-direction: column;
  }

  .about-download-image {
    margin-left: auto;
    margin-right: auto;
  }

  .about-cta-row {
    justify-content: flex-start;
  }
}

/* ================================
   NZSAE BUTTON STYLES – OVAL (PILL) DESIGN (REFINED SIZE)
   ================================ */

.btn-link {
  position: relative;
  display: inline-block;
  padding: 8px 26px;                /* smaller and tighter */
  border-radius: 9999px;            /* keeps the oval shape */
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;               /* smaller text to match menu */
  letter-spacing: 0.05em;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.3s ease, border-color 0.3s ease;
  z-index: 1;
}

/* Hover overlay animation */
.btn-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
  border-radius: 9999px;
}

/* Solid blue (white text) */
.btn-solid {
  background-color: #00538C;
  color: #ffffff;
  border: 2px solid #00538C;
}

.btn-solid:hover {
  color: #ffffff;
  border-color: #F56F6C;
}

.btn-solid:hover::before {
  background: #F56F6C;
  transform: scaleX(1);
}

/* Outline (white background, blue border) */
.btn-outline {
  background: #ffffff;
  color: #00538C;
  border: 2px solid #00538C;
}

.btn-outline:hover {
  color: #ffffff;
  border-color: #F56F6C;
}

.btn-outline:hover::before {
  background: #F56F6C;
  transform: scaleX(1);
}

/* Optional smaller version if ever needed */
.btn-small {
  padding: 6px 18px;
  font-size: 0.8rem;
}

/* ================================
   PAGE IMAGE STYLING (GLOBAL)
   ================================ */

.page-image {
  display: block;
  width: 100%;
  max-width: 800px;          /* never stretch wider than 800px */
  height: auto;
  margin: 24px auto;         /* centres image with spacing */
  border-radius: 8px;        /* soft rounded corners */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); /* subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-image:hover {
  transform: scale(1.01);    /* gentle zoom */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* For smaller, square content images (like About page tiles) */
.page-image-small {
  max-width: 400px;
  margin: 16px auto;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}
