/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* === Streamtech Brand Colors === */
  --primary: #1A3A5C;           /* Deep Steel Blue - headers, CTAs, nav */
  --primary-dark: #0F2438;      /* Midnight - footer, dark sections */
  --accent: #B87333;            /* Copper - highlights, icons, value callouts */
  --secondary: #4A5568;         /* Slate Gray - body text, secondary elements */
  --neutral-light: #F7F8FA;     /* Cool White - backgrounds, cards */
  --neutral-medium: #E2E6EA;    /* Silver - borders, dividers */
  --success: #2D7D5F;           /* Muted Green - metrics, positive indicators */
  --alert: #B94A3A;             /* Burnt Red - urgency, warnings, pain points */
  
  /* === Legacy mappings for compatibility === */
  --navy: var(--primary);
  --navy-light: var(--primary-dark);
  --accent-light: var(--accent);
  --accent-bg: var(--neutral-light);
  --text: #1f2937;
  --text-light: var(--secondary);
  --bg: #ffffff;
  --bg-light: var(--neutral-light);
  --border: var(--neutral-medium);
  --radius: 8px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

img { max-width: 100%; height: auto; }

/* === Layout === */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 1.25rem; font-weight: 800; color: #fff;
  letter-spacing: -0.02em;
}
.logo:hover { color: #fff; }

.logo-img {
  height: 56px; width: auto;
  filter: invert(1);
}

.logo-text {
  display: inline-block;
}

/* Hide logo text on mobile to save space */
@media (max-width: 768px) {
  .logo-text { display: none; }
  .logo-img { height: 44px; }
}

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

.menu-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer;
}

/* === Hero === */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 5rem 0 6rem;
}

.hero h1 { font-size: 3.25rem; letter-spacing: -0.03em; max-width: 700px; }
.hero .accent { color: var(--accent); }
.hero-sub {
  margin-top: 1.5rem; font-size: 1.2rem; color: rgba(255,255,255,0.75);
  max-width: 600px; line-height: 1.8;
}

.hero-ctas {
  margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  display: inline-block; padding: 0.8rem 1.75rem;
  font-size: 0.95rem; font-weight: 600; border-radius: var(--radius);
  transition: all 0.2s; cursor: pointer; border: 2px solid transparent;
}

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

.btn-secondary {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.3);
}
.btn-secondary:hover { border-color: #fff; color: #fff; }

.btn-outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* === Sections === */
.section { padding: 5rem 0; }
.section-title { margin-bottom: 2.5rem; }

.bg-light { background: var(--bg-light); }
.bg-dark { background: var(--navy); color: #fff; }
.bg-dark .muted-light { color: rgba(255,255,255,0.7); max-width: 650px; margin: 1rem auto 2rem; font-size: 1.1rem; }
.bg-accent { background: var(--accent-bg); }

/* === Grids === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* === Cards === */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}

.card h3 { margin-bottom: 0.75rem; }
.card-date { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }

.link-arrow { font-weight: 600; font-size: 0.95rem; }

/* === Page Content === */
.page-single { padding: 4rem 0; }
.page-single h1 { margin-bottom: 2rem; }
.subtitle { font-size: 1.25rem; color: var(--text-light); margin-bottom: 2rem; }

.content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.5rem; }
.content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.content p { margin-bottom: 1.25rem; }
.content ul, .content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.content li { margin-bottom: 0.5rem; }
.content blockquote {
  border-left: 3px solid var(--accent); padding: 1rem 1.5rem;
  margin: 1.5rem 0; background: var(--bg-light); border-radius: 0 var(--radius) var(--radius) 0;
}

/* === Blog === */
.post-preview {
  padding: 2rem 0; border-bottom: 1px solid var(--border);
}
.post-preview h2 { font-size: 1.5rem; margin: 0.5rem 0; }
.post-preview h2 a { color: var(--text); }
.post-preview h2 a:hover { color: var(--accent); }
.post-preview p { color: var(--text-light); margin: 0.5rem 0 1rem; }

.post-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}

.tags { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tag {
  font-size: 0.75rem; padding: 0.25rem 0.75rem;
  background: var(--accent-bg); color: var(--accent);
  border-radius: 99px; font-weight: 500;
}

.post-footer { margin-top: 2rem; padding: 1.5rem; background: var(--accent-bg); border-radius: var(--radius); }

/* === Forms === */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* === About Hero === */
.about-hero {
  padding: 4rem 0;
  background: var(--neutral-light);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.about-hero-image {
  text-align: center;
}

.headshot {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(26, 58, 92, 0.15);
}

.about-hero-content {
  max-width: 500px;
}

.about-name {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.about-subtitle {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  font-weight: 500;
}

.about-quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  line-height: 1.6;
}

.about-credentials {
  font-size: 0.95rem;
  color: var(--secondary);
  line-height: 1.7;
}

.about-credentials p {
  margin-bottom: 0.5rem;
}

.about-credentials strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 768px) {
  .about-hero {
    padding: 3rem 0;
  }
  
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .headshot {
    width: 220px;
    height: 220px;
  }
  
  .about-name {
    font-size: 2rem;
  }
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* === Feature List === */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding: 1rem 0 1rem 2rem; border-bottom: 1px solid var(--border);
  position: relative;
}
.feature-list li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

/* === Footer === */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 3rem;
}

.site-footer h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.75rem; }
.site-footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer a { display: block; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem; font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 3rem 0 4rem; }
  .section { padding: 3rem 0; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-inline { grid-template-columns: 1fr; }

  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy); flex-direction: column;
    padding: 1rem 1.5rem 1.5rem; gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
}
