/*!
 * landing.css
 *
 * Styles for the public landing page (src/View/main.tpl) only.
 *
 * Page body rules are scoped under .lp, which wraps the landing page Content
 * block. The shared header and footer are outside .lp, so their rules are
 * scoped under .headerContainer--lp / .footer--lp instead -- two modifier
 * classes that header.tpl and footer.tpl only emit when $section is
 * _PAGE_MAIN. Nothing here can reach another page: the header, the footer and
 * the shared search widget keep their application.css appearance everywhere
 * else, including /search and the Creditreform-worldwide page, which reuse the
 * same markup.
 *
 * Loaded from the Head block of main.tpl, i.e. *before* application.css. Every
 * declaration that competes with an application.css rule therefore either
 * carries a higher specificity (.lp .foo beats .foo) or !important, so the link
 * order does not matter.
 */

/* -------------------------------------------------------------------------
 * Page shell
 * ---------------------------------------------------------------------- */
.lp {
  background: #fbfcfd;
  padding-bottom: 104px;
  color: #232933;
}

/* -------------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------------- */
.lp-hero {
  position: relative;
  /* The bottom padding is the spacer the product cards are pulled up into. */
  padding: 96px 0 136px;
  background: #f1f8ff;
  background: linear-gradient(180deg, #eef6fe 0%, #f6fbff 100%);
}

/* Photo band bleeding in from the right, faded out towards the copy.
   Sits at z-index 0 so .lp-hero__inner (position: relative, z-index auto)
   paints over it without opening a stacking context -- the advanced search
   panel inside the form has to keep competing with .modal-bg (z-index 995)
   in the stacking context of the body. */
.lp-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 46%;
  z-index: 0;
  overflow: hidden;
  background-image: url(../images/hero-landing.jpg);
  background-repeat: no-repeat;
  background-position: 58% 28%;
  background-size: cover;
}
.lp-hero__media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #f1f8ff 0%, rgba(241, 248, 255, 0.85) 22%, rgba(241, 248, 255, 0) 62%);
}

.lp-hero__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.lp-hero__title {
  font-family: "Open Sans", Helvetica, sans-serif;
  font-size: 52px;
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 !important;
  max-width: 15em;
  color: #004884 !important;
  text-align: left;
  text-wrap: balance;
}

.lp-hero__lead {
  font-size: 19px;
  line-height: 1.6;
  margin: 24px 0 0;
  max-width: 30em;
  color: #4c535e;
}

.lp-hero__search {
  margin: 44px 0 0;
  max-width: 900px;
}

/* -------------------------------------------------------------------------
 * Search widget -- markup comes from blocks/search-form.tpl, which /search
 * also includes, so these overrides stay scoped to .lp
 * ---------------------------------------------------------------------- */

/* No overflow: hidden here -- it would clip the country dropdown, which
   UI.Dropdown positions below the widget. The corners are rounded on the
   first and last child instead. */
.lp .search-widget_main {
  height: 62px;
  justify-content: flex-start;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(52, 72, 104, 0.12), 0 1px 0 #dadee5;
}

.lp .search-widget__country_main {
  border-right: 0;
  border-radius: 6px 0 0 6px;
  font-size: 16px;
  color: #323843;
}
.lp .search-widget__country_main:hover {
  background-color: #f5f8fb;
}
/* Inset divider in place of the full-height border. */
.lp .search-widget__country_main::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 0;
  bottom: 12px;
  width: 1px;
  background: #e3e8ef;
}
/* Flag chip. Matched via > .js--dropdown-icon, not .flag: the country links
   inside the dropdown are .flag.flag--xl too and need .flag--xl's padding to
   keep the flag beside their label rather than stretched behind it. */
.lp .search-widget__country_main > .js--dropdown-icon {
  flex: 0 0 auto;
  width: 24px !important;
  height: 17px !important;
  margin: 0 10px 0 20px !important;
  padding-left: 0 !important;
  border-radius: 2px;
  background-position: center !important;
  background-size: cover !important;
}

/* "Česká republika" is long enough to wrap inside the taller widget. */
.lp .search-widget__country_main span {
  font-weight: 600 !important;
  color: #323843;
  white-space: nowrap;
  padding-right: 30px;
  background-position: right 8px center;
}

