/*
Theme Name: Legacy Edge (Custom)
Description: Clean, modern base styles for Legacy Edge WordPress site
Author: Legacy Edge
Version: 1.0
*/

/* =========================
   CSS Variables
========================= */
:root {
  --primary-blue: #007acc;
  --primary-green: #00b589;
  --dark-gray: #333;
  --light-gray: #f5f5f5;
  --border-gray: #e5e7eb;
}

/* =========================
   Global Reset (Safe)
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================
   Base Typography
========================= */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-gray);
  color: var(--dark-gray);
  line-height: 1.6;
}

p {
  margin: 0 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

/* =========================
   Links
========================= */
a {
  color: var(--primary-blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* =========================
   Images
========================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img.featured {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* =========================
   Header / Navigation
========================= */
header {
  background: #fff;
  border-bottom: 2px solid var(--primary-blue);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header img {
  height: 50px;
}

nav a {
  margin-left: 1.5rem;
  color: var(--dark-gray);
  font-weight: 600;
}

/* =========================
   Hero Section
========================= */
.hero {
  background: linear-gradient(
    to right,
    var(--primary-blue),
    var(--primary-green)
  );
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 720px;
  margin: 0 auto;
}

/* =========================
   Content Sections
========================= */
.section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* =========================
   Services / Cards
========================= */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.service-box {
  flex: 1 1 300px;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* =========================
   Blog Grid (Latest Posts)
========================= */
.le-latest {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.le-card {
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.le-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.le-meta {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.le-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;     /* show entire image (logos/screenshots) */
  background: #f4f6f8;     /* letterbox background */
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

/* =========================
   Footer
========================= */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  nav {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    margin: 0.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }
}