/* ========================================
   SERVICE PAGE SPECIFIC STYLES
   Additional styles for service subpages
   ======================================== 
   
   INSTALLATION:
   Place this file in your website root directory: /service-pages.css
   
   This file is automatically loaded by service pages via $additionalHead
   in the page PHP configuration. No need to modify header.php!
   
   USAGE:
   Any service page that includes this in $additionalHead will get these styles:
   
   $additionalHead = '
   <link href="/service-pages.css" rel="stylesheet">
   ';
   
   DEPENDENCIES:
   Requires your main styles.css to be loaded first (which happens via header.php)
   This CSS file uses CSS variables defined in styles.css:
   - Color variables (--primary, --accent, etc.)
   - Spacing variables (--space-*, etc.)
   - Shadow variables (--shadow-*, etc.)
   - Radius variables (--radius-*, etc.)
   
   ======================================== */

/* ========== SERVICE HERO ========== */
.service-hero {
  padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-16);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.03) 0%, rgba(0, 212, 170, 0.03) 100%);
  border-bottom: 1px solid var(--border);
}

.service-hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: var(--space-6);
}

.breadcrumb ol {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--text-light);
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-light);
  transition: color var(--transition-base);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb li[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* Service Badge */
.service-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 212, 170, 0.08) 100%);
  border: 1px solid rgba(0, 102, 255, 0.15);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.service-badge svg {
  width: 16px;
  height: 16px;
}

/* Service Hero Text */
.service-hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  color: var(--dark);
}

.service-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: var(--space-8);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Service Hero Stats */
.service-hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.service-hero-stats .stat-item {
  text-align: center;
}

.service-hero-stats .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.service-hero-stats .stat-label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

/* Service CTA Buttons */
.service-cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== COMMON ISSUES SECTION ========== */
.common-issues {
  padding: var(--space-20) 0;
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.issue-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.issue-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.issue-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.issue-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.issue-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-3);
}

.issue-card > p {
  color: var(--text-light);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.issue-symptoms {
  list-style: none;
  padding: 0;
  margin: 0;
}

.issue-symptoms li {
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  font-size: 14px;
  color: var(--text);
  position: relative;
}

.issue-symptoms li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* ========== DETAILED SERVICES ACCORDION ========== */
.detailed-services {
  padding: var(--space-20) 0;
  background: var(--bg-light);
}

.services-accordion {
  margin-top: var(--space-10);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: all var(--transition-base);
}

.accordion-item:hover {
  box-shadow: var(--shadow-md);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  cursor: pointer;
  gap: var(--space-4);
  transition: background var(--transition-base);
}

.accordion-header:hover {
  background: var(--bg-subtle);
}

.accordion-title {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  flex: 1;
}

.accordion-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 170, 0.1) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accordion-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.accordion-title h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 var(--space-1) 0;
}

.accordion-title p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

.accordion-price {
  text-align: right;
  flex-shrink: 0;
}

.price-from {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 3000px;
}

.accordion-content > div {
  padding: 0 var(--space-6) var(--space-6);
}

/* Service Details Grid */
.service-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}

.service-detail-column h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-4);
}

/* Service Note & Highlight */
.service-note,
.service-highlight {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
  margin-top: var(--space-5);
}

.service-note.warning {
  border-left-color: var(--warning);
}

.service-note svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-note.warning svg {
  color: var(--warning);
}

.service-note p,
.service-highlight {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

/* Upgrade Options */
.upgrade-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.upgrade-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.upgrade-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.upgrade-header h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.upgrade-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.upgrade-benefit {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: var(--space-4);
}

.upgrade-price {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}

/* ========== PROCESS SECTION ========== */
.service-process {
  padding: var(--space-20) 0;
}

.process-steps {
  max-width: 800px;
  margin: var(--space-10) auto 0;
}

.process-step {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 56px;
  width: 2px;
  height: calc(100% + var(--space-4));
  background: linear-gradient(to bottom, var(--primary) 0%, var(--border) 100%);
}

.process-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-primary);
}

.process-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-2);
}

.process-content p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== PRICING SECTION ========== */
.pricing-section {
  padding: var(--space-20) 0;
  background: var(--bg-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-primary-lg);
}

.pricing-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--primary);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-4);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2);
}

.pricing-amount .price-from {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-amount .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.pricing-description {
  color: var(--text-light);
  text-align: center;
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-features span {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.pricing-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 900px;
  margin: var(--space-10) auto 0;
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pricing-note svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.pricing-note p {
  font-size: 15px;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

/* ========== WHY US SERVICE ========== */
.why-us-service {
  padding: var(--space-20) 0;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.why-us-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-base);
}

.why-us-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.why-us-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.why-us-icon svg {
  width: 32px;
  height: 32px;
  color: var(--white);
}

.why-us-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-3);
}

.why-us-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== FAQS SECTION ========== */
.faqs-section {
  padding: var(--space-20) 0;
  background: var(--bg-light);
}

.faqs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-3);
}

.faq-item p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.faq-item a {
  color: var(--primary);
  text-decoration: underline;
}

/* ========== RELATED SERVICES ========== */
.related-services-section {
  padding: var(--space-16) 0;
  background: var(--bg-light);
}

.related-services-section h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-8);
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
  .service-hero {
    padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-12);
  }
  
  .service-hero-stats {
    gap: var(--space-6);
  }
  
  .service-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .service-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  .issues-grid {
    grid-template-columns: 1fr;
  }
  
  .service-details-grid {
    grid-template-columns: 1fr;
  }
  
  .accordion-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .accordion-price {
    align-self: flex-end;
  }
  
  .process-step {
    gap: var(--space-4);
  }
  
  .process-step::after {
    left: 15px;
  }
  
  .process-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-amount .price {
    font-size: 2.5rem;
  }
  
  .why-us-grid {
    grid-template-columns: 1fr;
  }
  
  .faqs-grid {
    grid-template-columns: 1fr;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .service-hero-text h1 {
    font-size: 1.75rem;
  }
  
  .service-subtitle {
    font-size: 1rem;
  }
  
  .service-hero-stats .stat-number {
    font-size: 1.5rem;
  }
  
  .accordion-title {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .accordion-icon {
    width: 40px;
    height: 40px;
  }
  
  .accordion-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .upgrade-options {
    grid-template-columns: 1fr;
  }
  
  .pricing-amount .price {
    font-size: 2rem;
  }
}