/* =====================================================================
   SABAOTH FQ INSULATION LLC - services.css
   Pagina SERVICES (EN /services/ y ES /es/servicios/).
   V3 "THE SILVER STANDARD" - extiende base.css, no lo pisa.

   Estructura de la pagina
     .banner        banner de interior (estilos en base.css §10)
     .svc-credo     banda credo + INDICE ESTATICO de 11 placas (jamas sticky)
     .svc-block     cuerpo de servicios: unidades zigzag generosas (0720-a #9)
     .how           HOW WE WORK al punto medio (banda ink2)
     .anatomy       etapa penultima de valor: laminas de estudio sobre papel
     .cta-close     CTA de cierre sobre cta-band (scrim horneado)

   Reglas que obedece
     - compositor-only: aqui solo hay transition de color/border/opacity
       (exencion §12.12: subrayados de links); el transform es de GSAP
     - todo vw lleva techo px - imagenes con dims explicitas
     - naranja #FE7300 jamas como texto sobre claro (2.73:1 falla):
       en .anatomy el acento es superficie/linea, nunca letra
   ===================================================================== */

/* ---------------------------------------------------------------------
   0 - BANNER: el telefono del sub jamas se parte a mitad de numero
   --------------------------------------------------------------------- */
.sub-tel {
  white-space: nowrap; font-weight: 600; color: var(--paper);
  border-bottom: 2px solid var(--acc); padding-bottom: 1px;
}

/* ---------------------------------------------------------------------
   1 - CREDO + INDICE ESTATICO (0720-a #7: vive en su bloque)
   --------------------------------------------------------------------- */
.svc-credo { padding-bottom: 96px; }

.idx-board {
  margin-top: 10px;
  border-top: 1px solid var(--hair);
}
.idx-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 44px 1fr auto 28px;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  padding: 15px 4px;
  border-bottom: 1px solid var(--hair-soft);
}
.idx-row img {
  width: 44px; height: 33px;
  border: 1px solid var(--hair-soft); border-radius: 3px;
}
.idx-row .n {
  font-size: 11px; font-weight: 600; letter-spacing: .22em;
  color: var(--mut);
}
.idx-row .t {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(17px, 1.9vw, 26px); line-height: 1.05;
  text-transform: uppercase; letter-spacing: .012em; color: var(--soft);
  transition: color .25s var(--ease);
}
.idx-row .g {
  font-size: 10px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dim); white-space: nowrap;
  transition: color .25s var(--ease);
}
.idx-row .a {
  font-size: 15px; color: var(--dim); text-align: right;
  transition: color .25s var(--ease);
}
/* subrayado naranja que se enciende (exencion CSS de links, §12.12) */
.idx-row::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--acc);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.idx-row:hover::after, .idx-row:focus-visible::after { transform: scaleX(1); }
.idx-row:hover .t, .idx-row:focus-visible .t { color: var(--paper); }
.idx-row:hover .a, .idx-row:focus-visible .a { color: var(--acc); }
.idx-row:hover .g { color: var(--mut); }

/* ---------------------------------------------------------------------
   2 - CUERPO DE SERVICIOS: unidades zigzag generosas
   --------------------------------------------------------------------- */
.svc-block { background: var(--ink); padding: clamp(72px, 8vw, 120px) 0 clamp(40px, 5vw, 72px); }
.blk-head { margin-bottom: clamp(10px, 2vw, 26px); }
.blk-head .eyebrow { margin-bottom: 16px; }

.svc {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(28px, 4.6vw, 84px);
  align-items: center;
  padding: clamp(56px, 7vw, 96px) 0;
  min-height: clamp(420px, 58vh, 680px);       /* 0720-a #9: buen alto */
  border-top: 1px solid var(--hair-soft);
}
.svc:first-of-type { border-top: 0; }
.svc.flip .svc-media { order: 2; }
.svc.flip .svc-body { order: 1; }

/* numeral fantasma de la unidad (capa lenta, services.js la deriva) */
.svc-n {
  position: absolute; z-index: 0; top: clamp(20px, 3vw, 44px); right: -6px;
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(96px, 13vw, 210px); line-height: 1;
  color: #141417; letter-spacing: .01em; user-select: none;
  pointer-events: none;
}
.svc.flip .svc-n { right: auto; left: -6px; }

