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

:root {
  --primary: #1a3c5e;
  --accent: #e07b2a;
  --light: #f5f7fa;
  --text: #333;
}

body { font-family: 'Segoe UI', sans-serif; color: var(--text); background: #fff; overflow-x: hidden; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary); display: flex;
  justify-content: space-between; align-items: center;
  padding: 0 5%; height: 64px;
}
.logo { color: #fff; font-size: 1.2rem; font-weight: 700; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: #cdd8e3; text-decoration: none; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: #fff; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary) 60%, #2a6496) !important;
  color: #fff !important; text-align: center;
  padding: 80px 5%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 16px; color: #fff; }
.hero p { font-size: 1.1rem; opacity: .85; max-width: 640px; margin: 0 auto 32px; color: #fff; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 12px 28px; border-radius: 4px; font-size: 1rem;
  cursor: pointer; border: none; text-decoration: none; transition: opacity .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn:hover { opacity: .85; }

/* SECTIONS */
section { padding: 72px 5%; background: #fff; }
section:nth-child(even) { background: var(--light); }
.section-title {
  text-align: center; font-size: 1.8rem; color: var(--primary);
  margin-bottom: 12px;
}
.section-title::after {
  content: ''; display: block; width: 56px; height: 3px;
  background: var(--accent); margin: 10px auto 40px;
}

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-text p { line-height: 1.8; margin-bottom: 14px; }
.philosophy { background: var(--primary); color: #fff; border-radius: 8px; padding: 28px; }
.philosophy h3 { color: var(--accent); margin-bottom: 16px; }
.philosophy li { margin: 8px 0 8px 18px; line-height: 1.6; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.card {
  background: #fff; border-radius: 8px; padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08); text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.card-icon { font-size: 2.4rem; margin-bottom: 14px; }
.card h3 { color: var(--primary); margin-bottom: 8px; }
.card p { font-size: .9rem; color: #555; line-height: 1.6; }

/* CLIENTS */
.clients-category { max-width: 1000px; margin: 0 auto 48px; }
.clients-category:last-child { margin-bottom: 0; }

.category-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
}
.category-icon { font-size: 1.6rem; }
.category-header h3 { font-size: 1.2rem; color: var(--primary); }

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.project-card {
  background: #fff;
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  border-top: 3px solid var(--accent);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.13); }
.project-card h4 { color: var(--primary); font-size: 1rem; margin: 10px 0 8px; }
.project-card p { font-size: .88rem; color: #555; line-height: 1.6; }

.project-badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
}
.project-badge.road     { background: #e8f4fd; color: #1a6fa8; }
.project-badge.building { background: #eaf7ea; color: #2a7a2a; }
.project-badge.drain    { background: #fdf3e8; color: #b85c00; }
.project-badge.colony   { background: #f0eafd; color: #5a2ab8; }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; max-width: 700px; margin: 0 auto; }
.team-card { background: #fff; border-radius: 8px; padding: 32px 20px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.team-card h3 { color: var(--primary); margin-bottom: 6px; }
.team-card p { font-size: .85rem; color: #666; }
.team-note { text-align: center; margin-top: 32px; color: #555; max-width: 600px; margin-left: auto; margin-right: auto; }

/* CONTACT */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 900px; margin: 0 auto; }
.contact-info p { margin: 10px 0; line-height: 1.7; }
.contact-info a { color: var(--accent); text-decoration: none; }
.contact-info .icon { margin-right: 8px; }
form { display: flex; flex-direction: column; gap: 14px; }
form input, form textarea {
  padding: 12px 14px; border: 1px solid #ccc; border-radius: 4px;
  font-size: .95rem; font-family: inherit; resize: vertical;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--primary); }
form button { align-self: flex-start; }
.form-msg { color: green; display: none; }

/* FOOTER */
footer {
  background: var(--primary); color: #aab8c5;
  text-align: center; padding: 24px 5%; font-size: .88rem;
}
footer span { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary); padding: 16px 5%; gap: 16px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
  .hero { min-height: calc(100vh - 64px); padding: 48px 5%; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }
}
