/* ============================================================
   TPE - Tecno Pack Electronics  |  Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #003087;
  --blue-dark:  #001f5c;
  --blue-light: #0055c8;
  --accent:     #e8a000;
  --text:       #1a1a2e;
  --text-muted: #555;
  --bg-light:   #f5f7fb;
  --white:      #ffffff;
  --border:     #dde3ef;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(0,48,135,.10);
  --transition: .3s ease;
  --max-w:      1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

.container {
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--blue-dark);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #d49000;
  border-color: #d49000;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}

/* ---------- Section heading ---------- */
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-muted);
  max-width: 600px;
}
.section-divider {
  width: 56px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1rem 0 2rem;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(0,48,135,.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 2rem;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

/* Nav links group */
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;               /* tight — spacing comes from padding on links */
  margin-left: auto;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: .45rem .85rem;
  border-radius: 6px;
  position: relative;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links > li > a svg { opacity: .6; transition: transform .25s ease; }
.nav-links > li > a:hover svg { opacity: 1; }

/* Remove old underline animation */
.nav-links a::after { display: none; }

/* Hover & active states */
.nav-links > li > a:hover {
  color: var(--blue);
  background: #eef2fb;
}
.nav-links > li > a.active {
  color: var(--blue);
  background: #e6edfa;
  font-weight: 700;
}

/* Rotate chevron when dropdown is open */
.dropdown:hover > a svg,
.dropdown.sub-open > a svg { transform: rotate(180deg); opacity: 1; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,48,135,.12);
  min-width: 210px;
  padding: .4rem;
  z-index: 100;
}
/* gap bridge */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 10px;
}
@media (max-width: 768px) { .dropdown::after { display: none; } }
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu,
  .dropdown.sub-open .dropdown-menu { display: block; }
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .85rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu a:hover { background: #eef2fb; color: var(--blue); }

/* CTA button */
.nav-cta { margin-left: .75rem; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg-light); }
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-light) 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/uploads/14bd072c-dd24-48ea-a031-455fdc650ae2.jpg') center/cover no-repeat;
  opacity: .12;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-badges {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.badge {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: .35rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.badge.gold { background: var(--accent); border-color: var(--accent); color: var(--blue-dark); }

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.1rem;
  opacity: .88;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-image-card img {
  border-radius: 10px;
  width: 100%;
}
.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: .75rem; opacity: .8; margin-top: .2rem; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section {
  padding: 5rem 0;
  background: var(--white);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--blue);
}
.feature-icon {
  width: 60px; height: 60px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .4rem;
}
.feature-card p { font-size: .88rem; color: var(--text-muted); }

/* ============================================================
   CEO MESSAGE
   ============================================================ */
.ceo-section {
  padding: 5rem 0;
  background: var(--bg-light);
}
.ceo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.ceo-image-wrap {
  position: relative;
}
.ceo-image-wrap img {
  border-radius: 16px;
  width: 100%;
  box-shadow: var(--shadow);
}
.ceo-badge {
  position: absolute;
  bottom: -16px; left: 24px;
  background: var(--blue);
  color: var(--white);
  border-radius: 10px;
  padding: .8rem 1.5rem;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.ceo-text blockquote {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.goals-list { margin-top: 1.5rem; }
.goals-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.goals-list li:last-child { border-bottom: none; }
.goal-num {
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  min-width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.page-hero .section-label { color: rgba(255,255,255,.7); }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: .75rem;
}
.page-hero p { opacity: .85; font-size: 1.05rem; max-width: 560px; margin-inline: auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .85rem;
  opacity: .7;
  margin-top: 1rem;
}
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { opacity: 1; }

/* ============================================================
   CERTIFICATIONS PAGE
   ============================================================ */
.certs-section {
  padding: 5rem 0;
  background: var(--white);
}
.certs-intro { text-align: center; margin-bottom: 3rem; }
.certs-intro .section-divider { margin-inline: auto; }
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.cert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,48,135,.06);
  transition: var(--transition);
}
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--blue);
}
.cert-card-img {
  background: var(--bg-light);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}
.cert-card-img img {
  max-height: 320px;
  width: auto;
  margin-inline: auto;
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
  transition: transform .3s ease, opacity .3s ease;
}
.cert-card:hover .cert-card-img img {
  transform: scale(1.02);
  opacity: .88;
}

/* Zoom button — revealed on hover */
.cert-zoom-btn {
  position: absolute;
  bottom: 1rem; right: 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: .45rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease, background .2s;
}
.cert-card:hover .cert-zoom-btn {
  opacity: 1;
  transform: translateY(0);
}
.cert-zoom-btn:hover { background: var(--blue-light); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  animation: lbIn .25s ease both;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  object-fit: contain;
}
.lightbox-caption {
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

@keyframes lbIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
.cert-card-body {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}
.cert-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.cert-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .3rem;
}
.cert-card-body p { font-size: .87rem; color: var(--text-muted); }

/* ============================================================
   REPORTS PAGE
   ============================================================ */
