/* ============================================
   SERVICE DETAIL PAGE STYLES
   Purpose: Styles for service-detail.ejs
   ============================================ */

/* ============================================
   SERVICE HEADER
   ============================================ */

.service-header {
  padding: 32px 0;
  text-align: center;
}

@media (min-width: 768px) {
  .service-header {
    padding: 48px 0;
  }
}

.service-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .service-title {
    font-size: 36px;
    margin-bottom: 20px;
  }
}

@media (min-width: 1024px) {
  .service-title {
    font-size: 42px;
    margin-bottom: 24px;
  }
}

.service-meta-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .service-meta-header {
    gap: 24px;
  }
}

.service-category-badge {
  background: var(--accent-orange);
  color: var(--text-on-primary);
  padding: 6px 16px;
  border-radius: var(--radius-small);
  font-size: var(--font-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .service-category-badge {
    padding: 8px 20px;
    font-size: var(--font-body);
  }
}

/* ============================================
   SERVICE HERO
   ============================================ */

.service-hero {
  padding: 40px 0;
  background: var(--pure-white);
}

@media (min-width: 768px) {
  .service-hero {
    padding: 60px 0;
  }
}

.service-hero-image {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .service-hero-image {
    border-radius: var(--radius-large);
  }
}

.service-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   SERVICE CONTENT
   ============================================ */

.service-content {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .service-content {
    padding: 64px 0;
  }
}

@media (min-width: 1024px) {
  .service-content {
    padding: 80px 0;
  }
}

.service-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .service-layout {
    grid-template-columns: 2fr 1fr;
    gap: 60px;
  }
}

.service-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .service-main {
    gap: 40px;
  }
}

.service-description {
  line-height: 1.7;
}

.service-description h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 32px;
  margin-bottom: 16px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .service-description h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
  }
}

.service-description h2:first-child {
  margin-top: 0;
}

.service-description h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 24px;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .service-description h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 16px;
  }
}

.service-description p {
  margin-bottom: 16px;
  color: var(--text-dark);
  font-size: var(--font-body);
}

@media (min-width: 768px) {
  .service-description p {
    font-size: 18px;
    margin-bottom: 20px;
  }
}

.service-description ul,
.service-description ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .service-description ul,
  .service-description ol {
    margin-bottom: 20px;
  }
}

.service-description li {
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: var(--font-body);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .service-description li {
    font-size: 18px;
    margin-bottom: 10px;
  }
}

/* ============================================
   SERVICE SIDEBAR
   ============================================ */

.service-sidebar {
  position: relative;
}

.sidebar-card {
  background: var(--card-bg);
  border-radius: var(--radius-medium);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .sidebar-card {
    padding: 32px;
    margin-bottom: 32px;
  }
}

@media (min-width: 1024px) {
  .sidebar-card:first-child {
    position: sticky;
    top: 100px;
  }
}

.sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

@media (min-width: 768px) {
  .sidebar-title {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
}

.sidebar-text {
  font-size: var(--font-body);
  color: var(--text-medium);
  margin-bottom: 20px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .sidebar-text {
    font-size: 18px;
    margin-bottom: 24px;
  }
}

.sidebar-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

@media (min-width: 768px) {
  .sidebar-item {
    padding: 16px 0;
  }
}

.sidebar-item:last-of-type {
  border-bottom: none;
}

.sidebar-label {
  font-size: var(--font-small);
  color: var(--text-medium);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

@media (min-width: 768px) {
  .sidebar-label {
    font-size: var(--font-small);
    margin-bottom: 8px;
  }
}

.sidebar-value {
  font-size: var(--font-body);
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .sidebar-value {
    font-size: 18px;
  }
}

.sidebar-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .sidebar-cta {
    gap: 16px;
  }
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* ============================================
   RELATED PROJECTS
   ============================================ */

.related-projects {
  background: var(--bg-secondary);
  padding: 48px 0;
}

@media (min-width: 768px) {
  .related-projects {
    padding: 64px 0;
  }
}

@media (min-width: 1024px) {
  .related-projects {
    padding: 80px 0;
  }
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 36px;
    margin-bottom: 16px;
  }
}

.section-subtitle {
  font-size: var(--font-body);
  color: var(--text-medium);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .section-subtitle {
    font-size: 18px;
    margin-bottom: 56px;
  }
}

.related-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .related-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (min-width: 1024px) {
  .related-projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 56px;
  }
}

.section-cta {
  text-align: center;
}

/* ============================================
   OTHER SERVICES
   ============================================ */

.other-services {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .other-services {
    padding: 64px 0;
  }
}

@media (min-width: 1024px) {
  .other-services {
    padding: 80px 0;
  }
}

/* ============================================
   SERVICE CTA
   ============================================ */

.service-cta {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  padding: 60px 0;
}

@media (min-width: 768px) {
  .service-cta {
    padding: 80px 0;
  }
}

@media (min-width: 1024px) {
  .service-cta {
    padding: 100px 0;
  }
}

.cta-content {
  text-align: center;
}

.cta-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 36px;
    margin-bottom: 20px;
  }
}

@media (min-width: 1024px) {
  .cta-title {
    font-size: 42px;
    margin-bottom: 24px;
  }
}

.cta-subtitle {
  font-size: var(--font-body);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .cta-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
  }
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
    gap: 20px;
  }
}

.cta-buttons .btn {
  width: 100%;
  max-width: 280px;
}

@media (min-width: 768px) {
  .cta-buttons .btn {
    width: auto;
    min-width: 220px;
  }
}



.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 2em 0;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}