<section id="services">
  <div class="container">
    <div class="services-header">
      <div>
        <div class="section-eyebrow">What We Do</div>
        <h2>Our Core<br>Services</h2>
      </div>
      <a href="#services-page" class="btn-secondary" style="white-space:nowrap;">All Services</a>
    </div>
    <div class="services-grid">
      <?php
      $services = [
        ['01', 'M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z M9 22V12h6v10', 'Residential Construction', 'Custom homes, housing estates, and residential complexes built to the highest standards — from foundation to finish.'],
        ['02', 'M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z M9 22V12h6v10', 'Commercial Construction', 'Office buildings, retail spaces, hotels, and mixed-use developments delivered with precision planning and execution.'],
        ['03', 'M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94l-6.91 6.91a2.12 2.12 0 01-3-3l6.91-6.91a6 6 0 017.94-7.94l-3.76 3.76z', 'Renovation & Remodeling', 'Breathing new life into existing structures — interior renovations, structural upgrades, and complete remodels.'],
        ['04', 'M2 22l1-1h18l1 1M3 9l9-7 9 7v12H3V9z M9 22V12h6v10', 'Civil & Infrastructure', 'Roads, bridges, drainage systems, and public infrastructure built to serve communities for generations.'],
        ['05', 'M9 17H5a2 2 0 01-2-2V5a2 2 0 012-2h14a2 2 0 012 2v5M13 21l9-9-4-4-9 9v4h4z', 'Design & Build', 'Integrated design and construction services — one team, one contract, seamless accountability from concept to handover.'],
        ['06', 'M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z', 'Project Management', 'Expert construction management services for clients who need professional oversight of complex, multi-stakeholder projects.']
      ];
      foreach($services as $s): ?>
      <div class="service-card fade-up">
        <div class="service-num"><?php echo $s[0]; ?></div>
        <div class="service-icon"><svg viewBox="0 0 24 24"><path d="<?php echo $s[1]; ?>"/></svg></div>
        <h3><?php echo $s[2]; ?></h3>
        <p><?php echo $s[3]; ?></p>
        <a href="#contact" class="service-link">Discuss Project <svg viewBox="0 0 24 24" width="14" height="14"><path d="M5 12h14M12 5l7 7-7 7"/></svg></a>
      </div>
      <?php endforeach; ?>
    </div>
  </div>
</section>

<style>
#services {
  padding: 120px 0;
  background: #FDF8F0; /* Light warm gold/cream background */
}
.services-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 64px;
  gap: 40px;
}
.services-header h2 {
  font-size: clamp(48px, 5vw, 72px);
  color: var(--charcoal); /* Dark text for light background */
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; /* Increased gap for card separation on light background */
}
.service-card {
  background: var(--white);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: default;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { 
  background: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  color: rgba(200,169,110,0.12);
  line-height: 1;
  position: absolute;
  top: 24px;
  right: 24px;
  letter-spacing: 0;
  transition: color var(--transition);
}
.service-card:hover .service-num { color: rgba(200,169,110,0.25); }
.service-icon {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(200,169,110,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  background: #FDF8F0;
  border-radius: 4px;
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.service-card h3 { 
  font-size: 28px; 
  color: var(--charcoal); /* Dark text for light background */
  margin-bottom: 14px; 
}
.service-card p { 
  font-size: 14px; 
  color: var(--stone); 
  line-height: 1.75; 
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: gap var(--transition);
}
.service-link:hover { gap: 14px; }
.service-link svg { fill: none; stroke: currentColor; stroke-width: 2; }
/* Update eyebrow for light background */
#services .section-eyebrow {
  color: var(--gold);
}
#services .section-eyebrow::before {
  background: var(--gold);
}
/* Update secondary button for light background */
#services .btn-secondary {
  border-color: var(--gold);
  color: var(--gold);
}
#services .btn-secondary:hover {
  background: var(--gold);
  color: var(--charcoal);
}
@media (max-width: 1024px) { 
  .services-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
  }
}
@media (max-width: 768px) { 
  .services-grid { 
    grid-template-columns: 1fr; 
  } 
  .services-header { 
    grid-template-columns: 1fr; 
  }
}
</style>