/* ============================================================
   LP STEEL — EFFECTS (scroll reveal + Ken Burns + grain)
   ------------------------------------------------------------
   Reveal is progressive-enhancement: the hidden start-state is
   scoped to html.lp-anim, which lp-effects.js adds at the very
   top of the file (loaded in <head>). If the script fails to
   load or errors, html.lp-anim is never set and ALL content
   stays fully visible. No element can ever get stranded hidden.
   ============================================================ */

/* --- Scroll reveal: fade + 28px rise (replaces native Scroll Effects) --- */
@media (prefers-reduced-motion: no-preference) {
  html.lp-anim .lp-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
                transform .7s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
  }
  html.lp-anim .lp-reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* --- Ken Burns slow zoom: IMAGE modules (targets the <img>) --- */
.lp-img-kenburns {
  overflow: hidden;
}
.lp-img-kenburns img,
.lp-img-kenburns .et_pb_image_wrap img,
.lp-img-kenburns .wp-block-divi-image img {
  animation: lpKenBurns 16s ease-in-out infinite alternate;
  transform-origin: center center;
}
@keyframes lpKenBurns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.5%, -1%); }
}

/* --- Rounded corners for a CSS BACKGROUND image (section/row/module) --- */
.lp-bg-rounded {
  border-radius: 12px;
  overflow: hidden;
}
.lp-bg-rounded-lg {
  border-radius: 20px;
  overflow: hidden;
}

/* --- Ken Burns for a CSS BACKGROUND image (no <img> to target) ---
   Animates background-size/position on the element AND on Divi's
   background layer, since Divi 5 often paints the image on a child
   layer (.et_pb_background) rather than the wrapper.
   NOTE: which element actually carries the image needs a quick DOM
   check on a real section before trusting this in production. */
.lp-bg-kenburns {
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .lp-bg-kenburns,
  .lp-bg-kenburns > .et_pb_background,
  .lp-bg-kenburns .et_pb_background {
    background-size: cover;
    animation: lpBgKenBurns 18s ease-in-out infinite alternate;
  }
}
@keyframes lpBgKenBurns {
  from { background-size: 108%; background-position: 50% 50%; }
  to   { background-size: 120%; background-position: 53% 47%; }
}

/* --- Film grain overlay for dark sections (real SVG asset, no data-URI) --- */
.lp-grain {
  position: relative;
}
.lp-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("assets/grain.svg");
  background-size: 180px 180px;
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.lp-grain > * {
  position: relative;
  z-index: 2;
}

/* --- Square-crop images that fill their column (add .lp-square to the ROW) ---
   Uses aspect-ratio (not a fixed height) so it survives Divi's mobile
   `#et-main-area .et_pb_image img{height:auto!important}` rule at <=980px. --- */
.lp-square .et_pb_image,
.lp-square .et_pb_image_wrap { width: 100%; }
.lp-square .et_pb_image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* --- Rust outline-draw, SCROLL-LINKED — follows the corner radius ---------
   A 2px rust ring is masked to the element's rounded border (so it hugs the
   border-radius), then drawn clockwise by animating an @property percentage
   inside a conic-gradient. The draw progress is tied to SCROLL POSITION via a
   `view()` timeline — it draws as the image scrolls up through the viewport and
   un-draws as you scroll back. Applies to .lp-draw AND directly to the
   "LP - Effects Image" preset class (so it works as pure CSS, no JS needed).
   Fallbacks: no scroll-driven-animation support -> one-shot on viewport enter
   via JS `.is-in`; no @property -> gradient ignored, no ring (image still shows);
   reduced-motion -> static full ring.
   ------------------------------------------------------------------------- */
