/* Service Pages Styles */

/* Service Hero */
.service-hero {
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 80px;
}

.service-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.service-hero .hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(24, 78, 48, 0.85) 0%,
    rgba(56, 129, 86, 0.75) 100%
  );
}

.service-hero .hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  color: var(--white);
  z-index: 2;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(207, 176, 72, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  border: 1px solid rgba(207, 176, 72, 0.3);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.service-badge i {
  font-size: 1.2rem;
  color: var(--old-gold);
}

.service-hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.service-hero p {
  font-size: 1.3rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 700px;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.hero-stats .stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--old-gold);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Service Content Layout */
.service-content {
  padding: 4rem 0;
  background: var(--white);
}

.content-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
}

/* Service Sidebar */
.service-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.sidebar-header {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 15px 15px 0 0;
}

.sidebar-header h3 {
  font-size: 1.3rem;
  margin: 0;
}

.services-nav {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 0 0 15px 15px;
  overflow: hidden;
}

.service-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--dark-gray);
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.service-nav-item:last-child {
  border-bottom: none;
}

.service-nav-item:hover,
.service-nav-item.active {
  background: var(--light-gray);
  transform: translateX(5px);
}

.service-nav-item.active {
  background: var(--amazon-green);
  color: var(--white);
}

.service-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--old-gold);
}

.nav-icon {
  width: 40px;
  height: 40px;
  background: var(--light-gray);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-nav-item.active .nav-icon {
  background: var(--old-gold);
}

.nav-icon i {
  font-size: 1.2rem;
  color: var(--amazon-green);
  transition: color 0.3s ease;
}

.service-nav-item.active .nav-icon i {
  color: var(--dark-gray);
}

.nav-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.nav-content p {
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 0;
}

.service-nav-item.active .nav-content p {
  opacity: 0.9;
}

/* Sidebar CTA */
.sidebar-cta {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 15px;
  margin-top: 2rem;
  text-align: center;
}

.sidebar-cta h4 {
  color: var(--green-pea);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.sidebar-cta p {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.sidebar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-gold);
  color: var(--dark-gray);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.sidebar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(207, 176, 72, 0.3);
}

/* Main Content */
.service-main {
  background: var(--white);
}

.service-main section {
  margin-bottom: 4rem;
}

.service-main h2 {
  font-size: 2.5rem;
  color: var(--green-pea);
  margin-bottom: 2rem;
  position: relative;
}

.service-main h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.service-main h3 {
  font-size: 2rem;
  color: var(--green-pea);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-main h3::before {
  content: "";
  width: 40px;
  height: 3px;
  background: var(--old-gold);
  border-radius: 2px;
}

/* Service Overview */
.service-overview .overview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.overview-text .lead {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--amazon-green);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.overview-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

.key-benefits {
  margin-top: 2rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--light-gray);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: var(--amazon-green);
  color: var(--white);
  transform: translateX(5px);
}

.benefit-item i {
  color: var(--old-gold);
  font-size: 1.2rem;
}

.benefit-item:hover i {
  color: var(--white);
}

.overview-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  cursor: pointer;
}

.overview-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.overview-image:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(24, 78, 48, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--white);
}

.overview-image:hover .image-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background: var(--old-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

.video-label {
  font-weight: 600;
}

/* Technical Specifications */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.spec-category {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.spec-category:hover {
  background: var(--amazon-green);
  color: var(--white);
  transform: translateY(-5px);
}

.spec-category h4 {
  color: var(--green-pea);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s ease;
}

.spec-category:hover h4 {
  color: var(--white);
}

.spec-category h4 i {
  color: var(--old-gold);
}

.spec-category ul {
  list-style: none;
}

.spec-category li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(56, 129, 86, 0.2);
  transition: border-color 0.3s ease;
}

.spec-category:hover li {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.spec-category li:last-child {
  border-bottom: none;
}

.spec-category strong {
  color: var(--amazon-green);
  transition: color 0.3s ease;
}

.spec-category:hover strong {
  color: var(--old-gold);
}

/* Installation Process */
.process-timeline {
  position: relative;
  padding-left: 2rem;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
}

.process-step {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--gradient-gold);
  color: var(--dark-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(207, 176, 72, 0.3);
}

.step-content {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 15px;
  flex: 1;
  transition: all 0.3s ease;
}

.step-content:hover {
  background: var(--amazon-green);
  color: var(--white);
  transform: translateX(10px);
}

.step-content h4 {
  color: var(--green-pea);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.step-content:hover h4 {
  color: var(--white);
}

.step-content p {
  color: var(--medium-gray);
  line-height: 1.6;
  transition: color 0.3s ease;
}

.step-content:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* Project Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow);
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(24, 78, 48, 0.9));
  color: var(--white);
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.gallery-overlay p {
  opacity: 0.9;
  margin-bottom: 1rem;
}

.view-project {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--old-gold);
  font-weight: 600;
  text-decoration: none;
}

