/* -----------------------------------------------------------
   1. RESET & VARIABLES (Theme Configuration)
----------------------------------------------------------- */
:root {
  /* Colors - Trust & Professional Tech Palette */
  --primary: #0f172a;       /* Deep Navy - Trust/Authority */
  --accent: #2563eb;        /* Bright Blue - Action/Links */
  --accent-hover: #1d4ed8;  /* Darker Blue - Hover State */
  --text-main: #334155;     /* Dark Grey - Readable Text */
  --text-light: #64748b;    /* Light Grey - Meta/Secondary */
  --bg-light: #f8fafc;      /* Very Light Grey - Backgrounds */
  --bg-white: #ffffff;      /* Pure White */

  /* Spacing & Layout */
  --border-radius: 8px;
  --container-width: 1100px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-white);
}

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

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

/* -----------------------------------------------------------
   2. LAYOUT UTILITIES
----------------------------------------------------------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 800px; /* Ideal for long-form reading */
}

.section {
  padding: 80px 0;
}

.soft-bg {
  background-color: var(--bg-light);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

/* ✅ NEW: 2-Column Grid Utility (For Resources & Contact Pages) */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 700;
}

p {
  margin-bottom: 1.6rem;
}

.muted {
  color: var(--text-light);
}

/* -----------------------------------------------------------
   3. HEADER & NAVIGATION
----------------------------------------------------------- */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid #e2e8f0;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.site-header .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.tagline {
  background-color: var(--bg-light);
  color: var(--text-light);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  vertical-align: middle;
}

.site-header nav a {
  margin-left: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--accent);
}

/* -----------------------------------------------------------
   4. HERO SECTION
----------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, #0f172a, #020617);
  color: var(--bg-white);
  text-align: center;
  padding: 100px 0;
}

.hero h1 {
  color: var(--bg-white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

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

/* -----------------------------------------------------------
   5. BLOG GRID SYSTEM
----------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

/* Card Hover */
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--accent);
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.blog-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  flex-grow: 1;
}

.blog-card a {
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
}

.blog-card a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Coming Soon */
.blog-card.muted {
  background-color: #fafafa;
  border-style: dashed;
}

.blog-card.muted h3,
.blog-card.muted p {
  opacity: 0.6;
}

.coming {
  display: inline-block;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 1rem;
}

/* -----------------------------------------------------------
   6. ARTICLE CONTENT (BLOG PAGES)
----------------------------------------------------------- */
article h2 {
  margin-top: 3rem;
}

article h3 {
  margin-top: 2.2rem;
}

article ul {
  padding-left: 1.4rem;
  margin-bottom: 2rem;
}

article li {
  margin-bottom: 0.6rem;
}

/* -----------------------------------------------------------
   7. ECOSYSTEM SECTION
----------------------------------------------------------- */
.ecosystem-container {
  text-align: center;
  padding: 40px 20px;
  background-color: #f1f5f9;
  border-radius: var(--border-radius);
  margin-top: 40px;
  border: 1px solid #e2e8f0;
}

.ecosystem-btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 6px;
  background-color: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.ecosystem-btn:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* -----------------------------------------------------------
   8. FOOTER
----------------------------------------------------------- */
.site-footer {
  background-color: #020617;
  color: #cbd5e1;
  padding: 60px 0 30px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.site-footer h4 {
  color: var(--bg-white);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.site-footer a {
  display: block;
  margin-bottom: 0.5rem;
  color: #94a3b8;
}

.site-footer a:hover {
  color: var(--bg-white);
}

.copyright {
  border-top: 1px solid #334155;
  padding-top: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

/* -----------------------------------------------------------
   9. RESPONSIVE (MOBILE)
----------------------------------------------------------- */
@media (max-width: 768px) {

  .site-header .nav {
    flex-direction: column;
    gap: 1rem;
  }

  .site-header nav a {
    margin: 0 10px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 70px 0;
  }

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

  .hero p {
    font-size: 1.05rem;
  }

  /* ✅ Stack 2-column layouts on mobile */
  .cols-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
