/*
 Theme Name:   Printy Child Theme
 Theme URI:    https://printy.themerex.net/
 Description:  Printy Child Theme
 Author:       ThemeREX
 Author URI:   https://themerex.net/
 Template:     printy
 Version:      1.0
 Tags:         flexible-header, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, microformats, post-formats, theme-options, threaded-comments, translation-ready
 Text Domain:  printy
*/


/* =Theme customization starts here
------------------------------------------------------------ */
[class*="scheme_"],
body[class*="scheme_"] {
  color: #002145;
}

.sc_layouts_panel_menu_close {
  top: 40px !important;
  right: 73px !important;

  @media (max-width: 768px) {
    top: 30px !important;
  }

  @media (max-width: 640px) {
    top: 28px !important;
    right: 20px !important;
  }

  .sc_layouts_panel_menu_close_text {
    display: none;
  }

  .sc_layouts_panel_menu_close_icon::before {
    font-size: 30px;

    @media (max-width: 640px) {
      font-size: 20px;
    }
  }
}

.page_content_wrap {
  padding-top: 0;
  padding-bottom: 0;
}

.content_wrap, .content_container {
  width: auto;
}

.hp-case-studies {
  @media(min-width: 640px) {
    .e-loop-item:nth-child(even) {
      margin-top: 150px;
    }
  }
}

.sc_portfolio.sc_portfolio_extra .sc_portfolio_item .post_featured .post_info {
  --theme-color-text_link2: #fff;
  --theme-color-inverse_link: #002145;
}

.sc_portfolio_default .sc_portfolio_item, .sc_portfolio_fill .sc_portfolio_item, .sc_portfolio_extra .sc_portfolio_item {
  border-radius: 60px;
}

.frm_forms {
  --bg-color-active: transparent;
  --border-color-active: #fff;
  --label-color: #fff;
  --field-pad: 10px 0;
  --text-color: #fff;
  --field-font-size: 16px;

  .frm_form_field {
    > label {
      padding: 0;
      top: calc(10px + .5 * var(--field-height));
    }

    input,
    textarea {
      border: none;
      border-bottom: 1px solid #fff;
    }

    * {
      box-shadow: none !important;
    }

    /* Error state — footer má růžovo-oranžový přechod, default červená i bílá
       v něm zaniká. Tmavě modrá #002145 je on-brand a dobře kontrastuje. */
    &.frm_blank_field,
    &.frm_invalid_field {
      input,
      textarea {
        border-bottom-color: #002145;
        border-bottom-width: 2px;
      }
    }

    .frm_error {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 6px;
      color: #002145;
      font-size: 14px;
      font-weight: 700;

      &::before {
        content: "⚠";
        font-size: 16px;
        line-height: 1;
      }
    }
  }

  /* Souhrnná chybová hláška nad formulářem */
  .frm_error_style {
    background: #002145;
    border: none;
    border-radius: 8px;
    padding: 14px 18px;
    color: #fff;
  }

  .frm_submit {
    button.frm_button_submit {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      background: #fff;
      width: 230px;
      height: 74px;
      border-radius: 50px;
      color: #E93F5E;
      font-size: 21px;

      &::after {
        content: "";
        flex: 0 0 auto;
        width: 25px;
        height: 13px;
        background-color: currentColor;
        -webkit-mask: url(img/icon-arrow-right-2.svg) no-repeat center / contain;
        mask: url(img/icon-arrow-right-2.svg) no-repeat center / contain;
      }

      &:hover {
        background: #E93F5E;
        color: #fff;
      }
    }
  }
}

/* Portfolio widget (trx_sc_portfolio) — fix overlap on phones.
   Its Elementor container is a flex column. On phones the portfolio grid reflows
   to a single column and grows tall, but a flex quirk collapses the widget (flex
   item) to a fraction of its content height; the rest overflows and overlaps the
   next section. Switching the container to block flow on phones lets it grow to
   content. Tablet/desktop keep the flex layout (no overflow there). Verified via
   headless Chrome at 390/600/767px (fixed) and 768/820/1280px (unchanged). */
@media (max-width: 767px) {
  .e-con:has(> .elementor-widget-trx_sc_portfolio) {
    display: block !important;
  }
}

/* Portfolio widget (trx_sc_portfolio, "Extra" layout) — per-widget toggles.
   Add the class in Elementor → widget → Advanced → CSS Classes. Combinable. */

/* portfolio-no-links — make items non-clickable: neutralizes every link inside
   an item (the full-thumb overlay, the title link and the category links). The
   anchors stay in the DOM (markup/SEO unchanged) but no longer react to clicks. */
.elementor-widget-trx_sc_portfolio.portfolio-no-links .sc_portfolio_item a {
  pointer-events: none;
  cursor: default;
}

/* portfolio-no-categories — hide the category row shown under each item. */
.elementor-widget-trx_sc_portfolio.portfolio-no-categories .sc_portfolio_item .post_meta {
  display: none;
}
/* Carousel widget (Elementor Pro nested-carousel) — continuous, non-stopping
   autoplay. Add the "smooth-marquee" class in Elementor → widget → Advanced →
   CSS Classes; the rest (autoplay delay 0, long transition) is set on the live
   Swiper instance in js/carousel-smooth-scroll.js — see that file for the
   required widget settings and the --marquee-speed override. Linear timing is
   the half that has to be CSS: it kills the ease-out that makes the carousel
   look like it freezes at the end of every slide. */
.smooth-marquee .e-n-carousel > .swiper-wrapper {
  transition-timing-function: linear !important;
}
