
/* ══════════════════════════════════
   NAVBAR — clean responsive rewrite
   ══════════════════════════════════ */

.main{
    margin-top: 8rem !important;
}
/* Wrapper — floats with margin from edges */
.nav-wrapper {
  position: absolute; top: 10px; left: 0; right: 0; z-index: 500;
  padding: 0 2.5%;
  transition: transform .35s ease;
  pointer-events: none;
}
.nav-wrapper.hidden { transform: translateY(-120%); }

/* The pill */
nav {
  background: rgba(18, 55, 12, 0.38);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,.3);
  transition: background .35s, box-shadow .35s;
  pointer-events: all;
  display: flex;
  flex-direction: row;   /* side by side */
  padding: 0;
  overflow: visible !important;
  align-items: stretch;
}
nav.scrolled {
  background: rgba(12, 45, 8, 0.97);
  box-shadow: 0 6px 40px rgba(0,0,0,.5);
}

/* ── RIGHT COLUMN wrapper (top + bottom rows) ── */
.nav-right-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow: visible !important;
}
/* ── ROW 1: gov-logo + socials ── */
.nav-row-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: .75rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  gap: .7rem;
}
/* Solid green block — full height, 30% wide */
.nav-logo {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  background: #a8d42e;
  padding: .6rem 3.5rem;
  border-radius: 18px 0px 0px 18px; 
  /* no border-radius — pill handles it */
}
.nav-logo-img {
  height: 36px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1);
}
/* nav-top-right: items inside row 1 */
.nav-top-right {
  display: flex; align-items: center; gap: .7rem;
}
/* .nav-top-right merged above */
.nav-gov-logos { 
display: flex; 
align-items: center;
width: 135px;
}
.nav-img{
    max-height: 80px;
    /*margin-right: 8px;*/
}
.gov-logo-wide {
  height: 36px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .85;
}
.nav-divider-v {
  width: 1px; height: 24px;
  background: rgba(255,255,255,.25);
  margin: 0 .5rem;
}
.nav-social { display: flex; gap: .4rem; }
.social-nav-btn {
  width: 30px; height: 30px; border-radius: 7px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85); text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  transition: background .2s, color .2s;
}
.social-nav-btn:hover { background: var(--purple-mid); color: #fff; border-color: var(--purple-mid); }

/* ── ROW 2: menu links ── */
.nav-row-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  /*justify-content: flex-start;*/
  justify-content: end;
  padding: .25rem 1.4rem .35rem;
  flex: 1;
  overflow: visible !important;
}
.nav-links {
  display: flex; align-items: center;
  gap: 0; list-style: none; flex-wrap: nowrap;
}
.nav-links > li > a {
  color: rgba(255,255,255,.88); text-decoration: none;
  font-size: 0.79rem; font-weight: 550;
  padding: .3rem .7rem; border-radius: 6px;
  display: flex; align-items: center; gap: .25rem;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links > li > a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-links > li > a.active {
  color: #fff;
  border-bottom: 2px solid var(--purple-glow);
  padding-bottom: calc(.3rem - 2px);
}
.nav-cta-link {
  background: var(--purple-mid) !important;
  color: #fff !important; border-radius: 20px !important;
  padding: .28rem .9rem !important; font-weight: 700 !important;
}
.nav-cta-link:hover { background: var(--purple-dark) !important; }

/* ── DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-arrow { font-size: .6rem; transition: transform .2s; }
.nav-dropdown:hover > a .nav-arrow { transform: rotate(180deg); }
.dropdown-menu {
  display: none;
  position: absolute; top: calc(60% + 8px); left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 55, 12, 0.28);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(158,224,130,.2);
  border-radius: 14px; padding: .5rem 0;
  min-width: 220px; list-style: none;
  box-shadow: 0 12px 36px rgba(0,0,0,.4); z-index: 9999;
}
.nav-dropdown:hover .dropdown-menu { display: block; animation: ddFade .18s ease; }
@keyframes ddFade {
  from { opacity:0; transform: translateX(-50%) translateY(-5px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}
.dropdown-menu li a {
  display: block;padding: .5rem 1.2rem;
  color: rgba(255,255,255,.82) !important; font-size: .83rem !important;
  font-weight: 500 !important; background: transparent !important;
  transition: background .15s, color .15s, padding-left .15s;
  white-space: nowrap;
}
.dropdown-menu li a:hover {
  background: rgba(158,224,130,.12) !important;
  color: var(--purple-glow) !important;
  padding-left: 1.6rem !important;
}

/* ── HAMBURGER BUTTON ── */
.mobile-nav-btn {
  display: none;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: white; font-size: 1.2rem; cursor: pointer;
  width: 34px; height: 34px; border-radius: 8px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
  /* Always inside the pill — no absolute positioning */
  position: relative;
  z-index: 1;
}
.mobile-nav-btn:hover { background: rgba(255,255,255,.22); }

/* ── MOBILE DRAWER ── */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: .5rem 1.4rem .5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #3B3B3B;
}
.mobile-menu.open { display: flex; color: #3B3B3B;} 
.mobile-menu a {
  color: rgba(255,255,255,.88); text-decoration: none;
  font-size: .9rem; font-weight: 600;
  padding: .55rem .4rem; border-radius: 8px;
  display: block;
  transition: background .15s, color .15s;
  color: #3B3B3B;
}
.mobile-menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
.mobile-menu .mob-section { font-size: .7rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--purple-glow); padding: .6rem .4rem .2rem; }
.mobile-menu .mob-sub a {
  padding-left: 1.1rem; font-size: .85rem; font-weight: 500;color: #474747;
  /*color: rgba(255,255,255,.7);*/
}
.mobile-menu .nav-cta-link {
  background: var(--purple-mid) !important; color: #fff !important;
  border-radius: 20px !important; text-align: center;
  margin-top: .3rem;
}

