/* ===================================
   Services Page Specific Styles
   =================================== */

/* Added page-hero styles (was missing, only had page-header) */
.page-hero {
  background: linear-gradient(135deg, rgba(25, 118, 165, 0.9), rgba(38, 50, 56, 0.8)),
    url("/placeholder.svg?height=400&width=1920") center / cover;
  color: var(--surface);
  text-align: center;
  padding: var(--space-8) 0 var(--space-6);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero__subtitle {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .page-hero {
    min-height: 400px;
  }

  .page-hero__title {
    font-size: 3.5rem;
  }

  .page-hero__subtitle {
    font-size: 1.25rem;
  }
}

/* Rewrote service card styles to match actual HTML structure */
/* Services Grid */
.services-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

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

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

.service-card {
  background: var(--surface);
  border-radius: 8px;
  padding: var(--space-4);
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--shadow-lg);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text);
  line-height: 1.4;
}

.service-card__description {
  color: var(--muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: var(--space-2);
}

.service-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--accent);
  font-weight: 600;
  padding: var(--space-1) 0;
  transition: opacity var(--transition-fast);
  align-self: flex-start;
}

.service-card__toggle:hover {
  opacity: 0.8;
}

.service-card__toggle svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
}

/* Process Section */
.process-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step {
  text-align: center;
  padding: var(--space-4);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform var(--transition-base);
}

.process-step:hover {
  transform: translateY(-4px);
}

.process-step__number {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--space-3);
  box-shadow: 0 4px 12px rgba(25, 118, 165, 0.3);
}

.process-step__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.process-step__description {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* Service Detail Sections */
.service-detail {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 1024px) {
  .service-detail {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .service-detail--reverse {
    direction: rtl;
  }

  .service-detail--reverse > * {
    direction: ltr;
  }
}

.service-detail__content {
  padding: var(--space-2) 0;
}

.service-detail__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--text);
  line-height: 1.2;
}

.service-detail__intro {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: var(--space-4);
}

.service-detail__features {
  margin-bottom: var(--space-4);
}

.service-detail__subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text);
}

.service-detail__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-detail__list li {
  padding-left: var(--space-4);
  position: relative;
  color: var(--muted);
  line-height: 1.6;
}

.service-detail__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
}

.service-detail__image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow-lg);
}

.service-detail__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Enhanced CTA section with better overlay and text visibility */
/* CTA Section with Background */
.cta-section {
  padding: var(--space-8) 0;
}

.cta-section--with-bg {
  position: relative;
  background-image: linear-gradient(rgba(38, 50, 56, 0.85), rgba(25, 118, 165, 0.75)),
    url("../images/services/construction-management.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--surface);
  padding: var(--space-8) 0;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.cta-section--with-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(38, 50, 56, 0.4);
  z-index: 1;
}

.cta-section--with-bg .container {
  position: relative;
  z-index: 2;
}

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

.cta-content__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--surface);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.cta-content__text {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--space-4);
  color: var(--surface);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
}

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

/* Ensure buttons are visible on dark background */
.cta-section--with-bg .btn--primary {
  background: var(--accent-2);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-section--with-bg .btn--primary:hover {
  background: var(--accent-2);
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.cta-section--with-bg .btn--secondary {
  background: transparent;
  color: var(--surface);
  border: 2px solid var(--surface);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-section--with-bg .btn--secondary:hover {
  background: var(--surface);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Mobile optimization for background */
@media (max-width: 768px) {
  .cta-section--with-bg {
    background-attachment: scroll;
    min-height: 300px;
  }

  .cta-content__title {
    font-size: 2rem;
  }

  .cta-content__text {
    font-size: 1rem;
  }

  .cta-content__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-content__actions .btn {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .cta-content__title {
    font-size: 3rem;
  }

  .service-detail__title {
    font-size: 2.5rem;
  }
}
