
/* ========================================
   STAF-SG — Service Pages Specific Styles
   Add this to the main style.css
   ======================================== */

/* --- Service Page Hero --- */
.service-hero {
  background: transparent; /* image gère le fond */
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.service-hero::before { display: none !important; }

.service-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.service-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.service-hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
}

.service-hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-hero-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .service-hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .service-hero-image img {
    height: 280px;
  }
}

/* --- Service quick stats --- */
.service-quickstats {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: -60px;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.service-quickstat {
  text-align: center;
}

.service-quickstat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 4px;
}

.service-quickstat-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .service-quickstats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: -40px;
  }
}

/* --- Two-col content section --- */
.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.content-two-col-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.content-two-col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 360px;
}

.content-two-col h2 {
  margin-bottom: var(--space-lg);
}

.content-two-col h3 {
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
  font-size: 1.125rem;
}

.content-two-col h3:first-of-type {
  margin-top: 0;
}

.content-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.content-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  background-color: rgba(232, 119, 34, 0.15);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23E87722' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.content-list li strong {
  color: var(--color-text);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .content-two-col {
    grid-template-columns: 1fr;
  }
}

/* --- Service feature cards --- */
.service-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-feature {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition);
}

.service-feature:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background-color: rgba(232, 119, 34, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.service-feature h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-sm);
}

.service-feature p {
  font-size: 0.9375rem;
  margin: 0;
}

@media (max-width: 1024px) {
  .service-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .service-features {
    grid-template-columns: 1fr;
  }
}

/* --- Process timeline (vertical for service pages) --- */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

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

.timeline-step {
  position: relative;
  padding-left: 80px;
  padding-bottom: var(--space-2xl);
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 0 0 8px var(--color-bg);
  z-index: 2;
}

.timeline-step h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.timeline-step p {
  margin: 0;
}

@media (max-width: 640px) {
  .timeline-step {
    padding-left: 60px;
  }

  .timeline-step-number {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .timeline::before {
    left: 21px;
  }
}

/* --- FAQ accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--color-accent);
}

.faq-question {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  background: transparent;
  cursor: pointer;
  transition: background-color var(--transition);
}

.faq-question:hover {
  background-color: var(--color-bg-section);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Inline CTA banner --- */
.inline-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.inline-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at top right, rgba(232, 119, 34, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.inline-cta-content {
  position: relative;
  z-index: 2;
}

.inline-cta h3 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.inline-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.inline-cta-btn {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .inline-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* --- Related services / corridors --- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.related-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: all var(--transition);
}

.related-card:hover {
  border-color: var(--color-accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.related-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: rgba(232, 119, 34, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.related-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}

.related-card-content {
  flex: 1;
}

.related-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.related-card-arrow {
  color: var(--color-accent);
  font-size: 1.125rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.related-card:hover .related-card-arrow {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}
