/*
 * Lopstream — Blog Stylesheet
 * Site tokens mapped to standard blog.css contract.
 * Structural CSS appended from templates/blog-base.css.
 */
:root {
  --bg-primary: #000;
  --bg-secondary: #060606;
  --bg-card: #0D0D0D;
  --bg-elevated: #181818;
  --border: #1F1F1F;
  --text-primary: #F2EFEA;
  --text-secondary: #9A958C;
  --text-muted: #6A6660;
  --accent: #13D42A;
  --accent-hover: #3BFE18;
  --accent-dim: rgba(19, 212, 42, 0.10);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-height: 76px;
  color-scheme: dark;
  /* Legacy aliases for shared reviews-widget CSS (extracted from site.css). */
  --ink: #000;
  --ink-2: #0D0D0D;
  --ink-3: #181818;
  --bone: #F2EFEA;
  --bone-dim: #9A958C;
  --accent-bright: #3BFE18;
  --accent-laser: #3BFE18;
  --rule: #1F1F1F;
  --ease: cubic-bezier(.16,1,.3,1);
}
/*
 * Webgun — Shared Blog Stylesheet (Base Template)
 * ================================================
 * This file contains ALL structural CSS for blog pages.
 * The builder generates a site-specific blog.css by:
 *   1. Writing :root tokens from the design spec
 *   2. Appending this structural CSS
 *
 * Standard CSS variable contract (builder must define all):
 *   --bg-primary        Darkest background
 *   --bg-secondary      Slightly lighter background (sections, cards)
 *   --bg-card           Card/elevated surface (optional, falls back to --bg-secondary)
 *   --border            Border colour
 *   --text-primary      Main text
 *   --text-secondary    Secondary text (meta, captions)
 *   --text-muted        Faintest text (dates, labels)
 *   --accent            Brand colour (CTAs, links, highlights)
 *   --accent-hover      Hover state of accent
 *   --accent-dim        Low-opacity accent (blockquote bg, card hover tint)
 *   --font-display      Heading font stack
 *   --font-body         Body font stack
 *   --nav-height        Nav bar height (60-80px)
 *
 * Optional variables (used if defined, graceful fallback if not):
 *   --bg-elevated       Extra surface tier
 *   --card-hover-shadow      Custom card hover shadow
 *   --card-hover-transform   Custom card hover transform
 *   --card-border-accent     Card accent border (e.g. top border colour)
 */

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── ACCESSIBILITY ── */
.skip-link {
  position: absolute; top: -100%; left: 0; z-index: 200;
  padding: 8px 16px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.4); }

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center;
  list-style: none; gap: 32px;
}
.nav-links a {
  position: relative;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}

/* ── HAMBURGER ── */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
  background: rgba(11, 11, 11, 0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 1001;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 32px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ── ARTICLE HEADER ── */
.article-header {
  padding: 140px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.article-header h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  color: var(--text-primary);
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto; margin-right: auto;
}
.article-header-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.article-header-date {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
}

/* ── ARTICLE BODY ── */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.article-body p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.article-body h2 {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 20px;
}
.article-body h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 16px;
}
.article-body ul, .article-body ol {
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-left: 24px;
}
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--text-primary); }
.article-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  transition: color 0.3s;
}
.article-body a:hover { color: var(--accent-hover); }

/* ── BLOCKQUOTE ── */
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--accent-dim);
  color: var(--text-primary);
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
}
.article-body blockquote p {
  color: var(--text-primary);
  margin-bottom: 0;
}

/* ── BACK LINK ── */
.article-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
  text-decoration: none;
  transition: color 0.3s;
}
.article-back:hover { color: var(--accent-hover); }

/* ── BLOG CTA BANNER ── */
.blog-cta {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.blog-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}
.blog-cta p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 32px;
}
.blog-cta-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}
.blog-cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ── BLOG INDEX: HEADER ── */
.blog-header {
  padding: 140px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.blog-header h1 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 16px;
}
.blog-header p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto;
}

