/* Lanner /fr/ — custom French header, footer and slide-in contact panel.
   Styled to match the Haskoning design system (Gilroy, primary-bravo #002e4f). */

:root {
  --fr-bravo: #002e4f;
  --fr-green: #5cbd7d;
  --fr-eggshell: #faf2e3;
}

/* ---------------- Top utility strip: cloned Haskoning markup (navigation-top-wrapper)
   is styled by the site's own app.css. Only the Global Website dropdown needs styles. ---------------- */
.fr-globe-wrap { position: relative; }
.fr-globe-chevron { transition: transform .2s; }
[data-globe-toggle][aria-expanded="true"] .fr-globe-chevron { transform: rotate(180deg); }
.fr-globe-menu {
  position: absolute; top: 100%; right: 0; margin-top: 2px;
  background: #fff; border: 1px solid #e5e9ec; box-shadow: 0 12px 32px rgba(0, 46, 79, 0.16);
  padding: 1.5rem 1.75rem; z-index: 70;
  display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 1.25rem 2rem;
  min-width: 720px; max-width: 92vw; font-family: Gilroy, sans-serif;
}
.fr-globe-col h4 {
  color: var(--fr-bravo); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: .05em; font-weight: 700; margin: 0 0 .55rem;
}
.fr-globe-col ul { list-style: none; margin: 0; padding: 0; }
.fr-globe-col li { margin-bottom: .35rem; }
.fr-globe-col a { color: #33475a; text-decoration: none; font-size: 0.9rem; }
.fr-globe-col a:hover { color: var(--fr-bravo); text-decoration: underline; }
@media (max-width: 1080px) { .fr-globe-menu { grid-template-columns: repeat(2, minmax(140px, 1fr)); min-width: 380px; } }

/* ---------------- Header ---------------- */
.fr-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid #e5e9ec;
  box-shadow: 0 1px 6px rgba(0, 46, 79, 0.06);
  font-family: Gilroy, sans-serif;
}
.fr-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
/* Match Haskoning's .container max-width breakpoints so top-strip, header and footer align */
@media (min-width: 1440px) { .fr-header-inner, .fr-footer-inner, .fr-footer-legal { max-width: 1440px; } }
@media (min-width: 1536px) { .fr-header-inner, .fr-footer-inner, .fr-footer-legal { max-width: 1536px; } }

.fr-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.fr-logo img { height: 56px; width: auto; max-width: 230px; object-fit: contain; display: block; }

.fr-nav { display: flex; align-items: center; gap: 1.5rem; }
.fr-nav-link {
  color: var(--fr-bravo);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.fr-nav-link:hover { border-bottom-color: var(--fr-green); }
.fr-nav-link.is-active { border-bottom-color: var(--fr-bravo); }

.fr-cta {
  background: var(--fr-bravo);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  border-radius: 2px;
  white-space: nowrap;
  transition: background .15s;
}
.fr-cta:hover { background: #013e6b; }

.fr-lang {
  color: var(--fr-bravo);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid #cfd8dd;
  border-radius: 2px;
  padding: 0.3rem 0.55rem;
}
.fr-lang:hover { border-color: var(--fr-bravo); }

/* burger */
.fr-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.fr-burger span { width: 24px; height: 2px; background: var(--fr-bravo); display: block; transition: transform .2s, opacity .2s; }
.fr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.fr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .fr-burger { display: flex; }
  .fr-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid #e5e9ec;
    box-shadow: 0 8px 16px rgba(0, 46, 79, 0.08);
    display: none;
  }
  .fr-nav.is-open { display: flex; }
  .fr-nav-link { width: 100%; padding: 0.75rem 0; border-bottom: 1px solid #eef1f3; }
  .fr-nav-link.is-active { border-bottom-color: var(--fr-green); }
  .fr-cta { margin-top: 0.75rem; }
  .fr-lang { margin-top: 0.75rem; }
}

/* ---------------- Hero spacing ----------------
   The Haskoning breadcrumb (pt-8) sat inside the green hero above the H1; it was
   removed with the corporate chrome. Restore that breathing room on the TEXT column
   only, so the H1 clears the header without shifting the hero image. */
.header-cta .content { padding-top: 2rem; }
@media (min-width: 768px) { .header-cta .content { padding-top: 3.25rem; } }

/* ---------------- Footer ---------------- */
.fr-footer { background: var(--fr-bravo); color: #fff; font-family: Gilroy, sans-serif; }
.fr-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.fr-footer-col h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 1rem; }
.fr-footer-col p { margin: 0 0 0.5rem; line-height: 1.5; color: #d7e0e6; }
.fr-footer-col a { color: #fff; text-decoration: none; }
.fr-footer-col a:hover { text-decoration: underline; }
.fr-footer-social { display: inline-flex; margin-bottom: 1rem; }
.fr-footer-social svg, .fr-footer-social img { width: 26px; height: 26px; }
.fr-footer-legal {
  max-width: 1280px; margin: 0 auto; padding: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; color: #aebfc9;
}
@media (max-width: 760px) { .fr-footer-inner { grid-template-columns: 1fr; } }

/* ---------------- Slide-in contact panel ---------------- */
.fr-panel-overlay {
  position: fixed; inset: 0; background: rgba(0, 46, 79, 0.45);
  opacity: 0; transition: opacity .25s; z-index: 90;
}
.fr-panel-overlay.is-open { opacity: 1; }
.fr-panel {
  position: fixed; top: 0; right: 0; height: 100%;
  width: 632px; max-width: 94vw; background: #fff;
  box-shadow: -8px 0 30px rgba(0, 46, 79, 0.2);
  transform: translateX(100%); transition: transform .28s ease;
  z-index: 100; display: flex; flex-direction: column;
  font-family: Gilroy, sans-serif;
}
.fr-panel.is-open { transform: translateX(0); }
.fr-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid #e5e9ec;
}
.fr-panel-head h2 { margin: 0; font-size: 1.3rem; color: var(--fr-bravo); font-weight: 700; }
.fr-panel-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--fr-bravo); padding: 0 .25rem; }
.fr-panel-body { padding: 1.25rem 1rem; overflow-y: auto; overflow-x: hidden; flex: 1; }
[hidden] { display: none !important; }
