/*
Theme Name: Simcon Africa
Author: Simcon Africa
Description: Custom one-page theme for Simcon Africa digital services.
Version: 1.0
Text Domain: simcon
*/

/* ---------- RESET & BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0b0f17;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #eef2f8;
  line-height: 1.5;
  scroll-behavior: smooth;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- TYPOGRAPHY & COLORS ---------- */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h2 i {
  color: #2f9e6e;
  font-size: 2rem;
}

.accent {
  color: #2f9e6e;
}

.section-subhead {
  color: #9aa8b9;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* ---------- HEADER / NAV ---------- */
header {
  padding: 2rem 0;
  border-bottom: 1px solid #1e2632;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo span {
  color: #2f9e6e;
}

.logo img {
  max-height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-weight: 500;
  color: #b9c4d4;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #2f9e6e;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  background: #2f9e6e;
  color: #0b0f17;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border-radius: 60px;
  text-decoration: none;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 20px -6px rgba(47, 158, 110, 0.3);
}

.btn:hover {
  background: #3bb57e;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid #2f9e6e;
  color: #2f9e6e;
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(47, 158, 110, 0.1);
  transform: translateY(-2px);
}

/* ---------- HERO ---------- */
.hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: #9aa8b9;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

/* ---------- SERVICES GRID ---------- */
.services {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.service-card {
  background: #131b26;
  padding: 2rem 1.8rem;
  border-radius: 28px;
  border: 1px solid #1e2a38;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: #2f9e6e;
  transform: translateY(-6px);
  background: #16202e;
}

.service-icon {
  font-size: 2.2rem;
  color: #2f9e6e;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.service-card p {
  color: #9aa8b9;
  font-size: 0.95rem;
}

/* ---------- PROJECTS SECTION ---------- */
.projects {
  padding: 5rem 0;
  background: #0e131c;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.projects-header h2 {
  margin-bottom: 0.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.project-card {
  background: #131b26;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  border: 1px solid #1e2a38;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: #2f9e6e;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #1e2f3f, #0f1a24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f9e6e;
  font-size: 3rem;
  border-bottom: 1px solid #1e2a38;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem 1.5rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-info p {
  color: #9aa8b9;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  flex: 1;
}

.project-link {
  text-decoration: none;
  color: #2f9e6e;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
  margin-top: auto;
}

.project-link i {
  font-size: 0.8rem;
  transition: transform 0.2s;
}

.project-link:hover i {
  transform: translateX(4px);
}

/* ---------- FOOTER ---------- */
footer {
  padding: 3rem 0;
  border-top: 1px solid #1e2632;
  text-align: center;
  color: #7a889b;
  font-size: 0.9rem;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

footer a {
  color: #9aa8b9;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #2f9e6e;
}

/* ---------- WORDPRESS ADMIN BAR SPACING ---------- */
.admin-bar header {
  margin-top: 32px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.5rem;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    gap: 1.2rem;
    flex-wrap: wrap;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .projects-header {
    flex-direction: column;
    align-items: flex-start;
  }
}