/* Longhorn CR — header, rebuilt.
 *
 * Duda's exported header depended on a runtime that never loads in a static
 * export: the nav dropdowns didn't open, the mobile drawer didn't work, and the
 * scrolled-state background resolved to `transparent` through its own cascade,
 * leaving white nav text on white content. Rather than keep patching that, the
 * header is rebuilt here — one responsive header serving desktop, tablet and
 * mobile, so nav edits happen once instead of three times.
 *
 * Colours are Duda's: --lh-navy is the scrolled-header navy from the original
 * stylesheet, --lh-accent the site's existing coral.
 */

:root {
  --lh-navy: rgb(12, 36, 48);
  --lh-navy-deep: rgb(8, 25, 34);
  --lh-accent: #f26554;
  --lh-accent-dark: #d9503f;
  --lh-topbar-h: 40px;
  --lh-bar-h: 92px;
  --lh-bar-h-scrolled: 72px;
}

/* ---------------------------------------------------------------- shell -- */
.lh-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  transition: background-color .28s ease, box-shadow .28s ease;
  background-color: rgba(12, 36, 48, .30);
}
/* Scrim keeps white nav text readable over a photo hero while the bar is
   still translucent at the top of the page. */
.lh-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(8, 25, 34, .78), rgba(8, 25, 34, 0));
  pointer-events: none;
  transition: opacity .28s ease;
  opacity: 1;
}
.lh-header.is-scrolled {
  background-color: var(--lh-navy);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .22);
}
.lh-header.is-scrolled::before { opacity: 0; }
/* Any page whose content starts flush (no photo hero) gets the solid bar
   immediately — the scrim would otherwise sit over white content. */
.lh-header.is-solid { background-color: var(--lh-navy); }
.lh-header.is-solid::before { opacity: 0; }

.lh-header * { box-sizing: border-box; }
.lh-header a { text-decoration: none; }

