/* ==========================================================================
   RISINGPRIME REBAR - SERVICES & ESTIMATION PAGES REVAMP (2026 DESIGN)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MODERN SERVICE & ESTIMATION HERO
   -------------------------------------------------------------------------- */
.service-page-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 10% 20%, #0d1a33 0%, #060c18 55%, #040812 100%);
  color: #ffffff;
  overflow: hidden;
  padding: 125px 0 45px;
}

.service-page-hero.estimate-theme {
  background: radial-gradient(circle at 85% 20%, #081d33 0%, #060c18 55%, #040812 100%);
}

.service-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 45%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, black 40%, transparent 85%);
}

.service-hero-center {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 3;
}

.service-hero-title {
  font-family: var(--rp-font-heading, 'Space Grotesk', sans-serif);
  font-size: clamp(24px, 3.8vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin: 0 0 12px;
  color: #ffffff;
}

.service-hero-title .gradient-span {
  background: linear-gradient(135deg, #ff4d5a 0%, #b63c43 50%, #ff9e79 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.service-hero-title .gradient-span.teal {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.service-hero-desc {
  font-size: clamp(13px, 1.15vw, 14.5px);
  line-height: 1.65;
  color: #94a3b8;
  max-width: 780px;
  margin: 0 auto 16px;
}

.service-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.service-hero-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.about-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 18px;
  border-radius: var(--rp-radius-full, 9999px);
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.about-chip svg {
  color: var(--rp-orange, #8b151e);
}


/* --------------------------------------------------------------------------
   2. DETAILED SERVICE OVERVIEW & SCOPE
   -------------------------------------------------------------------------- */
.service-details-section {
  padding: 55px 0;
  background: #ffffff;
  position: relative;
}

.service-details-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: stretch;
}

.service-overview-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--rp-radius-xl, 30px);
  padding: 44px 40px;
  box-shadow: 0 14px 36px -10px rgba(15, 23, 42, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-overview-card h3 {
  font-family: var(--rp-font-heading, 'Space Grotesk', sans-serif);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  color: #040812;
  line-height: 1.25;
  margin: 16px 0 20px;
}

.service-overview-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-overview-body p {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 24px;
}

.service-scope-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.scope-item-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 12px 18px;
  border-radius: var(--rp-radius-md, 16px);
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  transition: all 0.25s ease;
}

.scope-item-badge:hover {
  background: rgba(139, 21, 30, 0.06);
  border-color: rgba(139, 21, 30, 0.3);
  transform: translateX(4px);
}

.scope-item-badge svg {
  color: var(--rp-orange, #8b151e);
  flex-shrink: 0;
}

.scope-item-badge.teal svg {
  color: var(--rp-cyan, #0ea5e9);
  flex-shrink: 0;
}

/* Service Highlights Side Column */
.service-side-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100%;
}

.service-highlight-card {
  background: linear-gradient(145deg, #070e1c 0%, #0d1a33 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--rp-radius-xl, 30px);
  padding: 34px 30px;
  color: #ffffff;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.45);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-highlight-card.light {
  background: #f8fafc;
  border-color: rgba(226, 232, 240, 0.9);
  color: #040812;
  box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.05);
}

.service-highlight-card h4 {
  font-family: var(--rp-font-heading, 'Space Grotesk', sans-serif);
  font-size: 21px;
  font-weight: 800;
  margin: 14px 0 12px;
}

.service-highlight-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0;
  flex-grow: 1;
}

.service-highlight-card.light p {
  color: #64748b;
}

/* --------------------------------------------------------------------------
   3. DRAWING & TAKEOFF SHEETS SHOWCASE (WITH LIGHTBOX ZOOM)
   -------------------------------------------------------------------------- */
.sheet-showcase-section {
  padding: 55px 0;
  background: #060c18;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.sheet-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.sheet-showcase-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.sheet-card-modern {
  background: linear-gradient(145deg, rgba(15, 28, 52, 0.75) 0%, rgba(7, 14, 28, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--rp-radius-xl, 30px);
  overflow: hidden;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.45);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.sheet-card-modern:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 21, 30, 0.4);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.65);
}

.sheet-img-wrap {
  position: relative;
  height: 290px;
  overflow: hidden;
  background: #ffffff;
}

.sheet-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-card-modern:hover .sheet-img-wrap img {
  transform: scale(1.06);
}

.sheet-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(6, 12, 24, 0.75) 100%);
  pointer-events: none;
}

.sheet-zoom-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 20, 38, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--rp-radius-full, 9999px);
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.sheet-card-modern:hover .sheet-zoom-pill {
  opacity: 1;
  transform: translateY(0);
}

