/* Ocean Crest — nav + hero form upgrade (2026-10-27 preview)
   Layered override: header badge logo, premium icon menu, simpler hero form. */

:root {
  --ocu-navy-900: #052f5b;
  --ocu-navy-700: #075f9f;
  --ocu-gold: #f5a623;
  --ocu-gold-2: #f28c13;
  --ocu-ink: #0a2d5c;
}

/* ---------- Header: CRM-blue background (matches the LeadControl band) ---------- */
body .site-header .header-bar {
  background: radial-gradient(circle at 11% 0%, rgba(94, 195, 230, 0.24), transparent 30%), linear-gradient(180deg, #075f9f 0%, #043d73 58%, #052f5b 100%) !important;
}
@media (min-width: 961px) {
  body .site-header .nav .nav-links { background: transparent !important; }
}

/* ---------- Header: badge logo ---------- */
body .site-header .nav .brand { flex: none; }
body .site-header .nav .nav-links { min-width: 0; }
body .site-header .nav .brand img {
  width: 300px !important;
  height: auto !important;
  max-width: 62vw !important;
  object-fit: contain;
}
@media (max-width: 1400px) {
  body .site-header .nav .brand img { width: 248px !important; }
}
@media (max-width: 1200px) {
  body .site-header .nav .brand img { width: 224px !important; }
}
@media (max-width: 960px) {
  body .site-header .nav .brand img { width: 255px !important; }
}
@media (max-width: 620px) {
  body .site-header .nav .brand img { width: 245px !important; max-width: 74vw !important; }
}

/* ---------- Desktop dropdowns with icons ---------- */
@media (min-width: 961px) {
  .nav-dropdown {
    background: #ffffff !important;
    min-width: 290px;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(4, 35, 66, 0.28);
  }
  .nav-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 12px !important;
    border-radius: 10px;
    font-weight: 600;
  }
  .nav-dropdown a:hover { background: rgba(7, 95, 159, 0.08); }
  .nav-menu:hover .nav-dropdown,
  .nav-menu:focus-within .nav-dropdown,
  .nav-menu.is-open .nav-dropdown {
    opacity: 1 !important;
    transition: none !important;
    background-color: #ffffff !important;
  }
  .nav-dropdown .oc-nav-ico { color: var(--ocu-navy-700); }
}
@media (min-width: 961px) {
  .nav-links > a .oc-nav-ico,
  .nav-links .oc-menu-scroll > a .oc-nav-ico,
  .nav-links .nav-menu-trigger .oc-nav-ico { display: none !important; }
}
.oc-nav-ico {
  width: 22px;
  height: 22px;
  flex: none;
  display: inline-flex;
}
.oc-nav-ico svg { width: 100%; height: 100%; }

/* Menu extras live ONLY inside the open mobile menu — never in the desktop header. */
.oc-menu-foot { display: none !important; }
.oc-menu-logo { display: none !important; }
/* Scroll-region wrapper (JS-built): invisible to layout until the mobile menu opens. */
.oc-menu-scroll { display: contents; }

