/* =========================
   TOPBAR / HEADER + INFOBAR
   (includes MEGA dropdown styles)
   UPDATED:
   ✅ Services mega FULL WIDTH
   ✅ About mega FULL WIDTH + centered like Services
   ✅ About list closer (tight stack)
   ✅ About hover color EXACTLY like Services hover
   ✅ Underline is ALWAYS right under the title (not at the bottom)
   ✅ Description has proper spacing away from underline
========================= */

:root{
  --container: 1200px;

  /* Hover palette (Services + About match) */
  --hover-dark: rgba(10, 20, 15, 0.24);
  --hover-border: rgba(255, 219, 33, 0.85);
  --hover-underline: rgba(255, 219, 33, 0.95);

  /* Shared mega background */
  --mega-bg:
    radial-gradient(1000px 360px at 18% 20%, rgba(255,219,33,0.12), transparent 60%),
    radial-gradient(1000px 360px at 85% 80%, rgba(209,229,210,0.14), transparent 62%),
    linear-gradient(180deg, rgba(168,192,178,0.98), rgba(150,176,162,0.98));
}

/* =========================
   TOPBAR
========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,252,251,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner{
  position: relative;
  min-height: 80px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.topbar__right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Brand */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.brand:hover{ background: rgba(209,229,210,0.35); transform: translateY(-1px); }

.brand__mark{
  height: 55px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 820px){
  .brand__mark{ height: 46px; }
  .topbar__inner{ min-height: 72px; padding: 10px 0; }
}

/* =========================
   NAV
========================= */
.nav{ position: relative; }

.nav__toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  cursor: pointer;
}

.nav__toggle span{
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-900);
  margin: 4px auto;
  border-radius: 2px;
}

.nav__list{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item{ position: relative; }

.nav__link{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--green-900);
  transition: background 200ms var(--ease), transform 200ms var(--ease);
  position: relative;
  z-index: 2;
}
.nav__link:hover{
  background: rgba(209,229,210,0.35);
  transform: translateY(-1px);
}

/* =========================
   DROPDOWN (base)
========================= */
.nav__item--dropdown{ position: relative; }

/* hover bridge */
.nav__item--dropdown::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
}

/* Default dropdown (small) */
.dropdown{
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%) translateY(6px);
  margin-top: 8px;
  min-width: 260px;
  padding: 10px;

  background:
    radial-gradient(700px 260px at 20% 15%, rgba(255,219,33,0.18), transparent 60%),
    radial-gradient(700px 260px at 85% 70%, rgba(209,229,210,0.22), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,250,246,0.92));

  border: 1px solid rgba(25,70,48,0.16);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms var(--ease),
    transform 180ms var(--ease),
    visibility 0s linear 180ms;
  z-index: 200;
}

.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown:focus-within .dropdown{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 180ms var(--ease),
    transform 180ms var(--ease),
    visibility 0s;
}

/* =========================
   SERVICES MEGA (full width)
========================= */
.nav__item--mega .dropdown{
  position: fixed;
  left: 0;
  right: 0;
  top: var(--topbar-bottom, 80px);

  width: auto;
  max-width: none;
  min-width: 0;

  margin-top: 0;
  padding: 20px 0;
  border-radius: 0;
  border: 0;

  background: var(--mega-bg);
  box-shadow: 0 18px 34px rgba(10,20,15,0.16);
  transform: none;
}

.nav__item--mega:hover .dropdown,
.nav__item--mega:focus-within .dropdown{ transform: none; }

/* Mega inner layout (Services) */
.dropdown__mega{
  width: min(var(--container, 1200px), calc(100% - 40px));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.mega__intro{
  display: grid;
  align-items: center;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 130px;
}

.mega__introText{
  display: grid;
  gap: 10px;
  max-width: 62ch;
}

.mega__title{
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.65rem;
  color: #0d3a27;
  line-height: 1.12;
  letter-spacing: -0.2px;
}

.mega__desc{
  margin: 0;
  color: rgba(8,30,20,0.78);
  font-weight: 650;
  font-size: 0.96rem;
  line-height: 1.7;
}

.mega__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 10px;
  align-content: start;
}

