/**
 * service-page.css - Standardized styles for all service detail pages
 * EventsXp Rwanda - Professional Conference Organizer (PCO)
 */

/* Service Page Layout & Variables */
:root {
  --service-accent: var(--brand-primary, #138e9e);
  --service-text: var(--brand-text, #202124);
  --service-light: var(--brand-light, #ffffff);
  --service-dark: var(--brand-dark, #0a0a0a);
  --service-muted: var(--brand-muted, #64748b);
  --service-border: var(--brand-border, rgba(0, 0, 0, 0.08));
  --service-gradient: linear-gradient(135deg, var(--service-accent), #0d6979);
  --service-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --service-transition: all 0.3s ease;
  --service-radius: 8px;
  --service-spacing: clamp(2rem, 5vw, 5rem);
}

body {
  color: var(--service-text);
}

/* Service Hero Section */
.service-hero {
  background: var(--service-gradient);
  color: var(--service-light);
  padding: calc(var(--service-spacing) * 1.5) 0;
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/pattern-dots.png');
  background-size: 20px;
  opacity: 0.15;
  pointer-events: none;
}

.service-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.service-breadcrumbs {
  font-size: 14px;
  margin-bottom: 1.5rem;
}

.service-breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--service-transition);
}

.service-breadcrumbs a:hover {
  color: var(--service-light);
  text-decoration: underline;
}

.service-breadcrumbs span {
  color: var(--service-light);
}

.service-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.service-tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 800px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.service-cta {
  margin-top: 2rem;
}

/* Service Overview Section */
.service-overview {
  padding: var(--service-spacing) 0;
  background-color: var(--service-light);
}

.service-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .service-overview-grid {
    grid-template-columns: 3fr 2fr;
    align-items: center;
  }
}

.service-overview-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--service-text);
}

.service-overview-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--service-text);
}

.service-highlights {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.highlight-item i {
  color: var(--service-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.service-overview-image {
  border-radius: var(--service-radius);
  overflow: hidden;
  box-shadow: var(--service-shadow);
}

.service-overview-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--service-transition);
}

/* Service Process Section */
.service-process {
  padding: var(--service-spacing) 0;
  background-color: #f7f9fc;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--service-text);
}

.process-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 15px;
  bottom: 15px;
  width: 2px;
  background-color: var(--service-border);
}

@media (min-width: 768px) {
  .process-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.process-step {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 60px;
}

@media (min-width: 768px) {
  .process-step {
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  .process-step:nth-child(even) .process-step-content {
    order: -1;
    text-align: right;
  }
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--service-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  z-index: 2;
}

@media (min-width: 768px) {
  .process-step-number {
    left: 50%;
    transform: translateX(-50%);
  }
}

.process-step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--service-text);
}

.process-step-content p {
  color: var(--service-muted);
  line-height: 1.6;
}

/* Service Benefits Section */
.service-benefits {
  padding: var(--service-spacing) 0;
  background-color: var(--service-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  padding: 1.8rem;
  border-radius: var(--service-radius);
  background-color: #f7f9fc;
  text-align: center;
  transition: var(--service-transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--service-shadow);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.2rem;
  background-color: rgba(19, 142, 158, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon i {
  font-size: 24px;
  color: var(--service-accent);
}

.benefit-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--service-text);
}

.benefit-card p {
  color: var(--service-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Case Studies Section */
.service-case-studies {
  padding: var(--service-spacing) 0;
  background-color: #f7f9fc;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .case-studies-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.case-study-card {
  background-color: var(--service-light);
  border-radius: var(--service-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: var(--service-transition);
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--service-shadow);
}

.case-study-image {
  height: 200px;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-study-card:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-content {
  padding: 1.5rem;
}

.case-study-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--service-text);
}

.case-study-content p {
  color: var(--service-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.case-study-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--service-border);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--service-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--service-muted);
  margin-top: 0.3rem;
}

/* CTA Section */
.service-cta-section {
  padding: var(--service-spacing) 0;
  background-color: var(--service-accent);
  color: var(--service-light);
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--service-light);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--service-light);
}

/* Related Services Section */
.related-services {
  padding: var(--service-spacing) 0;
  background-color: var(--service-light);
}

.related-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-service-card {
  padding: 1.8rem;
  border-radius: var(--service-radius);
  background-color: #f7f9fc;
  border: 1px solid var(--service-border);
  transition: var(--service-transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.related-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--service-shadow);
  border-color: var(--service-accent);
}

.related-service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  background-color: rgba(19, 142, 158, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-service-icon i {
  font-size: 20px;
  color: var(--service-accent);
}

.related-service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--service-text);
}

.related-service-card p {
  color: var(--service-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.related-service-card .service-link-text {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--service-accent);
  display: flex;
  align-items: center;
  margin-top: 0.8rem;
}

.related-service-card .service-link-text i {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.related-service-card:hover .service-link-text i {
  transform: translateX(3px);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .service-hero {
    padding: calc(var(--service-spacing) * 0.8) 0;
  }

  .service-title {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-hero-content,
.service-overview-content,
.service-overview-image,
.process-step,
.benefit-card,
.case-study-card {
  animation: fadeIn 0.8s ease-out forwards;
}

.benefit-card:nth-child(2) {
  animation-delay: 0.15s;
}

.benefit-card:nth-child(3) {
  animation-delay: 0.3s;
}

.benefit-card:nth-child(4) {
  animation-delay: 0.45s;
}

.process-step:nth-child(1) {
  animation-delay: 0.1s;
}

.process-step:nth-child(2) {
  animation-delay: 0.2s;
}

.process-step:nth-child(3) {
  animation-delay: 0.3s;
}

.process-step:nth-child(4) {
  animation-delay: 0.4s;
}

.process-step:nth-child(5) {
  animation-delay: 0.5s;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .service-hero-content,
  .service-overview-content,
  .service-overview-image,
  .process-step,
  .benefit-card,
  .case-study-card {
    animation: none;
  }

  .related-service-card:hover {
    transform: none;
  }

  .benefit-card:hover {
    transform: none;
  }

  .case-study-card:hover .case-study-image img {
    transform: none;
  }
}