/* --------------------------------------------------------------- topbar -- */
.lh-topbar {
  position: relative; z-index: 1;
  height: var(--lh-topbar-h);
  background: var(--lh-navy-deep);
  display: flex; align-items: center;
}
.lh-topbar__inner {
  width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
}
.lh-topbar a {
  color: #cfd8dd; font-size: 12.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: color .18s ease;
}
.lh-topbar a:hover, .lh-topbar a:focus-visible { color: #fff; }
.lh-topbar__sep { color: #4a5c66; font-size: 12px; }
.lh-topbar__tel { color: #fff !important; }

/* ------------------------------------------------------------------ bar -- */
.lh-bar {
  position: relative; z-index: 1;
  height: var(--lh-bar-h);
  display: flex; align-items: center;
  transition: height .28s ease;
}
.lh-header.is-scrolled .lh-bar { height: var(--lh-bar-h-scrolled); }
.lh-bar__inner {
  width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 26px;
}
.lh-logo { flex: 0 0 auto; display: block; }
.lh-logo img {
  display: block; width: auto; height: 72px;
  transition: height .28s ease;
}
.lh-header.is-scrolled .lh-logo img { height: 58px; }

/* ----------------------------------------------------------------- nav --- */
.lh-nav { margin-left: auto; }
.lh-nav > ul {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.lh-nav > ul > li { position: relative; }
.lh-nav > ul > li > a,
.lh-nav > ul > li > .lh-parent {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 13px;
  color: #fff; font-size: 13.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  border-radius: 3px;
  transition: color .18s ease, background-color .18s ease;
}
.lh-nav > ul > li > a:hover,
.lh-nav > ul > li > .lh-parent:hover,
.lh-nav > ul > li > a:focus-visible,
.lh-nav > ul > li > .lh-parent:focus-visible { color: var(--lh-accent); }
.lh-nav > ul > li > a[aria-current="page"] { color: var(--lh-accent); }
.lh-caret {
  width: 9px; height: 9px; flex: 0 0 auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.lh-nav > ul > li.is-open > .lh-parent .lh-caret { transform: rotate(-135deg) translate(-3px, -3px); }

/* dropdown */
.lh-sub {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 270px; padding: 8px;
  background: #fff; border-radius: 4px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .2);
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.lh-nav > ul > li.is-open > .lh-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.lh-sub a {
  display: block; padding: 11px 14px;
  color: #1f2d34; font-size: 13.5px; font-weight: 600;
  letter-spacing: .03em; border-radius: 3px;
  transition: background-color .16s ease, color .16s ease;
}
.lh-sub a:hover, .lh-sub a:focus-visible { background: #f2f5f6; color: var(--lh-accent); }

/* CTA */
.lh-cta {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  padding: 13px 22px; margin-left: 6px;
  background: var(--lh-accent); color: #fff !important;
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 3px; white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease;
}
.lh-cta:hover, .lh-cta:focus-visible { background: var(--lh-accent-dark); transform: translateY(-1px); }

/* -------------------------------------------------------------- burger --- */
.lh-burger {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px; padding: 11px;
  background: none; border: 0; cursor: pointer;
}
.lh-burger span {
  display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.lh-burger span + span { margin-top: 5px; }
.lh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lh-scrim {
  position: fixed; inset: 0; z-index: 8500;
  background: rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
body.lh-menu-open .lh-scrim { opacity: 1; visibility: visible; }
body.lh-menu-open { overflow: hidden; }

/* --------------------------------------------------------------- mobile -- */
@media (max-width: 1100px) {
  :root { --lh-bar-h: 74px; --lh-bar-h-scrolled: 64px; }
  .lh-burger { display: block; }
  .lh-logo img { height: 48px; }
  .lh-header.is-scrolled .lh-logo img { height: 42px; }

  .lh-nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(86vw, 380px); z-index: 9100;
    background: var(--lh-navy);
    padding: 82px 0 32px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    margin-left: 0;
  }
  body.lh-menu-open .lh-nav { transform: translateX(0); }

  .lh-nav > ul { display: block; }
  .lh-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .lh-nav > ul > li > a,
  .lh-nav > ul > li > .lh-parent {
    width: 100%; padding: 17px 26px; font-size: 14px; justify-content: space-between;
  }
  .lh-sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(0, 0, 0, .22); border-radius: 0;
    padding: 0; max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .lh-nav > ul > li.is-open > .lh-sub { max-height: 640px; }
  .lh-sub a { color: #dbe3e7; padding: 14px 26px 14px 40px; font-size: 13.5px; }
  .lh-sub a:hover, .lh-sub a:focus-visible { background: rgba(255, 255, 255, .06); color: var(--lh-accent); }
  .lh-cta { margin: 22px 26px 0; justify-content: center; }
  .lh-topbar__inner { justify-content: center; gap: 11px; padding: 0 16px; }
  .lh-topbar a { font-size: 11px; letter-spacing: .05em; }
  .lh-bar__inner { padding: 0 16px; }
}

@media (max-width: 560px) {
  .lh-topbar a:not(.lh-topbar__tel):not(.lh-topbar__review) { display: none; }
  .lh-topbar__sep:first-of-type { display: none; }
}

/* Content sits under a fixed header — push it down by the header's height. */
body.lh-has-header { padding-top: calc(var(--lh-topbar-h) + var(--lh-bar-h)); }

@media print { .lh-header, .lh-scrim { display: none; } body.lh-has-header { padding-top: 0; } }

/* ---------------------------------------------------------------------------
 * Hardening.
 *
 * Duda's exported stylesheet is ~1.2MB of heavily !important-ed rules. Several
 * of them reach this component through generic selectors (a global `img` rule
 * was resizing the logo to 245px, and a nav-link rule was flattening the CTA
 * button). Specificity alone doesn't win against `!important`, so the handful
 * of declarations this header can't render without are re-asserted here.
 *
 * Deliberately limited to layout-critical properties — not a blanket override.
 * --------------------------------------------------------------------------- */
.lh-header {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  width: 100% !important;
  z-index: 9000 !important;
  margin: 0 !important;
}
.lh-header .lh-topbar { height: var(--lh-topbar-h) !important; min-height: 0 !important; }
.lh-header .lh-bar { height: var(--lh-bar-h) !important; min-height: 0 !important; }
.lh-header.is-scrolled .lh-bar { height: var(--lh-bar-h-scrolled) !important; }

.lh-header .lh-logo { padding: 0 !important; margin: 0 !important; border: 0 !important; }
.lh-header .lh-logo img {
  height: 72px !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important; padding: 0 !important;
  object-fit: contain !important;
}
.lh-header.is-scrolled .lh-logo img { height: 58px !important; }

.lh-header .lh-nav > ul,
.lh-header .lh-sub { list-style: none !important; margin: 0 !important; }
.lh-header .lh-nav > ul > li { margin: 0 !important; }
.lh-header .lh-nav > ul > li::before,
.lh-header .lh-nav > ul > li::marker { content: none !important; }

.lh-header a.lh-cta {
  background-color: var(--lh-accent) !important;
  color: #fff !important;
  padding: 13px 22px !important;
  border-radius: 3px !important;
  display: inline-flex !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
}
.lh-header a.lh-cta:hover,
.lh-header a.lh-cta:focus-visible { background-color: var(--lh-accent-dark) !important; }

.lh-header .lh-sub {
  background: #fff !important;
  min-width: 270px !important;
}
.lh-header .lh-sub a { color: #1f2d34 !important; }
.lh-header .lh-sub a:hover, .lh-header .lh-sub a:focus-visible { color: var(--lh-accent) !important; }

@media (max-width: 1100px) {
  .lh-header .lh-logo img { height: 48px !important; }
  .lh-header.is-scrolled .lh-logo img { height: 42px !important; }
  .lh-header .lh-nav { background: var(--lh-navy) !important; }
  .lh-header .lh-sub { background: rgba(0, 0, 0, .22) !important; min-width: 0 !important; }
  .lh-header .lh-sub a { color: #dbe3e7 !important; }
  .lh-header a.lh-cta { display: flex !important; margin: 22px 26px 0 !important; }
}
