/* Apex Plus Construction — Clean, professional styles */
:root {
  --primary: #1a2a3a;
  --secondary: #c9a227;
  --accent: #2c4a6e;
  --light: #f8f6f1;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 8px;
  --transition: all 0.3s ease;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
}

.logo span {
  color: var(--secondary);
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--secondary);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary);
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn:hover {
  background: transparent;
  color: var(--secondary);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-dark:hover {
  background: transparent;
  color: var(--primary);
}

/* Mobile nav */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  height: 78vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,42,58,0.55), rgba(26,42,58,0.75));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.underline {
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin: 0.8rem auto 0;
}

/* Services cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card .card-body {
  padding: 1.5rem;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* About / Why us */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-content h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

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

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--secondary);
  font-weight: 700;
}

.stat span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Projects gallery */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.project-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-item:hover img {
  transform: scale(1.06);
}

.project-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,42,58,0.85), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: var(--transition);
}

.project-item:hover .overlay {
  opacity: 1;
}

.project-item .overlay h4 {
  color: var(--white);
  font-size: 1.05rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card .photo {
  height: 260px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  font-weight: 700;
}

.team-card .info {
  padding: 1.5rem;
}

.team-card h3 {
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.team-card .role {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.team-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-card .icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-card h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.info-card p, .info-card a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.info-card a:hover {
  color: var(--secondary);
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* CTA band */
.cta-band {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-band h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 1.75rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background: #111c28;
  color: #aab4c0;
  padding: 3.5rem 1.5rem 1.5rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.55rem;
}

.footer a:hover {
  color: var(--secondary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #2a3a4a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.85;
  font-size: 1.1rem;
}

/* Utilities */
.bg-light {
  background: var(--light);
}

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

.mt-2 { margin-top: 2rem; }

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 1rem;
  }
}

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 65vh;
    min-height: 420px;
  }
}