/*
 Theme Name:     Divi creative agency
 Theme URI:      https://demo.infomaniak.com/preview?t=divi-creative-agency
 Description:    Votre site sera constitue de plusieurs pages (accueil, blog, contact, etc...) que vous pourrez librement personnaliser selon vos besoins.
 Author:         Infomaniak
 Author URI:     https://www.infomaniak.com
 Template:       Divi
 Version:        1.0.0
*/
 
@import url("../Divi/style.css");
/* ---------- INTER (self-hosted variable font) ----------
   Divi's font picker doesn't expose Inter in this install, and self-hosting
   avoids a runtime request to Google (and works offline). One variable file
   per subset covers every weight we use. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* U+2192 (the card link arrow) is in NEITHER Google's latin nor latin-ext cut of
   Inter - the latin subset ships the up and down arrows but not the right one -
   so it was silently falling back to a system font, which is why the arrows
   looked wrong. This is a 3.4KB Inter 4.001 cut containing only that glyph,
   same version and same variable weight axis as the other two files. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-arrows.woff2') format('woff2');
  unicode-range: U+2192;
}

/* ---------- BASELINE ----------
   Divi's style-static.min.css sets `body{font-weight:500}`, so every run of
   body copy that doesn't name a weight inherits a half-step heavier than the
   design - Figma's body text is Inter Regular 400 throughout. Qualified with
   `html` so it wins regardless of which stylesheet loads last.
   Divi also sets a 1.7em body line-height that leaks into elements Figma
   leaves at the font's natural leading. */
html body {
  font-weight: 400;
}

/* --- Homepage redesign (Figma match) --- */

/* Shared eyebrow */
.bi-eyebrow {
  line-height: normal;
  color: #f5a323;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  text-shadow: none;
}

/* ---------- HERO ---------- */
.bi-hero {
  position: relative;
  overflow: hidden;
}
/* Divi gives every module position:relative, which trapped the decorative
   layer inside the small code-module box. Make that module a non-containing
   block so the shapes can span the whole hero. */
.bi-hero .bi-hero-top,
.bi-hero .bi-hero-top .et_pb_code_inner {
  position: static;
}
.bi-hero .bi-hero-eyebrow,
.bi-hero .bi-hero-header {
  position: relative;
  z-index: 2;
}
.bi-hero-eyebrow {
  margin-bottom: 24px;
}
/* Figma's CTA (1:27) is 48px tall = 16px text + 16px padding top/bottom.
   Divi's own button rule carries an id in the selector, so match its weight
   rather than fight it with a bare class. */
body #page-container .et_pb_section .bi-hero-header .et_pb_button_one.et_pb_button,
body #page-container .et_pb_section .et_pb_contact_form_container .et_pb_button {
  line-height: normal !important;
}
.bi-hero h1.et_pb_module_header {
  margin-bottom: 24px;
  padding-bottom: 0;
  text-shadow: none;
}
.bi-hero .et_pb_header_content_wrapper {
  max-width: 600px;
  margin: 0 auto 24px;
  color: #b3afdb;
}

/* Decorative shapes - read off the Figma hero frame (node 1:16, 1440x640).
   Positioned by CENTRE, not top-left: Figma reports a rotated shape's bounding
   box, so d2/d4/d6 (hexagons at -12/-45/-20 deg) would sit off by several px
   if their box origin were used as the CSS origin. */
