/* Homepage-only 2026-10-31: UTM CTA and non-cropped EC cards. */
#fs-utm-entry,#fs-utm-entry *{box-sizing:border-box}
#fs-utm-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:25px;
 margin:23px 0 0;padding:27px 30px;border-radius:20px;border:1px solid #cfe4f8;
 background:linear-gradient(108deg,#f2f9ff 0%,#e9f5ff 62%,#d8ecff 100%);box-shadow:0 15px 32px #174c7d12;}
#fs-utm-entry .fs-utm-kicker {margin:0 0 9px;color:#1477d8;font-weight:850;font-size:11px;letter-spacing:.12em}
#fs-utm-entry h3 {margin:0 0 10px;color:#123e68;font-size:clamp(20px,2.3vw,28px);line-height:1.35;font-weight:900;letter-spacing:-.035em}
#fs-utm-entry .fs-utm-desc{margin:0;color:#466887;font-size:13px;line-height:1.85;max-width:780px}
#fs-utm-entry .fs-utm-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
#fs-utm-entry .fs-utm-action {display:inline-flex;align-items:center;justify-content:center;gap:11px;background:#086fe0;color:#fff;font-weight:850;font-size:13px;text-decoration:none;border-radius:10px;padding:15px 19px;min-height:49px;white-space:nowrap}
#fs-utm-entry .fs-utm-action:hover,#fs-utm-entry .fs-utm-action:focus-visible{background:#075dbb;color:white}
#fs-utm-entry .fs-utm-note{color:#67849f;font-size:10px;line-height:1.6;text-align:right}
/* Resolve 29% + 71% + gap overflow, especially on iPad and narrow laptops */
.ecommerce-section{overflow-x:clip}
.ecommerce-section .ecommerce-layout{grid-template-columns:minmax(0,29fr) minmax(0,71fr)!important;min-width:0;gap:22px!important}
.ecommerce-section .ecommerce-layout>*,.ecommerce-section .shop-grid,.ecommerce-section .shop-card,.ecommerce-section .shop-content{min-width:0;max-width:100%}
.ecommerce-section .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.ecommerce-section .shop-image{height:180px;min-height:0;background:#fff}
.ecommerce-section .shop-image img{display:block;width:100%;height:100%;object-fit:contain!important;object-position:center;background:#fff}
.ecommerce-section .shop-image.contain-image img{object-fit:contain!important}
.ecommerce-section .shop-content {overflow-wrap:anywhere;}
.ecommerce-section .shop-card {width:100%;overflow:hidden}
@media(max-width:1199px){
  .ecommerce-section .ecommerce-layout{grid-template-columns:minmax(0,1fr)!important;gap:29px!important;}
  .ecommerce-section .ec-intro{max-width:100%}
  .ecommerce-section .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ecommerce-section .shop-image{height:190px}
}
@media(max-width:800px){
  .ecommerce-section .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
  .ecommerce-section .shop-card:last-child{grid-column:1/-1;max-width:420px;justify-self:center}
}
@media(max-width:620px){
  #fs-utm-entry{grid-template-columns:1fr;padding:24px 20px;gap:17px}
  #fs-utm-entry .fs-utm-actions{align-items:stretch}
  #fs-utm-entry .fs-utm-note{text-align:left}
  .ecommerce-section .shop-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .ecommerce-section .shop-card{display:block!important;grid-template-columns:none!important;max-width:none!important}
  .ecommerce-section .shop-card:last-child{grid-column:auto;max-width:none}
  .ecommerce-section .shop-image{height:195px!important;min-height:0!important}
  .ecommerce-section .shop-content{padding:18px 18px 22px}
  .ecommerce-section .shop-content p{min-height:0}
}

/* ===============================================
   2026-10-31: iPad TOP hero + decorative text removal
   Only the public TOP page uses this stylesheet.
   DO NOT edit other pages or the contact form.
   =============================================== */

/* Remove the ornamental italic "Real Shop. Real Experience."
   from desktop, iPad and mobile. Shop cards are unchanged. */
body.fsb-home .ecommerce-section .ec-script,
body.fsb-home .ec-script,
.ecommerce-section .ec-script {
  display: none !important;
  visibility: hidden !important;
}

/* iPads: stop placing the headline on top of the photo's own writing.
   Put the existing heading/buttons first, then the unchanged photo.
   Desktop (>1200px) and smartphones (<768px) keep their prior hero. */
@media (min-width: 768px) and (max-width: 1200px) {
  body.fsb-home .fsb-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #fff 0%, #f8fcff 48%, #e9f6ff 100%) !important;
  }
  body.fsb-home .fsb-hero .fsb-hero-inner {
    order: 1 !important;
    position: relative !important;
    z-index: 2 !important;
    height: auto !important;
    min-width: 0 !important;
    width: 90% !important;
    max-width: 1504px !important;
    margin-inline: auto !important;
  }
  body.fsb-home .fsb-hero .fsb-hero-copy {
    width: 100% !important;
    max-width: 820px !important;
    padding: 38px 0 28px !important;
  }
  body.fsb-home .fsb-hero .fsb-title {
    font-size: clamp(43px, 5.5vw, 65px) !important;
    line-height: 1.24 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    margin: 20px 0 16px !important;
  }
  body.fsb-home .fsb-hero .fsb-lead {
    max-width: 760px !important;
  }
  body.fsb-home .fsb-hero .fsb-hero-picture {
    order: 2 !important;
    position: relative !important;
    z-index: 1 !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: clamp(345px, 49vw, 530px) !important;
    margin: 0 !important;
    min-height: 0 !important;
    align-self: auto !important;
    overflow: hidden !important;
  }
  body.fsb-home .fsb-hero .fsb-hero-picture picture,
  body.fsb-home .fsb-hero .fsb-hero-picture img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }
  body.fsb-home .fsb-hero .fsb-hero-picture img {
    object-fit: cover !important;
    object-position: 50% 64% !important;
  }
  /* Use the already-approved, text-free team photo on iPad only.
     This avoids cropping the decorative handwritten text in the desktop hero. */
  body.fsb-home .fsb-hero .fsb-hero-picture {
    background: url('company-team-meeting-20261025.webp') center 45% / cover no-repeat !important;
  }
  body.fsb-home .fsb-hero .fsb-hero-picture picture {
    display: none !important;
  }
  body.fsb-home .fsb-hero .fsb-hero-picture::after {
    background: linear-gradient(to bottom, #f8fcff 0%, rgba(248,252,255,.35) 8%, transparent 22%) !important;
  }
  body.fsb-home .fsb-hero .fsb-hero-left-decoration {
    display: none !important;
  }
}


/* ===============================================
   2026-10-31: iPad service-card image crop fix
   Goal: keep the current layout, but stop the 01-03 service thumbnails
   from being zoom-cropped on iPad widths.
   =============================================== */
@media (min-width: 768px) and (max-width: 1200px) {
  body.fsb-home .services-section .service-img,
  .services-section .service-img {
    height: auto !important;
    aspect-ratio: 1862 / 844 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #f4f9ff !important;
  }
  body.fsb-home .services-section .service-img img,
  .services-section .service-img img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #f4f9ff !important;
    transform: none !important;
  }
  body.fsb-home .services-section .service-card:hover .service-img img,
  .services-section .service-card:hover .service-img img {
    transform: none !important;
  }
}
