/* Header from the deployed Modern Leanto preview (not in Git):
   https://develop.nuecosystems.com/building_styles/modern-leanto/styles.css?v=2
   Only the header, navigation, mobile menu, and contact-dialog rules. */

.skip,
.site-header,
.quote-dialog {
  --navy: #173460;
  --navy-deep: #102544;
  --title: #003584;
  --blue: #0096ff;
  --ink: #1c2836;
  --muted: #5c6b7c;
  --line: #d7e0ea;
  --paper: #f3f6fa;
  --card: #ffffff;
  --shadow: 0 10px 28px rgba(23, 52, 96, 0.08);
  --header: 112px;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  color: var(--ink);
}

.site-header,
.site-header *,
.quote-dialog,
.quote-dialog * {
  box-sizing: border-box;
}

.site-header {
  font-size: 16px;
  line-height: normal;
}

.brand img {
  display: block;
}

.site-header button,
.quote-dialog button,
.quote-dialog input,
.quote-dialog select,
.quote-dialog textarea {
  font: inherit;
  color: inherit;
}

.site-header .btn,
.site-nav,
.quote-dialog .btn,
.quote-panel h2 {
  font-family: Roboto, "Open Sans", sans-serif;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
  z-index: 90;
}
.skip:focus { top: 12px; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand img {
  height: 46px;
  width: auto;
  max-width: min(240px, 52vw);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.phone {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.phone:hover { color: var(--title); }
.social {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.preview-tag {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nav-toggle {
  display: none;
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--navy);
  border-radius: 10px;
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:focus-visible,
.site-nav button:focus-visible,
.site-nav a:focus-visible,
.site-header .btn:focus-visible,
.quote-dialog .btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.site-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 12px 10px;
}
.nav-contact { display: none; }
.site-nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav li { position: relative; margin: 0; }
.site-nav a,
.site-nav button.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
.site-nav a:hover,
.site-nav button.nav-parent:hover { background: var(--paper); }
.site-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 50;
  list-style: none;
  margin: 0;
}
.site-nav .sub-menu .sub-menu {
  top: 0;
  left: calc(100% - 8px);
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu,
.site-nav li.is-open > .sub-menu { display: block; }
.site-nav .sub-menu a,
.site-nav .sub-menu button.nav-parent { width: 100%; }

.site-header .btn,
.quote-dialog .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 16px;
  min-height: 48px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}
.site-header .btn-navy,
.quote-dialog .btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.site-header .btn-navy:hover,
.quote-dialog .btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.quote-dialog .btn-text {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  min-height: 40px;
  padding: 6px 4px;
}

.quote-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 37, 68, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.quote-dialog[hidden] { display: none; }
.quote-panel {
  background: #fff;
  width: min(480px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 16px;
  padding: 16px;
}
.quote-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quote-panel h2 { margin: 0; color: var(--navy); font-size: 20px; }
.quote-note { margin: 8px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.4; }
#quote-body .form_page { margin-bottom: 8px; }
#quote-body .hidden { display: none; }
#quote-body label { display: block; font-weight: 700; margin: 10px 0 4px; color: var(--navy); }
#quote-body select,
#quote-body textarea,
#quote-body input:not([type="checkbox"]) {
  width: 100%;
  border: 1px solid #c5d0dc;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
#quote-body a { font-weight: 700; }
body.nav-open, body.sheet-open { overflow: hidden; }

@media (max-width: 860px) {
  .site-header { --header: 64px; }
  .topbar { padding: 8px 12px; }
  .brand img { height: 36px; }
  .preview-tag, .social { display: none; }
  .nav-toggle { display: inline-flex; }
  .top-actions .js-quote { display: none; }
  .nav-contact { display: block; padding: 8px 0 12px; }
  .site-nav {
    display: none;
    max-height: calc(100dvh - var(--header));
    overflow: auto;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 8px 12px 20px;
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .site-nav .sub-menu,
  .site-nav li:hover > .sub-menu,
  .site-nav li:focus-within > .sub-menu {
    display: none;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
    min-width: 0;
  }
  .site-nav li.is-open > .sub-menu { display: block; }
  .quote-dialog { align-items: flex-end; padding: 0; }
  .quote-panel { border-radius: 16px 16px 0 0; max-height: 88vh; }
}

/* Header: "Steel building kits" is a link with its own submenu toggle. */
.site-nav .nav-split {
  display: flex;
  align-items: center;
}
.site-nav .nav-split > .nav-split-link {
  padding-right: 4px;
}
.site-nav .nav-split > button.nav-split-toggle {
  padding: 8px 6px;
  font-size: 12px;
  line-height: 1;
}
.site-nav .nav-split > .sub-menu { top: 100%; }

@media (max-width: 860px) {
  .site-nav .nav-split { flex-wrap: wrap; }
  .site-nav .nav-split > .nav-split-link { flex: 1 1 auto; }
  .site-nav .nav-split > button.nav-split-toggle {
    min-width: 44px;
    min-height: 40px;
    justify-content: center;
    border: 1px solid var(--line);
  }
  .site-nav .nav-split > .sub-menu { flex: 1 0 100%; }
  .site-nav .nav-split.is-open > button.nav-split-toggle span { display: inline-block; transform: rotate(180deg); }
}
