/* ═══ AD PRINT — TRANZIȚII TEMATICE PRINT ═══
   Half-tone, CMYK split, paper-feed, crop marks, print roller progress.
   Toate efectele respectă prefers-reduced-motion. */

/* ─── 1. PRINT ROLLER — bara de progres din top ─── */
.ap-print-progress{
  position:fixed; top:0; left:0; right:0; height:3px;
  background:rgba(243,146,0,.08);
  z-index:200; pointer-events:none;
}
.ap-print-progress-bar{
  height:100%;
  background:linear-gradient(90deg,#fab13c 0%,#f39200 60%,#d97e00 100%);
  width:0%;
  transition:width .12s linear;
  position:relative;
  box-shadow:0 0 12px rgba(243,146,0,.5);
}
.ap-print-progress-bar::after{
  content:""; position:absolute; right:-6px; top:-4px;
  width:12px; height:12px; border-radius:50%;
  background:radial-gradient(circle at 35% 35%, #fff 0%, #fab13c 30%, #d97e00 100%);
  box-shadow:0 0 14px rgba(243,146,0,.9), 0 2px 6px rgba(0,0,0,.2);
}

/* ─── 2. HALF-TONE DOTS pe hero ─── */
.ap-halftone{
  position:absolute; inset:0; z-index:4;
  background-image:radial-gradient(circle, rgba(0,0,0,.55) 1px, transparent 1.6px);
  background-size:5px 5px;
  mix-blend-mode:multiply;
  opacity:.18;
  pointer-events:none;
  -webkit-mask-image:linear-gradient(135deg, transparent 0%, transparent 30%, rgba(0,0,0,.7) 55%, rgba(0,0,0,1) 80%);
          mask-image:linear-gradient(135deg, transparent 0%, transparent 30%, rgba(0,0,0,.7) 55%, rgba(0,0,0,1) 80%);
}

/* CMYK side-stripe pe hero — barbecue print test */
.ap-cmyk-stripe{
  position:absolute; left:0; bottom:0;
  height:6px; width:100%;
  z-index:5; pointer-events:none;
  background:linear-gradient(90deg,
    #00aeef 0%, #00aeef 25%,
    #ec008c 25%, #ec008c 50%,
    #fff200 50%, #fff200 75%,
    #1a1a1a 75%, #1a1a1a 100%);
  opacity:.85;
}

/* ─── 3. CMYK SPLIT pe titluri (animație la reveal) ─── */
@keyframes apCmykSplit{
  0%{
    text-shadow:
      -10px 0 0 rgba(0,174,239,.85),
      10px 0 0 rgba(236,0,140,.85),
      0 -8px 0 rgba(255,242,0,.85);
    opacity:0;
    transform:translateY(8px);
    letter-spacing:.06em;
  }
  35%{
    text-shadow:
      -5px 0 0 rgba(0,174,239,.55),
      5px 0 0 rgba(236,0,140,.55),
      0 -4px 0 rgba(255,242,0,.55);
    opacity:1;
  }
  70%{
    text-shadow:
      -1px 0 0 rgba(0,174,239,.25),
      1px 0 0 rgba(236,0,140,.25),
      0 -1px 0 rgba(255,242,0,.25);
  }
  100%{
    text-shadow:none;
    opacity:1;
    transform:translateY(0);
    letter-spacing:.02em;
  }
}
.ap-cmyk-title.is-in{
  animation:apCmykSplit .9s cubic-bezier(.2,.8,.3,1) both;
  display:inline-block;
}

/* ─── 4. CROP MARKS — colțuri decorative pe secțiuni ─── */
.ap-section{
  position:relative;
}
.ap-section .ap-crop{
  position:absolute; width:24px; height:24px; pointer-events:none;
  opacity:0; transition:opacity .6s ease .2s;
}
.ap-section.is-in .ap-crop{ opacity:.55; }
.ap-section.is-dark .ap-crop{ filter:invert(1) brightness(1.5); opacity:.35; }
.ap-crop::before, .ap-crop::after{
  content:""; position:absolute; background:#1a1a1a;
}
.ap-crop::before{ top:0; left:0; width:100%; height:1.5px; }
.ap-crop::after{ top:0; left:0; width:1.5px; height:100%; }
.ap-crop-tl{ top:18px; left:18px; }
.ap-crop-tr{ top:18px; right:18px; transform:scaleX(-1); }
.ap-crop-bl{ bottom:18px; left:18px; transform:scaleY(-1); }
.ap-crop-br{ bottom:18px; right:18px; transform:scale(-1,-1); }

/* ─── 5. PAPER-FEED reveal — cardurile alunecă ca foile dintr-o imprimantă ─── */
.ap-paper-feed{
  opacity:0;
  transform:translateY(-30px);
  transition:opacity .7s cubic-bezier(.25,.8,.25,1), transform .9s cubic-bezier(.25,.8,.25,1);
  position:relative;
}
.ap-paper-feed::before{
  content:""; position:absolute; left:0; right:0; top:-2px;
  height:3px;
  background:linear-gradient(180deg, rgba(0,0,0,.18), transparent);
  opacity:0;
  transition:opacity .4s ease;
  pointer-events:none;
}
.ap-paper-feed.is-in{
  opacity:1;
  transform:translateY(0);
}
.ap-paper-feed.is-in::before{
  opacity:1;
  animation:apPaperShadowFade 1.2s ease forwards;
}
@keyframes apPaperShadowFade{
  0%{ opacity:1; }
  60%{ opacity:1; }
  100%{ opacity:0; }
}
.ap-paper-feed[data-feed="2"]{ transition-delay:.1s; }
.ap-paper-feed[data-feed="3"]{ transition-delay:.2s; }
.ap-paper-feed[data-feed="4"]{ transition-delay:.3s; }
.ap-paper-feed[data-feed="5"]{ transition-delay:.4s; }
.ap-paper-feed[data-feed="6"]{ transition-delay:.5s; }

/* ─── 6. PRINT ROLLER SWEEP — bară orange care "tipărește" secțiunea servicii ─── */
.ap-roller-sweep{
  position:relative;
  overflow:hidden;
}
.ap-roller-sweep::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  left:-30%;
  width:30%;
  background:linear-gradient(90deg,
    transparent 0%,
    rgba(243,146,0,.0) 20%,
    rgba(243,146,0,.18) 50%,
    rgba(243,146,0,.0) 80%,
    transparent 100%);
  pointer-events:none;
  opacity:0;
  z-index:2;
}
.ap-roller-sweep.is-in::after{
  animation:apRollerSweep 1.6s cubic-bezier(.45,0,.55,1) .2s forwards;
}
@keyframes apRollerSweep{
  0%{ left:-30%; opacity:0; }
  10%{ opacity:1; }
  90%{ opacity:1; }
  100%{ left:130%; opacity:0; }
}

/* ─── 7. PAPER FOLD — secțiunea contact se "deschide" ca o broșură ─── */
.ap-paper-fold{
  perspective:1400px;
}
.ap-paper-fold-content{
  transform-origin:top center;
  transform:rotateX(-15deg);
  opacity:0;
  transition:transform 1.1s cubic-bezier(.2,.8,.3,1), opacity .8s ease;
  box-shadow:0 30px 60px -20px rgba(0,0,0,0);
}
.ap-paper-fold.is-in .ap-paper-fold-content{
  transform:rotateX(0);
  opacity:1;
  box-shadow:0 30px 60px -30px rgba(0,0,0,.18);
}

/* ─── 8. NAV scrollspy active state ─── */
.ap-nav a.spy-active{ color:#f39200; }
.ap-nav a.spy-active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-8px;
  height:2px;
  background:#f39200;
  border-radius:2px;
}

/* ─── 9. SECȚIUNEA DESPRE — "story" cu narativ ─── */
.ap-about{
  background:#fff;
  padding:90px 0;
  position:relative;
}
.ap-about-grid{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:60px;
  align-items:flex-start;
  max-width:1100px;
  margin:0 auto;
}
.ap-about-headline{
  font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;
  font-size:clamp(28px,3.5vw,40px);
  font-weight:900;
  letter-spacing:-.01em;
  line-height:1.1;
  color:#2c2c2c;
  margin:0 0 18px;
}
.ap-about-headline .accent{ color:#f39200; }
.ap-about-eyebrow{
  display:inline-block;
  font-size:12px; font-weight:700; letter-spacing:.16em;
  text-transform:uppercase; color:#f39200;
  margin-bottom:14px;
}
.ap-about p{
  font-size:15.5px; line-height:1.75; color:#5a5a5a;
  margin:0 0 16px;
}
.ap-about p strong{ color:#2c2c2c; font-weight:700; }
.ap-about-features{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
  margin-top:8px;
}
.ap-about-feature{
  background:#fffaf2;
  padding:20px 22px;
  border-radius:10px;
  border:1px solid rgba(243,146,0,.12);
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ap-about-feature:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(243,146,0,.12);
  border-color:rgba(243,146,0,.3);
}
.ap-about-feature h4{
  font-size:14px; font-weight:800; color:#2c2c2c;
  margin:0 0 6px; letter-spacing:.04em;
}
.ap-about-feature p{
  font-size:13px; line-height:1.55; color:#6b6b6b; margin:0;
}
.ap-about-feature .ap-icon{
  width:32px; height:32px; color:#f39200; margin-bottom:10px;
}

/* ─── 10. SECȚIUNEA FINISARE (cards mai dense) ─── */
.ap-finishing{
  background:#fffaf2;
  padding:80px 0;
  position:relative;
}
.ap-finishing-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:36px;
}
.ap-fin-card{
  background:#fff;
  padding:24px 24px 22px;
  border-radius:10px;
  border:1px solid hsla(0,0%,90%,.85);
  transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  position:relative;
  overflow:hidden;
}
.ap-fin-card::before{
  content:""; position:absolute; left:0; top:0; bottom:0;
  width:3px; background:#f39200;
  transform:scaleY(0); transform-origin:top;
  transition:transform .35s cubic-bezier(.2,.8,.3,1);
}
.ap-fin-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 36px rgba(243,146,0,.14);
  border-color:rgba(243,146,0,.28);
}
.ap-fin-card:hover::before{ transform:scaleY(1); }
.ap-fin-card h4{
  font-size:15px; font-weight:800; color:#2c2c2c;
  margin:0 0 8px; letter-spacing:.02em;
}
.ap-fin-card p{
  font-size:13.5px; line-height:1.6; color:#6b6b6b; margin:0;
}

/* ─── 11. SECȚIUNEA CONTACT one-page ─── */
.ap-contact{
  background:#fff;
  padding:90px 0;
  position:relative;
}
.ap-contact-grid{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:50px;
  align-items:flex-start;
  max-width:1100px;
  margin:0 auto;
}
.ap-contact-info h3{
  font-size:18px; font-weight:800; color:#2c2c2c;
  letter-spacing:.04em; margin:0 0 22px;
}
.ap-contact-row{
  display:flex; gap:14px; align-items:flex-start;
  padding:14px 0;
  border-bottom:1px solid hsla(0,0%,90%,.7);
}
.ap-contact-row:last-of-type{ border-bottom:none; }
.ap-contact-row .ap-c-ico{
  width:38px; height:38px; flex-shrink:0;
  background:linear-gradient(135deg,rgba(250,177,60,.18),rgba(243,146,0,.1));
  color:#f39200;
  border-radius:8px;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid rgba(243,146,0,.25);
}
.ap-contact-row .ap-c-ico svg{ width:18px; height:18px; }
.ap-contact-row .ap-c-label{
  font-size:12px; font-weight:700; letter-spacing:.1em;
  color:#9a9a9a; text-transform:uppercase; margin-bottom:3px;
}
.ap-contact-row .ap-c-value{
  font-size:14.5px; color:#2c2c2c; font-weight:600;
}
.ap-contact-row .ap-c-value a{
  color:#2c2c2c; text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .2s ease, border-color .2s ease;
}
.ap-contact-row .ap-c-value a:hover{
  color:#f39200; border-color:#f39200;
}

.ap-contact-form{
  background:#fffaf2;
  padding:36px 32px;
  border-radius:14px;
  border:1px solid rgba(243,146,0,.15);
  box-shadow:0 18px 50px -22px rgba(243,146,0,.25);
}
.ap-contact-form h3{
  font-size:20px; font-weight:800; color:#2c2c2c;
  margin:0 0 4px;
}
.ap-contact-form .ap-cf-sub{
  font-size:13px; color:#6b6b6b; margin:0 0 22px;
}
.ap-cf-row{ margin-bottom:14px; }
.ap-cf-row label{
  display:block; font-size:12px; font-weight:700;
  letter-spacing:.06em; color:#5a5a5a;
  text-transform:uppercase; margin-bottom:6px;
}
.ap-cf-row input,
.ap-cf-row select,
.ap-cf-row textarea{
  width:100%; padding:11px 14px;
  border:1px solid hsla(0,0%,90%,.9);
  background:#fff; border-radius:8px;
  font-size:14px; color:#2c2c2c;
  font-family:inherit;
  transition:border-color .2s ease, box-shadow .2s ease;
  box-sizing:border-box;
}
.ap-cf-row textarea{ min-height:110px; resize:vertical; }
.ap-cf-row input:focus,
.ap-cf-row select:focus,
.ap-cf-row textarea:focus{
  outline:none;
  border-color:#f39200;
  box-shadow:0 0 0 3px rgba(243,146,0,.15);
}
.ap-cf-submit{
  width:100%; padding:14px 22px;
  background:#f39200; color:#fff;
  border:0; border-radius:8px;
  font-size:13px; font-weight:800; letter-spacing:.1em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.ap-cf-submit:hover{
  background:#d97e00;
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(243,146,0,.35);
}
.ap-cf-note{
  font-size:11.5px; color:#9a9a9a;
  text-align:center; margin:12px 0 0;
}

/* ─── 12. RESPONSIVE ─── */
@media (max-width:980px){
  .ap-about-grid,
  .ap-contact-grid{
    grid-template-columns:1fr;
    gap:36px;
  }
  .ap-about-features,
  .ap-finishing-grid{ grid-template-columns:1fr 1fr; }
  .ap-section .ap-crop{ width:18px; height:18px; }
}
@media (max-width:720px){
  .ap-about{ padding:60px 0; }
  .ap-finishing{ padding:56px 0; }
  .ap-contact{ padding:60px 0; }
  .ap-contact-form{ padding:28px 22px; }
  .ap-about-features,
  .ap-finishing-grid{ grid-template-columns:1fr; }
  .ap-print-progress{ height:2px; }
  .ap-halftone{ background-size:4px 4px; opacity:.13; }
  .ap-section .ap-crop{ display:none; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion:reduce){
  .ap-cmyk-title.is-in,
  .ap-roller-sweep.is-in::after,
  .ap-paper-feed,
  .ap-paper-fold-content{
    animation:none !important;
    transition:none !important;
    opacity:1 !important;
    transform:none !important;
    text-shadow:none !important;
  }
  .ap-print-progress-bar{ transition:none; }
}
