/* ==========================================================================
   JP Web Solutions - Responsive overrides
   Base styles in style.css target large screens (1400px and up).
   ========================================================================== */

/* Mobile */
@media (max-width: 767px) {
  .choose-box .title,
  .service-item .title,
  .process-item .title,
  .blog-item .title {
    font-size: 20px;
  }
  .container.jp-boxed {
    max-width: 767px;
  }
  .jp-hide-sm,
  .jp-hide-md {
    display: none;
  }

  /* Clients */
  .jp-clients {
    gap: 40px;
    padding-top: 70px;
  }

  /* Why */
  .jp-why {
    padding: 70px 0;
  }
  .jp-why .jp-boxed {
    gap: 35px;
  }
  .jp-heading-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
  }

  /* About */
  .jp-about {
    padding: 70px 0;
  }
  .jp-about-media {
    gap: 20px;
  }
  .jp-about-content {
    padding: 40px 20px;
    border-radius: 12px;
  }
  .about-el-content {
    background-color: var(--jp-accent);
  }
  .jp-about-content .sec-title {
    font-size: 32px;
  }
  .jp-funfacts {
    flex-direction: column;
    gap: 15px;
  }
  .jp-funfacts .about-funfact {
    width: 160px;
    max-width: 160px;
  }
  .jp-funfacts .jp-funfact-divider {
    width: 100%;
    max-width: 100%;
  }
  .jp-funfact-divider {
    padding: 15px 0 0;
    border-left: 0;
    border-top: 1px solid var(--jp-border);
  }
  .jp-about-circle {
    display: none;
  }

  /* Services */
  .jp-services {
    padding: 70px 0;
  }
  .jp-services-intro {
    padding-top: 0;
  }

  /* Tools */
  .jp-tools {
    gap: 30px;
    padding: 70px 15px;
  }

  /* Work */
  .jp-work {
    gap: 32px;
    padding: 70px 0;
  }

  /* Process */
  .jp-process {
    gap: 30px;
    padding: 70px 0;
  }

  /* FAQ */
  .jp-faq {
    padding-bottom: 70px;
  }
  .jp-faq-contact {
    width: 370px;
    max-width: 100%;
  }

  /* Contact */
  .jp-contact {
    padding: 70px 0;
  }
  .jp-contact-left {
    gap: 20px;
  }
  .jp-contact-infos {
    flex-wrap: wrap;
    gap: 20px;
  }
  .jp-contact-info-1,
  .jp-contact-info-2 {
    border-right: 0;
  }

  /* Insights */
  .jp-insights {
    padding: 70px 0;
  }
  .jp-insights .jp-boxed {
    gap: 30px;
  }

  /* Footer */
  .jp-cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
    border-radius: 12px;
    gap: 30px;
  }
  .jp-cta-heading,
  .jp-cta-form-area {
    width: 100%;
  }
  .jp-cta-title {
    font-size: 44px;
  }
  .jp-cta-form-area {
    gap: 20px;
  }
  .jp-footer-cols {
    padding: 70px 0 60px;
  }
  .jp-copyright-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 30px;
  }
  .jp-copyright::before {
    display: none;
  }
  .jp-copyright-row .copyright-menu ul {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 6px;
  }
  .jp-copyright-row .copyright-menu a {
    white-space: nowrap;
  }
  .jp-show-sm {
    display: flex;
    justify-content: center;
  }
  .client-content .sec-title {
    font-size: 16px;
  }
  .jp-tools {
    padding-left: 9px;
    padding-right: 9px;
  }
  .jp-w-270 {
    width: 330px;
    max-width: 100%;
  }
  .jp-footer-about .editor_text {
    width: 280px;
    max-width: 100%;
  }
}


/* Small phones: let the hero button text wrap instead of being cut off */
@media (max-width: 480px) {
  .banner-content .tj-primary-btn {
    font-size: 15px;
    padding-left: 22px;
    white-space: normal;
    text-align: left;
  }
  .banner-content .tj-primary-btn .btn-text span {
    text-shadow: none;
  }
}

/* ios */
@media (max-width: 340px) {
  .jp-cta-title {
    font-size: 36px;
  }
}

/* windows */
@media (min-width: 451px) and (max-width: 767px) {
}


