/* ============================================
   Hafmani Nigeria Limited - Corporate Website
   Brand Palette (derived from logo)
   ============================================ */

:root {
  --primary: #4A6D8C;
  --primary-dark: #2C4A6E;
  --primary-light: #6B9DC2;
  --navy: #1B2D4F;
  --accent: #D4A54A;
  --light-bg: #F4F7FA;
  --white: #FFFFFF;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-500: #6C757D;
  --gray-700: #495057;
  --gray-900: #212529;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
  /* Nav variables (match home page) */
  --blue: #2d5986;
  --bg: #f0f4f8;
  --text: #1e2d3d;
  --border: #dde4ed;
  --gray: #6b7c93;
  --tr: all .3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-900);
  line-height: 1.7;
  background: var(--white);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }


/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 60%, var(--primary) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.15rem; opacity: 0.9; max-width: 600px; margin-bottom: 30px; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: #c4952e; color: var(--navy); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  margin-left: 12px;
}
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.1); }

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section-light { background: var(--light-bg); }
.section-title { font-size: 2rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.section-subtitle {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 48px;
}
.section-subtitle.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-title.centered { text-align: center; }

/* ---- Stats Bar ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--white);
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.stat-number { font-size: 2.2rem; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--gray-500); font-size: 0.9rem; margin-top: 4px; }

/* ---- Service Cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--primary);
}
.service-icon {
  width: 60px; height: 60px;
  background: var(--light-bg);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: var(--primary);
}
.service-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; }
.service-card p { color: var(--gray-500); font-size: 0.95rem; }

/* ---- About Preview ---- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-preview-img {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: var(--radius);
  height: 360px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 4rem;
}
.about-preview-text h2 { font-size: 2rem; color: var(--navy); margin-bottom: 16px; }
.about-preview-text p { color: var(--gray-700); margin-bottom: 16px; }

.check-list { list-style: none; margin: 20px 0; }
.check-list li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--gray-700);
}
.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0; top: 6px;
  color: var(--primary);
  font-weight: 700;
}

/* ---- Projects / Portfolio ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 3rem;
}
.project-card-body { padding: 24px; }
.project-card-body h3 { color: var(--navy); margin-bottom: 8px; }
.project-card-body p { color: var(--gray-500); font-size: 0.93rem; }
.project-tag {
  display: inline-block;
  background: var(--light-bg);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 12px;
  margin-right: 6px;
}

/* ---- Clients / Partners ---- */
.clients-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  opacity: 0.6;
}
.clients-row span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 1px;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}
.cta-banner h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-banner p { opacity: 0.85; margin-bottom: 28px; font-size: 1.05rem; }

/* ---- Team Grid ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.team-card { text-align: center; }
.team-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--light-bg);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  color: var(--primary);
}
.team-card h3 { color: var(--navy); font-size: 1.1rem; }
.team-card .role { color: var(--gray-500); font-size: 0.88rem; }

/* ---- Timeline ---- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px; background: var(--gray-200);
}
.timeline-item { margin-bottom: 36px; position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item h3 { color: var(--navy); font-size: 1.05rem; }
.timeline-item .year { color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.timeline-item p { color: var(--gray-500); font-size: 0.93rem; margin-top: 4px; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 48px; height: 48px;
  background: var(--light-bg);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item h4 { color: var(--navy); font-size: 0.95rem; margin-bottom: 2px; }
.contact-info-item p { color: var(--gray-500); font-size: 0.93rem; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  margin-bottom: 16px;
  background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,109,140,0.1);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; text-align: center; }

/* ---- Values Grid ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.value-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.value-card .value-icon {
  width: 48px; height: 48px;
  background: var(--light-bg);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.value-card h4 { color: var(--navy); margin-bottom: 4px; }
.value-card p { color: var(--gray-500); font-size: 0.9rem; }


/* ---- Page Headers (inner pages) ---- */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--primary-dark));
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
}
.page-header h1 { font-size: 2.2rem; margin-bottom: 8px; }
.page-header p { opacity: 0.75; font-size: 1rem; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .services-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-preview { grid-template-columns: 1fr; gap: 30px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
.hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 50px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; margin-top: -30px; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: 10px; }
}