.reports-section {
  padding: 5rem 0;
  background: var(--white);
}
.report-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 700px;
  margin-inline: auto;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,48,135,.06);
}
.report-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue);
  transform: translateY(-4px);
}
.report-icon {
  flex-shrink: 0;
  width: 72px; height: 72px;
  background: var(--blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.report-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .3rem;
}
.report-info p { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }
.report-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.report-meta span {
  background: var(--border);
  border-radius: 50px;
  padding: .2rem .75rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  padding: 5rem 0;
  background: var(--white);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-grid--single { grid-template-columns: 1fr; max-width: 640px; }
.contact-info h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}
.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-light);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.contact-item-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-item-text h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .3rem;
}
.contact-item-text p,
.contact-item-text a {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.6;
}
.contact-item-text a:hover { color: var(--blue); }

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}
.contact-form-wrap h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1.5rem;
}
.form-alert {
  padding: .9rem 1.25rem;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.form-alert--success {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
}
.form-alert--error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,48,135,.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ============================================================
   MAP
   ============================================================ */
.map-section {
  background: var(--bg-light);
  padding: 4rem 0;
}
.map-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1.5rem;
}
.map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-frame iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* ============================================================
   PARTNER STRIP
   ============================================================ */
.partner-strip {
  background: var(--blue-dark);
  padding: 2.5rem 0;
}
.partner-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.partner-strip p {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  font-weight: 600;
}
.partner-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.partner-logos img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .8;
  transition: opacity var(--transition);
}
.partner-logos img:hover { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 1.25rem;
  /* no filter — tpe.png already has colour; white pages use the dark logo fine */
}
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 280px; }

footer h4 {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links li + li { margin-top: .5rem; }
.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-contact li {
  display: flex;
  gap: .75rem;
  font-size: .88rem;
  margin-bottom: .75rem;
  align-items: flex-start;
}
.footer-contact .icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
}
.footer-bottom a { color: var(--accent); }
.footer-bottom a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner        { grid-template-columns: 1fr; }
  .hero-image-card   { display: none; }
  .ceo-inner         { grid-template-columns: 1fr; }
  .contact-grid      { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   MOBILE MENU — full redesign
   ============================================================ */

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

@media (max-width: 768px) {

  /* Hide desktop nav */
  .nav-links, .nav-cta { display: none !important; }
  .hamburger { display: flex; }
  header { position: sticky; top: 0; z-index: 1000; }

  /* ---------- Overlay ---------- */
  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 1001;
    pointer-events: none;
    transition: background .3s ease;
  }
  .mobile-overlay.open {
    background: rgba(0,0,0,.6);
    pointer-events: all;
    backdrop-filter: blur(4px);
  }

  /* ---------- Menu panel ---------- */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 88vw);
    background: var(--white);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 32px rgba(0,0,0,.15);
    overflow: hidden;         /* footer stays fixed, nav scrolls internally */
  }
  .mobile-menu.open {
    transform: translateX(0);
  }

  /* ---------- Menu header ---------- */
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--blue-dark);
    flex-shrink: 0;
  }
  .mobile-logo img {
    height: 40px;
    width: auto;
    background: rgba(255,255,255,.9);
    border-radius: 6px;
    padding: 3px 8px;
  }
  .mobile-menu-close {
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.25);
    color: var(--white);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
  }
  .mobile-menu-close:hover { background: rgba(255,255,255,.25); }

  /* ---------- Nav links ---------- */
  .mobile-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: .5rem 0 110px; /* 110px = approx footer height so items don't hide behind it */
    overflow-y: auto;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s;
  }
  .mobile-nav-link:hover   { background: var(--bg-light); color: var(--blue); }
  .mobile-nav-link.active  {
    color: var(--blue);
    background: #eef3ff;
    border-left: 3px solid var(--blue);
    padding-left: calc(1.5rem - 3px);
  }
  .mobile-nav-link span { pointer-events: none; }

  /* ---------- Accordion (Reports) ---------- */
  .mobile-nav-accordion { border-bottom: 1px solid var(--border); }
  .mobile-nav-trigger   { border-bottom: none; }

  .accordion-arrow {
    transition: transform .25s ease;
    flex-shrink: 0;
    opacity: .5;
  }
  .mobile-nav-trigger[aria-expanded="true"] .accordion-arrow {
    transform: rotate(180deg);
    opacity: 1;
  }
  .mobile-nav-trigger[aria-expanded="true"] { color: var(--blue); background: var(--bg-light); }

  .mobile-nav-sub {
    display: none;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
  }
  .mobile-nav-sub.open { display: block; }

  .mobile-nav-sublink {
    display: block;
    padding: .9rem 1.5rem .9rem 2.25rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s, background .15s;
  }
  .mobile-nav-sublink:hover { color: var(--blue); background: #e0e8ff; }

  /* ---------- Footer inside menu — fixed at bottom ---------- */
  .mobile-menu-footer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--white);
    z-index: 1;
  }
  .mobile-menu-footer .btn {
    padding: .6rem 1rem;
    font-size: .85rem;
  }
  .mobile-menu-contact {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .3rem .75rem;
    margin-top: .5rem;
  }
  .mobile-menu-contact a {
    font-size: .75rem;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
  }
  .mobile-menu-contact a:hover { color: var(--blue); }

  /* ---------- Layout fixes ---------- */
  .form-row    { grid-template-columns: 1fr; }
  .report-card { flex-direction: column; text-align: center; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero        { padding: 4rem 0; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp .6s ease both;
}
.fade-up-2 { animation-delay: .15s; }
.fade-up-3 { animation-delay: .3s; }
.fade-up-4 { animation-delay: .45s; }