.lp .search-widget__input_main {
  font-size: 16.5px;
  color: #232933;
  background-position: 18px 50%;
  background-size: 18px;
  padding-left: 48px;
}
.lp .search-widget__input_main::-webkit-input-placeholder {
  color: #9da5b1;
  font-weight: 400;
}
.lp .search-widget__input_main::-moz-placeholder {
  color: #9da5b1;
  font-weight: 400;
}
.lp .search-widget__input_main:-ms-input-placeholder {
  color: #9da5b1;
  font-weight: 400;
}
.lp .search-widget__input_main::placeholder {
  color: #9da5b1;
  font-weight: 400;
}

.lp .search-widget__btn_main {
  width: 68px;
  /* 1px over the widget's 62px, so no background shows under the button. */
  height: 63px;
  background-color: #009ee3;
  background-size: 24px;
  border-radius: 0 6px 6px 0;
}
.lp .search-widget__btn_main:hover,
.lp .search-widget__btn_main:active {
  background-color: #0086c3;
}

/* Advanced search link -- the template sets colour and size inline and .tar
   sets text-align: right !important, so these need !important to win. */
.lp .js--as {
  text-align: left !important;
  margin-top: 12px !important;
}
.lp .js--as a {
  color: #009ee3 !important;
  font-size: 14.5px !important;
  font-weight: 600;
}
.lp .js--as a:hover {
  color: #0086c3 !important;
}

/* .lp-hero__inner is a positioned ancestor of the form, which would re-anchor
   the absolutely positioned advanced-search panel to the hero. Pin it to the
   viewport instead -- that is where it already lands on every other page, and
   it is what the left/top: 50% + translate(-50%, -50%) on the panel expects. */
.lp .advancedSearch {
  position: fixed !important;
}

/* -------------------------------------------------------------------------
 * Product cards, lifted over the bottom of the hero
 * ---------------------------------------------------------------------- */
.lp-products {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: -84px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
}

.lp-card {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  padding: 40px 32px 44px;
  align-content: start;
  box-shadow: 0 6px 24px rgba(52, 72, 104, 0.06);
}

.lp-card__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: #e6f6fd;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-card__icon img {
  width: 48px;
  height: 48px;
  display: block;
}

.lp-card__title {
  font-family: "Open Sans", Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: #004884;
  text-align: center;
}

.lp-card__body p {
  font-size: 15.5px;
  line-height: 1.68;
  margin: 0 0 16px;
  color: #525864;
  text-align: left;
}
.lp-card__body p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */

/* Mobile (<=1024px) page rules. The header's own mobile rules live after the
   base header section further down. */
@media only screen and (max-width: 1024px) {
  /* body.mobile-view is padded by the 78px the single-row header used to be;
     the two header rows are 64 + 46 = 110px, so the page needs another 32px. */
  .lp {
    margin-top: 32px;
  }
  /* The design keeps the building icon in the field at every width;
     application.css blanks it below 1024px, so it is re-declared here. */
  .lp .search-widget__input_main {
    padding-left: 38px;
    background-image: url(../images/ico--building.svg);
    background-repeat: no-repeat;
    background-position: 12px 50%;
    background-size: 18px;
  }
}

@media only screen and (max-width: 900px) {
  .lp {
    padding-bottom: 72px;
  }
  .lp-hero {
    padding: 0 0 116px;
  }
  /* Once the columns collapse the photo sits above the copy as a band. */
  /* 240px on phones, growing with the width so wider screens do not crop
     the faces out of a letterbox strip. */
  .lp-hero__media {
    position: relative;
    left: auto;
    height: 240px;
    height: clamp(240px, 40vw, 360px);
  }
  .lp-hero__media::after {
    display: none;
  }
  .lp-hero__inner {
    padding: 32px 20px 0;
  }
  /* The design's 38px floor was set for a short mixed-case headline; the
     long uppercase slogan runs to five lines at that size. */
  .lp-hero__title {
    font-size: clamp(28px, 7.6vw, 40px);
    line-height: 1.1;
  }
  .lp-products {
    padding: 0 20px;
  }
  .lp-hero__lead {
    font-size: 17px;
    margin-top: 18px;
  }
  .lp-hero__search {
    margin-top: 28px;
  }
  .lp-products {
    gap: 20px;
  }
  .lp-card {
    padding: 32px 24px 36px;
  }
  /* The country label is .hide-mobile, so the button keeps the flag chip and
     carries the chevron itself. */
  .lp .search-widget__country_main {
    padding: 0 30px 0 14px;
    background-image: url(../images/ico--country-arrow.svg);
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px !important;
  }
  .lp .search-widget__country_main > .js--dropdown-icon {
    margin: 0 !important;
  }
  .lp .search-widget__btn_main {
    width: 56px;
  }
}

