/* ==== GLOBAL & LAYOUT SAFETY ==== */
:root {
  /* desktop default */
  --footer-h: 76px;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  overflow-x: hidden;
  /* keep content above fixed footer (includes iOS safe area) */
  padding-bottom: calc(var(--footer-h) + max(env(safe-area-inset-bottom), 12px));
}

/* ==== FIXED FOOTER / NAVBAR ==== */
#fake-navbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  height: var(--footer-h);
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .04);
  overflow: hidden;
  /* give a little breathing room that also respects safe area */
  padding-bottom: max(env(safe-area-inset-bottom), 8px);
}

/* Center the row; single line */
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 0 1rem;
  gap: 6rem;
  /* desktop roomy */
  flex-wrap: nowrap;
  /* keep it one line */
}

/* Link styling */
.footer-nav a {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  /* desktop size */
  line-height: 1;
  /* avoid extra vertical growth */
  color: #0B3C5D;
  white-space: nowrap;
  /* keep each label together */
  letter-spacing: -0.01em;
  /* subtle tightening that helps fit */
}

.footer-nav a:hover {
  color: #328CC1;
}

.footer-nav a[aria-current="page"] {
  color: #328CC1;
  text-decoration: underline;
}

/* ==== RESPONSIVE: TABLET ==== */
@media (max-width: 900px) {
  :root {
    --footer-h: 64px;
  }

  .footer-nav {
    gap: clamp(1rem, 4vw, 2rem);
    /* tighten gaps on narrower viewports */
    padding: 0 0.75rem;
  }

  .footer-nav a {
    /* scale text with viewport so all links remain visible without wrapping */
    font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  }
}

/* ==== RESPONSIVE: PHONE (DENSE MODE) ==== */
@media (max-width: 560px) {
  :root {
    --footer-h: 54px;
  }

  .footer-nav {
    gap: clamp(0.5rem, 2.5vw, 1rem);
    /* keep centered, but allow tiny inner padding */
    padding: 0 0.5rem;
  }

  .footer-nav a {
    /* smaller floor + stronger scaling to keep *everything* on one line */
    font-size: clamp(0.78rem, 3.4vw, 1rem);
    line-height: 1;
    /* keep the row tight */
  }
}

/* Optional ultra-small safety net:
   If you ever have *many* links, this shrinks just a bit more. */
@media (max-width: 380px) {
  :root {
    --footer-h: 50px;
  }

  .footer-nav {
    gap: clamp(0.4rem, 2vw, 0.75rem);
  }

  .footer-nav a {
    font-size: clamp(0.7rem, 3.6vw, 0.9rem);
  }
}

#hero-section {
  position: relative;
  max-width: 975px;
  margin: 2rem auto 3rem auto;
  padding: 6rem 2rem; 
  min-height: 420px;
  border-radius: 16px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

  /* background image */
  /* background-image: url('images/strata.png');  */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* add a semi-transparent overlay */
#hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(50, 140, 193, 0.65); /*#328CC1: 50, 140, 193*/
  border-radius: 16px;
  z-index: 0;
}

/* text styles */
.hero-title,
.hero-meta,
.hero-subtitle {
  position: relative;
  z-index: 1; /* keeps text above overlay */
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.hero-meta {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: #f4f4f4;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #e0e0e0;
}

/* Optional: make the hero text scale down on phones too */
@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .hero-meta {
    font-size: clamp(0.9rem, 3.5vw, 1.05rem);
  }

  .hero-subtitle {
    font-size: clamp(0.85rem, 3.2vw, 1rem);
  }
}
