/* ===================================================
   homelab.holdheide.com — Shared Stylesheet
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --bg:          #f4f6f9;
  --surface:     #ffffff;
  --text:        #1a1a2e;
  --text-muted:  #5c6475;
  --accent:      #0066cc;
  --accent-dark: #004fa3;
  --border:      #e2e7ef;
  --shadow:      0 2px 12px rgba(0,0,0,.07);
  --radius:      10px;
  --nav-h:       64px;
  --max-w:       1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* ─── Layout Helpers ─────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ─── Navigation ─────────────────────────────────── */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand span.accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: #eef4fc;
  color: var(--accent);
  text-decoration: none;
}

/* ─── Hero ───────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a6e 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7ab3f5;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero h1 .highlight {
  color: #5ba6ff;
}

.hero-desc {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  color: #b8cfe8;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,102,204,.35);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}

.btn-ghost:hover { background: rgba(255,255,255,.18); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover { background: #eef4fc; }

/* ─── Stats Bar ──────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

.stat-item {
  padding: 0.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ─── Cards ──────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eef4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
}

.card-link:hover { text-decoration: underline; }

/* ─── Card Grid ──────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ─── Server Card (hardware page) ───────────────── */
.server-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.server-card-header {
  background: linear-gradient(135deg, #0a1628, #1a3a6e);
  color: #fff;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.server-card-header .server-icon {
  font-size: 2rem;
}

.server-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.server-card-header p {
  font-size: 0.82rem;
  color: #a0bfdf;
  margin-top: 0.1rem;
}

.server-card-body {
  padding: 1.5rem 1.75rem;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.spec-label {
  font-weight: 600;
  color: var(--text);
  min-width: 110px;
  flex-shrink: 0;
}

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

.spec-badge {
  display: inline-block;
  background: #eef4fc;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  border: 1px solid #c8ddf5;
}

/* ─── Network Gear ───────────────────────────────── */
.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.network-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.network-item .net-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.network-item h4 { font-size: 0.95rem; font-weight: 600; }
.network-item p  { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ─── Page Header Banner ─────────────────────────── */
.page-header {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a6e 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header p {
  color: #b8cfe8;
  margin-top: 0.5rem;
  font-size: 1rem;
  max-width: 520px;
}

/* ─── About / Timeline ───────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
}

.timeline {
  list-style: none;
  position: relative;
  padding-left: 1.75rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.timeline li {
  position: relative;
  padding-bottom: 1.5rem;
  font-size: 0.93rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -1.45rem;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border);
}

.timeline li strong { display: block; font-weight: 600; margin-bottom: 0.15rem; }
.timeline li span   { color: var(--text-muted); }

/* ─── Contact ────────────────────────────────────── */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.contact-list .icon {
  font-size: 1.1rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

/* ─── Quick-Nav Cards (index) ────────────────────── */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.nav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: var(--text);
}

.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  text-decoration: none;
}

.nav-card .nc-icon { font-size: 1.8rem; }
.nav-card h3 { font-size: 1rem; font-weight: 700; }
.nav-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ─── Footer ─────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-links a:hover { color: var(--accent); text-decoration: none; }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Utility ────────────────────────────────────── */
.tag {
  display: inline-block;
  background: #eef4fc;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid #c8ddf5;
  margin: 0.2rem 0.15rem 0 0;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .stat-item {
    padding: 0.5rem 1rem;
    min-width: 50%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat-item:last-child { border-bottom: none; }

  .hero { padding: 3.5rem 0 3rem; }
}

@media (max-width: 540px) {
  .nav-links a {
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
  }
}