/* ---------- Mobile premium menu (<=960px) ---------- */
@media (max-width: 960px) {
  /* The site editor puts a transform on .nav (translate by --oc-x/--oc-y, both 0).
     ANY transform makes .nav the containing block for the fixed full-screen
     menu, insetting it to the container width (strips of page at the sides).
     The offset is 0, so removing it changes nothing visually. */
  body .site-header .nav { transform: none !important; }
  .site-header .nav-toggle { position: relative; z-index: 1202; }
  .site-header .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .site-header .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links.is-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1200;
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 24px 24px 22px !important;
    overflow: hidden;
    background: linear-gradient(180deg, #075f9f 0%, #043d73 58%, #052f5b 100%) !important;
    animation: ocu-menu-in 0.28s ease both;
  }
  @keyframes ocu-menu-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
  }
  .nav-links.is-open > a,
  .nav-links.is-open .oc-menu-scroll > a,
  .nav-links.is-open .nav-menu-trigger {
    display: flex !important;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 11px 4px !important;
    font-size: 18px !important;
    font-weight: 700;
    color: #fff !important;
    text-align: left;
    background: none !important;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
  }
  .nav-links.is-open .oc-nav-ico { color: var(--ocu-gold); width: 26px; height: 26px; }
  .nav-links.is-open .nav-menu { width: 100%; }
  .nav-links.is-open .nav-menu-trigger { justify-content: flex-start; }
  .nav-links.is-open .nav-menu-trigger::after {
    content: "";
    margin-left: auto;
    width: 10px; height: 10px;
    border-right: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex: none;
  }
  .nav-links.is-open .nav-menu.is-open .nav-menu-trigger::after { transform: rotate(-135deg); }
  .nav-links.is-open .nav-dropdown {
    display: none;
    position: static !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px;
    padding: 8px !important;
    margin: 4px 0 10px;
    box-shadow: none !important;
  }
  .nav-links.is-open .nav-menu.is-open .nav-dropdown { display: block; }
  .nav-links.is-open .nav-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 9px 12px !important;
    font-size: 15px !important;
    font-weight: 600;
    color: #fff !important;
    border-radius: 9px;
  }
  .nav-links.is-open .nav-dropdown a:hover { background: rgba(255, 255, 255, 0.1); }
  .nav-links.is-open .nav-dropdown .oc-nav-ico { width: 22px; height: 22px; }

  /* Only the region below Home scrolls; the logo + Home zone above it is
     outside the scroller and cannot move when a section expands. */
  /* JC: the open menu shows ONE phone number — the big one under the
     quote button in the footer. The header's .nav-phone link renders as
     a second pill number in the menu; hide it there. */
  .nav-links.is-open .nav-phone {
    display: none !important;
  }

  .nav-links.is-open .oc-menu-scroll {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Small badge at the top of the open menu (injected by nav-upgrade.js) */
  .nav-links.is-open .oc-menu-logo { display: block !important; margin: 0 0 8px; }
  .nav-links.is-open .oc-menu-logo img { width: 168px; height: auto; display: block; }
  /* Menu footer: quote CTA + big phone (injected by nav-upgrade.js) */
  .oc-menu-foot { display: block !important; margin-top: auto; padding-top: 20px; }
  .oc-menu-quote {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, #f7b733, var(--ocu-gold-2)) !important;
    color: #231303 !important;
    font-size: 18px !important;
    font-weight: 800;
    padding: 14px 20px !important;
    border-radius: 14px;
    border-bottom: 0 !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
  }
  .oc-menu-phone {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    color: #fff !important;
    font-size: 23px !important;
    font-weight: 800;
    border-bottom: 0 !important;
    padding: 8px 4px !important;
  }
  .oc-menu-phone .oc-nav-ico { color: var(--ocu-gold); width: 28px; height: 28px; }
  .oc-menu-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12.5px;
    margin: 6px 0 0;
  }
  /* Hide the small in-list phone row on mobile; the big one replaces it */
  .nav-links.is-open .nav-phone-menu { display: none !important; }
}

/* ---------- Hero estimate form: simpler, Provision-style ---------- */
.hero-estimate-card { position: relative; }
/* Shark mascot: bigger, standing at the form card's bottom-left side.
   (Peeking over the top got its head clipped by the rating strip above.) */
.hero-shark {
  position: absolute;
  width: 172px;
  left: -118px;
  bottom: -18px;
  transform: rotate(-5deg);
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(4, 35, 66, 0.35));
}
@media (max-width: 1250px) {
  .hero-shark { width: 140px; left: -88px; }
}
@media (max-width: 960px) {
  .hero-shark { width: 118px; left: auto; right: -14px; bottom: -8px; transform: rotate(5deg); }
}
@media (max-width: 620px) {
  .hero-shark { width: 92px; right: -6px; bottom: -6px; }
}
.hero-estimate-form { gap: 14px !important; }
.hero-estimate-form label {
  font-size: 11.5px !important;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ocu-ink);
}
.hero-estimate-form label input,
.hero-estimate-form label textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 50px;
  border: 1.5px solid #d5dde5 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-size: 16px !important;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  background: #fbfcfe;
  box-sizing: border-box;
}
.hero-estimate-form label textarea { min-height: 56px; resize: vertical; }
.hero-estimate-form label input:focus,
.hero-estimate-form label textarea:focus {
  outline: none;
  border-color: var(--ocu-navy-700) !important;
  box-shadow: 0 0 0 3px rgba(7, 95, 159, 0.18);
  background: #fff;
}
.hero-estimate-form #address-help { display: none !important; }
.hero-estimate-form .oc-optional {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  color: #66737c;
}
.hero-estimate-form .estimate-submit {
  min-height: 56px;
  border-radius: 14px !important;
  font-size: 18px !important;
  font-weight: 800;
  background: linear-gradient(180deg, #f7b733, var(--ocu-gold-2)) !important;
  color: #231303 !important;
  box-shadow: 0 12px 24px rgba(242, 140, 19, 0.35);
}
@media (max-width: 620px) {
  .hero-estimate-form .form-pair { grid-template-columns: 1fr !important; }
}