/*tab portrait view*/
@media (min-width: 768px) and (max-width: 991px) {
  .jp-show-sm {
    display: flex;
    justify-content: center;
  }
  .choose-box .title,
  .service-item .title,
  .process-item .title,
  .blog-item .title {
    font-size: 22px;
  }
  .container.jp-boxed {
    max-width: 1054px;
  }
  .jp-hide-md {
    display: none;
  }

  /* Clients */
  .jp-clients {
    gap: 40px;
    padding-top: 70px;
  }

  /* Why */
  .jp-why {
    padding: 70px 0;
  }
  .jp-why .jp-boxed {
    gap: 30px;
  }
  .jp-heading-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .jp-heading-row .jp-heading-text {
    align-self: center;
  }
  .jp-why .jp-heading-550 {
    max-width: 450px;
  }
  .jp-work .jp-heading-550 {
    max-width: 412px;
  }

  /* About */
  .jp-about {
    padding: 70px 0;
  }
  .jp-about-media,
  .jp-about-content {
    width: 645px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .jp-about-media {
    gap: 15px;
  }
  .jp-about-content .sec-title {
    font-size: 40px;
  }

  /* Services */
  .jp-services {
    padding: 70px 0;
  }

  /* Tools */
  .jp-tools {
    gap: 30px;
    padding: 70px 15px;
  }

  /* Work */
  .jp-work {
    gap: 32px;
    padding: 70px 0;
  }

  /* Process */
  .jp-process {
    gap: 30px;
    padding: 70px 0;
  }

  /* FAQ */
  .jp-faq {
    padding-bottom: 70px;
  }

  /* Contact */
  .jp-contact {
    padding: 70px 0;
  }
  .jp-contact-left {
    gap: 20px;
  }
  .jp-contact-infos {
    flex-wrap: wrap;
    gap: 20px;
  }

  /* Insights */
  .jp-insights {
    padding: 70px 0;
  }
  .jp-insights .jp-boxed {
    gap: 30px;
  }

  /* Footer */
  .jp-cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
    border-radius: 12px;
    gap: 30px;
  }
  .jp-cta-heading {
    width: 500px;
  }
  .jp-cta-form-area {
    width: 550px;
  }
  .jp-footer-about .editor_text {
    width: 280px;
    max-width: 280px;
  }
  .jp-copyright::before {
    display: none;
  }
  .jp-copyright-row {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .jp-copyright-row .copyright-menu ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .jp-copyright-row .copyright-menu a {
    white-space: nowrap;
  }
}


/*tab landscape*/
@media (min-width: 992px) and (max-width: 1199px) {
  .jp-funfacts .about-funfact {
    width: 147px;
  }
  .jp-funfacts .jp-funfact-divider {
    width: 168px;
  }
  /* Clients */
  .jp-clients {
    gap: 50px;
    padding-top: 100px;
  }

  /* Why */
  .jp-why {
    padding: 100px 0;
  }
  .jp-why .jp-heading-550 {
    max-width: 450px;
  }
  .jp-work .jp-heading-550 {
    max-width: 430px;
  }

  /* About */
  .jp-about {
    padding: 100px 0;
  }
  .jp-about .container.jp-boxed {
    max-width: 1170px;
  }
  .jp-about-media {
    gap: 15px;
  }
  .jp-about-content {
    padding: 40px 30px;
    background-color: var(--jp-accent);
  }
  .about-el-content::before {
    display: none;
  }
  .jp-about-content .sec-title {
    font-size: 40px;
  }
  .jp-about-circle {
    right: 12px;
    bottom: 12px;
  }

  /* Services */
  .jp-services {
    padding: 100px 0;
  }

  /* Tools */
  .jp-tools {
    gap: 40px;
    padding: 100px 15px;
  }

  /* Work */
  .jp-work {
    gap: 40px;
    padding: 100px 0;
  }

  /* Process */
  .jp-process {
    gap: 40px;
    padding: 100px 0;
  }

  /* FAQ */
  .jp-faq {
    padding-bottom: 100px;
  }

  /* Contact */
  .jp-contact {
    padding: 100px 0;
  }
  .jp-contact-left {
    gap: 35px;
  }
  .jp-contact-infos {
    flex-wrap: wrap;
    gap: 15px;
  }
  .jp-contact-info-1,
  .jp-contact-info-2 {
    border-right: 0;
  }

  /* Insights */
  .jp-insights {
    padding: 100px 0;
  }
  .jp-insights .jp-boxed {
    gap: 40px;
  }

  /* Footer */
  .jp-cta-box {
    padding: 40px 30px;
  }
  .jp-cta-heading {
    width: 400px;
  }
  .jp-cta-title {
    font-size: 56px;
  }
  .jp-cta-form-area {
    width: 450px;
  }
  .jp-footer-about .editor_text {
    width: 280px;
    max-width: 280px;
  }
  .jp-copyright::before {
    right: 150px;
  }
}


/* Laptop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  /* Keep the main menu on one line */
  .mainmenu ul {
    gap: 20px;
  }
  .mainmenu ul > li > a {
    font-size: 15px;
    white-space: nowrap;
  }
  .jp-funfacts .about-funfact {
    width: 147px;
  }
  .jp-funfacts .jp-funfact-divider {
    width: 168px;
  }
  .jp-about .container.jp-boxed {
    max-width: 1170px;
  }
  .jp-about-content {
    padding: 40px 35px;
  }
  .jp-about-content .sec-title {
    font-size: 44px;
  }
  .jp-contact-infos {
    flex-wrap: wrap;
    gap: 15px;
  }
  .jp-contact-info-2 {
    border-right: 0;
  }
  .jp-cta-box {
    padding: 50px 40px;
  }
  .jp-cta-title {
    font-size: 62px;
  }
}


