/* Sol Sol — styles for pages built on top of the Sun-Burn Webflow template.
   Uses the template's Onest type + brand colour (#079958).
   Desktop home layout is untouched; the only home changes here are
   mobile-only (<=767px) carousel/grid overrides at the bottom of this file. */

:root { --ss-line: #e6e8e6; --ss-ink: #0e1a12; --ss-muted: #5b665e; --ss-brand: #079958; --ss-surface: #f5f6f4; }

/* The template's body colour is near-white (#ededee) because its own sections
   re-declare text colour. Our pages sit on white, so force readable ink. */
.ss-page-head, .ss-filter, .ss-grid, .ss-detail, .ss-section, .ss-related, .ss-endcta,
.ss-page-head *, .ss-detail *, .ss-section *, .ss-related *, .ss-endcta * { color: var(--ss-ink); }
.section-about-header, .section-story, .section-number, .section-value,
.section-about-header *, .section-story *, .section-number *, .section-value *,
.section-contact, .section-contact *,
.section-service-details, .section-service-details * { color: var(--ss-ink); }
/* keep the template's own accent utilities working */
.text-color-brand, .ss-eyebrow, .ss-card__group, .ss-detail__group { color: var(--ss-brand); }
.text-color-white, .text-color-white-200, .text-color-white-300 { color: #fff; }
.ss-page-head .button, .ss-page-head .button *, .ss-section .button, .ss-section .button *,
.ss-endcta .button, .ss-endcta .button *, .ss-detail .button, .ss-detail .button * { color: #fff; }

/* ---------- page header ---------- */
.ss-page-head { padding: 180px 0 56px; }
.ss-page-head .ss-eyebrow { color: var(--ss-brand); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.ss-page-head h1 { max-width: 22ch; margin: 0; }
.ss-page-head p { max-width: 58ch; margin: 18px 0 0; color: var(--ss-muted); }
@media (max-width: 767px) { .ss-page-head { padding: 136px 0 40px; } }

/* ---------- filter bar ---------- */
.ss-filter { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0 40px; border-bottom: 1px solid var(--ss-line); margin-bottom: 44px; }
.ss-chip {
  appearance: none; border: 1px solid var(--ss-line); background: #fff; color: var(--ss-ink);
  font: inherit; font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none;
  display: inline-flex; align-items: center;
  padding: 11px 18px; border-radius: 999px; cursor: pointer; transition: all .18s ease;
}
.ss-chip:hover { border-color: var(--ss-ink); }
.ss-chip[aria-current="page"] { background: var(--ss-brand); border-color: var(--ss-brand); color: #fff; }
.ss-count { margin-left: auto; align-self: center; font-size: 13px; color: var(--ss-muted); }

/* ---------- pagination ---------- */
.ss-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.ss-pager__btn, .ss-pager__page {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--ss-line); background: #fff; color: var(--ss-ink);
  font-size: 14px; font-weight: 500; text-decoration: none; transition: all .15s ease;
}
.ss-pager__pages { display: flex; gap: 6px; margin: 0 6px; }
.ss-pager__page { min-width: 40px; padding: 0; }
.ss-pager a.ss-pager__btn:hover, .ss-pager a.ss-pager__page:hover { border-color: var(--ss-ink); }
.ss-pager__page.is-current { background: var(--ss-brand); border-color: var(--ss-brand); color: #fff; }
.ss-pager__btn.is-disabled { color: var(--ss-muted); opacity: .5; }
@media (max-width: 520px) { .ss-pager__btn { font-size: 13px; padding: 0 10px; } .ss-pager__pages { flex-wrap: wrap; justify-content: center; } }

/* ---------- product grid ---------- */
.ss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.ss-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--ss-line); border-radius: 18px; overflow: hidden;
  text-decoration: none; color: inherit; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ss-card:hover { border-color: color-mix(in srgb, var(--ss-brand) 45%, var(--ss-line)); transform: translateY(-3px); box-shadow: 0 14px 34px -22px rgba(14,26,18,.35); }
.ss-card__media { aspect-ratio: 4 / 3; background: var(--ss-surface); overflow: hidden; }
.ss-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .3s ease; }
.ss-card:hover .ss-card__media img { transform: scale(1.03); }
.ss-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ss-card__group { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ss-brand); }
.ss-card__name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.ss-card__summary { font-size: 13.5px; color: var(--ss-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ss-card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; }
.ss-card__cta { font-size: 13px; font-weight: 600; color: var(--ss-brand); }
.ss-card__tag { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--ss-muted); border: 1px solid var(--ss-line); border-radius: 5px; padding: 2px 6px; }

/* datasheet / manual links on the detail page */
.ss-docs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ss-doc {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  border: 1px solid var(--ss-line); border-radius: 12px; padding: 10px 16px;
  font-size: 14px; font-weight: 500; color: var(--ss-ink); transition: border-color .15s ease, background .15s ease;
}
.ss-doc:hover { border-color: var(--ss-brand); background: var(--ss-surface); }
.ss-doc__ico {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--ss-brand); color: #fff; font-size: 11px; font-weight: 700;
}

/* ---------- product detail ---------- */
.ss-detail { padding: 168px 0 96px; }
.ss-crumb { font-size: 13px; color: var(--ss-muted); margin-bottom: 28px; }
.ss-crumb a { color: var(--ss-muted); text-decoration: none; }
.ss-crumb a:hover { color: var(--ss-ink); }
.ss-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ss-gallery__main { aspect-ratio: 4 / 3; background: var(--ss-surface); border: 1px solid var(--ss-line); border-radius: 20px; display: flex; align-items: center; justify-content: center; padding: 32px; }
.ss-gallery__main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ss-gallery__thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.ss-gallery__thumbs button { width: 76px; height: 76px; border-radius: 12px; border: 1px solid var(--ss-line); background: var(--ss-surface); padding: 8px; cursor: pointer; transition: border-color .15s ease; }
.ss-gallery__thumbs button[aria-current="true"] { border-color: var(--ss-brand); }
.ss-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.ss-detail__group { color: var(--ss-brand); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.ss-detail__name { margin: 10px 0 6px; }
.ss-detail__ref { font-size: 13px; color: var(--ss-muted); }
.ss-detail__lead { margin: 18px 0 0; color: var(--ss-muted); }
.ss-detail__price { margin: 24px 0; font-size: 20px; font-weight: 700; }
.ss-detail__price small { display: block; font-size: 13px; font-weight: 500; color: var(--ss-muted); margin-top: 4px; }
.ss-specs { list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--ss-line); display: flex; flex-direction: column; gap: 10px; }
.ss-specs li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.55; }
.ss-specs li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--ss-brand); }
.ss-detail__desc { margin: 22px 0 0; color: var(--ss-muted); line-height: 1.7; }
.ss-cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.ss-btn-disabled {
  display: inline-flex; align-items: center; padding: 15px 28px; border-radius: 999px;
  background: var(--ss-surface); color: var(--ss-muted); font-weight: 600; font-size: 14px;
  border: 1px solid var(--ss-line); cursor: not-allowed;
}
.ss-cta-row a.ss-link { font-weight: 600; font-size: 14px; color: var(--ss-brand); text-decoration: none; }
.ss-cta-row a.ss-link:hover { text-decoration: underline; }

