/* =========================================================
   styles-bo.css  — Custom styles for MFA static page
   Tailwind utility classes handle most styling; this file
   covers fonts, overrides, and component-level extras.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Root font variable expected by some Tailwind classes */
:root {
  --font-geist-sans: 'Inter', system-ui, sans-serif;
}

body {
  font-family: var(--font-geist-sans);
}

/* ── Navigation ───────────────────────────────────────── */

/* Active nav link underline */
nav a.active {
  text-decoration: underline;
  font-weight: 700;
}

/* ── Mobile menu overlay ─────────────────────────────── */

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
}

#mobile-menu.open {
  visibility: visible;
}

#mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 90vw);
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 1.5rem;
}

#mobile-menu.open #mobile-menu-panel {
  transform: translateX(0);
}

#mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#mobile-menu.open #mobile-menu-backdrop {
  opacity: 1;
}

/* ── News tabs ───────────────────────────────────────── */

.news-tab[data-state="active"] {
  color: #007D53;
  border-bottom: 2px solid #007D53;
  font-weight: 600;
}

/* ── News card ───────────────────────────────────────── */

.news-card {
  border: 1.5px solid #E2E3E3;
  border-radius: 0.5rem;
  padding: 1rem 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  border-color: #8AC3B0;
  box-shadow: 0 14px 24px rgba(0,125,83,0.2);
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #232528;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  color: #232528;
  font-size: 0.875rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Services carousel ───────────────────────────────── */

.service-slide {
  display: none;
}

.service-slide.active {
  display: flex;
}

/* ── Desktop nav bar layout ──────────────────────────── */

#mega-nav-wrap nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
}

#mega-nav-wrap .mega-trigger,
#mega-nav-wrap nav > div > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mega-chevron {
  width: 21.6px;
  height: 21.6px;
  flex-shrink: 0;
}

/* ── Desktop mega menu ───────────────────────────────── */

.mega-panel-img-wrap {
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: #EAF4EF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-panel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.mega-panel {
  position: fixed;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 80;
}

.mega-content {
  display: none;
}

.mega-content.active {
  display: block;
}

.mega-chevron {
  transition: transform 0.2s;
}

.mega-item.open .mega-chevron {
  transform: rotate(180deg);
}

.mega-item.open > a {
  color: #007D53;
}

/* ── Footer background ───────────────────────────────── */

.footer-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.footer-bg-wrap img {
  position: absolute;
  top: 0;
  left: 0;
}

.footer-bg-wrap .footer-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,150,105,0.6), rgb(5,150,105));
  z-index: 1;
}

/* Ensure footer content sits above background */
footer > div[class*="relative"] {
  position: relative;
  z-index: 2;
}

/* ── Typography ──────────────────────────────────────── */

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-geist-sans);
  letter-spacing: -0.02em;
}

/* ── Smooth scroll ───────────────────────────────────── */

html {
  scroll-behavior: smooth;
}

/* ── Responsive hero text fix ────────────────────────── */

@media (max-width: 640px) {
  .hero-text {
    font-size: 2rem;
    line-height: 2.5rem;
  }
}