.svc-media, .svc-body { position: relative; z-index: 1; }

/* placa "Real work" con micro-parallax interior (img sobredimensionada) */
.svc .plate img {
  position: absolute; left: 0; top: -7%;
  width: 100%; height: 114%;
  object-fit: cover; will-change: transform;
}

/* placa SVG del sistema (servicios sin foto: no se finge nada) */
.svg-card {
  position: relative; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--hair-soft); background: #0D0D0F;
}
.svg-card img { width: 100%; height: auto; }
.svg-card span {
  position: absolute; left: 14px; bottom: 12px;
  background: rgba(10,10,11,.78); border-radius: 3px; padding: 7px 12px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--soft);
}

.svc-kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--mut); margin-bottom: 14px;
}
.svc-kicker b { color: var(--acc); font-weight: 800; }

.svc-title {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(30px, 3.4vw, 52px); line-height: 1.02;
  text-transform: uppercase; letter-spacing: .008em; color: var(--paper);
}
.svc-pitch {
  margin-top: 16px;
  font-size: 16.5px; font-weight: 600; line-height: 1.5; color: var(--paper);
  max-width: 46ch;
}
.svc-body .copy { margin-top: 12px; }

.svc-lbl {
  margin-top: 26px;
  font-size: 10px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--mut);
}
.svc-inc {
  margin-top: 12px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 9px clamp(16px, 2vw, 32px);
}
.svc-inc li {
  position: relative; padding-left: 24px;
  font-size: 13.5px; line-height: 1.5; color: var(--soft);
}
.svc-inc li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 14px; height: 2px; background: var(--acc);
}
.svc-body .chips { margin-top: 22px; }
.svc-cta { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   3 - HOW WE WORK (banda ink2 al punto medio, 0720-a #9)
   --------------------------------------------------------------------- */
.how { padding-bottom: 100px; }
.how-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 40px);
}
.step {
  border-top: 1px solid var(--hair);
  padding-top: 22px;
  position: relative;
}
.step::before {
  content: ''; position: absolute; left: 0; top: -1px;
  width: 44px; height: 3px; background: var(--acc);
}
.step b {
  display: block;
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(34px, 3.4vw, 48px); line-height: 1; color: var(--acc);
}
.step h3 { margin-top: 12px; }
.step p { margin-top: 10px; font-size: 13.5px; line-height: 1.65; color: #BDBDBB; max-width: 30ch; }

/* ---------------------------------------------------------------------
   4 - ANATOMIA (etapa penultima, momento claro: laminas sobre papel)
   Acento naranja SOLO como linea/superficie, jamas como texto (2.73:1).
   --------------------------------------------------------------------- */
.anatomy {
  background: var(--paper); color: var(--ink);
  padding: clamp(84px, 10vw, 130px) var(--gut);
  border-top: 3px solid var(--acc);
}
.anatomy .wrap { width: min(100%, var(--maxw)); }
.anat-head {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 3vw, 48px); align-items: end;
  margin-bottom: clamp(36px, 4.4vw, 60px);
}
.anatomy .eyebrow { grid-column: 1 / -1; color: #585858; }
.anat-h2 { color: var(--ink); }
.anat-copy { font-size: 15px; line-height: 1.7; color: #3A3A39; max-width: 52ch; }

.anat-grid {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(18px, 2.4vw, 36px);
  align-items: start;
}
.anat-card {
  background: #FFFFFF; border: 1px solid rgba(10,10,11,.12);
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(10,10,11,.10);
}
.anat-card img { width: 100%; height: auto; }
.anat-card figcaption {
  padding: 14px 18px;
  border-top: 1px solid rgba(10,10,11,.10);
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: #585858;
}
.anat-side { display: grid; gap: clamp(18px, 2.4vw, 36px); }
.anat-legend { display: grid; gap: 0; border-top: 1px solid rgba(10,10,11,.14); }
.anat-legend li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 15px 2px;
  border-bottom: 1px solid rgba(10,10,11,.10);
}
.anat-legend b {
  font-family: var(--disp); font-weight: 400;
  font-size: 24px; line-height: 1; color: var(--ink);
}
.anat-legend h3 {
  font-family: var(--disp); font-weight: 400;
  font-size: 17px; letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink);
}
.anat-legend p { margin-top: 4px; font-size: 13px; line-height: 1.55; color: #3A3A39; }
.anat-elbow { max-width: 320px; }

.anat-cta { margin-top: clamp(30px, 3.6vw, 48px); }
/* boton fantasma sobre papel: tinta, no papel */
.btn-onpaper { color: var(--ink); border-color: rgba(10,10,11,.30); }
.btn-onpaper:hover { border-color: var(--ink); }

/* ---------------------------------------------------------------------
   5 - CTA DE CIERRE (scrim horneado en cta-band, ASSETS §6)
   --------------------------------------------------------------------- */
.cta-close {
  position: relative; overflow: hidden; background: var(--ink3);
  min-height: clamp(420px, 58vh, 640px);
  display: flex; align-items: center;
}
.cta-media { position: absolute; inset: 0; }
.cta-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
}
.cta-inner { position: relative; z-index: 2; padding: clamp(72px, 9vw, 120px) 0; }
.cta-h2 { margin-top: 18px; font-size: clamp(44px, 5.8vw, 88px); }
.cta-sub {
  margin-top: 18px; max-width: 46ch;
  font-size: 15.5px; line-height: 1.65; color: var(--soft);
}
.cta-close .cta-row { margin-top: 34px; }