.view-project::after {
  content: "→";
  transition: transform 0.3s ease;
}

.view-project:hover::after {
  transform: translateX(5px);
}

/* ROI Calculator */
.roi-calculator {
  background: var(--light-gray);
  padding: 3rem;
  border-radius: 20px;
}

.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  color: var(--green-pea);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.input-group input,
.input-group select {
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--amazon-green);
  box-shadow: 0 0 0 3px rgba(56, 129, 86, 0.1);
}

.calculate-btn {
  background: var(--gradient-gold);
  color: var(--dark-gray);
  border: none;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(207, 176, 72, 0.3);
}

.calculator-results {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.result-label {
  color: var(--medium-gray);
  font-weight: 500;
}

.result-value {
  color: var(--amazon-green);
  font-weight: bold;
  font-size: 1.1rem;
}

.result-value.highlight {
  color: var(--old-gold);
  font-size: 1.3rem;
}

/* Service CTA */
.service-cta {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
}

.service-cta h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.service-cta h3::before {
  display: none;
}

.service-cta p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.cta-primary {
  background: var(--gradient-gold);
  color: var(--dark-gray);
  box-shadow: 0 8px 25px rgba(207, 176, 72, 0.3);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(207, 176, 72, 0.4);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* BREADCRUMBS - Show on mobile/tablet, hide on desktop */
.breadcrumb-nav {
  background: var(--light-gray);
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
  margin-top: 80px; /* Account for fixed navbar */
  display: none; /* Hidden by default (desktop) */
}

.breadcrumb-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item a {
  color: var(--amazon-green);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--green-pea);
}

.breadcrumb-item.current {
  color: var(--medium-gray);
  font-weight: 600;
}

.breadcrumb-separator {
  color: var(--medium-gray);
  margin: 0 0.25rem;
}

.breadcrumb-icon {
  color: var(--old-gold);
  margin-right: 0.5rem;
}

/* SERVICE NAVIGATION TABS - Show on mobile/tablet */
.service-tabs-mobile {
  background: var(--white);
  border-bottom: 2px solid var(--light-gray);
  padding: 1rem 0;
  display: none; /* Hidden by default (desktop) */
  overflow-x: auto;
}

.service-tabs-mobile::-webkit-scrollbar {
  height: 3px;
}

.service-tabs-mobile::-webkit-scrollbar-track {
  background: var(--light-gray);
}

.service-tabs-mobile::-webkit-scrollbar-thumb {
  background: var(--amazon-green);
  border-radius: 3px;
}

.service-tabs-container {
  display: flex;
  gap: 0.5rem;
  min-width: max-content;
  padding-bottom: 0.5rem;
}

.service-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--light-gray);
  color: var(--medium-gray);
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-tab:hover {
  background: rgba(56, 129, 86, 0.1);
  color: var(--amazon-green);
  border-color: rgba(56, 129, 86, 0.2);
}

.service-tab.active {
  background: var(--amazon-green);
  color: var(--white);
  border-color: var(--amazon-green);
}

.service-tab i {
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  /* ADD these new rules to your existing 1024px breakpoint */
  .breadcrumb-nav {
    display: block;
  }

  .service-tabs-mobile {
    display: block;
  }

  .service-sidebar {
    display: none; /* Hide sidebar on tablet/mobile */
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-sidebar {
    position: static;
    order: 2;
  }

  .service-main {
    order: 1;
  }

  .calculator-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .overview-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .breadcrumb-container {
    font-size: 0.8rem;
  }

  .service-tab {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .service-hero h1 {
    font-size: 2.5rem;
  }

  .service-hero p {
    font-size: 1.1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .process-timeline {
    padding-left: 1rem;
  }

  .process-timeline::before {
    left: 10px;
  }

  .process-step {
    gap: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .roi-calculator {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .service-hero h1 {
    font-size: 2rem;
  }

  .service-content {
    padding: 2rem 0;
  }

  .service-main h2 {
    font-size: 2rem;
  }

  .service-main h3 {
    font-size: 1.5rem;
  }

  .spec-category,
  .step-content {
    padding: 1.5rem;
  }
}
