/* ======================= */
/*      Services Page       */
/* ======================= */

/* Hero Section for Services Page */
.services-hero {
  margin-top: 80px;
  padding: 5rem 2rem;
  background: 
    linear-gradient(135deg, rgba(27, 26, 26, 0.9), rgba(35, 34, 34, 0.95)),
    url('../assets/images/hero-img.jpg') /* Using existing hero image */
    center/cover no-repeat;
  color: var(--secondary);
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.services-hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--secondary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.services-hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  color: var(--secondary);
}

/* Services Intro */
.services-intro {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: var(--bg-light);
}

.services-intro h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.services-intro p {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Package Pricing Section Styling */
#packages-heading {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.packages-container {
  margin: 3rem 0;
}

/* Detailed Services Grid */
.services-detailed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.service-detail-card {
  background: var(--secondary);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.service-detail-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  font-size: 2rem;
  font-weight: 600;
}

.service-detail-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
}

.service-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
}

.service-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text);
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.1rem;
}

.service-cta {
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid var(--primary);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: 1rem;
}

.service-cta:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Process Section */
.process-section {
  background: var(--bg-light);
  padding: 4rem 2rem;
  border-radius: 16px;
  margin: 4rem 0;
}

.process-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  counter-reset: step-counter;
}

.process-step {
  background: var(--secondary);
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  counter-increment: step-counter;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.process-step::before {
  content: counter(step-counter);
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--accent);
  color: var(--secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.process-step h3 {
  margin: 1rem 0 0.5rem;
  color: var(--primary);
  font-size: 1.3rem;
}

.process-step p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 1rem;
}

/* FAQ Section */
.faq-section {
  margin: 4rem 0;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--secondary);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary);
  transition: background 0.3s ease;
  font-size: 1.1rem;
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.faq-item.active .faq-question::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  margin: 0;
  padding: 0.5rem 0;
}

/* CTA Banner */
.services-cta-banner {
  background: linear-gradient(135deg, var(--accent), #7c73e9);
  color: var(--secondary);
  padding: 4rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin: 4rem 0;
}

.services-cta-banner h2 {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

.services-cta-banner p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-banner-btn {
  background: var(--secondary);
  color: var(--accent);
  border: 2px solid var(--secondary);
  padding: 1rem 3rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.cta-banner-btn:hover {
  background: transparent;
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Service Anchors for navigation */
#seo, #ppc, #social, #content, #automation, #analytics {
  scroll-margin-top: 100px;
}

/* Section Spacing */
section {
  scroll-margin-top: 80px;
}

/* Package Cards Enhancement */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ======================= */
/*      Responsive          */
/* ======================= */
@media (max-width: 1024px) {
  .services-detailed-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: 3rem 1.5rem;
    min-height: 50vh;
  }
  
  .services-hero h1 {
    font-size: 2.2rem;
  }
  
  .services-hero p {
    font-size: 1.1rem;
  }
  
  .services-intro {
    padding: 3rem 1.5rem 1.5rem;
  }
  
  .services-intro h2 {
    font-size: 2rem;
  }
  
  #packages-heading {
    font-size: 2rem;
  }
  
  .services-detailed-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-detail-card {
    padding: 2rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .service-detail-card h3 {
    font-size: 1.3rem;
  }
  
  .process-section {
    padding: 3rem 1.5rem;
    margin: 3rem 0;
  }
  
  .process-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .process-step {
    padding: 1.5rem;
  }
  
  .faq-section {
    margin: 3rem 0;
  }
  
  .faq-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .faq-question {
    padding: 1.2rem;
    font-size: 1rem;
  }
  
  .services-cta-banner {
    padding: 3rem 1.5rem;
    margin: 3rem 0;
  }
  
  .services-cta-banner h2 {
    font-size: 1.8rem;
  }
  
  .cta-banner-btn {
    padding: 0.9rem 2.5rem;
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .services-hero h1 {
    font-size: 1.8rem;
  }
  
  .services-hero p {
    font-size: 1rem;
  }
  
  .service-detail-card {
    padding: 1.5rem;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .service-features li {
    font-size: 0.95rem;
  }
  
  .service-cta {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .process-step h3 {
    font-size: 1.1rem;
  }
  
  .process-step p {
    font-size: 0.95rem;
  }
}

/* Print Styles for Services Page */
@media print {
  .services-hero,
  .services-cta-banner,
  .service-cta,
  .cta-banner-btn,
  .faq-question::after {
    display: none !important;
  }
  
  .faq-item {
    break-inside: avoid;
    border: 1px solid #ddd !important;
  }
  
  .faq-answer {
    max-height: none !important;
    padding: 0 1.5rem 1.5rem !important;
    display: block !important;
  }
  
  .service-detail-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  
  .service-icon {
    background: #333 !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Animation for FAQ items */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item.active .faq-answer {
  animation: fadeIn 0.3s ease;
}

/* Accessibility improvements */
.service-cta:focus,
.cta-banner-btn:focus,
.faq-question:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-detail-card,
  .process-step,
  .faq-item {
    border: 2px solid var(--text);
  }
  
  .service-icon {
    background: var(--text);
    color: var(--bg);
  }
}