/* Brobs Marine, Home page (front-page.php) additions, 5 Nov 2026.
   Loaded by front-page.php only, after landing.css. */

/* 1. Sticky header: same set-up as the Product pages (landing.css scopes these to that template). */
.page-template-front-page { --lp-h: 112px; }
@media (min-width: 1280px) { .page-template-front-page { --lp-h: 76px; } }

/* The old English / Espanol bar and the old side menu make way for the language dropdown and "On this page". */
.page-template-front-page #navbar .language-switcher,
.page-template-front-page #navbar .mobile-language-switcher { display: none !important; }
.page-template-front-page .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-front-page #navbar,
.page-template-front-page .mobile-menu-overlay { display: none !important; }

/* The Home counters ("50+") use z-index 1112 in the theme CSS, so lift the header and panel above them. */
.page-template-front-page .lp-header { z-index: 12000; }
.page-template-front-page .lp-panel { z-index: 11990; }
.page-template-front-page .lp-lang-top { z-index: 11980; }

/* Jump links land below the sticky header. */
.page-template-front-page #about,
.page-template-front-page #services,
.page-template-front-page #partners,
.page-template-front-page #contact { scroll-margin-top: calc(var(--lp-h) + var(--lp-ab, 0px) + 24px); }

/* 2. Mobile fix: the blue tiles under the hero ran into "Excellence in every part".
   Below 1024px the hero had a fixed height of one screen, but its content (text, button and the
   tile picture) is taller than that on phones, so the tiles spilled into the next section.
   Let the hero grow with its content instead, still at least one screen tall. */
@media (max-width: 1023px) {
  .page-template-front-page .hero_home_page { height: auto; min-height: 100vh; min-height: 100svh; }
}

/* 3. Counters: keep "35 years" on one line on small phones. */
@media (max-width: 400px) {
  .page-template-front-page .excellence_in_every_part_gallery .numbers { white-space: nowrap; }
}
