/* Afriload website stylesheet
 *
 * This stylesheet defines the typography, colours and layout of the
 * Afriload marketing site. It uses CSS custom properties for the
 * colour palette, a mobile‑first responsive layout and flex/grid
 * utilities to arrange content gracefully on all screen sizes. */

/* Colour palette */
:root {
  --color-primary: #004e7c; /* deep blue inspired by the logo */
  --color-secondary: #ffffff; /* white */
  --color-accent: #f58220; /* vibrant orange for highlights */
  --color-background: #f5f7fa; /* light grey for section backgrounds */
  --color-text: #1f2a37; /* dark grey for body text */
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background: var(--color-secondary);
  line-height: 1.6;
  min-width: 300px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Container utility */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-secondary);
  box-shadow: var(--shadow);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.brand-logo {
  /* Increased size for the logo as requested */
  height: 96px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem;
  color: var(--color-primary);
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-accent);
}

/* Hamburger button for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle .bar {
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100vh;
  min-height: 580px;
  color: #ffffff;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background: var(--color-primary);
}

.map-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.18;
}

.network-overlay {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  max-width: 900px;
  padding: 2rem;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #e5e9f2;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

/* Hover state: manually specify a slightly darker shade of the accent colour */
.btn-primary:hover,
.btn-primary:focus {
  background: #d46a13;
  border-color: #d46a13;
}

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

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-accent);
  color: #ffffff;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* About */
.about-section {
  background: var(--color-background);
}

.about-content {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-text);
}

/* Services */
.services-section {
  background: var(--color-secondary);
}

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

.service-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.service-icon svg {
  width: 2rem;
  height: 2rem;
  fill: var(--color-accent);
  margin-bottom: 1rem;
}

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

.service-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Sectors */
.sectors-section {
  background: var(--color-background);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.sector-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 240px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.sector-icon svg {
  /* Enlarge sector icons for better visibility */
  width: 3rem;
  height: 3rem;
  fill: var(--color-accent);
  margin-bottom: 0.5rem;
}

.sector-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* Optional description text for each sector card */
.sector-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

/* Value Proposition */
.value-section {
  background: var(--color-secondary);
}

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

.value-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.value-icon svg {
  width: 2rem;
  height: 2rem;
  fill: var(--color-accent);
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.value-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Contact */
.contact-section {
  background: var(--color-background);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-form {
  flex: 1;
  min-width: 280px;
}

.contact-info {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
}

.contact-info svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: var(--color-accent);
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.lang-switcher a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: color 0.2s;
}

.lang-switcher a:hover,
.lang-switcher a:focus,
.lang-switcher a.active {
  color: var(--color-accent);
}

/* WhatsApp button */
.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1ebd5a;
  border-color: #1ebd5a;
}

/* WhatsApp button icon */
.btn-whatsapp svg {
  width: 1rem;
  height: 1rem;
  fill: #ffffff;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* Testimonials */
.testimonials-section {
  background: var(--color-background);
}

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

.testimonial-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.testimonial-icon svg {
  width: 2rem;
  height: 2rem;
  fill: var(--color-accent);
  margin-bottom: 0.75rem;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 0.75rem;
  color: #444;
}

.testimonial-author {
  display: block;
  font-weight: 500;
  color: var(--color-primary);
}

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

.form-group.full {
  flex-basis: 100%;
}

.contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: var(--color-primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccd1d9;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 1rem;
}

/* Tracking section */
.tracking-section {
  background: var(--color-secondary);
  text-align: center;
}

.tracking-section p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
  color: #555;
}

/* Success page styles */
.success-page .section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  text-align: center;
}

.success-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.success-page p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.success-page a.btn {
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: #ffffff;
  text-align: center;
  padding: 1rem 0;
}

/* Stats Section */
.stats-section {
  background: var(--color-background);
  padding-top: 60px;
  padding-bottom: 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.stat-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--color-accent);
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--color-primary);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive behaviour */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-secondary);
    border-top: 1px solid #e5e9f2;
    display: none;
    flex-direction: column;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav li + li {
    border-top: 1px solid #f0f0f5;
  }
  .main-nav a {
    padding: 1rem;
    display: block;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .services-grid,
  .value-grid {
    gap: 1.5rem;
  }
  .contact-grid {
    flex-direction: column;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
}