/* ================================================
   WHAT WE DO PAGE STYLES
   ================================================ */

/* --- General Page Styles --- */
.nav-links a.active-page[data-lang-key="navWhatWeDo"] {
  color: var(--color-red);
}

/* --- Page Hero --- */
.page-hero-alt {
  padding: 4rem 0;
  text-align: center;
  background-color: var(--color-grey-dark);
}
body.light-mode .page-hero-alt {
  background-color: var(--color-grey-light);
}
.page-hero-alt h1 {
  font-size: 2.75rem;
}
body.light-mode .page-hero-alt h1 {
  color: var(--color-black);
}

/* --- Sticky Services Section (from homepage.css) --- */
.services-section-sticky {
  padding-top: 5rem; /* Give it top padding */
}
.services-section-sticky .services-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem auto;
}
.services-section-sticky .subtitle {
  margin-bottom: 0;
}

.services-sticky-layout {
  display: flex;
  gap: 3rem;
  position: relative;
}

.services-nav-sticky {
  flex-basis: 30%;
  position: sticky;
  top: 90px; /* 70px header + 20px breathing room */
  align-self: flex-start; /* Ensures it sticks to the top of its container */
  height: 300px; /* Needs a defined height to stick properly */
}
.services-nav-sticky nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 3px solid var(--color-grey-dark);
}
body.light-mode .services-nav-sticky nav {
  border-left: 3px solid var(--color-grey-light);
}

.service-nav-link {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-grey-medium);
  text-decoration: none;
  border-left: 3px solid transparent;
  margin-left: -3px; /* Aligns with parent border */
  transition: all var(--transition-fast);
}
.service-nav-link:hover {
  color: var(--color-white);
  opacity: 1;
}
body.light-mode .service-nav-link:hover {
  color: var(--color-black);
}

.service-nav-link.active {
  color: var(--color-red);
  border-left-color: var(--color-red);
}

.services-content {
  flex-basis: 70%;
}

.service-panel {
  background: var(--color-grey-dark);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem; /* Space between panels */
  min-height: 500px; /* Ensure panel is large enough to trigger scroll */

  scroll-margin-top: 90px;
}
body.light-mode .service-panel {
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.service-panel h3 {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}
.service-panel p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* --- Additional Services Section (from aboutpage.css) --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}
.section-header h2 {
  font-size: 2.5rem;
}

.why-section {
  /* This is the class for the "Additional" section */
  background-color: var(--color-grey-dark);
  padding: 5rem 0;
}
body.light-mode .why-section {
  background-color: var(--color-grey-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  background: var(--color-black);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid #333;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
body.light-mode .why-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.5); /* Red glow */
}
body.light-mode .why-card:hover {
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.why-card i {
  width: 32px;
  height: 32px;
  color: var(--color-red);
  margin-bottom: 1.5rem;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
body.light-mode .why-card h3 {
  color: var(--color-red);
}

.why-card p {
  font-size: 0.95rem;
  color: var(--color-grey-medium);
  line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  /* Additional services */
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Sticky services responsive */
  .services-sticky-layout {
    flex-direction: column;
  }
  .services-nav-sticky {
    position: relative;
    top: 0;
    height: auto;
    flex-basis: 100%;
    margin-bottom: 2rem;
  }
  .services-nav-sticky nav {
    flex-direction: row;
    border-left: none;
    border-bottom: 3px solid var(--color-grey-dark);
    overflow-x: auto; /* Allow horizontal scroll on mobile */
  }
  body.light-mode .services-nav-sticky nav {
    border-bottom: 3px solid var(--color-grey-light);
  }
  .service-nav-link {
    border-left: none;
    margin-left: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    text-align: center;
    flex-shrink: 0; /* Prevent links from shrinking */
  }
  .service-nav-link.active {
    border-left-color: transparent;
    border-bottom-color: var(--color-red);
  }
  .services-content {
    flex-basis: 100%;
  }

  /* Additional services responsive */
  .section-header h2 {
    font-size: 2rem;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
}
/* Update this block in what-we-do-page.css */
.service-image {
  width: 100%;
  /* REMOVE max-width: 500px; to let it fill the panel */

  /* Use a percentage or adjust this fixed height to be larger/smaller */
  height: 500px; /* Adjust this value if you want the image taller */

  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  display: block;
}
