/* ============================================================
   ImpactMaps Nigeria - Main Stylesheet
 ============================================================ */

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

:root {
  --primary:       #003d7a;
  --primary-light: #0057b8;
  --accent:        #00a86b;
  --accent-light:  #00d488;
  --dark-bg:       #0a1628;
  --dark-surface:  #111d32;
  --text:          #1a1a2e;
  --text-light:    #6b7280;
  --text-white:    #ffffff;
  --bg-light:      #f8fafc;
  --bg-white:      #ffffff;
  --border:        #e5e7eb;
  --shadow:        0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:     0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --transition:    all .3s ease;
  --radius:        12px;
  --radius-lg:     16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-white);
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

/* ============================================================
   HEADER / NAVIGATION
 ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  top: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(10, 22, 40, .98);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.navbar { padding: .75rem 0; }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo-img {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.nav-logo:hover .logo-img {
  transform: translateY(-1px);
}

/* Nav links */
.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-white);
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-menu a:hover { color: var(--accent); }
.nav-menu a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO SECTION
 ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark-bg);
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,22,40,.88) 0%,
    rgba(0,61,122,.72) 50%,
    rgba(0,168,107,.55) 100%    
  );
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

.hero-content { max-width: 640px; }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(255,255,255,.9);
  margin-bottom: .75rem;
  font-weight: 400;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
 ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,168,107,.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255,255,255,.3);
}

.btn-secondary:hover {
  border-color: var(--text-white);
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}

/* ============================================================
   SECTIONS
 ============================================================ */
section { padding: 5rem 0; }

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

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}

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

/* ============================================================
   SERVICES
 ============================================================ */
.services { background: var(--bg-light); }

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

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

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-image {
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content { padding: 1.5rem; }

/* Service icon (SVG) */
.service-icon-wrap {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.service-icon-svg {
  width: 26px;
  height: 26px;
  color: var(--text-white);
}

.service-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
}

.service-content p {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.6;
}

/* ============================================================
   SECTORS
 ============================================================ */
.sectors { background: var(--bg-white); }

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
}

.sector-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.sector-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: var(--bg-white);
}

.sector-icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: rgba(0,61,122,.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sector-card:hover .sector-icon-wrap {
  background: rgba(0,168,107,.1);
}

.sector-icon-svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  transition: var(--transition);
}

.sector-card:hover .sector-icon-svg {
  color: var(--accent);
}

.sector-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}

.sector-card p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================================
   ABOUT
 ============================================================ */
.about { background: var(--bg-light); }

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.75;
  font-size: 1.05rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat { text-align: center; }

.stat h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .15rem;
}

.stat p {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.about-image { position: relative; }

.about-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}

.about-image-wrapper:hover img {
  transform: scale(1.02);
}

/* ============================================================
   CONTACT
 ============================================================ */
.contact { background: var(--bg-white); }

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-icon-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon-svg {
  width: 22px;
  height: 22px;
  color: var(--text-white);
}

.contact-details h4 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .15rem;
}

.contact-details p {
  color: var(--text-light);
  font-size: .9rem;
}

.contact-map {
  margin-top: 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Contact Form */
.contact-form {
  background: var(--bg-light);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,61,122,.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   FOOTER
 ============================================================ */
.footer {
  background: var(--dark-bg);
  color: var(--text-white);
  padding: 3.5rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  margin-bottom: .6rem;
}

.footer-logo p {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  line-height: 1.5;
}

.footer-column h4 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.footer-column ul { display: flex; flex-direction: column; gap: .6rem; }

.footer-column a {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
}

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

/* Social icons */
.footer-social {
  display: flex;
  gap: .6rem;
}

.social-icon-svg {
  width: 20px;
  height: 20px;
  color: var(--text-white);
  transition: var(--transition);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.footer-bottom p {
  color: rgba(255,255,255,.45);
  font-size: .85rem;
}

/* ============================================================
   RESPONSIVE
 ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .about-content { gap: 2.5rem; }
}

/* Mobile large */
@media (max-width: 768px) {
  /* Navigation */
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10,22,40,.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
    transform: translateY(-120%);
    transition: transform .35s ease;
    z-index: 999;
  }
  .nav-menu.active { transform: translateY(0); }
  .nav-menu a {
    padding: .75rem;
    font-size: 1rem;
  }
  .hamburger { display: flex; }

  /* General */
  section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  /* About */
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-image-wrapper img { height: 300px; }

  /* Contact */
  .contact-content { grid-template-columns: 1fr; }

  /* Hero */
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; }

  /* Footer */
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

/* Mobile small */
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; gap: 1rem; }
  .stat h3 { font-size: 1.6rem; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 1.5rem; }
  .nav-container { padding: 0 1rem; }
}
