/* TINK HOME — Services page additions
   Keep css/style.css loaded first. This file only adds page-specific styles.
*/

.service-intro{
  background:#f2f5f5;
}

.service-intro-grid{
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:70px;
  align-items:end;
}

.service-lead{
  max-width:720px;
  font:500 clamp(24px,3vw,42px)/1.25 Manrope;
  letter-spacing:-.045em;
}

.service-intro-note{
  border-top:1px solid var(--line);
  padding-top:18px;
}

.service-intro-note span{
  display:block;
  font:700 9px Manrope;
  color:var(--blue);
  letter-spacing:.15em;
  margin-bottom:12px;
}

.service-intro-note p{
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
}

.service-detail{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:720px;
  background:#fff;
}

.service-detail-reverse .service-detail-image{
  order:2;
}

.service-detail-reverse .service-detail-content{
  order:1;
}

.service-detail-image{
  min-height:650px;
  overflow:hidden;
  background:#dfe5e7;
}

.service-detail-image img{
  transition:transform 1s cubic-bezier(.2,.7,.2,1);
  filter:saturate(.82);
}

.service-detail:hover .service-detail-image img{
  transform:scale(1.035);
}

.service-detail-content{
  padding:9vw 8vw;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.service-detail-content h2{
  font:700 clamp(45px,5.2vw,76px)/.94 Manrope;
  letter-spacing:-.065em;
  margin:20px 0 24px;
}

.service-detail-content h2 em{
  font-style:italic;
  color:var(--blue);
  font-weight:500;
}

.service-detail-content>p:not(.eyebrow){
  max-width:500px;
  color:var(--muted);
  font-size:14px;
  line-height:1.9;
}

.service-points{
  list-style:none;
  max-width:500px;
  margin:26px 0 30px;
  border-top:1px solid var(--line);
}

.service-points li{
  padding:14px 0;
  border-bottom:1px solid var(--line);
  font-size:11px;
  color:#344148;
}

.service-points li::before{
  content:"↗";
  color:var(--blue);
  margin-right:12px;
}

.service-detail-content .text-link{
  align-self:flex-start;
}

.service-feature{
  min-height:700px;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
  color:#fff;
}

.service-feature-media{
  position:absolute;
  inset:0;
}

.service-feature-media img{
  filter:brightness(.36) saturate(.68);
  transition:transform 1.2s ease;
}

.service-feature:hover .service-feature-media img{
  transform:scale(1.04);
}

.service-feature-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 65% 45%,rgba(5,12,16,.08),rgba(5,12,16,.75)),
    linear-gradient(90deg,rgba(5,12,16,.72),rgba(5,12,16,.16) 80%);
}

.service-feature-content{
  position:relative;
  z-index:2;
}

.service-feature-content h2{
  max-width:850px;
  font:700 clamp(50px,7vw,94px)/.9 Manrope;
  letter-spacing:-.07em;
  margin:22px 0;
}

.service-feature-content h2 em{
  color:#7bcaf1;
  font-style:italic;
  font-weight:500;
}

.service-feature-content>p:not(.eyebrow){
  max-width:570px;
  color:#c1cace;
  font-size:13px;
  line-height:1.9;
  margin-bottom:27px;
}

.process-section{
  background:#e9eef0;
}

.process-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.process-card{
  background:#fff;
  border:1px solid var(--line);
  min-height:270px;
  padding:25px;
  transition:.4s cubic-bezier(.2,.7,.2,1);
}

.process-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow);
}

.process-card>span{
  display:block;
  color:var(--blue);
  font:700 9px Manrope;
  letter-spacing:.15em;
  margin-bottom:65px;
}

.process-card h3{
  font:700 24px Manrope;
  letter-spacing:-.04em;
  margin-bottom:10px;
}

.process-card p{
  color:var(--muted);
  font-size:11px;
  line-height:1.75;
  max-width:260px;
}

@media(max-width:950px){
  .service-intro-grid{
    grid-template-columns:1fr;
    gap:35px;
  }

  .service-detail{
    grid-template-columns:1fr;
  }

  .service-detail-reverse .service-detail-image,
  .service-detail-reverse .service-detail-content{
    order:initial;
  }

  .service-detail-image{
    min-height:520px;
  }

  .service-detail-content{
    padding:75px 8vw;
  }

  .process-grid{
    grid-template-columns:1fr 1fr;
  }
}

/* ============================================
   Cinematic layer — grain, letterbox, colour grade
   ============================================ */

:root{
  --wood:#c9873f;
}

/* Fine film grain, reusable on any dark/media section that includes a .hero-grain div */
.hero-grain{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity:.09;
  /* no mix-blend-mode: blending this against the continuously-animating hero
     image forced a full recomposite every frame, which is what caused the
     scroll lag. Plain low opacity gives a similar grain look far more cheaply. */
  transform:translateZ(0);
}

