/* 2wd.dk as static pages: what the theme's scripts used to do (stretched rows, sliders, mobile menu),
   and the blocks that were plugins (slider, case grid, client logos, map), in the theme's own look. */

.body_wrap { overflow-x: clip; }

/* Visual Composer stretched rows: full width, content kept in the 1170px column. */
.wd-stretch { width: 100vw; position: relative; left: 50%; margin-left: -50vw !important; margin-right: 0 !important;
  padding-left: calc(50vw - 50% + 15px); padding-right: calc(50vw - 50% + 15px); box-sizing: border-box; }
.content .wd-stretch { padding-left: max(15px, calc(50vw - 600px)); padding-right: max(15px, calc(50vw - 600px)); }
.content .wd-stretch-full { padding-left: 0; padding-right: 0; }
.wd-stretch.vc_row-flex { display: flex; flex-wrap: wrap; }

/* The menu the theme's script used to reveal, and the menu row that stays on top while scrolling. */
.sc_layouts_menu.wd-menu { visibility: visible; }
.top_panel { position: relative; z-index: 100; }
.sc_layouts_row_fixed.sc_layouts_row_fixed_on { position: fixed; top: 0; left: 0; right: 0; z-index: 8100; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.header_position_over .sc_layouts_row_fixed_on { background-color: #161721 !important; }
.top_panel .sc_layouts_logo img { max-height: 60px; width: auto; }
.top_panel .sc_layouts_row_type_compact { padding: 0.6em 0; }
.sc_layouts_menu_nav { white-space: nowrap; }
.footer_wrap .wd-footer-links { text-align: center; margin: 0 0 .5em; }
.footer_wrap .wd-footer-links a { margin: 0 .8em; }
.wd-burger { display: none; }
.wd-burger a { font-size: 1.6em; }

/* Home slider: the three slides of the old Revolution Slider, one at a time. */
.wd-slider { position: relative; }
.wd-slides > .wd-slide { display: none; }
.wd-slides > .wd-slide.is-active { display: block; }
.wd-prev, .wd-next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; cursor: pointer; font-size: 0; z-index: 3; }
.wd-prev::before, .wd-next::before { font-family: 'fontello'; font-size: 18px; }
.wd-prev::before { content: '\2039'; font-family: inherit; font-size: 30px; line-height: 46px; }
.wd-next::before { content: '\203A'; font-family: inherit; font-size: 30px; line-height: 46px; }
.wd-prev { left: 20px; } .wd-next { right: 20px; }
.wd-prev:hover, .wd-next:hover { background: #00aeff; }
.wd-hero { width: 100vw; position: relative; left: 50%; margin-left: -50vw; }
.wd-hero-slide { min-height: 720px; background-size: cover; background-position: center; position: relative; }
.wd-hero-slide::before { content: ''; position: absolute; inset: 0; background: rgba(10,14,30,.35); }
.wd-hero-text { position: relative; max-width: 1170px; margin: 0 auto; padding: 250px 15px 140px; color: #fff; }
.wd-hero-slide { min-height: 800px; }
.wd-hero-text h1, .wd-hero-text h2 { color: #fff; font-size: 80px; line-height: 80px; letter-spacing: -1px; margin: 0 0 30px; max-width: 900px; }
.wd-hero-text p { color: rgba(255,255,255,.82); font-size: 18px; line-height: 27px; max-width: 620px; margin: 0 0 40px; }
.wd-hero-buttons .sc_button { margin-right: 15px; margin-bottom: 10px; }
.sc_button.wd-ghost { background: transparent !important; box-shadow: inset 0 0 0 2px #fff; }
.sc_button.wd-ghost-dark { background: transparent !important; color: #1f1f1f !important; box-shadow: inset 0 0 0 2px #00aeff; }

/* Testimonials: one at a time, with the customers' photos to pick another. */
.sc_testimonials .wd-slider { max-width: 870px; margin: 0 auto; text-align: center; }
.sc_testimonials .wd-prev, .sc_testimonials .wd-next { background: rgba(0,174,255,.15); color: #00aeff; }
.sc_testimonials .wd-prev { left: -70px; } .sc_testimonials .wd-next { right: -70px; }
.sc_testimonials_item_content { font-size: 1.25em; line-height: 1.6em; font-style: italic; }
.wd-thumbs { display: flex; justify-content: center; gap: 14px; margin-top: 2em; }
.wd-thumbs .slider-pagination-button { width: 60px; height: 60px; border-radius: 50%; border: 3px solid transparent; background-size: cover; background-position: center;
  cursor: pointer; opacity: .55; padding: 0; }
.wd-thumbs .slider-pagination-button.is-active { opacity: 1; border-color: #00aeff; }
.sc_testimonials_item_author_title { margin: 1.2em 0 .2em; }

/* Client logos, five in a row as in the old logo carousel. */
.wd-clients { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: #eaeaeb; border: 1px solid #eaeaeb; }
.wd-client { background: #fff; display: flex; align-items: center; justify-content: center; padding: 25px 20px; min-height: 120px; }
.wd-client img { max-height: 70px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .3s; }
.wd-client:hover img { filter: none; opacity: 1; }

/* Case grid (was Essential Grid): square tiles with the name on hover. */
.wd-cases { display: grid; grid-template-columns: repeat(4, 1fr); }
.wd-case { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #1f1f1f; }
.wd-case img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .5s; }
.wd-case-info { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 60%); }
.wd-case-cat { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #56c6fd; }
.wd-case-title { font-family: "Roboto Condensed", sans-serif; font-weight: 700; font-size: 1.6em; }
.wd-case:hover img { transform: scale(1.06); opacity: .8; }

/* Contact: the forms became e-mail and phone. */
.wd-contact-box.wd-center { text-align: center; }
.wd-contact-actions .sc_button { margin: 0 8px 10px 0; }
.wd-map { display: flex; align-items: center; justify-content: center; text-align: center;
  background: #f9faff linear-gradient(135deg, rgba(0,174,255,.10), rgba(86,198,253,.03)); }
.wd-map-card h4 { margin: .6em 0 .3em; }
.wd-map-card p { margin: 0 0 1.5em; }
.wd-map-pin { font-size: 48px; color: #00aeff; }
.contacts_info > span { display: block; margin-bottom: 1.2em; }
.contacts_info .label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #adadad; }

/* Integrations page. */
.wd-group { margin-top: 2.5em; margin-bottom: 1.5em; }
.wd-app { background: #fafafa; padding: 25px; height: 100%; box-sizing: border-box; }
.wd-app .sc_services_item_title { font-size: 1.15em; margin: 0 0 .5em; }
.wd-app p { margin: 0; }
.trx_addons_columns_wrap > [class*="trx_addons_column-"] { margin-bottom: 30px; }

.footer_wrap .sc_layouts_row_type_compact { padding: 1.5em 0; text-align: center; }
.footer_wrap .vc_wp_text { text-align: center; }

@media (min-width: 768px) and (max-width: 1279px) {
  .top_panel_custom_26 .wpb_column.vc_col-sm-6 { width: 75%; }
  .top_panel_custom_26 .wpb_column.vc_col-sm-3:last-child { display: none; }
  .top_panel_custom_26 .vc_custom_1505216470062 { padding-left: 2em !important; padding-right: 2em !important; }
  .top_panel .sc_layouts_menu_nav > li > a { padding-left: .9em !important; padding-right: .9em !important; }
  .wd-hero-text { padding-left: 90px; padding-right: 90px; }
}
@media (max-width: 1279px) {
  .wd-hero-text h1, .wd-hero-text h2 { font-size: 56px; line-height: 60px; }
  .sc_testimonials .wd-prev { left: 0; } .sc_testimonials .wd-next { right: 0; }
  .sc_testimonials .wd-slider { padding: 0 60px; }
}
@media (max-width: 1023px) {
  .wd-clients { grid-template-columns: repeat(3, 1fr); }
  .wd-cases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .wd-menu { display: none; }
  .wd-burger { display: block; }
  .wd-menu.is-open { display: block !important; position: fixed; inset: 0; max-height: none; z-index: 9000; background: #fff; padding: 80px 0 20px; overflow: auto; text-align: left; }
  .wd-menu.is-open .sc_layouts_menu_nav { display: block !important; height: auto !important; overflow: visible !important; white-space: normal; }
  .wd-menu.is-open .sc_layouts_menu_nav > li { display: block !important; visibility: visible !important; opacity: 1 !important; width: auto; float: none; margin: 0; }
  .wd-menu.is-open .sc_layouts_menu_nav > li > a { display: block; padding: 1em 24px !important; border-top: 1px solid #eaeaeb; color: #1f1f1f !important; font-size: 15px; }
  .wd-burger { position: relative; z-index: 9100; }
  body.wd-menu-open .wd-burger .sc_layouts_item_icon { color: #1f1f1f !important; }
  .top_panel .sc_layouts_row_fixed .vc_column-inner, .top_panel .sc_layouts_row_fixed .wpb_wrapper { position: static; }
  .top_panel .sc_layouts_row_fixed { position: relative; }
  .wd-hero-slide { min-height: 520px; }
  .wd-hero-text { padding: 170px 20px 80px; }
  .wd-burger a { font-size: 1em; }
  .wd-burger .sc_layouts_item_icon { font-size: 28px; }
  .wd-hero-text h1, .wd-hero-text h2 { font-size: 38px; line-height: 42px; }
  .wd-prev, .wd-next { display: none; }
  .sc_testimonials .wd-slider { padding: 0; }
  .wd-clients { grid-template-columns: repeat(2, 1fr); }
  .wd-cases { grid-template-columns: 1fr 1fr; }
  .wd-map { height: 320px !important; }
}