/* Service links */
.megaBtn{
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;

  padding: 12px 14px !important;
  border-radius: 14px;

  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;

  text-decoration: none;
  color: inherit;

  transition:
    transform 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.megaBtn__title{
  margin: 0;
  font-weight: 900;
  color: #0f3b28;
  font-size: 1.02rem;
  line-height: 1.25;
  position: relative;
}
.megaBtn__title::after{
  content:"";
  position:absolute;
  left: 0;
  top: calc(100% + 6px);
  height: 2px;
  width: 0;
  background: var(--hover-underline);
  transition: width 200ms var(--ease);
}

.megaBtn:hover{
  transform: translateY(-1px);
  background: var(--hover-dark) !important;
  border-color: var(--hover-border) !important;
  box-shadow: 0 12px 26px rgba(10,20,15,0.18);
}
.megaBtn:hover .megaBtn__title::after{ width: 54px; }
.megaBtn:hover .megaBtn__title{ color: rgba(255,255,255,0.94); }
.megaBtn:hover .megaBtn__desc{ color: rgba(255,255,255,0.84); }

.megaBtn__desc{
  margin: 0;
  font-weight: 650;
  color: rgba(8,30,20,0.72);
  font-size: 0.90rem;
  line-height: 1.6;
}

/* =========================
   ABOUT MEGA (full width + centered like Services)
========================= */
.nav__item--about .dropdown--aboutMega{
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: var(--topbar-bottom, 80px) !important;

  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;

  margin-top: 0 !important;
  padding: 20px 0 !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: var(--mega-bg) !important;
  box-shadow: 0 18px 34px rgba(10,20,15,0.16) !important;
  transform: none !important;
}

/* About inner layout centered */
.nav__item--about .dropdown--aboutMega .aboutMega__wrap{
  width: min(var(--container, 1200px), calc(100% - 40px)) !important;
  margin: 0 auto !important;

  display: grid !important;
  grid-template-columns: 1.05fr 1fr !important;
  gap: 30px !important;
  align-items: stretch !important;
}

/* remove inner boxes/borders */
.nav__item--about .aboutMega__intro,
.nav__item--about .aboutMega__menu{
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* intro centers vertically */
.nav__item--about .aboutMega__intro{
  display: grid !important;
  align-items: center !important;
  min-height: 130px !important;
}

/* ✅ LIST CLOSER (this is the main “spacing” fix) */
.nav__item--about .aboutMega__menu{
  display: grid !important;
  gap: 6px !important;              /* closer between items */
  align-content: start !important;
  justify-self: end !important;
  width: 100% !important;
  max-width: 520px !important;
}

.about__head{ display: none; }

/* About items — MATCH Services hover color */
.aboutItem{
  position: relative;
  display: grid;
  gap: 2px;                          /* title + desc closer */

  padding: 8.5px 14px !important;               /* balanced height */
  border-radius: 14px;

  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;

  transition:
    transform 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

/* title */
.aboutItem__title{
  margin: 0 !important;
  font-weight: 900;
  color: #0f3b28;
  font-size: 1.02rem;
  line-height: 1.2;
  position: relative;
  display: inline-block;             /* makes underline positioning stable */
}

/* ✅ underline ALWAYS right under title (never bottom) */
.aboutItem__title::after{
  content:"";
  position:absolute;
  left: 0;
  bottom: -4px;          /* move line UP (try -3px to -5px) */
  height: 2px;
  width: 0;
  background: var(--hover-underline);
  transition: width 200ms var(--ease);
}

/* desc spacing away from underline */
.aboutItem__desc{
  margin: 8px 0 0 !important;        /* ✅ fixes “too close” */
  margin-top: 5px !important; 
  font-weight: 650;
  color: rgba(8,30,20,0.72);
  font-size: 0.90rem;
  line-height: 1.45;
}

/* ✅ SAME hover as Services (color + border + shadow + text) */
.aboutItem:hover{
  transform: translateY(-1px);
  background: var(--hover-dark);
  border-color: var(--hover-border);
  box-shadow: 0 12px 26px rgba(10,20,15,0.18);
}
.aboutItem:hover .aboutItem__title{ color: rgba(255,255,255,0.94); }
.aboutItem:hover .aboutItem__desc{ color: rgba(255,255,255,0.84); }
.aboutItem:hover .aboutItem__title::after{ width: 54px; }

/* =========================
   INFOBAR
========================= */
.infobar{
  background: var(--green-900);
  color: rgba(255,255,255,0.92);
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.infobar__inner{
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.infobar__left{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.infobar__right{
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.infobar__right a{
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  text-decoration: none;
}
.infobar__right a:hover{ text-decoration: underline; }

@media (max-width: 820px){
  .infobar__left{ display: none; }
}

/* =========================
   MOBILE NAV
========================= */
@media (max-width: 820px){
  .topbar__inner{ grid-template-columns: auto auto; }
  .nav__toggle{ display: inline-block; }

  .nav__list{
    position: absolute;
    left: 0;
    top: 56px;
    width: min(420px, calc(100vw - 20px));
    padding: 10px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    backdrop-filter: blur(10px);
    z-index: 300;
  }

  .nav__list.is-open{ display: flex; }
  .nav__link{ justify-content: center; }

  .dropdown{
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin-top: 6px;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    box-shadow: none;
    border-radius: 14px;
    width: 100%;
  }

  .nav__item--dropdown::after{ display:none; }

  /* services mega mobile */
  .nav__item--mega .dropdown{
    position: static;
    width: 100%;
    padding: 12px;
    border-radius: 14px;
  }

  .dropdown__mega{
    width: 100%;
    margin: 0;
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .mega__grid{
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  /* about mega mobile */
  .nav__item--about .dropdown--aboutMega{
    position: static !important;
    width: 100% !important;
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .nav__item--about .dropdown--aboutMega .aboutMega__wrap{
    width: 100% !important;
    margin: 0 !important;
    gap: 12px !important;
    grid-template-columns: 1fr !important;
  }

  .nav__item--about .aboutMega__menu{
    display: grid !important;
    gap: 2px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* ✅ 2 columns */
    column-gap: 34px !important;  /* same as services */
    row-gap: 10px !important;     /* tighter like services */
    align-content: start !important;
    justify-self: end !important;
    width: 100% !important;
    max-width: 520px !important; 
  }

  /* keep underline spacing nice on mobile too */
  .aboutItem__desc{ margin-top: 12px !important; }
}

@media (max-width: 520px){
  .topbar__right .btn{ display: none; }
}