/* -------------------------------------------------------------------------
 * Header -- markup comes from header.tpl, which every page includes, so these
 * rules hang off .headerContainer--lp, the modifier that template only emits
 * on the landing page.
 * ---------------------------------------------------------------------- */
.headerContainer.headerContainer--lp {
  background: #fff;
  border-bottom: 1px solid #e0e5eb;
  box-shadow: 0 1px 2px rgba(56, 72, 99, 0.04);
}

/* Layout only from 1025px up. Below that application.css pins the header with
   position: fixed and pads body.mobile-view by exactly its 78px height, and
   .header__public-nav plus the JOIN and LOGIN buttons are display: none there
   anyway, so there is no desktop bar left to lay out. */
@media only screen and (min-width: 1025px) {
  .headerContainer.headerContainer--lp {
    position: sticky;
    top: 0;
    /* Above the page, below .modal-bg (995) and .dropdown (997), which sit
       outside this header in the body stacking context. */
    z-index: 30;
  }
  .headerContainer--lp .header {
    max-width: 1240px;
    margin: 0 auto;
    height: 76px;
    padding: 0 32px;
  }
  .headerContainer--lp .header__logo img {
    width: 200px;
  }
}

/* Public nav: its own row under the header bar, rendered for anonymous
   visitors only. .hide-mobile drops the whole row at <=1024px, where the
   header is position: fixed and body.mobile-view is padded by its height
   alone -- a second row there would sit on top of the page. */
.headerContainer--lp .header__nav-row {
  border-top: 1px solid #e8ebf1;
}
.headerContainer--lp .header__public-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 52px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.headerContainer--lp .header__public-nav a {
  font-size: 16px;
  font-weight: 600;
  color: #009ee3;
  text-decoration: none;
  transition: color 0.23s ease-in-out 0s;
}
.headerContainer--lp .header__public-nav a:hover {
  color: #0086c3;
}

/* The signed-in nav occupies the same slot, so give it the same type scale.
   The design has no signed-in state; the active underline is kept, recoloured. */
.headerContainer--lp .header__categories {
  margin-left: 40px;
}
.headerContainer--lp .header__categories div {
  margin-left: 0;
}
.headerContainer--lp .header__categories div + div {
  margin-left: 32px;
}
.headerContainer--lp .header__categories div > a {
  font-size: 16px;
  font-weight: 500;
  color: #323843;
}
.headerContainer--lp .header__categories div > a:hover,
.headerContainer--lp .header__categories div > a.is--active {
  box-shadow: inset 0 -3px 0 0 #009ee3;
  color: #009ee3;
}

/* Language selector: outlined button with a flag chip, the language code and a
   chevron. application.css draws it as a grey pill with a blue arrow, so the
   background is replaced wholesale -- the chevron is inlined to get the
   design's neutral stroke without adding an asset for one 9x6 icon. */
.headerContainer--lp .lngSelect {
  height: auto;
  align-items: center;
  border: 1px solid #dadee5;
  border-radius: 4px;
  padding: 6px 26px 6px 10px;
  /* 33px = the design's 10px gap + 6px + 1px divider + 6px + 10px gap, so the
     ::after below lands centred between this button and Login. */
  margin-right: 33px !important;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #3c434d;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6' fill='none'%3E%3Cpath d='M1 1l3.5 3.5L8 1' stroke='%233c434d' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 9px 6px;
}
.headerContainer--lp .lngSelect:hover,
.headerContainer--lp .lngSelect:active {
  background-color: #fff;
  border-color: #b5bfcb;
}
/* The divider between the language button and Login. .lngSelect carries .por,
   so it is already a containing block. */