.ss-related { margin-top: 96px; }
.ss-related h2 { margin-bottom: 28px; }

@media (max-width: 991px) { .ss-detail__grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 767px) { .ss-detail { padding: 132px 0 64px; } }

/* ---------- réalisations ---------- */
.ss-section { padding: 64px 0; border-top: 1px solid var(--ss-line); }
.ss-section:first-of-type { border-top: 0; }
.ss-section__intro { max-width: 62ch; margin: 14px 0 34px; color: var(--ss-muted); }
.ss-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ss-gallery-grid figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--ss-surface); aspect-ratio: 4 / 3; }
.ss-gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ss-gallery-grid figure:hover img { transform: scale(1.05); }
.ss-feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.ss-feature__media { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ss-surface); }
.ss-feature__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .ss-feature { grid-template-columns: 1fr; gap: 22px; } }

.ss-endcta { text-align: center; padding: 72px 0 8px; }
.ss-endcta p { max-width: 48ch; margin: 12px auto 24px; color: var(--ss-muted); }

/* =====================================================================
   Responsive: 2-up catalogue on mobile, mobile carousels on the home
   showcase rows, and a footer that stacks cleanly.
   ===================================================================== */

/* ---- catalogue grids: 2 per row on phones (modern-app style) ---- */
@media (max-width: 720px) {
  .ss-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ss-card { border-radius: 14px; }
  .ss-card__body { padding: 12px 12px 14px; gap: 5px; }
  .ss-card__name { font-size: 14px; line-height: 1.25; }
  .ss-card__summary { font-size: 12px; -webkit-line-clamp: 3; }
  .ss-card__group { font-size: 10.5px; }
  .ss-card__price { font-size: 12.5px; padding-top: 6px; }
  .ss-gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ss-related .ss-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .ss-grid, .ss-related .ss-grid, .ss-gallery-grid { grid-template-columns: 1fr; }
}