/* Anamorphic letterbox bars — a single framing device, present only in the hero */
.cine-bars{position:absolute;inset:0;z-index:5;pointer-events:none}
.cine-bars i{
  position:absolute;left:0;right:0;height:0;background:#04070a;
  animation:barsIn 1.4s .3s cubic-bezier(.16,1,.3,1) forwards;
}
.cine-bars i:first-child{top:0}
.cine-bars i:last-child{bottom:0}
@keyframes barsIn{to{height:clamp(10px,3.4vw,34px)}}

/* Cursor-following spotlight — the one signature motion moment on this page */
.hero-spotlight{
  position:absolute;inset:0;z-index:2;pointer-events:none;
  background:radial-gradient(480px circle at var(--mx,62%) var(--my,45%),rgba(130,208,246,.14),transparent 62%);
  transition:background .25s ease-out;
}
.service-hero .hero-content,
.service-hero .hero-bottom{z-index:6}
.service-hero .hero-frame{z-index:4}

/* Subtle teal-shadow / warm-highlight grade on every detail image, like a colour pass */
.service-detail-image{position:relative}
.service-detail-image::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(155deg,rgba(8,50,68,.20) 0%,transparent 45%,rgba(160,102,45,.14) 100%);
  mix-blend-mode:multiply;
}

/* Dolly-style reveal for detail images: a slow push-in instead of a slide-up */
.service-detail-image.reveal{
  opacity:0;transform:scale(1.09);
  transition:opacity 1s ease,transform 1.3s cubic-bezier(.16,1,.3,1);
}
.service-detail-image.reveal.visible{opacity:1;transform:none}

/* Decorative chapter numerals — pure art direction, not a reading order */
.service-detail{position:relative;isolation:isolate}
.chapter-mark{
  position:absolute;top:6%;
  font:800 clamp(160px,19vw,320px) Manrope;
  letter-spacing:-.05em;
  color:transparent;
  -webkit-text-stroke:1px rgba(11,17,21,.07);
  z-index:0;pointer-events:none;
  line-height:1;
}
.service-detail:not(.service-detail-reverse) .chapter-mark{right:4%}
.service-detail-reverse .chapter-mark{left:4%}
.service-detail-content,.service-detail-image{position:relative;z-index:1}

@media(max-width:950px){
  .chapter-mark{display:none}
  .cine-bars i{animation-duration:1s}
}

@media(prefers-reduced-motion:reduce){
  .cine-bars i{animation:none;height:clamp(10px,3.4vw,34px)}
  .service-detail-image.reveal{transition:opacity .3s ease}
  .hero-spotlight{display:none}
}

@media(max-width:600px){
  .service-intro-grid{
    gap:28px;
  }

  .service-lead{
    font-size:27px;
  }

  .service-detail-image{
    min-height:420px;
  }

  .service-detail-content{
    padding:65px 25px;
  }

  .service-detail-content h2{
    font-size:49px;
  }

  .service-feature{
    min-height:620px;
  }

  .service-feature-content h2{
    font-size:50px;
  }

  .process-grid{
    grid-template-columns:1fr;
  }

  .process-card{
    min-height:230px;
  }

  .process-card>span{
    margin-bottom:45px;
  }
}

/* =========================================================
   SUR MESURE — SLIDESHOW & HOVER ZOOM
   ========================================================= */

.service-feature-media.service-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #111;
}

/* Every slideshow image */
.service-feature-media.service-slideshow .slideshow-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  filter: brightness(.36) saturate(.68);
  transition: opacity .9s ease, transform 2.8s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}

/* First / active image */
.service-feature-media.service-slideshow .slideshow-image.active {
  opacity: 1;
  transform: scale(1);
}

/* Slow cinematic zoom while visible */
.service-feature:hover .service-feature-media.service-slideshow .slideshow-image.active {
  transform: scale(1.045);
}

/* =========================================================
   SERVICE CARDS — SECONDARY GALLERY BUTTON
   Keeps the existing "Parler..." CTA and adds a more visible
   path to the dedicated service gallery page.
   ========================================================= */
.service-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:18px;
  margin-top:28px;
}
.service-actions .text-link{margin-top:0}
.service-view-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  min-height:52px;
  padding:14px 20px;
  background:var(--blue);
  color:#fff;
  border:1px solid var(--blue);
  font:700 9px Manrope,sans-serif;
  letter-spacing:.06em;
  text-transform:uppercase;
  transition:.3s;
  box-shadow:0 12px 30px rgba(8,123,193,.16);
}
.service-view-btn span{font-size:15px}
.service-view-btn:hover{
  background:var(--ink);
  border-color:var(--ink);
  transform:translateY(-3px);
  box-shadow:0 18px 38px rgba(6,30,43,.18);
}
.service-actions-feature{
  margin-top:0;
}
.service-view-btn-light{
  background:transparent;
  border-color:rgba(255,255,255,.4);
  box-shadow:none;
}
.service-view-btn-light:hover{
  background:#fff;
  border-color:#fff;
  color:var(--ink);
}
@media(max-width:600px){
  .service-actions{align-items:stretch}
  .service-actions .text-link,.service-view-btn{width:100%}
}

