/* ============================================================
   SERVICE PAGE TEMPLATE START
   MazoSoft — service-page.css
   Place at: assets/css/service-page.css
   Load AFTER style.css in every service page.

   REUSABLE COMPONENTS:
   .service-overview     — 2-col image + content layout
   .service-features     — 8-card feature grid
   .service-process      — animated vertical timeline
   .service-benefits     — 2-col image + benefit list
   .service-case-studies — reuses .featured-section styles
   .service-faq          — accordion FAQ

   NOTE: .why-section, .tech-section, .cta-section, and
         .featured-section are already in style.css and
         are reused as-is. No duplication here.
   ============================================================ */


/* ============================================================
   ACTIVE MEGA MENU SERVICE CARD
   ============================================================ */
.mega-service-card.active-service {
  background: var(--red-glow-soft);
  border-color: rgba(232,52,28,0.2);
}
.mega-service-card.active-service .msc-name {
  color: var(--red);
}
.mega-service-card.active-service .msc-icon {
  background: var(--red);
  color: var(--white);
}


/* ============================================================
   SECTION 2 — SERVICE OVERVIEW
   ============================================================ */
.service-overview {
  padding: 120px 0;
  background: var(--white);
}

/* Image wrap — mirrors .about-img-wrap pattern */
.sov-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sov-img-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.8s var(--ease);
}
.sov-img-wrap:hover img {
  transform: scale(1.04);
}

/* Floating badge — mirrors .about-img-badge */
.sov-img-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(232,52,28,0.4);
}
.sov-badge-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.sov-badge-txt {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.9;
}

/* Floating card — mirrors .about-img-card */
.sov-img-card {
  position: absolute;
  top: 28px;
  right: 28px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  box-shadow: var(--shadow);
}
.sov-img-card svg {
  color: var(--red);
  flex-shrink: 0;
}

/* Checklist — mirrors .ics-highlights */
.sov-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sov-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.55;
}
.sov-feature-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red);
}


/* ============================================================
   SECTION 3 — SERVICE FEATURES (What We Offer)
   ============================================================ */
.service-features {
  padding: 120px 0;
  background: var(--off-white);
}

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

.spf-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.spf-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
  transform-origin: left;
  border-radius: 0 0 var(--radius) var(--radius);
}
.spf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.09);
  border-color: rgba(232,52,28,0.12);
}
.spf-card:hover::before {
  transform: scaleX(1);
}

.spf-icon {
  width: 52px;
  height: 52px;
  background: var(--red-glow-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 20px;
  transition: all 0.3s var(--ease);
}
.spf-card:hover .spf-icon {
  background: var(--red);
  color: var(--white);
  transform: scale(1.06);
}
.spf-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.3;
}
.spf-card p {
  font-size: 0.855rem;
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
}


/* ============================================================
   SECTION 4 — SERVICE PROCESS (Vertical Timeline)
   ============================================================ */
.service-process {
  padding: 120px 0;
  background: var(--white);
}

.sprc-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.sprc-spine {
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), rgba(232,52,28,0.1));
  border-radius: 2px;
  transform-origin: top center;
}

.sprc-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sprc-step {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.35s var(--ease);
}
.sprc-step:last-child {
  border-bottom: none;
}
.sprc-step:hover {
  padding-left: 8px;
}

.sprc-step-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(0,0,0,0.04);
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
  width: 64px;
  transition: color 0.35s;
}
.sprc-step:hover .sprc-step-num {
  color: rgba(232,52,28,0.12);
}

.sprc-step-content {
  flex: 1;
  padding-top: 4px;
}

.sprc-step-icon {
  width: 44px;
  height: 44px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 16px;
  transition: all 0.3s var(--ease);
}
.sprc-step:hover .sprc-step-icon {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.sprc-step-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.sprc-step-content p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
  max-width: 600px;
}


/* ============================================================
   SECTION 7 — SERVICE BENEFITS
   ============================================================ */
.service-benefits {
  padding: 120px 0;
  background: var(--off-white);
}

