/* ============================================================
   GSSC HEADER CSS
   Uses CSS custom properties injected by the widget PHP render.
   ============================================================ */

:root {
  --gssc-navy:   #1d3250;
  --gssc-blue:   #4DA8DA;
  --gssc-bluelt: #82c7e8;
  --gssc-bluebg: #eaf4fb;
  --gssc-navbg:  #ffffff;
  --gssc-navtxt: #2c3a4f;
  --gssc-topbg:  #1d3250;
  --gssc-navh:   70px;
  --gssc-logoh:  48px;
  --gssc-r:      8px;
  --gssc-brd:    rgba(29,50,80,.1);
}

/* Reset inside header scope */
.gssc-header *, .gssc-header *::before, .gssc-header *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.gssc-header { font-family: 'DM Sans', sans-serif; }
.gssc-header a { text-decoration: none; color: inherit; }

/* ---- STICKY ---- */
.gssc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gssc-navbg, #fff);
  border-bottom: 1px solid var(--gssc-brd);
  box-shadow: 0 1px 12px rgba(29,50,80,.07);
  transition: box-shadow .2s;
}

/* ---- TOPBAR ---- */
.gssc-topbar {
  background: var(--gssc-topbg, #1d3250);
  padding: 8px 0;
}
.gssc-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gssc-topbar-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.gssc-topbar-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  transition: color .15s;
}
.gssc-topbar-contact a:hover { color: var(--gssc-bluelt, #82c7e8); }
.gssc-topbar-contact i { font-size: 11px; color: var(--gssc-bluelt, #82c7e8); }
.gssc-topbar-tag {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  font-weight: 500;
  white-space: nowrap;
}
.gssc-topbar-tag i { color: var(--gssc-bluelt, #82c7e8); margin-right: 4px; }

/* ---- MAIN NAV ---- */
.gssc-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--gssc-navh, 70px);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Logo */
.gssc-logo { flex-shrink: 0; display: flex; align-items: center; }
.gssc-logo img { height: var(--gssc-logoh, 48px); width: auto; display: block; }

/* Nav list */
.gssc-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  padding: 0;
}
.gssc-nav-links > li { position: relative; }

.gssc-nav-links > li > a,
.gssc-nav-links > li > button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--gssc-navtxt, #2c3a4f);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--gssc-r);
  transition: color .15s, background .15s;
  white-space: nowrap;
  line-height: 1;
}
.gssc-nav-links > li > a:hover,
.gssc-nav-links > li > button:hover,
.gssc-nav-links > li.gssc-has-drop:hover > button {
  color: var(--gssc-blue, #4DA8DA);
  background: var(--gssc-bluebg, #eaf4fb);
}
.gssc-chevron { font-size: 10px; transition: transform .2s; }
.gssc-nav-links > li.gssc-has-drop:hover .gssc-chevron { transform: rotate(180deg); }

/* Dropdowns */
.gssc-drop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--gssc-brd);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(29,50,80,.13);
  padding: 8px;
  z-index: 200;
  animation: gsscDropIn .15s ease;
}
@keyframes gsscDropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gssc-nav-links > li.gssc-has-drop:hover .gssc-drop { display: block; }

.gssc-drop a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gssc-navtxt, #2c3a4f);
  border-radius: var(--gssc-r);
  transition: background .15s, color .15s;
}
.gssc-drop a:hover { background: var(--gssc-bluebg, #eaf4fb); color: var(--gssc-blue, #4DA8DA); }
.gssc-drop a i { width: 18px; text-align: center; font-size: 12px; color: var(--gssc-blue, #4DA8DA); flex-shrink: 0; }
.gssc-drop-divider { height: 1px; background: var(--gssc-brd); margin: 6px 0; }

/* CTA Buttons */
.gssc-nav-cta { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.gssc-btn-call {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 18px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--gssc-navy, #1d3250);
  background: #f0f4f9;
  border: 1.5px solid var(--gssc-brd);
  border-radius: 100px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.gssc-btn-call:hover { background: var(--gssc-bluebg, #eaf4fb); border-color: var(--gssc-bluelt, #82c7e8); }
.gssc-btn-call i { font-size: 12px; color: var(--gssc-blue, #4DA8DA); }

.gssc-btn-quote {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700;
  color: #fff;
  background: var(--gssc-blue, #4DA8DA);
  border: none;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(77,168,218,.35);
  transition: background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.gssc-btn-quote:hover {
  background: #3a9bcf;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(77,168,218,.42);
}
.gssc-btn-quote i { font-size: 12px; }

/* ---- HAMBURGER ---- */
.gssc-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}
.gssc-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gssc-navy, #1d3250);
  border-radius: 2px;
  transition: all .25s;
}
.gssc-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gssc-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.gssc-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- MOBILE MENU ---- */
.gssc-mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--gssc-brd);
  padding: 16px 24px 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.gssc-mobile-menu.is-open {
  display: block;
  max-height: 90vh;
  overflow-y: auto;
}
.gssc-mobile-links { list-style: none; padding: 0; }
.gssc-mobile-links li { border-bottom: 1px solid var(--gssc-brd); }
.gssc-mobile-links li:last-child { border-bottom: none; }
.gssc-mobile-links a,
.gssc-mobile-links button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 13px 0;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--gssc-navtxt, #2c3a4f);
  background: none; border: none; cursor: pointer;
  text-align: left; text-decoration: none;
}
.gssc-mobile-links button i { color: #637083; font-size: 11px; transition: transform .2s; }
.gssc-mobile-links button[aria-expanded="true"] i { transform: rotate(180deg); }

.gssc-mobile-sub {
  display: none; padding: 4px 0 12px 16px;
  border-left: 2px solid var(--gssc-bluebg, #eaf4fb);
  margin-left: 4px;
}
.gssc-mobile-sub.is-open { display: block; }
.gssc-mobile-sub a {
  padding: 9px 0; font-size: 14px; font-weight: 500;
  color: #637083; justify-content: flex-start; gap: 8px;
}
.gssc-mobile-sub a i { color: var(--gssc-blue, #4DA8DA); font-size: 11px; width: 16px; }

.gssc-mobile-cta {
  display: flex; flex-direction: column; gap: 10px; margin-top: 16px;
}
.gssc-mobile-cta .gssc-btn-call,
.gssc-mobile-cta .gssc-btn-quote { justify-content: center; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .gssc-nav-links { display: none; }
  .gssc-btn-call  { display: none; }
  .gssc-hamburger { display: flex; }
  .gssc-topbar-tag { display: none; }
}
@media (max-width: 640px) {
  .gssc-nav { padding: 0 16px; height: 62px; }
  .gssc-logo img { height: 40px; }
  .gssc-btn-quote { padding: 9px 16px; font-size: 13px; }
  .gssc-mobile-menu { padding: 12px 16px 16px; }
  .gssc-topbar-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .gssc-topbar-contact a:nth-child(n+3) { display: none; }
}