.sheet-card-footer {
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.sheet-card-info h4 {
  font-family: var(--rp-font-heading, 'Space Grotesk', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.35;
}

.sheet-card-info span {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.4;
  display: block;
}

.sheet-type-tag {
  background: rgba(139, 21, 30, 0.16);
  border: 1px solid rgba(139, 21, 30, 0.35);
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--rp-radius-full, 9999px);
  white-space: nowrap;
  flex-shrink: 0;
}

.sheet-type-tag.teal {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(14, 165, 233, 0.35);
  color: #38bdf8;
}

.sheet-type-tag.amber {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.sheet-type-tag.purple {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.sheet-type-tag.emerald {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.sheet-type-tag.rose {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

.sheet-type-tag.blue {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

/* Category Filter Bar for Detailing Drawings */
.drawing-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 36px;
  max-width: 1080px;
  position: relative;
  z-index: 2;
}

.drawing-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 28, 52, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: var(--rp-font-body, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--rp-radius-full, 9999px);
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.drawing-filter-btn .filter-count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 10px;
  color: #94a3b8;
  transition: all 0.25s ease;
}

.drawing-filter-btn:hover {
  background: rgba(25, 45, 80, 0.9);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.drawing-filter-btn.active {
  background: linear-gradient(135deg, #8b151e 0%, #b8222b 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 18px rgba(139, 21, 30, 0.45);
}

.drawing-filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.sheet-card-modern.hidden-by-filter {
  display: none !important;
}

/* --------------------------------------------------------------------------
   4. PROJECTS GALLERY SECTION
   -------------------------------------------------------------------------- */
.services-projects-section {
  padding: 55px 0;
  background: #f8fafc;
}

.services-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

/* --------------------------------------------------------------------------
   5. HIGH-IMPACT CTA SECTION
   -------------------------------------------------------------------------- */
.service-cta-section {
  padding: 0 0 55px;
  background: #f8fafc;
}

.about-cta-card {
  background: linear-gradient(135deg, #070e1c 0%, #0d1a33 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--rp-radius-xl, 30px);
  padding: 48px 46px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 28px 65px -15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.about-cta-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 21, 30, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Estimation variant glow */
.estimate-theme-page .about-cta-card::after,
.service-cta-section .about-cta-card:has(.section-tag-pill.cyan)::after {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
}

.about-cta-text {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.about-cta-text h3 {
  font-family: var(--rp-font-heading, 'Space Grotesk', sans-serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #ffffff;
}

.about-cta-text p {
  font-size: 17px;
  line-height: 1.7;
  color: #cbd5e1;
  margin: 0;
}

.about-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .service-details-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sheet-showcase-grid {
    grid-template-columns: 1fr;
  }

  .sheet-showcase-grid.three-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 50px 32px;
  }

  .about-cta-actions {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .service-page-hero {
    padding: 105px 0 35px;
    min-height: auto;
  }

  .service-details-section,
  .sheet-showcase-section,
  .services-projects-section {
    padding: 42px 0;
  }

  .service-cta-section {
    padding: 0 0 42px;
  }

  .service-overview-card {
    padding: 34px 22px;
  }

  .service-scope-list {
    grid-template-columns: 1fr;
  }

  .sheet-showcase-grid.three-col {
    grid-template-columns: 1fr;
  }

  .services-projects-grid {
    grid-template-columns: 1fr;
  }

  .about-cta-card {
    padding: 34px 22px;
  }

  .about-cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .about-cta-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .service-page-hero {
    padding: 95px 0 30px;
    min-height: auto;
  }

  .service-details-section,
  .sheet-showcase-section,
  .services-projects-section {
    padding: 35px 0;
  }

  .service-cta-section {
    padding: 0 0 35px;
  }

  .service-overview-card {
    padding: 26px 16px;
    border-radius: 20px;
  }

  .service-highlight-card {
    padding: 26px 18px;
    border-radius: 20px;
  }

  .sheet-card-modern {
    border-radius: 20px;
  }

  .sheet-media-frame {
    height: 220px;
  }

  .sheet-card-body {
    padding: 22px 16px;
  }

  .service-project-card {
    border-radius: 20px;
  }

  .service-project-body {
    padding: 22px 16px;
  }

  .about-cta-card {
    padding: 28px 18px;
    border-radius: 20px;
  }
}

@media (max-width: 400px) {
  .service-overview-card h3 {
    font-size: 24px;
  }

  .sheet-media-frame {
    height: 190px;
  }

  .scope-item-badge {
    padding: 10px 14px;
    font-size: 13.5px;
  }
}