/* Vibgyor v3 — classic full-width header + refined contact strip and motion.
   Intended to load AFTER styles.css and modern.css. Other v2 features remain intact. */

/* Contact strip — dark, compact, crisp. */
.topbar {
  position:relative;
  background:#111a14;
  color:#ecf2ea;
  border-bottom:1px solid rgba(106,200,63,.17);
  font-size:11.5px;
}
.topbar-inner {
  height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.topbar-intro {display:inline-flex;align-items:center;gap:10px;font-weight:600;letter-spacing:.01em;color:#c7d8c8;white-space:nowrap}
.topbar-signal {width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#6ac83f;box-shadow:0 0 0 4px rgba(106,200,63,.15)}
.topbar-right {display:flex;align-items:center;gap:17px;white-space:nowrap}
.topbar-right a {display:inline-flex;align-items:center;gap:9px;color:#f7faf6;font-size:11.5px;font-weight:700;transition:color .22s ease}
.topbar-right a:hover {color:#9df16e}
.topbar-right svg {width:16px;height:16px;fill:none;stroke:#6ac83f;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.topbar-divider {height:15px;width:1px;background:rgba(245,255,245,.25)}

/* Return to v1's full-width, traditional straight-edged navigation. */
.site-header,
.site-header.is-scrolled {
  position:sticky;
  top:0;
  z-index:110;
  margin:0;
  padding:0;
  background:rgba(255,255,255,.985);
  border:0;
  border-bottom:1px solid #e9f0e6;
  box-shadow:0 5px 18px rgba(15,38,20,.06);
  backdrop-filter:none;
}
.site-header.is-scrolled {box-shadow:0 8px 24px rgba(15,38,20,.09)}
.site-header .nav-row,
.site-header.is-scrolled .nav-row {
  width:min(1260px,calc(100% - 80px));
  max-width:1260px;
  height:91px;
  padding:0;
  gap:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  backdrop-filter:none;
}
.site-header .brand {width:170px;height:82px;flex:0 0 170px;justify-content:flex-start}
.site-header .brand img {width:164px;max-height:80px;object-fit:contain}
.site-header .nav-main {display:flex;align-items:center;gap:26px;margin:0 auto}
.site-header .nav-link {
  display:inline-flex;align-items:center;gap:7px;
  height:91px;padding:0;
  border-radius:0;background:transparent;
  color:#233028;font-size:13px;font-weight:800;letter-spacing:0;
  transition:color .2s ease;
}
.site-header .nav-link:hover,
.site-header .nav-link.active,
.site-header .nav-trigger[aria-expanded="true"] {color:#348d22;background:transparent}
.site-header .nav-trigger .chevron {margin-left:0}
.site-header .nav-cta {display:inline-flex;background:#171d19;color:white;border-radius:100px;padding:13px 20px;gap:15px;font-size:13px;box-shadow:none}
.site-header .nav-cta .arrow {background:rgba(255,255,255,.13);color:white;width:25px;height:25px;font-size:17px}
.site-header .nav-cta:hover {background:#2b6e28;box-shadow:0 9px 24px rgba(50,112,44,.18)}
.site-header .mobile-toggle {display:none}

/* Reliable, truly height-based dropdown animation (no jQuery dependency).
   JS measures the content height so the panel actually grows downward rather
   than appearing at full height and only having its contents clipped. */
.site-header .mega {
  position:absolute;
  top:100%;left:0;right:0;
  width:100%;
  height:0;
  padding:0;
  overflow:hidden;
  background:#fff;
  border:0;
  border-radius:0;
  box-shadow:0 29px 48px rgba(20,38,21,.14);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-9px);
  transition:height .56s cubic-bezier(.22,1,.36,1),
             transform .46s cubic-bezier(.22,1,.36,1),
             opacity .32s ease,
             visibility 0s linear .56s;
}
.site-header .mega.open {
  height:var(--mega-expand-height,580px);
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
  transition:height .56s cubic-bezier(.22,1,.36,1),
             transform .46s cubic-bezier(.22,1,.36,1),
             opacity .32s ease,
             visibility 0s;
}
.site-header .mega-inner {width:min(1260px,calc(100% - 80px));padding:29px 0 36px;gap:22px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 1.15fr}
.site-header .mega-inner::before {display:none;content:none}
.site-header .mega-col h4 {font-size:11px;letter-spacing:.14em;color:#398d29;margin:0 0 13px}
.site-header .mega-col a {display:block;font-size:12px;padding:7px 0;border-radius:0;line-height:1.45;font-weight:700;color:#354336;transition:color .18s,padding-left .18s,background .18s}
.site-header .mega-col a:hover {padding-left:7px;background:transparent;color:#328b20}
.site-header .mega-feature {position:relative;background:#effae8;border-radius:19px;padding:23px;display:flex;flex-direction:column;justify-content:space-between;min-height:185px}
.site-header .mega-feature:before {display:none}
.site-header .mega-feature .symbol {font-size:26px;line-height:1.2;color:#338c28}
.site-header .mega-feature strong {font-size:18px;line-height:1.2}
.site-header .mega-feature p {font-size:12px;line-height:1.6}
.site-header .mega-feature a {background:transparent;padding:0;border-radius:0;font-size:12px}
/* Stagger the columns so the menu feels fluid rather than popping into view. */
.site-header .mega-col,.site-header .mega-feature {
  opacity:0;transform:translateY(-11px);
  transition:opacity .35s ease,transform .48s cubic-bezier(.19,1,.22,1);
}
.site-header .mega.open .mega-col,.site-header .mega.open .mega-feature {opacity:1;transform:translateY(0)}
.site-header .mega.open .mega-col:nth-child(1) {transition-delay:.055s}
.site-header .mega.open .mega-col:nth-child(2) {transition-delay:.095s}
.site-header .mega.open .mega-col:nth-child(3) {transition-delay:.135s}
.site-header .mega.open .mega-col:nth-child(4) {transition-delay:.175s}
.site-header .mega.open .mega-feature {transition-delay:.2s}

/* Version 1-style mobile menu with tidy spacing. */
@media (max-width:1200px) {
 .site-header .nav-main {gap:18px}
 .site-header .nav-row {gap:15px}
 .site-header .nav-link {font-size:12px}
 .site-header .nav-cta {font-size:12px;padding:12px 15px;gap:9px}
 .site-header .brand {width:153px;flex-basis:153px}
 .site-header .brand img {width:150px}
 .site-header .mega-inner {gap:14px}
}
@media (max-width:1050px) {
 .site-header .nav-main,.site-header .nav-cta {display:none}
 .site-header .mobile-toggle {
   display:flex;width:49px;height:49px;border:0;border-radius:14px;
   align-items:center;justify-content:center;
   background:#eff8ea;color:#202d22;font-size:24px;box-shadow:none;
 }
 .site-header .nav-row,.site-header.is-scrolled .nav-row {width:calc(100% - 48px);height:78px}
 .site-header .brand {width:155px;height:74px;flex-basis:155px}
 .site-header .brand img {width:148px}
 .site-header .mega {display:none}
 /* Same full-height, right-side off-canvas drawer as v3, now with a perceptible,
    eased slide-in/out (and staggered row entrance), no jQuery dependency. */
 .mobile-panel {
   display:block;position:fixed;z-index:109;
   top:120px;bottom:0;left:0;right:0;
   width:100%;height:auto;
   opacity:0;visibility:hidden;pointer-events:none;
   overflow-y:auto;overscroll-behavior:contain;
   padding:17px 28px 65px;
   background:white;border:0;border-radius:0;
   box-shadow:0 23px 60px #0d23162b;
   transform:translate3d(105%,0,0);
   will-change:transform;
   transition:transform .62s cubic-bezier(.22,1,.36,1),
              opacity .38s ease,
              visibility 0s linear .62s;
 }
 .site-header.is-scrolled ~ .mobile-panel {top:78px}
 .mobile-panel.open {
   opacity:1;visibility:visible;transform:translate3d(0,0,0);pointer-events:auto;
   transition:transform .62s cubic-bezier(.22,1,.36,1),
              opacity .38s ease,
              visibility 0s;
 }
 .mobile-panel>a,.mobile-panel>button {
   display:flex;width:100%;justify-content:space-between;align-items:center;
   padding:15px 4px;font-size:15px;border-bottom:1px solid #e7eee4;
   background:transparent;border-radius:0;
   opacity:0;transform:translateX(22px);
   transition:transform .48s cubic-bezier(.22,1,.36,1),opacity .38s ease;
 }
 .mobile-panel.open>a,.mobile-panel.open>button {opacity:1;transform:translateX(0)}
 .mobile-panel.open>:nth-child(1) {transition-delay:.07s}
 .mobile-panel.open>:nth-child(2) {transition-delay:.105s}
 .mobile-panel.open>:nth-child(4) {transition-delay:.14s}
 .mobile-panel.open>:nth-child(5) {transition-delay:.175s}
 .mobile-panel.open>:nth-child(6) {transition-delay:.21s}
 .mobile-panel.open>:nth-child(7) {transition-delay:.245s}
 .mobile-panel.open>:nth-child(8) {transition-delay:.28s}
 .mobile-panel.open>:nth-child(9) {transition-delay:.315s}
 /* Services on mobile also opens with a height-based slide, not an instant pop. */
 .mobile-panel .mobile-sub {
   display:grid;grid-template-rows:0fr;
   opacity:0;visibility:hidden;
   background:#f2faed;border-radius:12px;
   margin:0!important;padding:0 18px!important;
   transition:grid-template-rows .52s cubic-bezier(.22,1,.36,1),
              opacity .32s ease,
              margin .52s cubic-bezier(.22,1,.36,1),
              padding .52s cubic-bezier(.22,1,.36,1),
              visibility 0s linear .52s;
 }
 .mobile-panel .mobile-sub.is-open {
   grid-template-rows:1fr;
   opacity:1;visibility:visible;
   margin:10px 0 15px!important;padding:10px 18px!important;
   transition:grid-template-rows .52s cubic-bezier(.22,1,.36,1),
              opacity .32s ease,
              margin .52s cubic-bezier(.22,1,.36,1),
              padding .52s cubic-bezier(.22,1,.36,1),
              visibility 0s;
 }
 .mobile-sub-content {min-height:0;overflow:hidden}
 .mobile-panel .mobile-sub a {display:block;padding:9px 0;font-size:13px}
 .mobile-panel>a.btn {width:100%;background:#6ac83f;border:0;justify-content:center;color:#172018;padding:17px 20px}
}
@media (max-width:760px) {
 .topbar-inner {height:40px;justify-content:center;gap:10px}
 .topbar-intro {font-size:10px}
 .topbar-right {gap:9px}
 .topbar-divider,.topbar-right a:first-child {display:none}
 .topbar-right a {font-size:10px}
 .topbar-right svg {width:14px;height:14px}
 .site-header .nav-row,.site-header.is-scrolled .nav-row {width:calc(100% - 34px);height:72px}
 .site-header .brand {width:145px;flex-basis:145px;height:69px}
 .site-header .brand img {width:139px}
 .mobile-panel {top:112px;padding:15px 23px 60px}
 .site-header.is-scrolled ~ .mobile-panel {top:72px}
}
@media (max-width:550px) {
 .topbar-intro {display:none}
 .topbar-right a:first-child {display:inline-flex}
 .topbar-divider {display:inline-block}
 .topbar-right {width:100%;justify-content:space-evenly}
 .topbar-right a {font-size:10px}
 .topbar-right svg {width:13px;height:13px}
 .topbar-inner {justify-content:center}
}
@media (max-width:370px) {
 .topbar-right {gap:5px}
 .topbar-right a {font-size:9px;gap:5px}
}
@media (prefers-reduced-motion:reduce) {
 .site-header .mega,.site-header .mega-col,.site-header .mega-feature,.mobile-panel,.mobile-panel>a,.mobile-panel>button,.mobile-panel .mobile-sub {transition:none!important;animation:none!important}
}