/* ---------------------------------------------------------------------
   6 - RESPONSIVE (5 breakpoints con ojos: 390/768/1440/1920/2560)
   --------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .svc { grid-template-columns: 1fr 1fr; }
  .svc-inc { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .anat-head { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 900px) {
  .svc {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    padding: clamp(44px, 8vw, 64px) 0;
  }
  .svc.flip .svc-media { order: 1; }
  .svc.flip .svc-body { order: 2; }
  .svc-n { font-size: clamp(84px, 22vw, 130px); top: 8px; }
  .svc.flip .svc-n { left: auto; right: -4px; }
  .svc-media { max-width: 560px; }
  .anat-grid { grid-template-columns: 1fr; }
  .anat-elbow { max-width: 420px; }
}

@media (max-width: 640px) {
  /* banner de contenido (no de altura fija): el crumb + eyebrow + H1 + sub
     apilados superan los 46vh y se metian bajo el nav; con flujo normal
     JAMAS se solapan, a cualquier ancho (320 incluido) */
  .banner { height: auto; min-height: 0; }
  .banner-content {
    position: relative;   /* en flujo, pero DENTRO del orden z (el scrim
                             pintaba encima del texto cuando era static) */
    inset: auto;
    padding: 128px var(--gut) 46px;
  }
  /* con el contenido fluyendo sobre el centro brillante de la foto, el
     scrim lateral de escritorio no alcanza: velo uniforme (0720-a #4) */
  .banner-scrim {
    background: linear-gradient(180deg, rgba(7,7,8,.82) 0%, rgba(7,7,8,.62) 45%, rgba(7,7,8,.78) 100%);
  }

  .svc-credo { padding-bottom: 72px; }
  .idx-row { grid-template-columns: 40px 34px 1fr 20px; }
  .idx-row .g { display: none; }
  .idx-row img { width: 34px; height: 26px; }
  .how-grid { grid-template-columns: 1fr; }
  .step p { max-width: none; }
  .svc-cta .btn { width: 100%; justify-content: center; text-align: center; white-space: normal; }
  .cta-close { min-height: 62vh; }
  .cta-h2 { font-size: clamp(38px, 11vw, 54px); }
  .anatomy { padding-left: var(--gut); padding-right: var(--gut); }
}

@media (max-width: 430px) {
  .svc-inc li { font-size: 13px; }
  .svc-title { font-size: clamp(27px, 8.4vw, 34px); }
  .idx-row .t { font-size: 15.5px; }
}

/* ---------------------------------------------------------------------
   7 - REDUCED MOTION: la pagina compone estatica (los hooks .rv/.hl los
   resuelve base.css; aqui solo lo propio de esta pagina)
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .idx-row::after { transition: none; }
  .idx-row .t, .idx-row .g, .idx-row .a { transition: none; }
  .svc .plate img { top: 0; height: 100%; }
}