.bi-hero-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bi-hero-deco span {
  position: absolute;
  display: block;
  transform: translate(-50%, -50%);
}
/* Figma's regular-polygon is a pointy-top hexagon inset 6.7% horizontally. */
.bi-hero-deco .hex {
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}
/* 1:20 - ellipse 90, white 6% */
.bi-hero-deco .d1 {
  left: 7.2917%; top: 25.7813%;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
/* 1:17 - hexagon 70 rotated -12deg, #6D5CFC 50% */
.bi-hero-deco .d2 {
  left: 84.8272%; top: 18.2753%;
  width: 70px; height: 70px;
  background: rgba(109, 92, 252, 0.5);
  transform: translate(-50%, -50%) rotate(-12deg);
}
/* 1:18 - hexagon 46, white 15% */
.bi-hero-deco .d3 {
  left: 91.1806%; top: 44.2188%;
  width: 46px; height: 46px;
  background: rgba(255, 255, 255, 0.15);
}
/* 1:19 - hexagon 40 rotated -45deg, #F5A323 35% */
.bi-hero-deco .d4 {
  left: 8.2142%; top: 65.6257%;
  width: 40px; height: 40px;
  background: rgba(245, 163, 35, 0.35);
  transform: translate(-50%, -50%) rotate(-45deg);
}
/* 1:21 - ellipse 140, #4A3CC7 30% */
.bi-hero-deco .d5 {
  left: 91.6667%; top: 76.5625%;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(74, 60, 199, 0.3);
}
/* 1:22 - hexagon 56 rotated -20deg, white 12% */
.bi-hero-deco .d6 {
  left: 95.5478%; top: 80.7403%;
  width: 56px; height: 56px;
  background: rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%) rotate(-20deg);
}
@media (max-width: 980px) {
  .bi-hero-deco { display: none; }
}

/* ---------- CARDS SECTION ----------
   Sizes below are measured off the Figma frame: the two cards span 736/1248 of
   the frame (= 850px at 1440), each 410px wide with a 30px gutter. Everything
   else is that same scale factor applied to the frame's pixel values. */
.bi-cards-eyebrow {
  color: #f5a323;
  font-size: 12px;
  letter-spacing: 1.5px;
  line-height: 1.2;
  margin: 0 0 14px;
}
.bi-cards-heading {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: normal;
  margin: 0 0 56px;
  padding: 0;
  text-align: center;
  text-shadow: none;
}
/* Divi's 1_2 preset is 47.25% + a 5.5% gutter; the Figma gutter is a flat 30px
   (a 13.7:1 card-to-gap ratio vs Divi's 8.6:1), so override just this row. */
.bi-cards-row.et_pb_row {
  max-width: 848px;
}
@media (min-width: 981px) {
  .bi-cards-row.et_pb_row > .et_pb_column {
    width: calc((100% - 32px) / 2);
    margin-right: 32px;
  }
  .bi-cards-row.et_pb_row > .et_pb_column:last-child {
    margin-right: 0;
  }
}
/* make_equal stretches the column, but the module + inner wrapper inside it
   keep their natural height, so .bi-card's height:100% had nothing to fill. */
.bi-card-module,
.bi-card-module .et_pb_text_inner {
  height: 100%;
}
/* Divi's gutter system sizes the module at 98.8% of the column, which cost the
   card 5px and wrapped the 335px h3 onto a second line. */
