/* ═══════════════════════════════════════════════════════
   ALT CNC – Custom CSS
   All Tailwind utilities live in Tailwind; this file
   holds pseudo-elements, animations, and JS-hook styles
   that can't be expressed as utility classes.
════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body { overflow-x: hidden; }

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: #f4f4f2; }
::-webkit-scrollbar-thumb { background: #d4d4d0; }
::-webkit-scrollbar-thumb:hover { background: rgb(185,23,23); }

/* ── Scroll reveal ── */
.reveal         { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Text-stroke helpers ── */
.text-stroke-ink   { -webkit-text-stroke: 1px #d4d4d0; color: transparent; }
.text-stroke-white { -webkit-text-stroke: 1.5px rgba(255,255,255,0.45); color: transparent; }
.text-stroke-dark  { -webkit-text-stroke: 1.5px rgba(15,15,16,0.18); color: transparent; }

/* ── Mobile menu ── */
.mobile-menu-open { overflow: hidden; }
#mobile-menu  { transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
#menu-overlay { transition: opacity 0.3s ease; }

/* ── Mobile accordion ── */
.acc-content       { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.acc-content.open  { grid-template-rows: 1fr; }
.acc-content > div { overflow: hidden; }

/* ── Section images ── */
.section-img                        { transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94); }
.section-img-wrap:hover .section-img { transform: scale(1.03); }

/* ── Detail items (sector / service pages) ── */
.detail-item { position: relative; padding-left: 20px; }
.detail-item::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: rgb(185,23,23);
  border-radius: 50%;
}

/* ── ISO ring inner circle ── */
.iso-ring::before {
  content: ''; position: absolute; inset: 5px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
}

/* ── Process section (homepage) ── */
.process-img        { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.55s ease; }
.process-img.active { opacity: 1; }
.process-step.active .step-number { color: rgb(185,23,23); }
.process-image-wrap::after {
  content: ''; position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; z-index: 6;
  border-top: 2px solid rgb(114,214,238); border-right: 2px solid rgb(114,214,238);
  opacity: 0.55;
}

/* ── Testimonials (homepage) ── */
.testimonials-track:hover { animation-play-state: paused; }
.testimonial-card::before {
  content: '\201C';
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: 110px; line-height: 0.8; color: #ddddd8;
  position: absolute; top: 18px; right: 22px; pointer-events: none;
}

/* ── Touch devices: always reveal service cards (homepage) ── */
@media (hover: none) {
  .sc-reveal  { transform: translateY(0) !important; }
  .sc-body    { opacity: 1 !important; transform: translateY(0) !important; transition-delay: 0s !important; }
  .sc-content { display: none !important; }
}

/* ── Value pillars (about page) ── */
.value-pillar::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: rgb(185,23,23);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s ease;
}
.value-pillar:hover::before { transform: scaleY(1); }

/* ── Contact form fields ── */
.field-input {
  width: 100%;
  background: #f4f4f2;
  border: 1px solid #ddddd8;
  padding: 13px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: #0f0f10;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  appearance: none;
}
.field-input:focus       { border-color: rgb(185,23,23); background: #fff; }
.field-input::placeholder { color: #9a9a9e; }
select.field-input   { cursor: pointer; }
textarea.field-input { resize: none; }

/* ── FAQ accordion (contact page) ── */
.faq-content       { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.faq-content.open  { grid-template-rows: 1fr; }
.faq-content > div { overflow: hidden; }
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.3s ease; }

/* ── Pulse animations ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.25); }
}
.pulse-dot { animation: pulse-dot 1.8s ease-in-out infinite; }

@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgb(185,23,23);
  animation: pulse-ring 1.6s ease-out infinite;
}