/* Small laptops: a little more room around the menu */
@media (min-width: 1200px) and (max-width: 1299px) {
  .mainmenu ul {
    gap: 12px;
  }
  .mainmenu ul > li > a {
    font-size: 14px;
  }
}

/* 1280 resolution */
@media (min-width: 1280px) and (max-width: 1365px) {
}


/* large screen */
@media (min-width: 1400px) {
  .jp-about-wrap {
    padding: 0 30px;
  }
}

@media (min-width: 1440px) and (max-width: 1599px) {
}

/*Large View*/
@media (min-width: 1600px) {
  .jp-sec-gap {
    padding: 0 30px;
  }
  .jp-top-space {
    padding-top: 30px;
  }
  .jp-footer-gap {
    padding: 0 30px 30px;
  }
}


@media (min-width: 1920px) {
}


/* ie */
@media all and (-ms-high-contrast:none) {
  .row {
    display: flex;
    flex-wrap: wrap;
  }
}

/* FireFox */
@-moz-document url-prefix() {
  .tj-select select {
    text-indent: 0.01px;
  }
}

/* QA fixes 2026-12-01 */
/* 2335: Scroll Up button must not cover FAQ toggles on laptops */
@media (min-width: 992px) and (max-width: 1440px) {
  .back-to-top-wrapper { right: 8px; }
  .back-to-top-wrapper .back_to_top_text { display: none; }
  .back-to-top-btn-show { bottom: 24px; }
}
/* 2342/2343: hero button. On hover the dark fill covered the text because the replacement text was missing. Keep the text visible (white) on hover, and stop it wrapping on phones. */
.carousel .tj-primary-btn:hover .btn-text span { transform: none; color: #fff; text-shadow: none; }
@media (max-width: 575px) {
  .btn-area .tj-primary-btn { max-width: 100%; padding-left: 16px; }
  .btn-area .tj-primary-btn .btn-text { white-space: nowrap; font-size: 13px; }
}
@media (max-width: 360px) {
  .btn-area .tj-primary-btn { gap: 6px; padding-left: 14px; }
  .btn-area .tj-primary-btn .btn-text { font-size: 11px; }
}

/* Trusted card: on phones and tablets it covered most of the hero slider image. Make it a small pill at the top-left. */
@media (max-width: 991px) {
  .banner-img-area .trusted { width: auto; max-width: calc(100% - 16px); padding: 8px 12px; gap: 6px; top: 8px; bottom: auto; left: 8px; border-radius: 30px; align-items: center; }
  .banner-img-area .trusted .icon { width: 22px; height: 22px; font-size: 14px; }
  .banner-img-area .trusted .text { font-size: 12px; line-height: 1.2; white-space: nowrap; }
}
@media (max-width: 360px) {
  .banner-img-area .trusted .text { font-size: 11px; }
}
/* Hero slider dots: sat on top of the image on phones/tablets. Leave room under the image so they sit below it. */
@media (max-width: 991px) {
  .carousel .banner-img-area { padding-bottom: 40px; }
}
/* 2345: contact block above the footer. The first column was fixed at 30% width, so the phone number and email were squeezed and broke across lines. Give it the full width below 1200px and never break the phone number or email. */
.jp-contact-infos a.contact-link { white-space: nowrap; }
@media (max-width: 1199px) {
  .jp-contact-info-1 { flex: 1 1 100%; width: 100%; max-width: 100%; }
}
/* Working hours: each line (Mon to Thu..., Fri...) must stay on one line. */
.jp-contact-info-3 .contact-link { white-space: nowrap; }
/* slightly smaller so the longer line fits its column without wrapping */
.jp-contact-info-3 .contact-link { font-size: 14px; }
@media (min-width: 1200px) {
  .jp-contact-info-3 .contact-link { font-size: 13px; }
}
/* Hero title sizes: 45px on phones and 60px on tablets were too big for the column and crowded the screen. Scale them with the screen instead. */
@media (max-width: 575px) {
  .carousel .banner-title { font-size: clamp(28px, 8.6vw, 38px); line-height: 1.12; letter-spacing: -0.03em; }
}
@media (min-width: 576px) and (max-width: 767px) {
  .carousel .banner-title { font-size: 42px; line-height: 1.12; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .carousel .banner-title { font-size: 52px; line-height: 1.12; }
}
/* Contact page title was 60px on phones (other pages use about 33px). */
@media (max-width: 575px) {
  .ct-page .ct-hero-title { font-size: clamp(30px, 9vw, 40px); line-height: 1.12; }
}
/* Hero buttons on phones: they stretched to the full width with a big empty gap between the text and the arrow (About page "Talk to Us" and the service pages). Size the button to its content instead. */
@media (max-width: 767px) {
  .wdd-page .wdd-hero-actions a.tj-primary-btn { width: auto; max-width: 100%; justify-content: center; }
}
/* Footer links: active state for the page you are on (2347). The template adds aria-current to the matching link. */
.widget-nav-menu ul li a[aria-current="page"] { color: var(--tj-color-heading-primary, #191a18); font-weight: 600; text-decoration: underline; text-decoration-color: var(--tj-color-theme-primary, #d3ed31); text-decoration-thickness: 2px; text-underline-offset: 5px; }
/* Filter chips (Our Work filters, FAQ topics): they sat in one row that scrolled sideways and cut the last chip off on phones. Let them wrap onto more lines instead. */
@media (max-width: 767px) {
  body .ow-filters { flex-wrap: wrap; overflow-x: visible; margin-right: 0; padding-bottom: 0; gap: 8px; }
  /* let each button grow to fill its row, so there is no empty space on the right */
  body .ow-filters button { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 991px) {
  body .fq-nav ul { flex-wrap: wrap; overflow-x: visible; }
}
/* Review cards: on phones the slider showed a strip of the next card. Show one full card at a time (still swipeable). */
@media (max-width: 767px) {
  body .cro-review-grid > .col { flex: 0 0 100%; max-width: 100%; }
}
/* Contact methods (Contact page) on phones: the copy button took a column of its own, squeezing the email addresses so they broke across lines. Put the button in the top-right corner of each row so the text gets the full width. */
@media (max-width: 575px) {
  body .ct-methods li { position: relative; align-items: flex-start; }
  body .ct-methods li .ct-method-icon { width: 44px; height: 44px; }
  body .ct-methods li .ct-copy { position: absolute; top: 12px; right: 0; }
  body .ct-methods li .ct-method-text small { padding-right: 44px; }
  body .ct-methods li:not(:last-child) .ct-method-text a { font-size: 16px; }
  body .ct-methods li .ct-copy { top: 10px; height: 28px; padding-top: 0; padding-bottom: 0; }
}
@media (max-width: 400px) {
  body .ct-methods li:not(:last-child) .ct-method-text a { font-size: 14.5px; }
}
/* Copy button (Contact page) on phones: it was reduced to a tiny, unclear icon. Show it as a proper pill with the word "Copy". */
@media (max-width: 767px) {
  body .ct-methods li .ct-copy span { display: inline; }
  body .ct-methods li .ct-copy i, body .ct-methods li .ct-copy.is-copied i { display: none; }
  body .ct-methods li .ct-copy::before { content: none; display: none; }
  body .ct-methods li .ct-copy { padding: 0 14px; height: 28px; min-width: 64px; justify-content: center; border-color: var(--jp-dark); background: var(--jp-white); font-size: 12px; line-height: 1; }
}
@media (max-width: 575px) {
  body .ct-methods li .ct-copy { top: 6px; height: 26px; }
  body .ct-methods li .ct-method-text small { padding-right: 76px; }
}
/* E-commerce hero mock-up on phones: the floating cards (new order, tracking sent, sales this week) sat on top of the shop and hid the prices. Stack them around the shop instead of floating over it. */
@media (max-width: 767px) {
  body .eco-hero-visual { display: flex; flex-wrap: wrap; gap: 12px; max-width: 100%; margin: 0 auto; padding: 0; }
  body .eco-hero-visual .eco-shop { order: 2; flex: 0 0 100%; }
  body .eco-hero-visual .eco-float { position: static; animation: none; padding: 10px 14px 10px 10px; gap: 10px; }
  body .eco-hero-visual .eco-float-order { order: 1; flex: 0 0 100%; }
  body .eco-hero-visual .eco-float-ship, body .eco-hero-visual .eco-float-sales { order: 3; flex: 1 1 140px; }
}
/* Project cards (home page slider) on phones: the arrow button dropped onto its own line under the title, leaving an empty gap on the right. Keep the title and arrow on one row; a long title wraps instead. */
@media (max-width: 767px) {
  body .project-item .project-content { flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; }
  body .project-item .project-content .content-inner { flex: 1 1 auto; min-width: 0; }
  body .project-item .project-content .title { max-width: none; }
  body .project-item .project-content .tj-icon-btn { flex: 0 0 auto; }
}
