/* Brobs Marine, Product page template body styles (DRAFT).
   Extra stylesheet, enqueued only on page-landing.php, so no webpack build is needed.
   Uses only theme tokens: blue #2D43B2, orange #C4543C, text #4D547C, bg #F1F1F1, white. */

.landing-body { background: #fff; padding: 96px 0 40px; }
.landing-content { color: #4D547C; font-family: "IBM Plex Sans", sans-serif; font-size: 16px; line-height: 1.7; }
@media (min-width: 1024px) { .landing-content { font-size: 18px; } }
@media (min-width: 1920px) { .landing-content { font-size: 20px; } }

.landing-content p { margin: 0 0 18px; }
.landing-content strong { color: #2D43B2; font-weight: 600; }

/* h2: orange top rule + orange chevron, like the About "title-box" and the Home bullet blocks */
.landing-content h2 {
  color: #2D43B2; font-weight: 600; text-transform: uppercase; line-height: 1.25;
  font-size: 22px; margin: 64px 0 20px; padding: 24px 0 0 22px; position: relative;
  border-top: 1px solid #C4543C;
}
@media (min-width: 1024px) { .landing-content h2 { font-size: 26px; } }
.landing-content h2::before {
  content: ""; position: absolute; left: 0; top: 31px; width: 10px; height: 15px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='15' viewBox='0 0 10 15'><path d='M1.0625 1.06055L7.0625 7.06055L1.0625 13.0605' stroke='%23C4543C' stroke-width='3' fill='none'/></svg>") no-repeat;
}
.landing-content > h2:first-child, .landing-content > p:first-child + h2 { margin-top: 40px; }
.landing-content h3 { color: #2D43B2; font-weight: 600; font-size: 18px; margin: 36px 0 12px; }
@media (min-width: 1024px) { .landing-content h3 { font-size: 20px; } }

.landing-content ul, .landing-content ol { margin: 0 0 22px 26px; padding: 0; }
.landing-content ul li { list-style: disc; margin-bottom: 8px; }
.landing-content ol li { list-style: decimal; margin-bottom: 10px; }
.landing-content li::marker { color: #2D43B2; font-weight: 600; }

.landing-content a { color: #2D43B2; text-decoration: underline; text-decoration-color: #C4543C; text-underline-offset: 3px; }
.landing-content a:hover { color: #C4543C; }

/* A paragraph that holds only a link to /quote/ becomes a theme style button (hero-button look) */
.landing-content p > a[href^="/quote"]:only-child {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: #fff; color: #4D547C; border: 1px solid #2D43B2; padding: 8px 12px;
  font-weight: 600; font-size: 16px; text-transform: uppercase; transition: .3s ease-in-out;
}
.landing-content p > a[href^="/quote"]:only-child::before {
  content: ""; width: 10px; height: 15px; transition: transform .3s ease;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='15' viewBox='0 0 10 15'><path d='M1.0625 1.06055L7.0625 7.06055L1.0625 13.0605' stroke='%23C4543C' stroke-width='3' fill='none'/></svg>") no-repeat;
}
.landing-content p > a[href^="/quote"]:only-child:hover { color: #2D43B2; }
.landing-content p > a[href^="/quote"]:only-child:hover::before { transform: translateX(4px); }

/* Tables: parts and series lists */
.landing-content table { width: 100%; border-collapse: collapse; margin: 8px 0 26px; font-size: .9em; background: #fff; }
.landing-content thead th {
  background: #2D43B2; color: #fff; text-align: left; font-weight: 600; text-transform: uppercase;
  font-size: 14px; letter-spacing: .02em; padding: 12px 16px;
}
.landing-content tbody td { padding: 12px 16px; border-bottom: 1px solid rgba(77, 84, 124, .5); vertical-align: top; }
.landing-content tbody td:first-child { color: #2D43B2; font-weight: 600; white-space: nowrap; }
.landing-content tbody tr { transition: background-color .3s ease; }
.landing-content tbody tr:hover { background: #F1F1F1; }
@media (max-width: 767px) { .landing-content table { display: block; overflow-x: auto; } }

/* Images placed in the body by editors */
.landing-content img { max-width: 100%; height: auto; display: block; margin: 28px 0; }
.landing-content figure { margin: 28px 0; }
.landing-content figcaption { font-size: 14px; color: #4D547C; margin-top: 8px; }

/* Spacing so the white gallery mask blocks meet a white section, like on About Us */
.page-template-page-landing .quality_you_can_rely_on_bottom_part { padding-top: 45px; }
.page-template-page-landing .contact_form { margin-top: 160px; }

/* =====================================================================
   Sticky header, language dropdown and "On this page" panel (DRAFT)
   Markup from page-landing.php, behaviour from landing.js.
   Breakpoint: 1280px. Wider = full menu + side panel. Narrower = menu button + section bar.
   ===================================================================== */
.page-template-page-landing { --lp-h: 112px; }
@media (min-width: 1280px) { .page-template-page-landing { --lp-h: 76px; } }

/* The old Polylang bar and the old side menu are hidden on this template only (theme files stay untouched). */
.page-template-page-landing #navbar .language-switcher,
.page-template-page-landing #navbar .mobile-language-switcher { display: none !important; }
.page-template-page-landing .floating-nav-wrapper { display: none !important; }
/* The new header shows from the top, so the old theme header (logo + hamburger) is hidden: one menu only. */
.page-template-page-landing #navbar,
.page-template-page-landing .mobile-menu-overlay { display: none !important; }

/* Jump links land below the sticky header */
.page-template-page-landing .landing-content h2,
.page-template-page-landing #contact { scroll-margin-top: calc(var(--lp-h) + var(--lp-ab, 0px) + 24px); }
.page-template-page-landing .landing-content h2:focus { outline: none; }
.page-template-page-landing .landing-content h2:focus-visible { outline: 2px solid #C4543C; outline-offset: 4px; }

.lp-header .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-ico--chev { flex: none; transition: transform .3s ease; }
[aria-expanded="true"] > .lp-ico--chev { transform: rotate(180deg); }
.lp-header a:focus-visible, .lp-header button:focus-visible,
.lp-panel a:focus-visible, .lp-panel button:focus-visible,
.lp-lang-top a:focus-visible, .lp-lang-top button:focus-visible { outline: 2px solid #C4543C; outline-offset: 2px; }

/* Shared dropdown card */
.lp-drop { background: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, .1); border-top: 2px solid #C4543C; }
.lp-drop ul, .lp-drop ol { list-style: none; }
.lp-drop a { display: block; color: #2D43B2; font-family: "IBM Plex Sans", sans-serif; text-decoration: none; transition: color .3s ease, background-color .3s ease; }
.lp-drop a:hover { color: #C4543C; background: #F1F1F1; }

/* ---------- Language dropdown (globe + EN) ---------- */
.lp-lang { position: relative; }
.lp-lang__btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 6px 4px;
  color: #2D43B2; font: 600 16px/1 "IBM Plex Sans", sans-serif; text-transform: uppercase;
}
.lp-lang__btn:hover { color: #C4543C; }
.lp-lang__list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px; z-index: 5; padding: 6px 0 !important; }
.lp-lang__list a { padding: 10px 16px; font-size: 15px; font-weight: 500; }
.lp-lang__list a[aria-current="true"] { font-weight: 600; box-shadow: inset 3px 0 0 #C4543C; }

/* Top position: where the old language bar was, over the hero */
.lp-lang-top { position: absolute; top: 0; left: 0; right: 0; z-index: 998; pointer-events: none; }
.lp-lang-top__in { display: flex; justify-content: flex-end; padding-top: 44px; }
.lp-lang-top .lp-lang { pointer-events: auto; margin-right: 72px; }
@media (min-width: 1024px) { .lp-lang-top__in { padding-top: 34px; } .lp-lang-top .lp-lang { margin-right: 32px; } }
body.mobile-menu-open .lp-lang-top { visibility: hidden; }

/* ---------- Sticky header: visible from the top of the page and fixed while scrolling ---------- */
.lp-header {
  position: fixed; top: var(--lp-ab, 0px); left: 0; right: 0; z-index: 1000; background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}
/* Logged in: sit below the WordPress admin bar (32px desktop, 46px tablet; on phones landing.js follows it). */
body.admin-bar { --lp-ab: 32px; }
@media (max-width: 782px) { body.admin-bar { --lp-ab: 46px; } }
@media (max-width: 600px) { body.admin-bar { --lp-ab: 0px; } body.admin-bar .lp-header { top: 46px; } }
/* The old language bar over the hero is not needed any more: the header has the language dropdown. */
.lp-lang-top { display: none !important; }
.lp-header__bar { display: flex; align-items: center; gap: 20px; height: 64px; }
@media (min-width: 1280px) { .lp-header__bar { height: 76px; gap: 28px; } }
.lp-header__logo { flex: none; width: 92px; display: block; }
.lp-header__logo img { width: 100%; height: auto; }
.lp-header__logo span { color: #2D43B2; font-weight: 600; text-transform: uppercase; }
.lp-header__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.lp-menu-btn { background: none; border: 0; padding: 0; cursor: pointer; display: flex; }
.lp-quote {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none;
  background: #fff; color: #4D547C; border: 1px solid #2D43B2; padding: 8px 12px;
  font: 600 14px/1.2 "IBM Plex Sans", sans-serif; text-transform: uppercase; transition: color .3s ease;
}
.lp-quote svg { transition: transform .3s ease; }
.lp-quote:hover { color: #2D43B2; }
.lp-quote:hover svg { transform: translateX(4px); }
.lp-quote--desk { display: none; }

/* Menu list: mobile first, a panel under the bar */
.lp-nav { position: static; }
.lp-nav__list {
  position: absolute; z-index: 3; left: 0; right: 0; top: 64px; background: #fff; max-height: calc(100vh - 64px - var(--lp-ab, 0px)); overflow-y: auto;
  padding: 8px 28px 28px !important; border-top: 1px solid rgba(77, 84, 124, .5); box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
}
.lp-nav__item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid #F1F1F1; }
.lp-nav__link {
  flex: 1; display: block; padding: 14px 0; color: #2D43B2; text-decoration: none;
  font: 600 14px/1.2 "IBM Plex Sans", sans-serif; text-transform: uppercase;
}
.lp-nav__link:hover, .lp-nav__link[aria-current="page"] { color: #C4543C; }
.lp-nav__sub-btn { background: none; border: 0; color: #2D43B2; cursor: pointer; padding: 12px 8px; display: flex; }
.lp-sub { flex-basis: 100%; box-shadow: none; border-top: 0; border-left: 2px solid #C4543C; margin: 0 0 12px !important; padding: 0 !important; }
.lp-sub a { padding: 9px 16px; font-size: 15px; }
.lp-sub a[aria-current="page"] { color: #C4543C; font-weight: 600; }
.lp-nav__item--quote { border: 0; padding-top: 20px; }

@media (min-width: 1280px) {
  .lp-menu-btn, .lp-nav__item--home, .lp-nav__item--quote { display: none; }
  .lp-quote--desk { display: inline-flex; }
  .lp-nav__list, .lp-nav__list[hidden] {
    position: static; display: flex !important; align-items: center; gap: 4px; max-height: none; overflow: visible;
    padding: 0 !important; border: 0; box-shadow: none; background: none;
  }
  .lp-nav__item { flex-wrap: nowrap; border: 0; }
  .lp-nav__link { padding: 10px 6px 10px 10px; position: relative; }
  .lp-nav__item:not(.has-sub) .lp-nav__link { padding-right: 10px; }
  /* Same orange bar as the current language in the theme header */
  .lp-nav__link::before { content: ""; position: absolute; left: 10px; top: 2px; width: 29px; height: 2px; background: #C4543C; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
  .lp-nav__item.is-current > .lp-nav__link::before, .lp-nav__link:hover::before { transform: scaleX(1); }
  .lp-nav__link:hover { color: #2D43B2; }
  .lp-nav__sub-btn { padding: 10px 6px 10px 0; }
  .lp-sub {
    position: absolute; top: 100%; left: 0; min-width: 240px; z-index: 5; margin: 0 !important; padding: 6px 0 !important;
    border-left: 0; border-top: 2px solid #C4543C; box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
  }
  .lp-nav__item.has-sub:hover > .lp-sub { display: block; }
  .lp-sub a { padding: 10px 16px; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .lp-nav__link { font-size: 13px; padding-left: 8px; }
  .lp-header__bar { gap: 18px; }
}

/* Section bar (narrow screens): second row of the sticky header */
.lp-sectionbar { border-top: 1px solid #F1F1F1; position: relative; }
/* At the top of the page the header is one row (logo, menu); "On this page" joins once the first section has scrolled away. */
body.lp-js:not(.lp-past-first) .lp-sectionbar { display: none; }
.lp-sectionbar__btn {
  width: 100%; height: 48px; display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 0;
  font: 500 14px/1.2 "IBM Plex Sans", sans-serif; color: #4D547C; text-align: left;
}
.lp-sectionbar__k { flex: none; color: #2D43B2; font-weight: 600; text-transform: uppercase; }
.lp-sectionbar__v { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-sectionbar .lp-ico--chev { color: #C4543C; }
.lp-sectionbar .lp-toc { position: absolute; left: 0; right: 0; top: 48px; max-height: 60vh; overflow-y: auto; }
@media (min-width: 1280px) { .lp-sectionbar { display: none; } }

/* Section list, shared by the side panel and the section bar */
.lp-toc ol { list-style: none; margin: 0 !important; padding: 8px 0 !important; counter-reset: lp; }
.lp-toc a { padding: 9px 20px 9px 22px; font-size: 15px; line-height: 1.35; font-weight: 500; position: relative; }
.lp-toc a[aria-current="location"] { color: #2D43B2; font-weight: 600; background: #F1F1F1; box-shadow: inset 3px 0 0 #C4543C; }
.lp-toc__contact a { color: #C4543C; font-weight: 600; text-transform: uppercase; font-size: 14px; }

/* ---------- Side panel (wide screens): replaces the theme side menu on this template ---------- */
.lp-panel { display: none; }
@media (min-width: 1280px) {
  .lp-panel {
    display: block; position: fixed; z-index: 990; top: calc(var(--lp-h) + var(--lp-ab, 0px) + 48px);
    right: max(60px, 50vw - 900px); width: 270px; transition: opacity .3s ease, top .35s ease;
  }
  .lp-panel.is-away { opacity: 0; pointer-events: none; }
  .lp-panel__in { text-align: right; }
  .lp-panel__btn {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 4px 0;
    color: #2D43B2; font: 600 16px/1.2 "IBM Plex Sans", sans-serif; text-transform: uppercase;
  }
  .lp-panel__btn .lp-ico--chev { color: #C4543C; }
  .lp-panel__current { margin: 6px 0 0 !important; font: 500 14px/1.35 "IBM Plex Sans", sans-serif; color: #4D547C; }
  .lp-panel .lp-toc { text-align: left; margin-top: 12px; max-height: calc(100vh - var(--lp-h) - 200px); overflow-y: auto; }
  .lp-panel__in.is-open .lp-panel__current { display: none; }
}

/* Respect reduced motion: no slide, no smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html:has(body.page-template-page-landing) { scroll-behavior: auto; }
  .lp-header, .lp-panel, .lp-ico--chev, .lp-quote svg, .lp-nav__link::before { transition: none !important; }
}

/* Block images: SVG line art has no width or height, so give it a size */
.page-template-page-landing .quality_you_can_rely_on_bottom_part .img-wrapper img{display:block;width:100%;max-width:420px;height:auto;min-height:200px;object-fit:contain}


/* Header stacking, 7 Nov 2026.
One shared layer on Home and Product templates; dropdowns/mobile menu
inherit this fixed header context. Keep WordPress admin bar above it. */
.page-template-front-page .lp-header,
.page-template-page-landing .lp-header {
z-index: 12000;
}