/* 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; }

/* ---- Content cards (blogs & impact stories) ---- */
.fr-cards {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.fr-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid #e5e9ec; text-decoration: none; color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
  font-family: Gilroy, sans-serif; height: 100%;
}
.fr-card:hover { box-shadow: 0 10px 30px rgba(0, 46, 79, .12); transform: translateY(-3px); }
.fr-card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.fr-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fr-card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.fr-card-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--fr-bravo); margin: 0 0 .5rem;
}
.fr-card-title { font-size: 1.2rem; line-height: 1.3; color: var(--fr-bravo); font-weight: 700; margin: 0 0 .6rem; }
.fr-card-excerpt { font-size: .95rem; line-height: 1.5; color: #33454f; margin: 0 0 1rem; }
.fr-card-more { margin-top: auto; font-weight: 700; color: var(--fr-bravo); display: inline-flex; align-items: center; gap: .4rem; }
.fr-card:hover .fr-card-more { text-decoration: underline; }
.fr-section-intro { font-size: 1.05rem; color: #33454f; margin: 0 0 1.5rem; max-width: 60ch; }

/* ---- Article inline figures ---- */
.fr-figure { margin: 2rem 0; }
.fr-figure img { width: 100%; display: block; border: 1px solid #e5e9ec; }
.fr-figure figcaption { font-size: .85rem; line-height: 1.45; color: #5a6b74; margin-top: .6rem; font-style: italic; }
/* Constrain tall/portrait or small diagram images so they don't dominate the column */
.fr-figure-narrow { max-width: 620px; margin-left: auto; margin-right: auto; text-align: center; }
.fr-figure-narrow img { width: auto; max-width: 100%; max-height: 560px; margin: 0 auto; }
.fr-figure-narrow figcaption { text-align: left; }

/* ---- Blog hero: content left, image fills the right half flush top-to-bottom ---- */
.fr-hero2 { position: relative; overflow: hidden; }
.fr-hero2-inner { position: relative; z-index: 1; padding-top: 2.25rem; padding-bottom: 2.25rem; }
.fr-hero2-media img { display: block; width: 100%; height: auto; }
@media (min-width: 1024px) {
  .fr-hero2 { min-height: 460px; }
  .fr-hero2-inner { display: flex; align-items: center; min-height: 460px; }
  .fr-hero2-content { width: 50%; padding-right: 2.5rem; }
  .fr-hero2-media { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; }
  .fr-hero2-media img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---- Blog hero chips (date + category), matches Haskoning ---- */
.fr-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.fr-chip { padding: .55rem .9rem; font-size: .85rem; font-weight: 700; line-height: 1; font-family: Gilroy, sans-serif; }
.fr-chip-date { background: #fff; color: var(--fr-bravo); }
.fr-chip-cat { background: #0e7490; color: #fff; }

/* ---- Author bio band at TOP of article (sky-blue), matches Haskoning ---- */
.fr-authorband { background: #d6ebf2; border-left: 6px solid #0e7490; }
.fr-authorband-inner { max-width: 1200px; margin: 0 auto; padding: 2rem 1.25rem; display: flex; gap: 1.75rem; align-items: center; font-family: Gilroy, sans-serif; }
.fr-authorband img { width: 150px; height: 150px; object-fit: cover; flex-shrink: 0; }
.fr-authorband-name { color: var(--fr-bravo); font-weight: 700; font-size: 1.3rem; margin: 0 0 .4rem; }
.fr-authorband-bio { color: #1f3038; font-size: .98rem; line-height: 1.55; margin: 0; max-width: 70ch; }
@media (max-width: 640px) { .fr-authorband-inner { flex-direction: column; align-items: flex-start; } }

/* Caption for images placed in 50/50 rows */
.fr-cap { font-size: .85rem; line-height: 1.45; color: #5a6b74; margin-top: .6rem; font-style: italic; }

/* ---- Article images floated within the rich-text flow (matches Haskoning) ---- */
.fr-clear { clear: both; }
.fr-article::after { content: ""; display: block; clear: both; }
.fr-float-right { float: right; width: 44%; margin: .3rem 0 1.25rem 2rem; }
.fr-float-left  { float: left;  width: 44%; margin: .3rem 2rem 1.25rem 0; }
.fr-full { clear: both; margin: 2rem auto; }
.fr-float-right img, .fr-float-left img, .fr-full img { width: 100%; display: block; }
.fr-float-right figcaption, .fr-float-left figcaption, .fr-full figcaption {
  font-size: .85rem; line-height: 1.45; color: #5a6b74; margin-top: .5rem; font-style: italic;
}
@media (max-width: 768px) {
  .fr-float-left, .fr-float-right { float: none; width: 100%; margin: 1.5rem 0; }
}

/* ---- Case-study project facts panel (matches Haskoning /projects/) ---- */
.fr-facts {
  display: grid; gap: 1.5rem 2.5rem; background: #eef2f0;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 2rem 2rem; margin: 0 0 1.5rem; font-family: Gilroy, sans-serif;
}
.fr-fact-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0e7490; margin: 0 0 .35rem; }
.fr-fact-value { font-size: 1rem; line-height: 1.4; color: var(--fr-bravo); font-weight: 600; margin: 0; }

/* ---- Sub-quote: the italic question under a case-study section heading ---- */
.fr-subquote {
  font-size: 1.35rem; line-height: 1.4; font-style: italic; color: var(--fr-bravo);
  border-left: 4px solid #0e7490; padding-left: 1.1rem; margin: 0 0 1.4rem; font-weight: 500;
}

/* ---- Simulation callout (stands in for an interactive model diagram) ---- */
.fr-sim-note {
  background: #eaf3f7; border: 1px solid #cfe3ec; padding: 1.25rem 1.5rem; margin: 1.75rem 0;
  font-size: .95rem; line-height: 1.55; color: #1f3038;
}
.fr-sim-note .fr-sim-title { font-weight: 700; color: var(--fr-bravo); margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }

/* ---- "More about" info box ---- */
.fr-infobox { background: #f3eee4; padding: 2rem; margin: 2rem 0; }
.fr-infobox h2, .fr-infobox h3 { margin-top: 0; }

/* ---- Case-study vertical rhythm (main.fr-cs) ---- */
/* The base .section class carries no vertical padding, so the stacked
   case-study sections (hero, intro+facts, text blocks, USP row, videos,
   pull-quote, infobox, contact card, CTA banner) would otherwise collide.
   Headings have no top margin and last paragraphs have margin-bottom:0, so a
   single section margin-top sets the whole inter-section gap cleanly. */
.fr-cs > section.section + section.section { margin-top: 2rem; }
@media (min-width: 1024px) {
  .fr-cs > section.section + section.section { margin-top: 3rem; }
}
/* These blocks own an inner background/padding; let the section rhythm own the
   OUTER gap so it stays even, rather than stacking their own margins on top. */
.fr-cs .fr-facts { margin-bottom: 0; }
.fr-cs .fr-infobox { margin: 0; }

/* ---- Homepage: value cards (icon + title + copy) ---- */
/* Mirrors Haskoning's .unique-selling-point-item: icon = 25% of the card, text = 75%, gap 1rem */
.fr-valuecards { display: grid; gap: 2rem 1.5rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 768px) { .fr-valuecards { grid-template-columns: repeat(3, 1fr); gap: 3rem 1.5rem; } }
.fr-valuecard { text-align: left; font-family: Gilroy, sans-serif; display: flex; gap: 1rem; align-items: flex-start; width: 100%; }
.fr-valuecard img { flex: 0 1 25%; width: 25%; max-height: 18rem; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin: 0; display: block; }
.fr-valuecard-text { flex: 0 1 75%; }
.fr-valuecard h3 { color: var(--fr-bravo); font-size: 1.2rem; line-height: 1.3; font-weight: 700; margin: 0 0 .35rem; }
.fr-valuecard p { color: #33454f; font-size: .98rem; line-height: 1.55; margin: 0; }

/* ---- Homepage: how-it-works timeline (matches Haskoning) ---- */
.fr-steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 1.75rem; }
@media (min-width: 1024px) { .fr-steps { grid-template-columns: repeat(5, 1fr); } }
.fr-step { display: flex; flex-direction: column; }
.fr-step-img { padding-bottom: 1.1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--fr-bravo); }
.fr-step-img img { width: 100%; height: 190px; object-fit: contain; display: block; }
.fr-step-card { flex: 1 1 auto; padding: 1.5rem 1.25rem; }
.fr-step-card.is-blue { background: #bfe1e9; }
.fr-step-card.is-green { background: #c6e8bd; }
.fr-step-tag { display: inline-block; background: var(--fr-bravo); color: #fff; font-size: .72rem; font-weight: 600; padding: .3rem .6rem; margin-bottom: .9rem; font-family: Gilroy, sans-serif; }
.fr-step-title { color: var(--fr-bravo); font-size: 1.4rem; line-height: 1.15; font-weight: 700; margin: 0 0 .9rem; font-family: Gilroy, sans-serif; }
.fr-step-desc { color: var(--fr-bravo); font-size: .92rem; line-height: 1.5; margin: 0; }

/* ---- Homepage vertical rhythm (main.fr-home) ---- */
/* Retire the manual between-section spacers and give every top-level section a
   consistent vertical padding, with extra internal padding on coloured bands so
   headings/text don't touch the band edges. (The base .section has no padding.) */
.fr-home > .spacer { display: none; }
.fr-home > section.section { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.fr-home > section.section:first-of-type { padding-top: 0; padding-bottom: 0; }
.fr-home > section[class*="bg-gradient"] { padding-top: 0; padding-bottom: 0; }
.fr-home > section.bg-sky-blue,
.fr-home > section.bg-white,
.fr-home > section.bg-eggshell-cream { padding-top: 3.25rem; padding-bottom: 3.25rem; }
@media (min-width: 1024px) {
  .fr-home > section.section { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .fr-home > section.section:first-of-type,
  .fr-home > section[class*="bg-gradient"] { padding-top: 0; padding-bottom: 0; }
  .fr-home > section.bg-sky-blue,
  .fr-home > section.bg-white,
  .fr-home > section.bg-eggshell-cream { padding-top: 4rem; padding-bottom: 4rem; }
}

/* ---- Testimonial carousel (one quote visible, arrows + dots) ---- */
.fr-carousel { position: relative; }
.fr-carousel-viewport { overflow: hidden; }
.fr-carousel-track { display: flex; transition: transform .45s ease; }
.fr-carousel-slide { flex: 0 0 100%; min-width: 100%; display: flex; }
.fr-carousel-slide > figure { width: 100%; margin: 0; }
.fr-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 3rem; height: 3rem; border-radius: 50%; background: var(--fr-bravo); color: #fff; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; opacity: .9; transition: opacity .2s; }
.fr-carousel-arrow:hover { opacity: 1; }
.fr-carousel-arrow svg { width: 1.4rem; height: 1.4rem; fill: currentColor; color: #fff; }
.fr-carousel-prev { left: .5rem; }
.fr-carousel-prev svg { transform: rotate(180deg); }
.fr-carousel-next { right: .5rem; }
.fr-carousel-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1.25rem; }
.fr-carousel-dot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: #b3c3cb; cursor: pointer; padding: 0; transition: background .2s; }
.fr-carousel-dot:hover { background: #7f98a3; }
.fr-carousel-dot.is-active { background: var(--fr-bravo); }
@media (max-width: 640px) { .fr-carousel-arrow { width: 2.4rem; height: 2.4rem; } .fr-carousel-arrow svg { width: 1.1rem; height: 1.1rem; } }

/* ---- Homepage: industries tiles ---- */
.fr-industries { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-top: 1rem; }
@media (min-width: 640px) { .fr-industries { grid-template-columns: repeat(5, 1fr); } }
.fr-industry { position: relative; overflow: hidden; min-height: 160px; display: flex; align-items: flex-end; color: #fff; }
.fr-industry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.fr-industry span { position: relative; z-index: 1; padding: .9rem 1rem; font-weight: 700; font-family: Gilroy, sans-serif; width: 100%; background: linear-gradient(to top, rgba(10,30,40,.82), rgba(10,30,40,0)); }