/* ══ RESPONSIVE BREAKPOINTS ══ */

/* Tablet + Mobile: hamburger desde 1024px */
@media (max-width: 1024px) {
  .nav-row-bottom { display: none; }
  .mobile-nav-btn { display: flex; }
  .nav-gov-logos { display: none !important; }
  .nav-divider-v { display: none !important; }
  .nav-social { display: none; }
  .nav-logo { width: auto !important; min-width: 0 !important; }
          
}

/* Small mobile */
@media (max-width: 600px) {
  .nav-logo { padding: .5rem 1rem !important; }
  .nav-logo-img { height: 28px !important; }
}

/* Extra small (Samsung S25, etc.) */
@media (max-width: 420px) {
  .nav-logo { width: 45% !important; padding: .45rem .9rem !important; }
  .nav-logo-img { height: 26px !important;}
  .nav-img{max-height: 35px;}
  nav { padding: .rem 1rem .35rem; }
}

/* ─── ANIMATIONS ─── */
@keyframes pulse { 0%,100%{transform:scale(1);opacity:.6} 50%{transform:scale(1.08);opacity:.22} }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .features-inner { grid-template-columns: 1fr; }
  .features-img { height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .slide.left, .slide.right { display: none; }
  .slide.center { width: 92%; }
  .footer-grid { grid-template-columns: 1fr; }
  .promo-banner { padding: 2rem 1.8rem; }
  section { padding: 3rem 4%; }
}
/* ─── QUICK LINKS ─── */
.quick-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-light);
  padding: 0 5%;
  display: flex; gap: 0; overflow-x: auto;
}
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: 1.2rem 1.6rem; text-decoration: none; color: var(--gray-text);
  font-size: .82rem; font-weight: 700;
  border-bottom: 3px solid transparent; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.qi-icon {
  font-size: 1.4rem; width: 46px; height: 46px; border-radius: 12px;
  background: var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.quick-item:hover { color: var(--purple-main); border-bottom-color: var(--purple-main); }
.quick-item:hover .qi-icon { background: rgba(58,140,47,.12); }