/* Stats overlay on benefit image */
.sbn-stats-overlay {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  display: flex;
  gap: 12px;
}
.sbn-stat {
  flex: 1;
  background: rgba(17,17,17,0.85);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
}
.sbn-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.sbn-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Benefit list */
.sbn-benefits {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sbn-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}
.sbn-benefit-item:hover {
  border-color: rgba(232,52,28,0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateX(4px);
}
.sbn-benefit-icon {
  width: 40px;
  height: 40px;
  background: var(--red-glow-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.sbn-benefit-item:hover .sbn-benefit-icon {
  background: var(--red);
  color: var(--white);
}
.sbn-benefit-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.sbn-benefit-item p {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}


/* ============================================================
   SECTION 8 — CASE STUDIES (spacing override for service page)
   .featured-section is in style.css; we only add a background
   tweak here so alternate sections don't clash.
   ============================================================ */
.service-case-studies {
  background: var(--white);
}


/* ============================================================
   SECTION 9 — SERVICE FAQ (Accordion)
   ============================================================ */
.service-faq {
  padding: 120px 0;
  background: var(--off-white);
}

.spfaq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spfaq-item {
  border-bottom: 1px solid var(--border);
}
.spfaq-item:first-child {
  border-top: 1px solid var(--border);
}

.spfaq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: color 0.25s;
}
.spfaq-question:hover {
  color: var(--red);
}
.spfaq-question[aria-expanded="true"] {
  color: var(--red);
}

.spfaq-icon {
  width: 32px;
  height: 32px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--charcoal);
  transition: all 0.3s var(--ease);
}
.spfaq-question[aria-expanded="true"] .spfaq-icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.spfaq-question[aria-expanded="true"] .spfaq-icon svg {
  transform: rotate(180deg);
}
.spfaq-icon svg {
  transition: transform 0.3s var(--ease);
}

.spfaq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
}
.spfaq-answer.open {
  max-height: 400px;
}
.spfaq-answer p {
  padding: 0 0 24px;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.75;
  margin: 0;
  max-width: 680px;
}


/* ============================================================
   RESPONSIVE — SERVICE PAGE TEMPLATE
   ============================================================ */

/* ── 1400px ── */
@media (max-width: 1400px) {
  .spf-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── 1200px ── */
@media (max-width: 1200px) {
  .spf-grid { grid-template-columns: repeat(3, 1fr); }
  .sov-img-wrap img { height: 440px; }
}

/* ── 992px ── */
@media (max-width: 992px) {
  .service-overview,
  .service-features,
  .service-process,
  .service-benefits,
  .service-faq { padding: 80px 0; }

  .spf-grid { grid-template-columns: repeat(2, 1fr); }
  .sov-img-wrap img { height: 380px; }
  .sprc-spine { display: none; }
  .sprc-step { gap: 20px; }
  .sprc-step-num { font-size: 2.5rem; width: 44px; }
}

/* ── 768px ── */
@media (max-width: 768px) {
  .service-overview,
  .service-features,
  .service-process,
  .service-benefits,
  .service-faq { padding: 64px 0; }

  .spf-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .spf-card { padding: 24px 20px; }

  .sov-img-wrap img { height: 300px; }
  .sov-img-badge { bottom: 16px; left: 16px; padding: 12px 16px; }
  .sov-badge-num { font-size: 1.6rem; }
  .sov-img-card { top: 16px; right: 16px; font-size: 0.75rem; padding: 10px 14px; }

  .sprc-step { flex-direction: column; gap: 10px; padding: 28px 0; }
  .sprc-step-num { font-size: 2rem; width: auto; }

  .sbn-stats-overlay { flex-direction: column; }
  .sbn-stat { padding: 12px 16px; }
  .sbn-stat-num { font-size: 1.4rem; }

  .spfaq-question { font-size: 0.92rem; padding: 20px 0; }
}

/* ── 576px ── */
@media (max-width: 576px) {
  .spf-grid { grid-template-columns: 1fr; }
  .sov-img-wrap img { height: 260px; }
  .sbn-benefit-item { padding: 16px; }
  .sbn-benefit-icon { width: 36px; height: 36px; }
  .sbn-benefit-item h5 { font-size: 0.88rem; }

  .sprc-step-num { display: none; }
  .sprc-step { gap: 0; }
  .sprc-step-content { padding-top: 0; }
}

/* SERVICE PAGE TEMPLATE END */
