/*
Theme Name: Afro Hash Tec Solutions
Author: Afro Hash Tec
Description: Professional black & white business/consulting theme with embedded logo and hero banner.
Version: 1.4
*/

/* ===============================
   Root Variables & Base Styles
================================= */
:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #444444;
  --accent: #d4ad60;
  --max-width: 1200px;
  --radius: 10px;
  --gap: 1rem;
  --ff-sans: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--ff-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}

/* ===============================
   Fixed Header
================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 9999;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

/* Logo */
.site-logo img {
  height: 56px;
  display: block;
}

/* ===============================
   Primary Navigation
================================= */
.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.primary-menu > li > a {
  padding: 0.5rem 0.6rem;
  font-weight: 600;
  color: #000;
  transition: color 0.2s ease;
}

.primary-menu > li > a:hover {
  color: var(--accent);
}

/* Dropdown Menu */
.menu-item-has-children {
  position: relative;
}

.primary-menu .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.4rem 0;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all 0.18s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.primary-menu li:hover > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.primary-menu .sub-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: #000;
  font-weight: 500;
}

.primary-menu .sub-menu a:hover {
  background: var(--accent);
  color: #fff;
}

/* ===============================
   Mobile Menu
================================= */
.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  color: #000;
}

.hamburger {
  width: 26px;
  height: 2px;
  background: #000;
  display: block;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  width: 26px;
  height: 2px;
  background: #000;
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

@media (max-width: 900px) {
  .mobile-toggle {
    display: block;
  }

  .primary-menu {
    position: fixed;
    right: 0;
    top: 72px;
    background: #fff;
    height: calc(100% - 72px);
    width: 320px;
    flex-direction: column;
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    gap: 0;
    overflow: auto;
  }

  .primary-menu.menu-open {
    transform: translateX(0);
  }

  .primary-menu li {
    width: 100%;
  }

  .primary-menu a {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 6px;
    color: #000;
  }

  .primary-menu .sub-menu {
    position: relative;
    display: none;
    background: transparent;
    padding-left: 1rem;
    box-shadow: none;
    border: 0;
    transform: none;
    opacity: 1;
  }

  .primary-menu .sub-menu.open {
    display: block;
  }
}

/* ===============================
   Hero Banner
================================= */
.hero {
  position: relative;
  min-height: 600px;
  padding-top: 180px; /* clears navbar */
  padding-bottom: 100px;
  text-align: center;
  color: #fff;
  background-image: url('https://images.unsplash.com/photo-1527443154391-507e9dc6c5cc?auto=format&fit=crop&w=1600&q=80');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Headline */
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

/* Hero Paragraph */
.hero p {
  color: #e0e0e0;
  font-size: 1.1rem;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.3s;
}

/* Fade-in Animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero {
    padding-top: 150px;
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: 2.1rem;
    letter-spacing: 0.5px;
    padding: 0 1rem;
  }
}

/* ===============================
   Solutions Grid
================================= */
.solutions-overview h3 {
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  margin-top: 2rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 2rem 1rem;
}

.solution {
  background: #000;
  color: #fff;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, background 0.2s ease;
}

.solution:hover {
  transform: translateY(-4px);
  background: #111;
}

.solution h4 {
  margin: 0.25rem 0 0.5rem;
  color: #fff;
}

.solution p {
  color: #ccc;
}

.btn-learn {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #fff;
  color: #fff;
  font-weight: 600;
  margin-top: 0.75rem;
  transition: all 0.2s ease;
}

.btn-learn:hover {
  background: #fff;
  color: #000;
}