/* ---- shared mobile carousel behaviour ---- */
@media (max-width: 767px) {
  .ss-carousel {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 10px;
    margin-inline: calc(-1 * var(--wf-pad, 0px));
    scrollbar-width: none;
  }
  .ss-carousel::-webkit-scrollbar { display: none; }
  .ss-carousel > * { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ---- HOME: turn the showcase rows into swipeable carousels on mobile ---- */
@media (max-width: 767px) {
  .service-collection-list,
  .product-bottom-content,
  .team-collection-list {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 12px;
    scrollbar-width: none;
    grid-template-columns: none !important;
  }
  .service-collection-list::-webkit-scrollbar,
  .product-bottom-content::-webkit-scrollbar,
  .team-collection-list::-webkit-scrollbar { display: none; }

  .service-collection-list > .service-collection-list-item { flex: 0 0 76%; scroll-snap-align: start; }
  .product-bottom-content > .product-collection-list-wrapper { flex: 0 0 76%; scroll-snap-align: start; }
  .team-collection-list > .team-collection-item { flex: 0 0 72%; scroll-snap-align: start; }

  .service-card { height: 19rem; }
}

/* ---- FOOTER: stack every column full-width on small screens ---- */
@media (max-width: 860px) {
  .footer-grid {
    display: flex !important;
    flex-direction: column;
    gap: 2rem !important;
  }
  .footer-link-wrapper,
  .footer-right-content-wrapper { width: 100% !important; }
}
.footer-link { line-height: 1.45; overflow-wrap: anywhere; }
.footer-link-item .footer-link { max-width: 34ch; }
@media (max-width: 600px) {
  .footer-bottom-content-wrapper { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-from { flex-direction: column; align-items: stretch; }
  .footer-from .w-button { width: 100%; }
}

/* =====================================================================
   .ss-carousel — reusable horizontal snap carousel (réalisations,
   product-detail gallery on mobile). Works with no JS; solsol.js adds
   arrows + desktop drag.
   ===================================================================== */
.ss-carousel { position: relative; }
.ss-carousel__track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 4px 2px 14px;
}
.ss-carousel__track::-webkit-scrollbar { display: none; }
.ss-carousel__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.ss-carousel__track > * { scroll-snap-align: start; flex: 0 0 clamp(240px, 32%, 340px); }
.ss-carousel.is-static .ss-carousel__track { justify-content: flex-start; }
.ss-carousel.is-static .ss-carousel__btn { display: none; }

.ss-carousel__btn {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ss-line); background: #fff; color: var(--ss-ink);
  font-size: 20px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -14px rgba(14,26,18,.4); transition: opacity .15s ease, background .15s ease;
}
.ss-carousel__btn:hover { background: var(--ss-surface); }
.ss-carousel__btn:disabled { opacity: 0; pointer-events: none; }
.ss-carousel__btn.is-prev { left: -8px; }
.ss-carousel__btn.is-next { right: -8px; }

.ss-carousel figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--ss-surface); aspect-ratio: 4 / 3; }
.ss-carousel figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ss-carousel figure:hover img { transform: scale(1.05); }

@media (max-width: 767px) {
  .ss-carousel__track > * { flex: 0 0 82%; }
  .ss-carousel__btn { display: none; }
}

/* ---- product-detail gallery: main+thumbs on desktop, swipe strip on mobile ---- */
.ss-gallery__strip { display: none; }
@media (max-width: 767px) {
  .ss-gallery__main, .ss-gallery__thumbs { display: none; }
  .ss-gallery__strip { display: block; }
  .ss-gallery__strip .ss-carousel__track > figure { flex: 0 0 86%; aspect-ratio: 1 / 1; background: var(--ss-surface); }
  .ss-gallery__strip .ss-carousel__track > figure img { object-fit: contain; padding: 20px; }
}

/* ---- HOME blog row → swipe carousel on mobile ---- */
@media (max-width: 767px) {
  .blog-bottom-content-wrapper {
    display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; gap: 14px; padding-bottom: 12px; scrollbar-width: none;
  }
  .blog-bottom-content-wrapper::-webkit-scrollbar { display: none; }
  .blog-bottom-content-wrapper > *,
  .blog-bottom-content-wrapper .blog-collection-list-wrapper,
  .blog-bottom-content-wrapper .blog-bottom-content,
  .blog-bottom-content-wrapper .blog-collection-list { display: contents; }
  .blog-bottom-content-wrapper .blog-collection-item { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ---------- service detail banner (fix awkward heading wrapping) ---------- */
.section-service-details .padding-section-large.is-header { padding-top: 148px; padding-bottom: 40px; }
.section-service-details .service-details-top-content-wrapper { width: auto; max-width: 46rem; }
.section-service-details .service-details-top-content { gap: 18px; }
.section-service-details .heading-style-h2 {
  font-size: clamp(2rem, 1.1rem + 3.4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: manual;
}
.section-service-details .service-details-top-content p { max-width: 54ch; }
.section-service-details .service-details-image-wrapper { max-height: 32rem; }
@media (max-width: 767px) {
  .section-service-details .padding-section-large.is-header { padding-top: 116px; }
}