/* ── BLOG INDEX: GRID ── */
.blog-grid {
  padding: 72px 0 120px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

/* ── BLOG INDEX: CARDS ── */
.blog-card {
  background: var(--bg-card, var(--bg-secondary));
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-border-accent, transparent);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  position: relative;
  text-decoration: none;
}
.blog-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.blog-card:hover {
  transform: var(--card-hover-transform, translateY(-6px));
  box-shadow: var(--card-hover-shadow, 0 16px 48px rgba(0,0,0,0.4));
  border-color: var(--accent-dim, rgba(255,255,255,0.1));
}
.blog-card:hover::before { opacity: 1; }

.blog-card-icon {
  padding: 32px 32px 0;
  color: var(--accent);
}
.blog-card-icon svg { width: 32px; height: 32px; }

.blog-card-body {
  padding: 20px 32px 32px;
  flex: 1; display: flex; flex-direction: column;
}
.blog-card-meta {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.blog-card-meta span { color: var(--accent); }

.blog-card h2 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px; line-height: 1.25;
}
.blog-card p {
  color: var(--text-secondary);
  font-size: 15px; line-height: 1.65;
  margin-bottom: 24px; flex: 1;
}
.blog-card-link {
  font-family: var(--font-body);
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}
.blog-card-link:hover { color: var(--accent-hover); }

/* ── FOOTER ── */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
}
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-links a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .article-body { padding: 48px 20px 64px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-body { padding: 16px 24px 24px; }
}

/* ── Google Reviews Widget (extracted from site.css for blog pages) ── */

.reviews-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
  color: #1A1A1A;
}


.reviews-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(19,212,42,.4);
}


.reviews-badge svg { flex-shrink: 0; }


.reviews-stars { color: #FBBC05; font-size: 14px; letter-spacing: -.05em; }


.reviews-score { font-weight: 700; font-size: 14px; }


.reviews-label { font-size: 12px; color: #555; }



.reviews-panel {
  background: var(--ink-2);
  color: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(19,212,42,.12);
  width: 340px;
  max-width: calc(100vw - 48px);
  overflow: hidden;
  margin-bottom: 12px;
}


.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule);
  gap: 12px;
}


.reviews-header-link { text-decoration: none; color: inherit; }


.reviews-header-link:hover .reviews-business { color: var(--accent-bright); }


.reviews-business {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -.005em;
  color: var(--bone);
  transition: color 200ms var(--ease);
}


.reviews-meta { font-size: 13px; margin-top: 4px; color: var(--bone-dim); display: inline-flex; gap: 8px; align-items: baseline; }


.reviews-score-large { font-weight: 700; font-size: 17px; color: var(--bone); }


.reviews-stars-large { color: #FBBC05; letter-spacing: -.05em; }


.reviews-count { color: var(--bone-dim); font-size: 12px; }


.reviews-close {
  background: none;
  border: 0;
  color: var(--bone-dim);
  width: 28px; height: 28px;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 200ms var(--ease);
}


.reviews-close:hover { color: var(--accent-bright); }



.reviews-list {
  padding: 8px 0;
  max-height: 320px;
  overflow-y: auto;
}


.review-item {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 180ms var(--ease);
}


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


.review-item:hover { background: rgba(19, 212, 42, 0.06); }


.review-author { font-weight: 600; font-size: 13px; color: var(--bone); }


.review-stars { color: #FBBC05; font-size: 12px; letter-spacing: -.05em; margin-top: 2px; }


.review-text { font-size: 13px; color: var(--bone-dim); margin-top: 6px; line-height: 1.55; }


.review-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  opacity: .7;
  margin-top: 6px;
}



.reviews-cta {
  display: block;
  text-align: center;
  padding: 14px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .005em;
  text-decoration: none;
  transition: background 200ms var(--ease);
}


.reviews-cta:hover { background: var(--accent-bright); color: var(--ink); }

@media (max-width: 480px) {
  
  .reviews-panel { width: 300px; }
  
  .reviews-widget { bottom: 16px; left: 16px; }
}

/* ── Footer (extracted from site.css for fleet-consistent blog footer) ── */
.footer{position:relative;background:var(--ink-3);border-top:1px solid var(--rule);padding:clamp(64px,8vw,96px) 0 0;margin-top:clamp(48px,8vw,96px);overflow:hidden;isolation:isolate}

.footer::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent 0%,var(--accent) 35%,var(--accent-bright) 50%,var(--accent) 65%,transparent 100%);opacity:.65;pointer-events:none}