@property --lp-draw-p {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
.lp-draw,
.preset--module--divi-image--oy2sf4su5b { position: relative; }

/* --- Image hover lift: translate Y -4px on every LP - Effects Image -------- */
.preset--module--divi-image--oy2sf4su5b {
  transition: transform .25s ease;
  will-change: transform;
}
.preset--module--divi-image--oy2sf4su5b:hover { transform: translate(0, -4px); }
@media (prefers-reduced-motion: reduce) {
  .preset--module--divi-image--oy2sf4su5b { transition: none; }
  .preset--module--divi-image--oy2sf4su5b:hover { transform: none; }
}

/* --- Tighten preset vertical rhythm (eyebrow→headline etc. were too spread) --
   Higher specificity (html .preset…) beats the cached preset !important margins,
   so this controls spacing reliably across ALL layouts, cache or no cache. ---- */
html .preset--module--divi-text--lp-text-eyebrow   { margin-bottom: 2px  !important; }
/* h1 / h2 / h2-light spacing intentionally NOT set here — controlled solely by the
   Divi text presets (lp-text-h1 / lp-text-h2 / lp-text-h2-light). No child-theme CSS
   touches h1/h2 styling. */
html .preset--module--divi-text--lp-text-h3        { margin-bottom: 4px  !important; }
html .preset--module--divi-text--lp-text-body      { margin-bottom: 12px !important; }
html .preset--module--divi-text--lp-text-body-lg   { margin-bottom: 16px !important; }
html .preset--module--divi-text--lp-text-body-light{ margin-bottom: 6px  !important; }

.lp-draw::after,
.preset--module--divi-image--oy2sf4su5b::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;          /* matches the LP - Effects Image preset radius */
  padding: 2px;                 /* ring thickness */
  background: conic-gradient(#c2632a var(--lp-draw-p), rgba(194,99,42,0) 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}
/* Scroll-LINKED: lp-effects.js sets --lp-draw-p (0%..100%) from scroll position every
   frame, so the ring draws/un-draws as you scroll — works in every browser (no reliance
   on scroll-driven CSS animation or @property animation). Reduced-motion: JS pins 100%. */

/* === BUTTON EFFECT PRESETS ================================================ */

/* --- Button — Neon Glow (preset lp-btn-neon-v1) --------------------------- */
.preset--module--divi-button--lp-btn-neon-v1.et_pb_button {
  color: #ff8a3d !important;
  border: 2px solid #c2632a !important;
  background: transparent !important;
  text-shadow: 0 0 6px #c2632a;
  box-shadow: 0 0 8px #c2632a, 0 0 18px rgba(194,99,42,.55), inset 0 0 8px rgba(194,99,42,.35);
  transition: color .25s, background-color .25s, box-shadow .25s, text-shadow .25s;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 800;
}
.preset--module--divi-button--lp-btn-neon-v1.et_pb_button:hover,
.preset--module--divi-button--lp-btn-neon-v1.et_pb_button:focus-visible {
  color: #fff !important; background: #c2632a !important;
  box-shadow: 0 0 12px #c2632a, 0 0 32px #ff8a3d, 0 0 64px rgba(194,99,42,.6);
  text-shadow: 0 0 10px rgba(255,255,255,.9); outline: none;
}
@media (prefers-reduced-motion: no-preference) {
  .preset--module--divi-button--lp-btn-neon-v1.et_pb_button { animation: efxNeonBreathe 2.6s ease-in-out infinite; }
  @keyframes efxNeonBreathe {
    0%, 100% { box-shadow: 0 0 8px #c2632a, 0 0 18px rgba(194,99,42,.5), inset 0 0 8px rgba(194,99,42,.3); }
    50%      { box-shadow: 0 0 14px #c2632a, 0 0 34px #ff8a3d, inset 0 0 12px rgba(194,99,42,.45); }
  }
  .preset--module--divi-button--lp-btn-neon-v1.et_pb_button:hover { animation: none; }
}

/* --- Button — Rust Draw (preset lp-btn-draw-v1): ring draws on scroll ------
   Uses ::before (Divi's button arrow owns ::after). lp-effects.js scrubs
   --lp-draw-p on this preset class from scroll position, same as images. ---- */
.preset--module--divi-button--lp-btn-draw-v1.et_pb_button {
  position: relative;
  border-color: transparent !important;   /* no static border — the ring draws it */
  background: transparent !important;
  color: #c2632a !important;               /* rust text: visible on light AND dark backgrounds */
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.preset--module--divi-button--lp-btn-draw-v1.et_pb_button:hover { color: #ae5925 !important; }
.preset--module--divi-button--lp-btn-draw-v1.et_pb_button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  padding: 2px;
  background: conic-gradient(#c2632a var(--lp-draw-p), rgba(194,99,42,0) 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .preset--module--divi-button--lp-btn-draw-v1.et_pb_button::before { background: #c2632a; }
}

/* --- Reduced-motion: kill all looping motion --- */
@media (prefers-reduced-motion: reduce) {
  .lp-img-kenburns img,
  .lp-img-kenburns .et_pb_image_wrap img,
  .lp-img-kenburns .wp-block-divi-image img,
  .lp-bg-kenburns,
  .lp-bg-kenburns .et_pb_background {
    animation: none !important;
  }
}

/* === 3D TILT — for cards that REFER TO the metal-building designer =========
   Cookbook "Immersive 3D" is SKIP for LP generally, but the building designer
   is the one place 3D reads as on-topic (it IS a 3D tool). Perspective + tilt
   on hover, applied only to .lp-3d-tilt cards (rendered as literal HTML in a
   code module, since hand-assigned VB classes don't render on this build). ==== */
.lp-3d-tilt {
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.lp-3d-tilt:hover,
.lp-3d-tilt:focus-visible {
  transform: perspective(900px) rotateX(4deg) rotateY(-7deg) translateY(-5px) scale(1.01);
  box-shadow: 0 28px 56px -22px rgba(35,31,32,.42);
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .lp-3d-tilt, .lp-3d-tilt:hover, .lp-3d-tilt:focus-visible { transform: none; transition: none; }
}

/* --- Button — Add to Estimate (preset lp-btn-estimate-v1) — product CTA ---- */
.preset--module--divi-button--lp-btn-estimate-v1.et_pb_button {
  background: #ebdfc7 !important; color: #231f20 !important;
  border: 2px solid #c2632a !important; font-weight: 700;
  transition: background-color .2s, color .2s;
}
.preset--module--divi-button--lp-btn-estimate-v1.et_pb_button:hover,
.preset--module--divi-button--lp-btn-estimate-v1.et_pb_button:focus-visible {
  background: #c2632a !important; color: #ffffff !important; outline: none;
}

/* === NAV: desktop mega menu polish + mobile slide-in-from-right drawer ======
   Cookbook nav-slide-in-sidebar: ~290px right drawer, slide from right,
   charcoal bg / sand text, close on tap-outside, z-index 999999. Overrides
   Divi 5's default top-dropdown mobile menu (.et_mobile_menu @ top:100%). ==== */

/* --- FUNCTIONAL FIX (all widths): the theme-builder header column wrapping the
   menu has overflow:hidden, which CLIPPED the dropdowns, and the header sits in
   normal flow (static), so page sections painted OVER any dropdown that escaped.
   Lift the header into its own stacking context + let the menu chain overflow. --- */
.et-l--header { position: sticky; top: 0; z-index: 100; }
.et-l--header .et_pb_menu,
.et-l--header .et_pb_column:has(.et_pb_menu),
.et-l--header .et_pb_row:has(.et_pb_menu),
.et-l--header .et_pb_section:has(.et_pb_menu) { overflow: visible !important; }

/* --- STICKY HEADER (2026-07-08): the logo bar (section 0) and nav bar (section 1)
   are separate full-width sections. Divi's per-section sticky pinned BOTH to top:0,
   so they overlapped and the logo slid UNDER the nav. Per-section sticky has been
   removed from header 812; instead the whole .et-l--header wrapper is sticky (above),
   so the logo bar + nav bar stay in place together, stacked, while scrolling.
   These offsets keep the sticky header clear of the WP admin bar when logged in. --- */
body.admin-bar .et-l--header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .et-l--header { top: 46px; } }

/* --- Desktop dropdowns + mega menu (.has-mega) --- */
@media (min-width: 981px) {
  /* The closed dropdown panel is positioned absolute and (with the header now above
     the hero) overlaps the hero while invisible. opacity:0 leaves it hit-testable, so
     hovering the hero hits it and fires li:hover -> the menu opens on hero hover. Make
     a CLOSED panel non-interactive; it only accepts the pointer once its own li is
     hovered (via the menu text). Trigger = the menu link, not the overlapping panel. */
  .et_pb_menu .nav li > ul.sub-menu { pointer-events: none; }
  .et_pb_menu .nav li:hover > ul.sub-menu,
  .et_pb_menu .nav li:focus-within > ul.sub-menu { pointer-events: auto; }

  /* Base brand styling for EVERY dropdown panel (e.g. "About") */
  .et_pb_menu .nav li > ul.sub-menu {
    background: var(--gcid-primary-color, #002b5c) !important;
    border: 0 !important; border-top: 3px solid var(--gcid-rust, #c2632a) !important;
    box-shadow: 0 18px 40px -16px rgba(14,15,17,.5) !important;
    padding: 12px 6px !important; border-radius: 0 0 14px 14px;
  }
  .et_pb_menu .nav li ul.sub-menu a { color: var(--gcid-sand, #ebdfc7) !important; }
  .et_pb_menu .nav li ul.sub-menu a:hover { color: #fff !important; background: rgba(194,99,42,.20) !important; }

  /* MEGA: "What We Make" — lay category children out as columns, products beneath */
  .et_pb_menu .has-mega > .sub-menu {
    display: flex !important; flex-flow: row wrap; align-items: flex-start;
    gap: 4px 30px; width: auto !important; min-width: 720px; max-width: 960px;
    padding: 26px 30px !important; border-radius: 0 0 16px 16px;
    box-shadow: 0 22px 48px -18px rgba(14,15,17,.55) !important;
  }
  .et_pb_menu .has-mega > .sub-menu > li {
    position: static !important; width: 198px; padding: 0 !important; margin: 0 0 10px !important;
  }
  .et_pb_menu .has-mega > .sub-menu > li > a {
    color: #fff !important; font-weight: 800 !important; text-transform: uppercase;
    letter-spacing: .04em; font-size: 12.5px !important; padding: 6px 0 !important;
    border-bottom: 1px solid rgba(235,223,199,.22) !important; margin-bottom: 2px;
  }
  /* product sublist: always visible, static (no flyout), inherits the navy panel */
  .et_pb_menu .has-mega > .sub-menu > li > .sub-menu {
    position: static !important; opacity: 1 !important; visibility: visible !important;
    display: block !important; transform: none !important; min-width: 0 !important;
    width: auto !important; background: transparent !important; box-shadow: none !important;
    border: 0 !important; padding: 2px 0 0 !important; border-radius: 0;
  }
  .et_pb_menu .has-mega > .sub-menu > li > .sub-menu > li > a {
    color: var(--gcid-sand, #ebdfc7) !important; font-weight: 500 !important;
    text-transform: none !important; font-size: 14px !important; padding: 5px 0 !important; letter-spacing: 0;
  }
  /* hide flyout carets inside the mega (children are shown inline) */
  .et_pb_menu .has-mega > .sub-menu > li.menu-item-has-children > a:after,
  .et_pb_menu .has-mega > .sub-menu .et-menu-dropdown-arrow,
  .et_pb_menu .has-mega > .sub-menu li > a > .menu-item-icon { display: none !important; }
  /* Compact the live-style top categories so all 8 fit one row beside the search box */
  .et_pb_menu .nav > li > a,
  .et_pb_menu .et-menu-nav > ul > li > a {
    padding-left: 9px !important; padding-right: 9px !important;
    font-size: 12.5px !important; letter-spacing: 0 !important; white-space: nowrap;
  }
  /* Dropdown caret clearance. The 9px compaction above applies to every top-level
     link, but Divi positions the caret absolutely inside the link and assumes the
     stock ~20px of right padding — so on parent items the arrow sat on top of the
     label. Give only the parent items room and pin the caret inside it. Items
     without a submenu keep the tight 9px, so the single-row fit is barely affected. */
  .et_pb_menu .nav > li.menu-item-has-children > a,
  .et_pb_menu .et-menu-nav > ul > li.menu-item-has-children > a {
    padding-right: 24px !important;
  }
  .et_pb_menu .nav > li.menu-item-has-children > a:first-child:after,
  .et_pb_menu .et-menu-nav > ul > li.menu-item-has-children > a:first-child:after {
    right: 9px !important;
  }
  /* Cap the header search column so the 8-category menu gets its single row */
  .et-l--header .et_pb_column:has(.et_pb_search_0_tb_header) { flex: 0 1 300px !important; max-width: 300px !important; }
  .et-l--header .et_pb_column:has(.et_pb_menu) { flex: 1 1 auto !important; max-width: none !important; }
}

/* === MOBILE REFLOW SAFETY ===================================================
   Divi image/section modules with a hard-coded desktop pixel width (e.g. the
   c-panel hero image at width:740px) overflow the viewport on phones because
   the width has no phone override. Cap everything in the page body to 100% of
   its container at <=980px so heroes + product images reflow cleanly. Desktop
   is untouched (gated to mobile). ========================================== */
@media (max-width: 980px) {
  /* #et-main-area = all page/body content (excludes the .et-l--header logo).
     Cover both the theme-builder body (.et-l--body) and plain page content
     (.et_builder_inner_content). */
  #et-main-area .et_pb_image,
  #et-main-area .et_pb_image .et_pb_image_wrap,
  #et-main-area .et_pb_image img { max-width: 100% !important; height: auto !important; }
  /* nothing in the body should force horizontal scroll on a phone */
  #et-main-area .et_pb_row,
  #et-main-area .et_pb_column { max-width: 100% !important; }
  #et-main-area img { max-width: 100%; height: auto; }
}

/* === ESTIMATE CART — widget + toast + swatch color picker ================== */
.lp-est-widget { position: fixed; right: 18px; bottom: 18px; z-index: 99990; display: none; }
.lp-est-widget.has-items { display: block; }
.lp-est-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--gcid-rust,#c2632a);
  color: #fff; border: 0; border-radius: 30px; padding: 12px 18px; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 26px -8px rgba(14,15,17,.5); }
.lp-est-count { background: #fff; color: var(--gcid-rust,#c2632a); border-radius: 20px; min-width: 22px;
  text-align: center; padding: 1px 7px; font-weight: 800; }
.lp-est-panel { position: absolute; right: 0; bottom: 60px; width: 320px; max-width: 86vw; background: #fff;
  border-radius: 14px; box-shadow: 0 24px 60px -16px rgba(14,15,17,.5); overflow: hidden; display: none; }
.lp-est-widget.is-open .lp-est-panel { display: block; }
.lp-est-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  background: var(--gcid-primary-color,#002b5c); color: #fff; }
.lp-est-close { background: transparent; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lp-est-items { max-height: 46vh; overflow-y: auto; padding: 6px 0; }
.lp-est-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px;
  border-bottom: 1px solid #eee; font-size: 14px; color: #231f20; }
.lp-est-row em { color: #6b7682; font-style: normal; }
.lp-est-edit { background: transparent; border: 0; color: var(--gcid-rust,#c2632a); font-size: 12px; font-weight: 700;
  cursor: pointer; text-decoration: underline; padding: 0 4px; white-space: nowrap; }
.lp-est-edit:hover { color: #ae5925; }
.lp-est-remove { background: transparent; border: 0; color: #b23; font-size: 18px; cursor: pointer; line-height: 1; }
.lp-est-empty { padding: 18px 16px; color: #6b7682; font-size: 14px; }
.lp-est-foot { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid #eee; }
.lp-est-quote { flex: 1 1 auto; text-align: center; background: var(--gcid-rust,#c2632a); color: #fff;
  text-decoration: none; border-radius: 8px; padding: 10px 14px; font-weight: 800; }
.lp-est-clear { background: transparent; border: 1px solid #ccc; border-radius: 8px; padding: 10px 12px;
  cursor: pointer; color: #6b7682; }
.lp-est-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(12px);
  z-index: 99991; background: #231f20; color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600;
  font-size: 14px; opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); max-width: 88vw; text-align: center; }
.lp-est-toast.is-on { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* swatch color picker — the chosen color is a DETAIL of the panel item */
.lp-swatches { display: grid; grid-template-columns: repeat(auto-fill,minmax(84px,1fr)); gap: 14px; }
.lp-swatch { text-align: center; cursor: pointer; border: 0; background: transparent; padding: 0; }
.lp-swatch .lp-swatch-chip { width: 100%; aspect-ratio: 1/1; border-radius: 8px; border: 1px solid #e2e2e0;
  transition: transform .15s, box-shadow .15s; }
.lp-swatch .lp-swatch-name { font-size: 12px; color: #231f20; margin-top: 6px; display: block; }
.lp-swatch:hover .lp-swatch-chip { transform: translateY(-2px); }
.lp-swatch.is-selected .lp-swatch-chip { box-shadow: 0 0 0 3px var(--gcid-rust,#c2632a); }
.lp-swatch.is-selected .lp-swatch-name { font-weight: 800; color: var(--gcid-rust,#c2632a); }
.lp-swatch-pick { margin-top: 18px; font-size: 15px; color: #231f20; }
.lp-swatch-pick .lp-swatch-selected { color: var(--gcid-rust,#c2632a); font-weight: 800; }
.lp-add-panel-btn { display: inline-block; margin-top: 12px; background: var(--gcid-rust,#c2632a) !important;
  color: #fff !important; border: 0 !important; border-radius: 8px; padding: 12px 20px !important;
  font-weight: 800 !important; text-decoration: none; cursor: pointer; }
.lp-add-panel-btn:hover { background: #a9531f !important; }

/* estimate summary on the quote page */
.lp-est-quote-summary { background: #f3f1ec; border-left: 4px solid var(--gcid-rust,#c2632a); border-radius: 8px;
  padding: 16px 20px; margin: 0 0 24px; }
.lp-est-quote-summary h3 { margin: 0 0 8px; } .lp-est-quote-summary h3 span { color: #6b7682; font-weight: 500; }
.lp-est-quote-summary ul { margin: 0; padding-left: 18px; } .lp-est-quote-summary li { margin: 2px 0; }

/* estimate cart — quantity stepper */
.lp-est-row { gap: 8px; }
.lp-est-qty { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.lp-est-qty button { width: 24px; height: 24px; border: 1px solid #ccc; background: #fff; border-radius: 6px;
  font-size: 16px; line-height: 1; cursor: pointer; color: #231f20; padding: 0; }
.lp-est-qty button:hover { border-color: var(--gcid-rust,#c2632a); color: var(--gcid-rust,#c2632a); }
.lp-est-qty .lp-est-q { min-width: 18px; text-align: center; }
.lp-est-name { flex: 1 1 auto; }

/* estimate — spec entry modal */
.lp-est-modal { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center;
  justify-content: center; background: rgba(14,15,17,.55); padding: 16px; }
.lp-est-modal.is-open { display: flex; }
.lp-est-modal-box { background: #fff; border-radius: 14px; width: 380px; max-width: 94vw; max-height: 90vh;
  overflow-y: auto; padding: 22px 22px 24px; position: relative; box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); }
.lp-est-modal-x { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; font-size: 26px;
  line-height: 1; cursor: pointer; color: #6b7682; }
.lp-est-modal-title { font-weight: 800; font-size: 18px; color: #231f20; }
.lp-est-modal-item { color: var(--gcid-rust,#c2632a); font-weight: 700; margin: 2px 0 14px; }
.lp-est-form label { display: block; font-size: 13px; font-weight: 700; color: #231f20; margin-bottom: 12px; }
.lp-est-form input, .lp-est-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 5px;
  padding: 9px 11px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px; font-weight: 400; font-family: inherit; color: #231f20; }
.lp-est-form input:focus, .lp-est-form textarea:focus { outline: none; border-color: var(--gcid-rust,#c2632a); }
.lp-est-2col { display: flex; gap: 10px; } .lp-est-2col label { flex: 1; }
.lp-est-modal-add { width: 100%; margin-top: 4px; background: var(--gcid-rust,#c2632a); color: #fff; border: 0;
  border-radius: 8px; padding: 12px; font-weight: 800; font-size: 15px; cursor: pointer; }
.lp-est-modal-add:hover { background: #a9531f; }
/* cart row: name + specs + notes */
.lp-est-info { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.lp-est-spec { font-size: 12px; color: #6b7682; }
.lp-est-note { font-size: 12px; color: #8a8d8f; font-style: italic; }
.lp-est-qnote { color: #6b7682; font-size: 13px; }

/* estimate modal — required color picker */
.lp-est-colors { margin-bottom: 14px; }
.lp-est-colors-h { font-size: 13px; font-weight: 700; color: #231f20; margin-bottom: 8px; }
.lp-est-req { color: #6b7682; font-weight: 400; }
.lp-est-modal.lp-needs-color .lp-est-colors-h { color: #b23; }
.lp-est-modal.lp-needs-color .lp-est-swatches { outline: 2px solid #b23; outline-offset: 4px; border-radius: 8px; }
.lp-est-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px,1fr)); gap: 8px;
  max-height: 220px; overflow-y: auto; }
.lp-est-sw { border: 0; background: transparent; padding: 0; cursor: pointer; text-align: center; }
.lp-est-sw-chip { display: block; width: 100%; aspect-ratio: 1/1; border-radius: 6px; border: 1px solid #e2e2e0; }
.lp-est-sw-name { display: block; font-size: 10px; color: #231f20; margin-top: 3px; line-height: 1.1; font-weight: 400; }
.lp-est-sw.is-sel .lp-est-sw-chip { box-shadow: 0 0 0 3px var(--gcid-rust,#c2632a); }
.lp-est-sw.is-sel .lp-est-sw-name { font-weight: 800; color: var(--gcid-rust,#c2632a); }
/* hidden attr must beat the label{display:block} rule */
.lp-est-form label[hidden], .lp-est-form [hidden] { display: none !important; }

/* === CHAT ASSISTANT (bottom-left; estimate widget is bottom-right) ========= */
.lp-chat { position: fixed; left: 18px; bottom: 18px; z-index: 99980; }
.lp-chat.lp-chat-dragging, .lp-chat.lp-chat-dragging .lp-chat-toggle { cursor: grabbing; user-select: none; transition: none; }
.lp-chat-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--gcid-primary-color,#002b5c);
  color: #fff; border: 0; border-radius: 30px; padding: 12px 18px; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 26px -8px rgba(14,15,17,.5); }
.lp-chat-win { position: absolute; left: 0; bottom: 60px; width: 340px; max-width: 88vw; height: 460px; max-height: 72vh;
  background: #fff; border-radius: 14px; box-shadow: 0 24px 60px -16px rgba(14,15,17,.5); display: none;
  flex-direction: column; overflow: hidden; }
.lp-chat.is-open .lp-chat-win { display: flex; }
.lp-chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  background: var(--gcid-primary-color,#002b5c); color: #fff; flex: 0 0 auto; }
.lp-chat-x { background: transparent; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lp-chat-body { flex: 1 1 auto; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lp-chat-msg { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.lp-chat-bot { align-self: flex-start; background: #f3f1ec; color: #231f20; border-bottom-left-radius: 4px; }
.lp-chat-user { align-self: flex-end; background: var(--gcid-primary-color,#002b5c); color: #fff; border-bottom-right-radius: 4px; }
.lp-chat-msg a { color: var(--gcid-rust,#c2632a); font-weight: 700; } .lp-chat-user a { color: #fff; }
.lp-chat-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.lp-chat-chip { background: #fff; border: 1px solid var(--gcid-primary-color,#002b5c); color: var(--gcid-primary-color,#002b5c);
  border-radius: 20px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.lp-chat-chip:hover { background: var(--gcid-primary-color,#002b5c); color: #fff; }
.lp-chat-cta { align-self: flex-start; }
.lp-chat-cta a { display: inline-block; background: var(--gcid-rust,#c2632a); color: #fff; text-decoration: none;
  border-radius: 8px; padding: 9px 14px; font-weight: 800; font-size: 13px; }
.lp-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #eee; flex: 0 0 auto; }
.lp-chat-input { flex: 1 1 auto; border: 1px solid #ccc; border-radius: 20px; padding: 9px 14px; font-size: 14px; font-family: inherit; }
.lp-chat-input:focus { outline: none; border-color: var(--gcid-rust,#c2632a); }
.lp-chat-send { flex: 0 0 auto; width: 40px; border: 0; border-radius: 50%; background: var(--gcid-rust,#c2632a); color: #fff; font-size: 18px; cursor: pointer; }
@media (max-width: 560px) { .lp-chat-lbl { display: none; } .lp-chat-toggle { padding: 14px; border-radius: 50%; } }

/* === FOOTER — link styling for the rebuilt footer ========================= */
.et-l--footer a { color: var(--gcid-sand,#ebdfc7); text-decoration: none; transition: color .2s; }
.et-l--footer a:hover { color: var(--gcid-rust,#c2632a); }
.et-l--footer .preset--module--divi-text--lp-text-body-light p { margin-bottom: 10px; line-height: 1.9; }
.et-l--footer .preset--module--divi-text--lp-text-eyebrow { letter-spacing: .12em; }

/* === COOKIE CONSENT ICON — sit to the RIGHT of the chat trigger ============
   The chat trigger lives bottom-left (~150px wide). When a cookie tool is added,
   its floating "manage cookies" re-open icon is nudged to just-right of the chat
   so they don't overlap. Covers the common tools + a generic fallback. The
   estimate widget stays bottom-right. Adjust --lp-cookie-left if the chat pill
   width changes. ====================================================== */
:root { --lp-cookie-left: 178px; --lp-cookie-bottom: 20px; }
/* CookieYes */
.cky-btn-revisit-wrapper,
/* Complianz manage/revoke tab */
.cmplz-manage-consent, #cmplz-manage-consent .cmplz-manage-consent,
/* Osano */
.osano-cm-widget,
/* Termly */
#termly-code-snippet-support .t-preference-button, .termly-styles-revisit,
/* Moove GDPR floating icon */
.moove-gdpr-branding-cnt + .moove-gdpr-button-holder,
/* generic: a fixed floating control that mentions cookies */
[class*="cookie"][class*="revisit"], [id*="cookie"][class*="revisit"],
[aria-label*="cookie" i][class*="float" i] {
  left: var(--lp-cookie-left) !important;
  right: auto !important;
  bottom: var(--lp-cookie-bottom) !important;
  top: auto !important;
  z-index: 99979 !important;   /* just under the chat (99980) */
}

/* footer logo SVG has no intrinsic width — size ONLY the logo SVG.
   No color filter: footer photos/logos keep their real colors (was whitening every img). */
.et-l--footer img[src$=".svg"] { width: 210px !important; max-width: 100% !important; height: auto !important; }

/* footer columns: top-align content (Divi default space-around spread header/links apart) */
.et-l--footer .et_pb_column { justify-content: flex-start !important; }
.et-l--footer .et_pb_column > .et_pb_module:first-child { margin-top: 0 !important; }
/* estimate modal: suggested-count hint + locked (read-only) spec field */
.lp-est-suggest{margin:2px 0 0;font-family:'Open Sans',sans-serif;font-size:12.5px;line-height:1.45;color:#5a6b54;background:#eef3ec;border-left:3px solid #6c8a5e;border-radius:0 3px 3px 0;padding:7px 10px}
input.lp-est-locked{background:#f2f2ef !important;color:#555 !important;cursor:default}

/* ===== Purlin configurator (Steel Purlins page) — order-guidance form ===== */
.lp-purlin-config{background:#fff;border:1px solid #e2e2e0;border-radius:14px;padding:24px;box-shadow:0 12px 32px -16px rgba(35,31,32,.18)}
.lp-pc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}
.lp-purlin-config label{display:flex;flex-direction:column;gap:6px;font-family:Oswald,sans-serif;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#002b5c}
.lp-purlin-config select{font-family:'Open Sans',sans-serif;font-size:15px;font-weight:400;text-transform:none;letter-spacing:0;color:#231f20;padding:10px 12px;border:1px solid #cfcfca;border-radius:8px;background:#fff;cursor:pointer}
.lp-pc-add{display:inline-block;margin-top:20px;background:#c2632a;color:#fff;border:0;border-radius:8px;padding:13px 28px;font-family:Oswald,sans-serif;font-weight:600;text-transform:uppercase;letter-spacing:.03em;font-size:15px;cursor:pointer;transition:background .15s}
.lp-pc-add:hover{background:#a85323}

/* ===== Section-property accordion (Steel Purlins) ===== */
.lp-spec-accordion details{border:1px solid #e2e2e0;border-radius:10px;margin:0 0 12px;background:#fff;overflow:hidden}
.lp-spec-accordion summary{cursor:pointer;padding:16px 20px;font-family:Oswald,sans-serif;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:#002b5c;font-size:15px;list-style:none;display:flex;justify-content:space-between;align-items:center}
.lp-spec-accordion summary::-webkit-details-marker{display:none}
.lp-spec-accordion summary::after{content:'+';color:#c2632a;font-weight:700;font-size:20px}
.lp-spec-accordion details[open] summary::after{content:'\2212'}
.lp-spec-accordion summary:hover{background:#f7f7f5}
.lp-spec-accordion .lp-spectable-wrap{max-height:440px;overflow:auto;padding:0 20px 18px}
.lp-spectable{width:100%;border-collapse:collapse;font-family:'Open Sans',sans-serif;font-size:13px}
.lp-spectable th, .et_pb_toggle_content .lp-spectable th{position:sticky;top:0;background:#002b5c!important;color:#fff!important;text-align:left;padding:9px 12px;font-weight:600;font-size:12px}
.lp-spectable th *{color:#fff!important}
.lp-spectable td{padding:7px 12px;border-bottom:1px solid #ededed;color:#333;text-align:left;vertical-align:top}
.lp-spectable tbody tr:hover td{background:#fbf3ee}

/* Section-property accordion — native Divi text modules + native Interactions (toggle visibility) */
.lp-acc-bar{cursor:pointer;margin:12px 0 0!important;padding:16px 20px!important;background:#fff;border:1px solid #e2e2e0;border-radius:10px;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:space-between!important;align-items:center!important;text-align:left!important;transition:background .15s}
.lp-acc-bar .et_pb_text_inner{flex:1;font-family:Oswald,sans-serif;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:#002b5c;font-size:15px;line-height:1.3}
.lp-acc-bar .et_pb_text_inner p{margin:0}
.lp-acc-bar::after{content:'+';color:#c2632a;font-weight:700;font-size:22px;line-height:1;margin-left:16px}
.lp-acc-bar:hover{background:#f7f7f5}
.lp-acc-bar:has(+ .lp-acc-body:not([style*="none"])){border-radius:10px 10px 0 0;background:#f7f7f5}
.lp-acc-bar:has(+ .lp-acc-body:not([style*="none"]))::after{content:'\2212'}
.lp-acc-body{margin:0!important;border:1px solid #e2e2e0;border-top:0;border-radius:0 0 10px 10px;background:#fff;overflow:hidden}
.lp-acc-body .et_pb_text_inner{padding:0}
.lp-acc-body .lp-spectable-wrap{max-height:440px;overflow:auto;padding:0 20px 18px}

/* Estimate add-on cards (shared with clay page — Step 2 "Build your order" flow) */
.clay-acc-card{background:#fff;border:1px solid #e2e2e0;border-radius:12px;padding:16px;box-shadow:0 12px 32px -16px rgba(35,31,32,.18);margin:6px 0 8px}
.et_pb_text .clay-acc-card .ac-name{font-family:Oswald,sans-serif;font-size:16px;font-weight:600;text-transform:uppercase;color:#262626}
.et_pb_text .clay-acc-card .ac-desc{font-family:'Open Sans',sans-serif;font-size:13px;color:#666;margin:5px 0 14px}

/* Mobile slide-in drawer — docked LEFT, slides in from the left. (Row's Divi
   Position may still say top-right; these !important rules re-dock it left.) */
.lp-mdrawer{animation:lpDrawerIn .32s cubic-bezier(.16,1,.3,1);overflow-y:auto;left:0!important;right:auto!important;background:#002b5c!important}
@keyframes lpDrawerIn{from{transform:translateX(-100%);opacity:.5}to{transform:translateX(0);opacity:1}}
/* Readability: navy drawer, light menu text (fixes washed-out / dark-on-dark links) */
.lp-mdrawer,.lp-mdrawer .et_pb_text,.lp-mdrawer p,.lp-mdrawer span,.lp-mdrawer li,.lp-mdrawer a{color:#fff}
.lp-mdrawer .et_pb_menu ul.et-menu>li>a{color:#fff!important}
.lp-mdrawer .et_pb_menu ul.sub-menu li a{color:#ebdfc7!important}
.lp-mdrawer .et_pb_menu a:hover,.lp-mdrawer .et_pb_menu li.lp-open>a{color:#e6b25e!important}

/* Drawer menu as a vertical list — Divi Menu module is horizontal-only, so this stacks it.
   Scoped to .lp-mdrawer (the mobile drawer) only. */
.lp-mdrawer .et_pb_menu .et-menu-nav{width:100%!important}
.lp-mdrawer .et_pb_menu ul.et-menu{display:block!important;width:100%!important}
.lp-mdrawer .et_pb_menu ul.et-menu>li{display:block!important;float:none!important;width:100%!important;margin:0!important}
.lp-mdrawer .et_pb_menu ul.et-menu>li>a{display:block!important;padding:11px 2px!important;border-bottom:1px solid rgba(255,255,255,.12)!important}
.lp-mdrawer .et_pb_menu ul.sub-menu{position:static!important;display:block!important;width:100%!important;opacity:1!important;visibility:visible!important;transform:none!important;background:transparent!important;box-shadow:none!important;padding:0!important;left:auto!important;top:auto!important}
.lp-mdrawer .et_pb_menu ul.sub-menu li a{padding-left:18px!important}
.lp-mdrawer .et_pb_menu ul.sub-menu ul.sub-menu li a{padding-left:32px!important}

/* Drawer nav: categories visible, sub-pages collapsed until tapped + fit drawer width */
.lp-mdrawer{overflow-x:hidden}
.lp-mdrawer .et_pb_menu ul.sub-menu{display:none!important}
.lp-mdrawer .et_pb_menu li.lp-open>ul.sub-menu{display:block!important}
.lp-mdrawer .et_pb_menu ul.et-menu>li>a,.lp-mdrawer .et_pb_menu ul.sub-menu li a{white-space:normal!important;overflow-wrap:break-word;word-break:break-word;box-sizing:border-box}
.lp-mdrawer .et_pb_menu li.menu-item-has-children>a{padding-right:26px!important;position:relative!important}
.lp-mdrawer .et_pb_menu li.menu-item-has-children>a::after{content:'+';position:absolute;right:4px;color:#c2632a;font-weight:700}
.lp-mdrawer .et_pb_menu li.lp-open>a::after{content:'\2212'}

/* Clamp Divi menu containers to the drawer width (they default to 720px) */
.lp-mdrawer .et_pb_menu_inner_container{overflow:hidden!important}
.lp-mdrawer .et_pb_menu__wrap,.lp-mdrawer .et_pb_menu__menu,.lp-mdrawer .et-menu-nav,.lp-mdrawer ul.et-menu,.lp-mdrawer ul.sub-menu{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;float:none!important;position:static!important}

/* Desktop nav mega-menus: size to content instead of Divi's fixed 720px (kills empty right space).
   Scoped to the header's primary menu (_0_tb_header) so the mobile drawer is untouched. */
.et_pb_menu_0_tb_header li.has-mega > ul.sub-menu,.et_pb_menu_0_tb_header li.mega-menu > ul.sub-menu{min-width:0!important;width:-moz-max-content!important;width:max-content!important;max-width:none!important}
.et_pb_menu_0_tb_header li.has-mega > ul.sub-menu > li,.et_pb_menu_0_tb_header li.mega-menu > ul.sub-menu > li{min-width:210px!important}

/* Hold the rectangle thumbnail crops on EVERY device (a global mobile img{height:auto!important}
   was overriding the .fc-* crop heights). Scoped to the fence page + the crop classes. */
.page-id-1681 .fc-card img{height:200px!important}
.page-id-1681 .fc-tall img{height:372px!important}
.page-id-1681 .fc-about img{height:320px!important}
.page-id-1681 .fc-solartop img{height:300px!important}
.page-id-1681 .fc-galrow img{height:64px!important}
.page-id-1681 .fc-crew img{height:104px!important}
.page-id-1681 .fc-pgrid img{height:180px!important}
.page-id-1681 .fc-card img,.page-id-1681 .fc-tall img,.page-id-1681 .fc-about img,.page-id-1681 .fc-solartop img,.page-id-1681 .fc-galrow img,.page-id-1681 .fc-crew img,.page-id-1681 .fc-pgrid img{object-fit:cover!important;width:100%!important;display:block!important}

/* Native Image modules inside the grid containers must fill their grid cells (the module
   wrapper shrinks to content by default). */
.page-id-1681 .fc-galrow .et_pb_image,.page-id-1681 .fc-pgrid .et_pb_image,.page-id-1681 .fc-crew .et_pb_image,.page-id-1681 .fc-aw .et_pb_image{width:100%!important;margin:0!important}
.page-id-1681 .fc-galrow .et_pb_image_wrap,.page-id-1681 .fc-pgrid .et_pb_image_wrap,.page-id-1681 .fc-crew .et_pb_image_wrap,.page-id-1681 .fc-aw .et_pb_image_wrap{width:100%!important;display:block!important}

/* Mobile = desktop for the thumbnail crops. Divi core has #et-main-area .et_pb_image{height:auto!important}
   at max-width:980px (ID specificity) which beats class rules on tablet/phone and kills the crop.
   These ID-level rules win at every breakpoint so mobile matches desktop. */
body.page-id-1681 #et-main-area .fc-card img{height:200px!important}
body.page-id-1681 #et-main-area .fc-tall img{height:372px!important}
body.page-id-1681 #et-main-area .fc-about img{height:320px!important}
body.page-id-1681 #et-main-area .fc-solartop img{height:300px!important}
body.page-id-1681 #et-main-area .fc-galrow img{height:64px!important}
body.page-id-1681 #et-main-area .fc-crew img{height:104px!important}
body.page-id-1681 #et-main-area .fc-pgrid img{height:180px!important}
body.page-id-1681 #et-main-area .fc-card img,body.page-id-1681 #et-main-area .fc-tall img,body.page-id-1681 #et-main-area .fc-about img,body.page-id-1681 #et-main-area .fc-solartop img,body.page-id-1681 #et-main-area .fc-galrow img,body.page-id-1681 #et-main-area .fc-crew img,body.page-id-1681 #et-main-area .fc-pgrid img{object-fit:cover!important;width:100%!important}
body.page-id-1681 #et-main-area .fc-galrow .et_pb_image_wrap,body.page-id-1681 #et-main-area .fc-pgrid .et_pb_image_wrap,body.page-id-1681 #et-main-area .fc-crew .et_pb_image_wrap,body.page-id-1681 #et-main-area .fc-aw .et_pb_image_wrap{width:100%!important;display:block!important}

/* ============================================================
   Hero Product Image — mouse-tracking 3D tilt ("evade")
   JS (lp-effects.js initTilt) sets the perspective+rotate transform
   inline on the <img> inside the "LP - Hero Product Image" preset
   (rvyhec0erv) and adds .lp-tilt. This rule only smooths the motion
   and the spring-back; the tilt values come from JS.
   ============================================================ */
.lp-tilt{transition:transform .15s ease-out;will-change:transform;backface-visibility:hidden;transform-origin:center center}
@media (prefers-reduced-motion: reduce){.lp-tilt{transition:none;transform:none!important}}

/* ============================================================
   3D METAL BUILDING — replaces the .lp-3d-tilt hover on the
   building-designer cards. Pure CSS, auto-rotating, scoped to
   .lp-bld3d. The card stays a clean link (building is
   pointer-events:none). Stacks on mobile.
   ============================================================ */
.lp-bld-card{display:flex;align-items:center;gap:26px;text-decoration:none;background:#fff;
  border-radius:16px;padding:26px 32px;box-shadow:0 10px 30px -14px rgba(35,31,32,.2);
  max-width:880px;margin:0 auto;transition:transform .3s cubic-bezier(.22,.61,.36,1),box-shadow .3s ease}
.lp-bld-text{flex:1 1 auto;min-width:0}
.lp-bld-btn{display:inline-block;margin-top:16px;background:#c2632a;color:#fff;text-decoration:none;
  font-weight:700;font-size:14px;letter-spacing:.02em;padding:12px 22px;border-radius:8px;
  border:2px solid #c2632a;transition:background-color .2s,transform .2s}
.lp-bld-btn:hover,.lp-bld-btn:focus-visible{background:#a14e1c;border-color:#a14e1c;transform:translateY(-2px);outline:none}
.lp-bld3d-stage{flex:0 0 200px;height:174px;perspective:1000px;perspective-origin:50% 42%;
  display:flex;align-items:center;justify-content:center;cursor:grab;touch-action:pan-y}
.lp-bld3d-stage:active{cursor:grabbing}
.lp-bld3d.dragging{animation:none}
.lp-bld3d{position:relative;width:0;height:0;transform-style:preserve-3d;
  transform:scale(.7) rotateX(-12deg) rotateY(-28deg);animation:lp-bld-spin 22s linear infinite}
.lp-bld3d .f{position:absolute;transform-style:preserve-3d;backface-visibility:hidden}
.lp-bld3d .wall{background:repeating-linear-gradient(90deg,#cfd4da 0,#cfd4da 5px,#aeb4bc 5px,#aeb4bc 11px);border:1px solid #7d838b}
.lp-bld3d .front{width:200px;height:110px;transform:translate(-100px,-55px) translateZ(75px)}
.lp-bld3d .back {width:200px;height:110px;transform:translate(-100px,-55px) rotateY(180deg) translateZ(75px);filter:brightness(.82)}
.lp-bld3d .left {width:150px;height:110px;transform:translate(-75px,-55px) rotateY(-90deg) translateZ(100px);filter:brightness(.7)}
.lp-bld3d .right{width:150px;height:110px;transform:translate(-75px,-55px) rotateY(90deg)  translateZ(100px);filter:brightness(.9)}
.lp-bld3d .gable{width:150px;height:52px;background:repeating-linear-gradient(90deg,#cfd4da 0,#cfd4da 5px,#aeb4bc 5px,#aeb4bc 11px);clip-path:polygon(0 100%,50% 0,100% 100%)}
.lp-bld3d .gr{transform:translate(-75px,-26px) translateY(-81px) rotateY(90deg)  translateZ(100px);filter:brightness(.9)}
.lp-bld3d .gl{transform:translate(-75px,-26px) translateY(-81px) rotateY(-90deg) translateZ(100px);filter:brightness(.7)}
.lp-bld3d .roof{width:200px;height:92px;background:repeating-linear-gradient(90deg,#bd5d22 0,#bd5d22 7px,#a14e1c 7px,#a14e1c 14px);border:1px solid #7a3a14;backface-visibility:visible}
.lp-bld3d .rf{transform:translate(-100px,-46px) translateY(-81px) translateZ(37px) rotateX(55.3deg)}
.lp-bld3d .rb{transform:translate(-100px,-46px) translateY(-81px) translateZ(-37px) rotateX(-55.3deg);filter:brightness(.8)}
.lp-bld3d .door{position:absolute;left:50%;bottom:6px;width:74px;height:78px;transform:translateX(-50%);background:repeating-linear-gradient(0deg,#6b7177 0,#6b7177 6px,#565b61 6px,#565b61 9px);border:2px solid #4a4f55;border-bottom:none}
.lp-bld3d .win{position:absolute;right:16px;top:20px;width:26px;height:22px;background:linear-gradient(135deg,#9fd0e6,#5b86a0);border:2px solid #4a4f55}
.lp-bld3d .shadow{position:absolute;width:240px;height:90px;left:-120px;top:-45px;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.45),rgba(0,0,0,0));transform:translateY(58px) rotateX(90deg)}
@keyframes lp-bld-spin{from{transform:scale(.7) rotateX(-12deg) rotateY(-28deg)}to{transform:scale(.7) rotateX(-12deg) rotateY(332deg)}}
@media (prefers-reduced-motion: reduce){.lp-bld3d{animation:none}}
@media (max-width:600px){.lp-bld-card{flex-direction:column;text-align:center}.lp-bld3d-stage{flex-basis:auto}}

/* ---- Footer newsletter (GF #4) — light on dark footer, inline email + button ---- */
.lp-footer-newsletter .gform_wrapper.gravity-theme .gfield_label{color:rgba(255,255,255,.85);font-size:12px;letter-spacing:.04em}
.lp-footer-newsletter .gform_wrapper.gravity-theme .gform_fields{grid-template-columns:1fr}
.lp-footer-newsletter .gform_wrapper.gravity-theme input[type=email]{width:100%;padding:11px 12px;border:1px solid rgba(255,255,255,.28);border-radius:6px;background:#fff;color:#231f20}
.lp-footer-newsletter .gform_wrapper.gravity-theme .gform_footer{margin-top:12px;padding:0}
.lp-footer-newsletter .gform_wrapper.gravity-theme input[type=submit]{background:#c2632a;color:#fff;border:none;border-radius:6px;padding:11px 26px;font-weight:700;letter-spacing:.04em;cursor:pointer;transition:background-color .2s}
.lp-footer-newsletter .gform_wrapper.gravity-theme input[type=submit]:hover{background:#a14e1c}
.lp-footer-newsletter{max-width:100%;margin:0}
.lp-footer-newsletter .gform_wrapper.gravity-theme .gform_footer{margin-top:10px}
.lp-footer-newsletter .gform_wrapper.gravity-theme input[type=submit]{width:100%;padding:11px 18px}