.headerContainer--lp .lngSelect::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -17px;
  width: 1px;
  height: 26px;
  margin-top: -13px;
  background: #e0e5eb;
}
/* The flag div is 20x20 inline and picks up .flag--l's 35px left padding; the
   design wants a 20x14 chip, so size, padding and background are all retaken.
   Matched via > .js--dropdown-icon, not .flag: the language links inside the
   dropdown are .flag.flag--l too, and they need .flag--l's padding to keep the
   flag beside their label rather than stretched behind it. */
.headerContainer--lp .lngSelect > .js--dropdown-icon {
  width: 20px !important;
  height: 14px !important;
  padding-left: 0 !important;
  border-radius: 2px;
  flex: 0 0 auto;
  background-position: center !important;
  background-size: cover !important;
}
.headerContainer--lp .lngSelect__code {
  margin-left: 8px;
}
/* The design puts Login before Join; header.tpl renders JOIN first. Reordering
   with flex order keeps the shared markup untouched. Both land after
   .lngSelect, which stays at the default order 0 and keeps its margin-left:
   auto, so it still opens the gap that pushes this group right. */
.headerContainer--lp .btn--transparent-grey {
  order: 1;
  background: none;
  background-image: none;
  padding: 9px 6px !important;
  margin-right: 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: #3c434d;
}
.headerContainer--lp .btn--transparent-grey:hover,
.headerContainer--lp .btn--transparent-grey:active {
  background: none;
  color: #009ee3;
}
.headerContainer--lp .btn--green {
  order: 2;
  background: #009ee3;
  color: #fff;
  border-radius: 4px;
  padding: 11px 24px;
  margin-right: 0 !important;
  font-size: 15.5px;
  font-weight: 600;
}
.headerContainer--lp .btn--green:hover,
.headerContainer--lp .btn--green:active {
  background-color: #0086c3;
}

/* -------------------------------------------------------------------------
 * Header, mobile (<=1024px). application.css pins the header and hides the
 * desktop controls at this width, so the design's mobile chrome is retaken
 * here. Deliberately placed after the base header rules above: they share
 * specificity, so source order decides which wins.
 * ---------------------------------------------------------------------- */
@media only screen and (max-width: 1024px) {
  /* The nav row sits outside <header>, which application.css makes
     position: fixed -- it would scroll away under the bar. The container is
     pinned instead and the bar inside it returns to the flow, so both rows
     travel together. */
  .headerContainer.headerContainer--lp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 994;
    background: #fff;
  }
  .headerContainer--lp .header {
    position: static !important;
    height: 64px;
    padding: 0 32px;
    justify-content: flex-start !important;
  }
  /* margin-right is the minimum gap to the language button; .lngSelect's
     margin-left: auto adds any spare room on top. */
  .headerContainer--lp .header__logo {
    flex: 0 1 auto;
    min-width: 0;
    height: auto;
    margin-right: 12px;
  }
  .headerContainer--lp .header__logo img {
    display: block;
    width: 128px;
    max-width: 100%;
  }
  /* Invisible for anonymous visitors (.vh), but still taking space. */
  .headerContainer--lp .header__mobile-m.vh {
    display: none !important;
  }
  /* The design keeps Login and Join on mobile instead of the sign-in icon.
     .hide-mobile is display: none !important here, hence the !important. */
  .headerContainer--lp .header__mobile-signin {
    display: none !important;
  }
  .headerContainer--lp .btn--transparent-grey.hide-mobile,
  .headerContainer--lp .btn--green.hide-mobile {
    display: inline-flex !important;
    align-items: center;
  }
  .headerContainer--lp .btn--transparent-grey {
    margin-right: 6px;
  }
  .headerContainer--lp .btn--green {
    padding: 9px 16px;
    white-space: nowrap;
  }
  /* Language button shrinks to the code and its chevron. */
  /* margin-left: auto pushes the actions to the right edge; application.css
     resets it to 0 below 1023px. */
  .headerContainer--lp .lngSelect {
    margin-left: auto;
    margin-right: 8px !important;
    padding: 7px 26px 7px 10px;
  }
  .headerContainer--lp .lngSelect > .js--dropdown-icon {
    display: none !important;
  }
  .headerContainer--lp .lngSelect::after {
    display: none;
  }
  .headerContainer--lp .header__public-nav {
    height: 46px;
    gap: 24px;
    padding: 0 32px;
  }
  .headerContainer--lp .header__public-nav a {
    font-size: 15px;
    white-space: nowrap;
  }
}

