/* ============================================================
   EVERTEK BLOG STYLES
   Static HTML blog matching the React app's aesthetic
   Palette pulled from main bundle — DO NOT change without updating main site
   ============================================================ */
:root {
  --navy-deep: #000a15;
  --navy-mid: #001830;
  --navy-line: #0a2540;
  --teal-bright: #00beaf;
  --teal-mid: #00a9a7;
  --teal-deep: #008479;
  --bg-light: #f8f8f7;
  --bg-tint: #e9f0f5;
  --text-dark: #1a1a19;
  --text-muted: #34322d;
  --text-grey: #858481;

  --font-display: 'Syne', 'Arial Black', sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ----- HEADER (mirrors main site nav) ----- */
.site-header {
  background: var(--bg-light);
  border-bottom: 1px solid rgba(0, 10, 21, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 400;
  font-size: 15px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal-deep); }
.nav-cta {
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-deep));
  color: white;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 190, 175, 0.3);
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ----- ARTICLE LAYOUT ----- */
.article-hero {
  background: var(--navy-deep);
  color: white;
  padding: 80px 32px 100px;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(0, 190, 175, 0.12), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(0, 132, 121, 0.08), transparent 50%);
  pointer-events: none;
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(0, 190, 175, 0.4);
  border-radius: 999px;
  color: var(--teal-bright);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.article-hero h1 .accent {
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.article-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
}
.article-meta strong { color: white; font-weight: 500; }

.article-body {
  max-width: 760px;
  margin: -40px auto 0;
  padding: 60px 32px 80px;
  background: white;
  border-radius: 16px 16px 0 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 -10px 40px rgba(0, 10, 21, 0.06);
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--navy-deep);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy-deep);
  margin: 32px 0 12px;
}
.article-body p {
  font-size: 17px;
  margin: 0 0 18px;
  color: var(--text-muted);
}
.article-body strong { color: var(--text-dark); font-weight: 500; }
.article-body a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-body ul, .article-body ol {
  font-size: 17px;
  color: var(--text-muted);
  padding-left: 24px;
}
.article-body li { margin-bottom: 8px; }

/* Cost callout box */
.cost-box {
  background: linear-gradient(135deg, var(--bg-tint), #fff);
  border-left: 4px solid var(--teal-bright);
  padding: 24px 28px;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
}
.cost-box h4 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  color: var(--navy-deep);
  font-size: 18px;
}
.cost-box .figure {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
}

/* Honest take box (for the heat pump article) */
.honest-take {
  background: var(--navy-deep);
  color: white;
  padding: 28px 32px;
  border-radius: 12px;
  margin: 32px 0;
}
.honest-take h4 {
  font-family: var(--font-display);
  color: var(--teal-bright);
  margin: 0 0 12px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.honest-take p { color: rgba(255, 255, 255, 0.85); margin: 0; }

/* CTA card at bottom of article */
.cta-card {
  background: linear-gradient(135deg, var(--navy-deep), #001b35);
  color: white;
  padding: 48px 40px;
  border-radius: 16px;
  margin: 56px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 190, 175, 0.2), transparent 70%);
}
.cta-card-inner { position: relative; }
.cta-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  color: white;
}
.cta-card p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 24px;
  font-size: 16px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-deep));
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 190, 175, 0.4);
}
.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }

/* ----- BLOG INDEX ----- */
.blog-hero {
  background: var(--navy-deep);
  color: white;
  padding: 100px 32px 80px;
  text-align: center;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  margin: 16px 0;
  letter-spacing: -0.02em;
}
.blog-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}
.posts-grid {
  max-width: 1080px;
  margin: -40px auto 0;
  padding: 0 32px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  position: relative;
}
.post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0, 10, 21, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 10, 21, 0.12);
}
.post-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--navy-deep), var(--teal-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.15);
  font-size: 80px;
  font-weight: 800;
}
.post-card-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.post-card-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 500;
  margin-bottom: 8px;
}
.post-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--navy-deep);
  line-height: 1.25;
}
.post-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 16px;
  flex: 1;
}
.post-card-meta {
  font-size: 13px;
  color: var(--text-grey);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.post-card-meta .read-more {
  color: var(--teal-deep);
  font-weight: 500;
}

/* ----- FOOTER ----- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 32px 40px;
  text-align: center;
  font-size: 14px;
}
.site-footer a { color: var(--teal-bright); text-decoration: none; }
.site-footer .footer-grid {
  max-width: 800px;
  margin: 0 auto 32px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.site-footer hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 800px;
  margin: 32px auto;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 600px) {
  .article-body { padding: 40px 24px 60px; }
  .article-hero { padding: 60px 24px 80px; }
  .cta-card { padding: 36px 24px; }
}
