/* =============================================
   TDI — Services Page Styles
   ============================================= */

/* PAGE HERO */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding-top: 72px;
  overflow: hidden;
  background: transparent;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -10%;
  width: 120%;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200'%3E%3Cpath fill='%230d7f6e' fill-opacity='0.12' d='M0,100 C360,160 720,40 1080,100 C1260,130 1380,80 1440,100 L1440,200 L0,200 Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  animation: wave 8s ease-in-out infinite alternate;
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 4rem;
}

.page-hero-content .hero-eyebrow {
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}

.page-hero-content .hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
}

.page-hero-content .hero-sub {
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

/* =============================================
   SERVICES SECTION
   ============================================= */

.section-services {
  background: rgba(10, 40, 70, 0.45);
}

/* Banner image */
.services-banner {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-card);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.service-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.64);
  transition: background var(--transition);
}

.service-item:nth-child(even)      { border-right: none; }
.service-item:nth-last-child(-n+2) { border-bottom: none; }
.service-item:hover                { background: rgba(255,255,255,0.12); }

.service-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--clr-teal-lt);
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
  transition: color var(--transition);
}

.service-item:hover .service-num {
  color: #ffdc50;
}

.service-body h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
/*  color: #eeec50;*/
  color: rgba(95,95,155,0.92); 
  margin-bottom: 0.6rem;
}

.service-body p {
  font-size: 0.88rem;
  color: rgba(5,5,5,0.95);
  line-height: 1.65;
  margin: 0;
}

/* =============================================
   PROJECTS SECTION
   ============================================= */

.section-projects {
  background: rgba(10, 40, 70, 0.45);
}

.section-lead {
  max-width: 680px;
  font-size: 1rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 2.5rem;
}

.key-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-top: 2rem;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.84);
  font-size: 0.9rem;
}

.projects-table thead {
  background: var(--clr-navy);
  color: #fff;
}

.projects-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.projects-table td {
  padding: 1rem 1.25rem;
  color: rgba(5,5,5,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.projects-table td strong {
  color: #ffdc50;
  font-weight: 600;
}

.projects-table tbody tr:last-child td { border-bottom: none; }

.projects-table tbody tr:hover td {
  background: rgba(255,255,255,0.08);
}

/* =============================================
   EFFICIENCY SECTION
   ============================================= */

.section-efficiency {
  background: rgba(10, 40, 70, 0.45);
}

.parabolic-second {
  margin-top: 3rem;
}

/* =============================================
   CTA SECTION
   ============================================= */

.section-cta {
  background: var(--clr-navy);
}

.cta-box {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.cta-box h2 {
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

.cta-sub {
  font-family: var(--font-display);
  font-size: 1.1rem;
/*  color: #ffdc50;*/
  color: rgb(100, 100, 255);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem !important;
}

.section-cta .btn-primary {
/*  background: #ffdc50;*/
  background: rgb(100, 100, 255);
  color: #0a2840;
}

.section-cta .btn-primary:hover {
  background: #ffe780;
  box-shadow: 0 6px 20px rgba(255, 220, 80, 0.4);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .services-grid              { grid-template-columns: 1fr; }
  .service-item               { border-right: none; }
  .service-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .service-item:last-child    { border-bottom: none; }
}