.bi-card-module {
  width: 100%;
}
.bi-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #191738;
  box-shadow: inset 0 0 0 1px #3e3873;
  border-radius: 16px;
  /* Figma's padding is 36px (content 336). Chrome needs 338px to render the
     card-1 line "...vos entites cles :" that Figma fits in 336 - a ~2px text
     shaping difference. 35px keeps Figma's line breaks, which read as the
     design; the 1px padding delta does not. */
  padding: 40px 35px;
  height: 100%;
}
.bi-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  line-height: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.bi-badge-purple { background: rgba(109, 92, 252, 0.18); color: #6d5cfc; }
.bi-badge-green  { background: rgba(40, 200, 180, 0.18); color: #28c8b4; }

.bi-card h3 {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: normal;
  margin: 0 0 19px;
  padding: 0;
  text-shadow: none;
}
.bi-card p {
  color: #b3afdb;
  font-size: 14.5px;
  line-height: 1.58;
  margin: 0 0 13px;
  padding: 0;
}
/* wpautop drops an empty <p> after the badge and wraps the link in one of its
   own; neither should show up as spacing. */
.bi-card > p:empty {
  display: none;
}
.bi-card > p:last-child {
  margin: auto 0 0;
}
/* Cards are equal height, so the link sits on the card's bottom padding line
   even if one card ever carries an extra line of copy. */
.bi-card a.bi-card-link {
  color: #6d5cfc;
  font-weight: 600;
  text-decoration: none;
  font-size: 13.5px;
  line-height: normal;
  margin-top: auto;
}
.bi-card a.bi-card-link .bi-card-arrow {
  display: inline-block;
  margin-left: 8px;
}
.bi-card a.bi-card-link:hover { color: #ffffff; }
.bi-card a.bi-card-link-green { color: #28c8b4; }
.bi-card a.bi-card-link-green:hover { color: #ffffff; }

@media (max-width: 980px) {
  .bi-cards-heading { font-size: 28px; margin-bottom: 40px; }
}

/* ---------- EXECUTIVE INTERIM MANAGEMENT PAGE ----------
   Measured off the two Figma frames: the three cards span 832/1175 of the
   frame (= 1040px), each 330px wide with a 25px gutter. Cards keep their
   natural height in the design, so the row must not use make_equal. */
.bi-cm-hero h1 {
  margin: 0 0 21px;
  padding: 0;
  text-shadow: none;
}
.bi-exp-heading h2 {
  margin: 0 0 15px;
  padding: 0;
  text-shadow: none;
}
.bi-exp-card h3 {
  margin: 0 0 18px;
  padding: 0;
  text-shadow: none;
}
.bi-exp-card p {
  margin: 0;
  padding: 0;
}
/* The dot sits in its own Divi image module; Divi's default 7px bottom margin
   is far tighter than the reference. */
.bi-exp-row .et_pb_image,
.bi-exp-row2 .et_pb_image {
  margin-bottom: 18px !important;
}
/* Keep the text measure that produces the reference line breaks even though the
   padding is 28px: the block overhangs the right gutter, which is invisible on
   ragged-right text, while the left edge stays where the design puts it. */
.bi-exp-card h3,
.bi-exp-card p {
  width: 279px;
  max-width: none;
}
/* The Consulting card is the one measure that disagrees: 279px puts an extra
   word on line 2. Its reference wrap only exists at 277px. */
.bi-exp-card-narrow p {
  width: 277px;
}
/* make_equal stretches the column; let the card fill it. */
.bi-exp-row .et_pb_column,
.bi-exp-row2 .et_pb_column {
  display: flex;
  flex-direction: column;
}
/* Divi's 1_3/1_2 presets carry a 3% gutter; the Figma gutter is a flat 25px. */
@media (min-width: 981px) {
  .bi-exp-row.et_pb_row > .et_pb_column {
    width: calc((100% - 50px) / 3);
    margin-right: 25px;
  }
  .bi-exp-row2.et_pb_row > .et_pb_column {
    width: calc((100% - 25px) / 2);
    margin-right: 25px;
  }
  .bi-exp-row.et_pb_row > .et_pb_column:last-child,
  .bi-exp-row2.et_pb_row > .et_pb_column:last-child {
    margin-right: 0;
  }
}

/* ---------- INNER PAGE HEROES ----------
   Figma caps each hero paragraph independently of the H1 above it (the H1 is
   nowrap in the design), so the cap has to land on the <p>, not the module -
   putting it on the module clips the heading. Widths per Figma:
   3:19 = 620, 5:19 = 620, 8:46 = 680, 3:24 = 760. */
.bi-hero-copy .et_pb_text_inner > p {
  margin-left: auto;
  margin-right: auto;
}
.bi-hero-copy-620 .et_pb_text_inner > p { max-width: 620px; }
.bi-hero-copy-680 .et_pb_text_inner > p { max-width: 680px; }
.bi-hero-copy-760 .et_pb_text_inner > p { max-width: 760px; }

/* Figma 2:3: the heading block is 572 wide (h2 on one line) and only the
   paragraph below it is capped at 520. */
.bi-cta-heading .et_pb_text_inner > p {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.bi-cta-eyebrow {
  line-height: normal;
}

/* Contact section is styled entirely with native Divi module settings
   (Row: background/border/radius/padding/box-shadow, Contact Form:
   Fields + Inputs border + Button groups) so it stays editable in the
   Divi Builder. Deliberately no CSS overrides here. */

/* ---------- GLOBAL HEADER / FOOTER (Figma 1:3, 2:18) ----------
   The navbar is 88px tall around a 36px logo and the footer 100px around a
   30px one; the site uses image logos that are taller than the Figma text
   lockups, which is what was pushing both bars over height. */
.et-l--footer .et_pb_image img {
  max-height: 30px;
  width: auto;
}
/* Divi's dark background_layout hard-codes menu links to white, and paints the
   current page's item differently again. Figma uses one flat colour per bar. */
body .et-l--footer .et_pb_menu a,
body .et-l--footer .et_pb_menu ul li.current-menu-item a {
  color: #b3afdb !important;
}
/* Divi's 1.7em menu line-height made the footer row 40px tall against Figma's
   30px logo lockup, pushing the bar to 112px. */
.et-l--footer .et_pb_menu .et-menu > li > a {
  line-height: normal;
}
.et-l--header .et_pb_menu a,
.et-l--header .et_pb_menu ul li.current-menu-item a {
  color: #161428 !important;
}
/* Social badges: 36px / radius 8 in the header (1:13), 32px / radius 6 in the
   footer (2:28). The footer one was 40px, which is what still had that bar
   over height after the logo was fixed. */
.et-l--header .et_pb_social_media_follow li a.icon,
.et-l--header .et_pb_social_media_follow li a.icon:before {
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 8px;
}
.et-l--footer .et_pb_social_media_follow li a.icon,
.et-l--footer .et_pb_social_media_follow li a.icon:before {
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 6px;
}
/* Divi adds an 8px bottom margin to each social item, which kept the footer
   row at 40px even once the badge was 32px. */
.et-l--header .et_pb_social_media_follow li,
.et-l--footer .et_pb_social_media_follow li {
  margin-bottom: 0;
}

/* Figma nav gaps: 40px in the header (1:7), 32px in the footer (2:22). */
.et-l--header .et_pb_menu .et-menu > li {
  padding-left: 20px;
  padding-right: 20px;
}
.et-l--footer .et_pb_menu .et-menu > li {
  padding-left: 16px;
  padding-right: 16px;
}

/* ---------- FROZEN LINE BREAKS ----------
   Text shaping is not identical across renderers: Figma is ~2% tighter than
   Chrome, and Chrome on one platform differs from Chrome on another. Tuning a
   measure until it wrapped correctly here therefore produced DIFFERENT line
   endings on another machine. So the desktop line breaks are explicit <br>s in
   the content instead of being left to the wrapping algorithm.

   `width: max-content` is what makes that reliable: each block becomes exactly
   as wide as its longest frozen line, so a browser that renders the text a few
   percent wider still cannot introduce an extra wrap. Below the desktop
   breakpoint the <br>s are switched off and the copy reflows normally. */
@media (min-width: 981px) {
  #main-content p:has(br) {
    width: max-content;
    max-width: none;
  }
  .et_pb_text_align_center p:has(br),
  .bi-hero-copy p:has(br),
  .bi-cta-heading p:has(br),
  .bi-hero .et_pb_header_content_wrapper p:has(br) {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 980px) {
  #main-content p br {
    display: none;
  }
}

/* ---------- STICKY FOOTER ----------
   Divi nests the footer INSIDE #et-main-area:
     #et-boc > header + #et-main-area( #main-content + footer )
   so #main-content is what must absorb the slack, not #et-main-area -
   otherwise the empty space lands *below* the footer. */
#page-container #et-boc {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#et-boc > #et-main-area {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
#et-main-area > #main-content {
  flex: 1 0 auto;
}
#et-main-area > .et-l--footer {
  margin-top: auto;
  flex: 0 0 auto;
}
/* Divi paints #main-content white by default - that was the white bar */
#main-content {
  background-color: transparent;
}

/* ---------- CONTACT PAGE ----------
   The sticky-footer rules make #main-content absorb the leftover viewport
   height, which parked the (short) contact section against the header with
   all the slack below it. Centre it in that space - a no-op on long pages. */
body.page-id-45 #main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Figma 7:2: the intro band is 1312 wide (1440 less 64px gutters) and splits
   784 / 48 / 480, which puts the paragraph at 560. Divi's default 1080px row
   with an even split was giving it 510. */
@media (min-width: 981px) {
  .bi-ba-intro.et_pb_row {
    /* Figma has this row at 1312 (1440 less 64px gutters) but the portfolio
       row below it at 1386, which left the two 37px out of alignment on
       screen. Matched to the portfolio row so the copy and the purple card
       line up with the cards. The gutter is kept in the calc so that below
       the design width the copy does not sit hard against the window edge. */
    width: calc(100% - 54px);
    max-width: 1386px;
    display: flex;
    align-items: flex-start;
  }
  /* Divi clearfixes rows with :before/:after; in a flex row those turn into
     stray flex items. */
  .bi-ba-intro.et_pb_row:before,
  .bi-ba-intro.et_pb_row:after {
    display: none;
  }
  /* This is a three-column Divi row and the third column is empty. It was
     eating the `:last-child` sizing below (so the card never got its 480 and
     kept Divi's 389), and an empty 480px float wrapped onto its own line,
     which is the dead band under the row. */
  .bi-ba-intro.et_pb_row > .et_pb_column_empty {
    display: none;
  }
  .bi-ba-intro.et_pb_row > .et_pb_column:first-child {
    /* Grows into whatever the card leaves, but never shrinks below the
       frozen line breaks - so the card gives way first, not the copy. */
    flex: 1 1 auto;
    width: auto;
    margin-right: 48px;
  }
  .bi-ba-intro.et_pb_row > .et_pb_column:nth-child(2) {
    flex: 0 1 480px;
    width: 480px;
    min-width: 0;
    margin-right: 0;
  }
}
/* Figma 8:6 - the Business Angel CTA paragraph is 560 wide, not the 520 the
   other pages use. */
.bi-cta-heading-560 .et_pb_text_inner > p {
  max-width: 560px;
}

/* Divi rows are `width: 80%`, so a Divi `max_width` can only CAP a row - it can
   never make one wider than 80% of the viewport. Both of these rows are wider
   than that in the design, so the width has to be set here too. */
@media (min-width: 981px) {
  .bi-testimonial-row.et_pb_row {
    width: calc(100% - 144px);
    max-width: 1296px;
  }
  .bi-portfolio.et_pb_row {
    width: calc(100% - 54px);
    max-width: 1386px;
  }
}

/* ---------- PORTFOLIO ROW ----------
   Figma puts the five cards at 18.45% with 1.93% gaps (a 9.6:1 card-to-gap
   ratio). Divi's gutter presets only offer 17.6%/3% (5.9:1), so the gaps come
   out ~55% too wide. Override just this row; mobile keeps Divi's stacking. */
@media (min-width: 981px) {
  /* Figma 5:37: five 258px cards with flat 24px gaps in a 1386px row. */
  .bi-portfolio.et_pb_row > .et_pb_column {
    width: calc((100% - 96px) / 5);
    margin-right: 24px;
  }
  /* Figma 4:6: three 416px testimonials with flat 24px gaps in a 1296px row. */
  .bi-testimonial-row.et_pb_row > .et_pb_column {
    width: calc((100% - 48px) / 3);
    margin-right: 24px;
  }
  .bi-testimonial-row.et_pb_row > .et_pb_column:last-child {
    margin-right: 0;
  }
  .bi-portfolio.et_pb_row > .et_pb_column:last-child {
    margin-right: 0;
  }
}

/* ---------- MOBILE: HEADER & FOOTER ----------
   Keep Divi's own column layout (rewriting it with flex blew up the logo and
   pushed the menu off-screen). Only correct the specific problems: an
   oversized logo, the social icon not sitting at the right edge, and the
   footer nav collapsing into a hamburger where plain links read better. */
@media (max-width: 980px) {
  .et-l--header .et_pb_image img,
  .et-l--footer .et_pb_image img {
    max-width: 140px;
    height: auto;
  }
  .et-l--header .et_pb_social_media_follow,
  .et-l--footer .et_pb_social_media_follow {
    text-align: right;
    margin-bottom: 0;
  }
  /* footer navigation: wrapped links, not a hamburger */
  .et-l--footer .et_pb_menu .et_mobile_nav_menu { display: none; }
  .et-l--footer .et_pb_menu .et_pb_menu__menu { display: block !important; }
  .et-l--footer .et_pb_menu__menu > nav > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
  }
  .et-l--footer .et_pb_menu__menu > nav > ul > li {
    margin: 0;
    float: none;
  }
  .et-l--footer .et_pb_menu__menu > nav > ul > li a { font-size: 13px; }
}

/* keep long content (e-mail addresses) inside its column on small screens */
@media (max-width: 980px) {
  .et_pb_blurb_description,
  .et_pb_blurb_description p {
    overflow-wrap: anywhere;
  }
}

/* Phones: stack the footer (logo / links / social) instead of squeezing the
   nav into a ~210px middle column. */
@media (max-width: 767px) {
  /* Divi renders this row as `display:flex`, so 100%-width children still sit
     side by side - drop it back to block so they stack. */
  .et-l--footer .et_pb_row--with-menu {
    display: block !important;
  }
  .et-l--footer .et_pb_row--with-menu > .et_pb_column {
    width: 100% !important;
    margin: 0 0 16px !important;
    float: none;
    text-align: center;
  }
  .et-l--footer .et_pb_row--with-menu > .et_pb_column:last-child {
    margin-bottom: 0 !important;
  }
  .et-l--footer .et_pb_image,
  .et-l--footer .et_pb_social_media_follow {
    text-align: center;
  }
  .et-l--footer .et_pb_image img { margin: 0 auto; }
  .et-l--footer .et_pb_menu__menu > nav > ul { justify-content: center; }
}

/* Mobile header: Divi renders the row as flex with 20/60/20 columns and puts
   the logo module at width:75%;text-align:center inside the narrow first
   column, which squeezes the logo and strands the hamburger mid-row.
   Size the three parts to their content instead: logo left, menu + social right. */
@media (max-width: 980px) {
  .et-l--header .et_pb_row--with-menu > .et_pb_column {
    width: auto !important;
    margin: 0 !important;
  }
  .et-l--header .et_pb_row--with-menu > .et_pb_column:nth-child(1) { flex: 0 0 auto; }
  .et-l--header .et_pb_row--with-menu > .et_pb_column:nth-child(2) { flex: 1 1 auto; }
  .et-l--header .et_pb_row--with-menu > .et_pb_column:nth-child(3) { flex: 0 0 auto; }

  .et-l--header .et_pb_image {
    width: auto !important;
    text-align: left;
    margin-bottom: 0;
  }
  .et-l--header .et_pb_image img { max-width: 130px; }

  /* hamburger hugs the right side of its column. The menu module is
     menu_style="centered", so float loses - align the container instead. */
  .et-l--header .et_pb_menu .et_pb_menu_inner_container,
  .et-l--header .et_pb_menu .et_pb_menu__wrap {
    text-align: right;
    justify-content: flex-end;
  }
  .et-l--header .et_pb_menu .et_mobile_nav_menu {
    float: none;
    display: inline-block;
    margin: 0;
  }
  .et-l--header .et_pb_menu,
  .et-l--header .et_pb_menu .et_pb_menu_inner_container { margin-bottom: 0; }

  .et-l--header .et_pb_social_media_follow { margin-left: 12px; }
  .et-l--header .et_pb_social_media_follow li { margin-bottom: 0; }
}


/* ---------- HEADER SIZE (Blendi: header is taller than the design) ----------
   The logo image was rendering ~45px tall and every header module carried
   Divi's default bottom margin, pushing the bar to 116px vs the design's ~79px. */
.et-l--header .et_pb_image img {
  /* Figma 1:3 puts a 36px logo in an 88px bar; this was 52px, which is what
     made the header 104px tall. */
  max-height: 36px;
  width: auto;
}
/* Divi centres the logo inside its 20% column (width:75%;text-align:center),
   which indented it; and the social module sat left inside the last column. */
@media (min-width: 981px) {
  .et-l--header .et_pb_image {
    width: auto !important;
    text-align: left;
  }
  .et-l--header .et_pb_social_media_follow {
    text-align: right;
  }
}
.et-l--header .et_pb_image,
.et-l--header .et_pb_menu,
.et-l--header .et_pb_menu .et_pb_menu_inner_container,
.et-l--header .et_pb_social_media_follow,
.et-l--header .et_pb_social_media_follow li {
  margin-bottom: 0 !important;
}
.et-l--header .et_pb_row {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* ---------- CONTACT PAGE ----------
   Blendi: "bane ma ne mes kontaktin se krejt nalt koka ngjit" - the block was
   pinned to the top with all the slack below it. #main-content already grows
   (sticky footer), so just centre its content. */
.page-id-45 #main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