.footer::after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 900px 500px at 100% 100%,rgba(19,212,42,.06),transparent 65%),radial-gradient(ellipse 600px 320px at 0% 100%,rgba(0,0,0,.85),transparent 60%);pointer-events:none;z-index:-1}

.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:clamp(28px,4vw,56px)}

@media (max-width:880px) {
  .footer-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:540px) {
  .footer-grid{grid-template-columns:1fr}
}

.footer-brand-lockup{display:flex;align-items:center;gap:14px;margin-bottom:18px;line-height:0}

.footer-brand-wordmark{display:block;height:40px;width:auto;max-width:280px}

@media (max-width:600px) {
  .footer-brand-wordmark{height:34px;max-width:240px}
}

.footer-brand-name{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.footer-brand-lockup .brand-dot{width:9px;height:9px}

.footer-tagline{color:var(--bone-dim);font-family:var(--font-display);font-style:italic;font-size:1.05rem;max-width:28ch;margin:0 0 22px}

.footer h4{font-family:var(--font-mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--bone-dim);font-weight:500;margin:0 0 16px}

.footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}

.footer a{color:var(--bone);font-size:15px;text-decoration:none}

.footer a:hover{color:var(--accent)}

.footer-socials{display:flex;gap:14px;margin-top:4px}

.footer-socials a{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;border:1px solid var(--rule);color:var(--bone-dim);transition:color 200ms var(--ease),border-color 200ms var(--ease),transform 200ms var(--ease)}

.footer-socials a:hover{color:var(--accent);border-color:var(--accent);transform:translateY(-1px)}

.footer-socials svg{width:16px;height:16px;fill:currentColor}

.footer-bottom{margin-top:clamp(56px,8vw,88px);border-top:1px solid var(--rule);padding:28px 0 64px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;font-family:var(--font-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--bone-dim)}

.footer-bottom a{color:var(--bone-dim)}

.footer-bottom a:hover{color:var(--accent)}

@media (max-width:600px) {
  .footer-bottom{padding-bottom:80px}
}


.footer-bottom a { color: #9A958C; }

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

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


.footer-grid > div h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(242,239,234,.55);
  margin: 0 0 18px;
  font-weight: 500;
}


.footer-grid > div ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }


.footer-grid > div:not(:first-child) a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: rgba(242,239,234,.78);
  text-decoration: none;
  letter-spacing: -.005em;
  transition: color 220ms var(--ease);
}


.footer-grid > div:not(:first-child) a:hover { color: var(--accent-laser); }

@media (max-width: 600px) {
   .footer-bottom { padding-bottom: 96px !important; }
}

/* Blog-specific: text-only brand (vs main site's wordmark image lockup) */
.footer-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: var(--bone);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(242,239,234,.7);
  font-size: 16px;
  margin-bottom: 4px;
}

/* Blog: support main-site nav classnames (.nav-menu / .nav-cta) used by blog HTML. */
.nav-menu { display: flex; align-items: center; list-style: none; gap: 28px; margin: 0; padding: 0; }
.nav-menu li { list-style: none; }
.nav-menu a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 239, 234, 0.65);
  transition: color 200ms var(--ease);
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--accent); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: all 200ms var(--ease);
}
.nav-cta:hover { background: var(--accent); color: var(--ink); }
@media (max-width: 768px) {
  .nav-menu, .nav-cta { display: none; }
}