@media only screen and (max-width: 900px) {
  .headerContainer--lp .header,
  .headerContainer--lp .header__public-nav {
    padding: 0 20px;
  }
}

/* Phones: the bar has to fit logo, language, Login and Join -- and the Czech
   labels ("Přihlásit", "Registrovat") run wider than the design's English
   ones -- so everything steps down once more. */
@media only screen and (max-width: 481px) {
  .headerContainer--lp .header {
    padding: 0 16px;
  }
  .headerContainer--lp .header__logo img {
    width: 120px;
  }
  .headerContainer--lp .lngSelect {
    margin-right: 4px !important;
    padding: 6px 22px 6px 8px;
    background-position: right 8px center;
    font-size: 13px;
  }
  .headerContainer--lp .btn--transparent-grey {
    padding: 8px 4px !important;
    margin-right: 4px;
    font-size: 13.5px;
  }
  .headerContainer--lp .btn--green {
    padding: 8px 10px;
    font-size: 13.5px;
  }
  .headerContainer--lp .header__public-nav {
    gap: 20px;
    padding: 0 16px;
  }
  .lp-hero__inner {
    padding: 28px 16px 0;
  }
  .lp-products {
    padding: 0 16px;
  }
  .headerContainer--lp .header__public-nav a {
    font-size: 14px;
  }
}

/* -------------------------------------------------------------------------
 * Footer -- same story as the header: scoped to .footer--lp, which footer.tpl
 * only emits on the landing page.
 * ---------------------------------------------------------------------- */
footer.footer--lp {
  background: #20242b;
  color: #d4d8dd;
}

/* .content-v100 sets max-width and padding with !important, and the <=1140px
   .content rule re-margins it, so all four have to be retaken here. */
.footer--lp .content.categories-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 48px 40px;
  max-width: 1240px !important;
  width: 100%;
  margin: 0 auto;
  padding: 72px 32px 40px !important;
}

.footer--lp .footer__address {
  margin-top: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: #c7cbd0;
}
.footer--lp .footer__address img {
  width: 190px;
  margin-bottom: 24px !important;
}
.footer--lp .footer__address a {
  color: #cdd1d6;
}
.footer--lp .footer__address a:hover {
  color: #fff;
  text-decoration: none;
}
/* Accents: the catalogue link -- the only <a> that is a direct child of the
   address column -- and the support address. */
.footer--lp .footer__address > a,
.footer--lp .footer__address a[href^="mailto:"] {
  color: #5cc4ee;
}
/* The template sets font-size: 11px inline on the catalogue link. */
.footer--lp .footer__address > a {
  display: inline-block;
  margin-top: 2px;
  font-size: 14px !important;
}

/* Flex rather than block, so the 12px rhythm does not collapse into the
   heading's own margin. */
.footer--lp ul.footer__address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer--lp ul.footer__address li {
  line-height: 1.6;
}
/* The list items carry 15px vertical padding inline. */
.footer--lp ul.footer__address li a {
  display: inline-block;
  padding: 0 !important;
}
.footer--lp .footer__heading {
  /* 12px gap + 10px = the design's 22px below the heading. */
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.footer--lp .footer__bottom {
  border-top: 1px solid #35383e;
}
.footer--lp .footer__bottom .content {
  max-width: 1240px !important;
  width: 100%;
  margin: 0 auto;
  padding: 22px 32px !important;
  font-size: 14px;
  color: #95999d;
}

@media only screen and (max-width: 900px) {
  .footer--lp .content.categories-footer {
    gap: 36px 24px;
    padding: 56px 20px 32px !important;
  }
  .footer--lp .footer__bottom .content {
    padding: 22px 20px !important;
  }
}

@media only screen and (max-width: 481px) {
  .footer--lp .content.categories-footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .footer--lp .footer__bottom .content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
