/* ============================================================
   ALL ISLAND RESTORATION — REDESIGN: NAV / HEADER  (Phase 3, v7)
   ------------------------------------------------------------
   White bar, Barlow Condensed uppercase links, blue hover,
   clip-path "Emergency" CTA.

   v7 changes:
     - logo reduced to 100px (shorter, cleaner bar)
     - logo + menu links + CTA all vertically centered on one line
       (flex centering is safe now: sticky is handled by the
        independent stack script, NOT Betheme's sticky)
     - 18px links, single line, even gaps, buffer before the CTA

   Scoped to body.redesign. Load AFTER dark-theme.css.
   Palette = mockup: blue #4a9fd4 / dark #2d7fb5 / hover #6db8e8.
   ============================================================ */

/* ---- Header wrapper: kill the black bg + logo bg Betheme injects ---- */
body.redesign #Header_wrapper {
  background-color: #ffffff !important;
  background-image: none !important;
}

/* ---- Main bar: white, subtle blue underline + soft shadow ---- */
body.redesign #Top_bar {
  background: #ffffff !important;
  border-bottom: 2px solid rgba(74,159,212,.25) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.06) !important;
}
body.redesign #Top_bar .top_bar_left,
body.redesign #Top_bar .top_bar_right,
body.redesign #Top_bar .top_bar_right:before { background: transparent !important; }

/* keep the logo fully INSIDE the white bar (no spill into the blue bar) */
body.redesign #Header_wrapper,
body.redesign #Top_bar { overflow: visible !important; }
body.redesign #Top_bar .container > .column.one { min-height: 102px !important; }

/* ---- Logo: 100px, width free ---- */
body.redesign #Top_bar #logo {
  height: 86px !important;
  line-height: 86px !important;
  padding: 8px 0 !important;       /* clearance so the logo can't touch the blue bar below */
}
body.redesign #Top_bar #logo img {
  max-height: 86px !important;
  width: auto !important;
  max-width: none !important;
  vertical-align: middle !important;
}

/* ---- Menu links: Barlow Condensed, uppercase, dark, blue hover ---- */
body.redesign #Top_bar .menu > li > a { padding: 10px 0 !important; }
body.redesign #Top_bar .menu > li > a span:not(.description) {
  font-family: "Barlow Condensed", "Poppins", sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  color: #1a2535 !important;
  line-height: 24px !important;
}
body.redesign #Top_bar .menu > li:hover > a span:not(.description),
body.redesign #Top_bar .menu > li.hover > a span:not(.description),
body.redesign #Top_bar .menu > li.current-menu-item > a span:not(.description),
body.redesign #Top_bar .menu > li.current-menu-ancestor > a span:not(.description) {
  color: #2d7fb5 !important;
}
body.redesign #Top_bar .menu > li > a:after { background: #4a9fd4 !important; }

/* ---- Dropdown: white panel ---- */
body.redesign #Top_bar .menu > li ul {
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.12) !important;
  border-top: 2px solid #4a9fd4 !important;
}
body.redesign #Top_bar .menu > li ul li a span {
  font-family: "Barlow", "Poppins", sans-serif !important;
  text-transform: none !important;
  font-size: 15px !important;
  color: #1a2535 !important;
}
body.redesign #Top_bar .menu > li ul li:hover > a span,
body.redesign #Top_bar .menu > li ul li.hover > a span { color: #2d7fb5 !important; }

/* ---- Right CTA → clip-path blue button ---- */
body.redesign #Top_bar a.action_button {
  background: #4a9fd4 !important;
  color: #06121c !important;
  font-family: "Barlow Condensed", "Poppins", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  font-size: 15px !important;
  padding: 12px 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
  -webkit-clip-path: polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));
          clip-path: polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));
  transition: background .2s ease !important;
}
body.redesign #Top_bar a.action_button:hover { background: #6db8e8 !important; }

/* ---- Banner phone link ---- */
body.redesign #Top_bar .banner_wrapper a {
  font-family: "Barlow Condensed", "Poppins", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: .03em !important;
  color: #2d7fb5 !important;
}

/* ---- Mobile hamburger toggle ---- */
body.redesign #Top_bar .responsive-menu-toggle { color: #2d7fb5 !important; }

/* ---- Mobile (<=1239px): white slide-down panel, native layout ---- */
@media only screen and (max-width: 1239px) {
  body.redesign #Top_bar #logo { height: auto !important; line-height: normal !important; }
  body.redesign #Top_bar #menu { background: #ffffff !important; }
  body.redesign #Top_bar #menu > ul { white-space: normal !important; display: block !important; }
  body.redesign #Top_bar .menu > li > a { padding: 0 25px !important; }
  body.redesign #Top_bar #menu ul li a span:not(.description) { color: #1a2535 !important; }
  body.redesign #Top_bar #menu ul li.submenu .menu-toggle { color: #2d7fb5 !important; }
}

/* ============================================================
   DESKTOP (>=1240px): one centered line
   logo + menu + CTA all share a vertical centerline.
   Flex is safe — sticky is owned by the independent stack script.
============================================================ */
@media only screen and (min-width: 1240px) {

  /* row container: center everything vertically */
  body.redesign #Top_bar .container > .column.one {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* left group (logo + menu) grows to fill, leaving the CTA at the end */
  body.redesign #Top_bar .top_bar_left {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  /* menu sits centered, single line, with a buffer before the CTA */
  body.redesign #Top_bar .menu_wrapper {
    display: flex !important;
    align-items: center !important;
    margin-right: 60px !important;
    float: none !important;
  }
  body.redesign #Top_bar #menu,
  body.redesign #Top_bar .menu_wrapper,
  body.redesign #Top_bar #menu > ul { background: transparent !important; }
  body.redesign #Top_bar #menu > ul {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 0 22px !important;
  }
  body.redesign #Top_bar #menu > ul > li { float: none !important; white-space: nowrap !important; }
  body.redesign #Top_bar .menu > li > a {
    display: flex !important;
    align-items: center !important;
  }

  /* CTA: pull it into the centered flow and center it on the line */
  body.redesign #Top_bar .top_bar_right {
    position: static !important;
    height: auto !important;
    top: auto !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
  }
  body.redesign #Top_bar .top_bar_right_wrapper {
    position: static !important;
    top: auto !important;
    margin: 0 !important;
  }
}
