/* ==========================================================================
   Kalyan Enterprises - the ONE site header (topbar + navigation).

   Self contained on purpose: it does not need Bootstrap and every rule is
   scoped under .ke-topbar / .ke-site-header, so it renders the same on the
   new home page and on the older pages that still load css/style.css.
   ========================================================================== */

.ke-topbar,
.ke-site-header {
  --ke-navy: #0b2c67;
  --ke-blue: #14449b;
  --ke-blue-light: #2a6fd6;
  --ke-line: #e4e9f0;
  --ke-soft: #f4f7fb;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}
.ke-topbar *,
.ke-site-header * { box-sizing: border-box; }

.ke-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------------------------------------------------------------- top bar */
.ke-topbar {
  background: #0b2c67;
  color: #dce6f5;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 8px 0;
}
.ke-topbar .ke-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ke-topbar a { color: #dce6f5; text-decoration: none; }
.ke-topbar a:hover { color: #fff; }
.ke-topbar .ke-tagline { text-transform: uppercase; font-weight: 600; color: #fff; }
.ke-topbar i { color: #7fb4ff; }
.ke-topbar .ke-topbar-cities a {
  text-transform: uppercase; font-weight: 600; margin-left: 22px; position: relative;
}
.ke-topbar .ke-topbar-cities a:first-child { margin-left: 0; }
.ke-topbar .ke-topbar-cities a + a::before {
  content: "|"; position: absolute; left: -13px; color: rgba(255,255,255,.35); font-weight: 400;
}
@media (max-width: 767px) {
  .ke-topbar .ke-container { justify-content: center; text-align: center; }
}

/* ----------------------------------------------------------------- header */
.ke-site-header {
  background: #fff;
  box-shadow: 0 2px 14px rgba(11,44,103,.08);
  padding: 6px 0;
  position: relative;
  z-index: 900;
}
.ke-site-header .ke-container {
  display: flex;
  align-items: center;
  gap: 14px;
  /* the mega panels are positioned against this box, never against the menu
     item, so they can never run off either edge of the window */
  position: relative;
}
.ke-site-header .ke-logo { display: inline-block; flex: 0 0 auto; }
.ke-site-header .ke-logo img { height: 100px; width: auto; display: block; }
/* the round badge logo needs a little more height to read at the same size */
.ke-site-header .ke-logo-round img { height: 74px; }

.ke-burger {
  display: none;
  margin-left: auto;
  background: #fff;
  border: 1px solid #cfe0f7;
  border-radius: 6px;
  padding: 8px 11px;
  cursor: pointer;
  line-height: 1;
}
.ke-burger span {
  display: block; width: 22px; height: 2px; background: #0b2c67; margin: 4px 0;
}

.ke-navwrap {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 14px;
}

.ke-menu {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
/* static on purpose - the mega panels below position against .ke-container */
.ke-menu > li { position: static; list-style: none; }
.ke-menu > li > a {
  display: block;
  text-transform: uppercase;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #2b3a4b;
  padding: 12px 12px;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.ke-menu > li > a:hover,
.ke-menu > li.ke-active > a { color: #14449b; }
.ke-menu > li.ke-active > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; background: #14449b;
}
.ke-menu > li.ke-has-drop > a::before {
  content: ""; display: inline-block; vertical-align: middle;
  border: 4px solid transparent; border-top-color: currentColor;
  margin: -2px 0 0 0; float: right; margin-left: 6px; position: relative; top: 7px;
}

/* ---------------------------------------------------------------- dropdown */
.ke-drop {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background: #fff;
  border-top: 3px solid #14449b;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 30px rgba(11,44,103,.16);
  padding: 12px;
  font-size: 13.5px;
  z-index: 999;
}
.ke-menu > li:hover > .ke-drop,
.ke-menu > li.ke-open > .ke-drop { display: block; }

.ke-drop a {
  display: block;
  border-radius: 5px;
  padding: 6px 10px;
  color: #2b3a4b;
  text-decoration: none;
  line-height: 1.4;
}
.ke-drop a:hover { background: #f4f7fb; color: #14449b; }

/* Both mega panels span the header container and reflow with CSS grid, so
   they fit any screen and can never overflow an edge. */
.ke-drop-services,
.ke-drop-cities {
  left: 0;
  right: 0;
  width: auto;
}
.ke-drop-services .ke-drop-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 4px 10px;
}
.ke-drop-services .ke-drop-cols > div { min-width: 0; }

.ke-drop-cities {
  max-height: 78vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ke-drop-cities .ke-city-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 6px 18px;
}
.ke-drop-cities .ke-city-col { min-width: 0; }

/* the service list inside a city column goes two up so the panel is not
   three screens tall */
.ke-drop-cities .ke-city-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0 6px;
}
.ke-drop-cities .ke-city-links a { font-size: 12.5px; padding: 5px 10px; }

.ke-drop h6 {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: #0b2c67; border-bottom: 1px solid #e4e9f0;
  padding: 0 10px 7px; margin: 4px 0 6px;
}
.ke-drop h6 i { color: #2a6fd6; margin-right: 5px; }
.ke-drop .ke-sub-head {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: #6b7a8d; padding: 10px 10px 4px; margin: 0;
}
.ke-drop .ke-area-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0 6px;
}
.ke-drop .ke-area-links a { font-size: 12.5px; padding: 4px 10px; color: #4a6a95; }
.ke-drop .ke-viewall {
  display: block; margin-top: 6px; padding: 6px 10px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: #14449b;
}

/* --------------------------------------------------------------- call box */
.ke-callbox {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid #cfe0f7; border-radius: 8px;
  padding: 8px 16px; background: #fff; flex: 0 0 auto;
}
.ke-callbox .ke-callbox-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: #0b2c67; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 34px; font-size: 15px;
}
.ke-callbox a {
  display: block; color: #14449b; font-weight: 700;
  font-size: 15px; line-height: 1.45; text-decoration: none;
}
.ke-callbox a:hover { color: #0b2c67; }

/* ----------------------------------------------------------------- mobile */

/* Nothing in the header may push the page sideways.  NOTE: do not put
   overflow-x here - the drop down panels are absolutely positioned and any
   overflow value other than visible clips them.  The panels keep themselves
   inside the viewport with max-width instead. */
.ke-topbar, .ke-site-header { max-width: 100%; }
.ke-topbar { overflow-x: clip; }

/* laptops: tighten the menu so it still fits on one row */
@media (min-width: 1200px) and (max-width: 1399px) {
  .ke-menu > li > a { padding: 12px 8px; font-size: 12.5px; }
  .ke-site-header .ke-logo img { height: 100px; }
  .ke-site-header .ke-logo-round img { height: 100px; }
  .ke-callbox { padding: 6px 12px; gap: 9px; }
  .ke-callbox a { font-size: 13.5px; }
}

@media (max-width: 1199px) {
  .ke-burger { display: block; }
  .ke-site-header .ke-container { flex-wrap: wrap; }
  .ke-navwrap {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid #e4e9f0;
    margin-top: 8px;
    padding-top: 8px;
    max-height: 78vh;
    overflow-y: auto;
  }
  .ke-navwrap.ke-show { display: flex; }
  .ke-menu { flex-direction: column; align-items: stretch; margin: 0; width: 100%; }
  .ke-menu > li > a { padding: 11px 4px; border-bottom: 1px solid #f0f3f8; }
  .ke-menu > li:hover > .ke-drop { display: none; }
  .ke-menu > li.ke-open > .ke-drop { display: block; }
  .ke-drop,
  .ke-drop-services,
  .ke-drop-cities {
    position: static;
    width: auto;
    max-width: none;
    right: auto;
    box-shadow: none;
    border-top: 0;
    border-left: 3px solid #14449b;
    border-radius: 0;
    padding: 6px 0 6px 10px;
    max-height: none;
    overflow: visible;
  }
  /* one column per city, but the links inside still wrap into a grid so the
     panel stays short enough to scroll through */
  .ke-drop-cities .ke-city-cols { grid-template-columns: 1fr; gap: 4px; }
  .ke-drop-services .ke-drop-cols { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .ke-drop-cities .ke-city-links { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .ke-drop-cities .ke-city-col { padding-bottom: 6px; }
  .ke-callbox { margin: 10px 0 6px; align-self: flex-start; }

  /* the parent row gets a caret that flips when the section is open */
  .ke-menu > li.ke-has-drop > a::before {
    float: right; top: 4px; margin-left: 8px;
    transition: transform .2s ease;
  }
  .ke-menu > li.ke-has-drop.ke-open > a::before { transform: rotate(180deg); }
  .ke-menu > li.ke-open > a { color: #14449b; }

  /* area chips read better as a wrapped row than as a long list on a phone */
  .ke-drop .ke-area-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
  .ke-drop .ke-area-links a {
    background: #f4f7fb; border-radius: 16px; padding: 5px 12px; font-size: 12px;
  }
}

/* phones */
@media (max-width: 767px) {
  .ke-topbar { font-size: 11.5px; padding: 7px 0; }
  .ke-topbar .ke-tagline { font-size: 11px; }
  .ke-topbar .ke-topbar-cities a { margin-left: 16px; }
  .ke-topbar .ke-topbar-cities a + a::before { left: -10px; }
  .ke-site-header .ke-logo img { height: 100px; }
  .ke-site-header .ke-logo-round img { height: 56px; }
  .ke-site-header { padding: 8px 0; }
  .ke-callbox { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .ke-site-header .ke-logo img { height: 100px; }   /* same as phones - no shrink */
  .ke-site-header .ke-logo-round img { height: 48px; }
  .ke-topbar .ke-topbar-cities a { margin-left: 11px; font-size: 10.5px; }
}
