/* ==========================================================================
   Hello Lucent — Blog Stylesheet
   Used by /blog/index.html and all /blog/{slug}.html article pages.
   Design tokens match the testsite homepage and service pages.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&family=DM+Mono:wght@300;400;500&display=swap');

/* TOKENS */
:root {
  --red: #E62727;
  --red-dark: #B81E1E;
  --red-hover: #CC2222;
  --teal: #1E93AB;
  --teal-light: #EEF3F6;
  --slate: #181E28;
  --slate-soft: #1E2636;
  --ink: #111110;
  --mid: #5A5A57;
  --muted: #8A8578;
  --cream: #F3F2EC;
  --surface: #F5F4F0;
  --white: #FFFFFF;
  --border: #E0DDD6;
  --border-light: rgba(0,0,0,0.06);

  --font-display: 'Lora', serif;
  --font-body: 'Inter', sans-serif;
  --font-logo: 'Outfit', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-lg: 16px;
  --max-w: 1100px;
  --max-w-article: 720px;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--red); }

/* TOPBAR */
.topbar {
  background: var(--slate);
  color: rgba(243,242,236,0.7);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar > span { color: rgba(243,242,236,0.85); }
.topbar-cta { display: flex; gap: 16px; align-items: center; }
.topbar-cta a {
  color: rgba(243,242,236,0.85);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}
.topbar-cta a:hover { color: var(--white); }
.topbar-cta .btn-top {
  background: var(--red);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
}
.topbar-cta .btn-top:hover { background: var(--red-hover); color: var(--white); }
@media (max-width: 640px) {
  .topbar { display: none; }
}

/* MAIN NAV */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243,242,236,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}
.main-nav .nav-logo {
  font-family: var(--font-logo);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.main-nav .nav-logo img { height: 1em; width: auto; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.main-nav > ul > li > a {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--mid);
  transition: color 0.2s;
}
.main-nav > ul > li > a:hover { color: var(--ink); }
.main-nav .has-dropdown { position: relative; }
.main-nav .has-dropdown > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 200px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  margin-top: 12px;
  list-style: none;
  z-index: 200;
}
.main-nav .has-dropdown:hover > ul { display: block; }
.main-nav .has-dropdown ul li { padding: 0; }
.main-nav .has-dropdown ul li a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav .has-dropdown ul li a:hover {
  color: var(--ink);
  background: var(--surface);
}
.main-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.main-nav .nav-right > a:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  font-family: var(--font-mono);
}
.main-nav .btn-nav {
  padding: 9px 20px;
  background: var(--red);
  color: var(--white);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.main-nav .btn-nav:hover {
  background: var(--red-hover);
  color: var(--white);
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .main-nav > ul, .main-nav .nav-right > a:first-child { display: none; }
}

/* BLOG POST LAYOUT */
.blog-post {
  max-width: var(--max-w-article);
  margin: 0 auto;
  padding: 64px 24px 48px;
  background: var(--cream);
}
.blog-post .blog-hero {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--surface) 100%);
}
.blog-meta {
  margin-bottom: 16px;
}
.blog-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  padding: 6px 12px;
  background: rgba(230,39,39,0.08);
  border-radius: 6px;
}
.blog-post h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  color: var(--slate);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.blog-byline {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-bottom: 24px;
  line-height: 1.7;
}
.blog-back {
  display: inline-block;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--teal);
  text-decoration: none;
  margin-bottom: 40px;
  padding: 6px 0;
  transition: color 0.2s;
}
.blog-back:hover { color: var(--red); }

.blog-post p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 22px;
}
.blog-post p em {
  display: block;
  font-size: 14px;
  color: var(--mid);
  font-style: italic;
  border-left: 3px solid var(--teal);
  padding: 8px 0 8px 16px;
  margin: 24px 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.blog-post p em a { color: var(--teal); text-decoration: underline; }
.blog-post h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  color: var(--slate);
  letter-spacing: -0.01em;
  margin: 40px 0 16px;
}
.blog-post ol, .blog-post ul {
  margin: 0 0 24px 24px;
  padding-left: 8px;
}
.blog-post ol li, .blog-post ul li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 12px;
  padding-left: 6px;
}
.blog-post strong { font-weight: 600; color: var(--slate); }

.blog-disclaimer {
  font-size: 12px !important;
  line-height: 1.6 !important;
  color: var(--muted) !important;
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px !important;
  margin: 36px 0 28px !important;
}
.blog-author {
  font-size: 14px;
  color: var(--mid);
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  line-height: 1.7;
}
.blog-author strong {
  font-family: var(--font-display);
  color: var(--slate);
  font-size: 16px;
}
.blog-author a { color: var(--teal); text-decoration: none; }
.blog-author a:hover { color: var(--red); }

.blog-cta {
  text-align: center;
  background: var(--slate);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  margin-top: 36px;
}
.blog-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--cream);
  margin: 0 0 22px !important;
  letter-spacing: -0.01em;
}
.btn-cta, .btn-cta-secondary {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin: 6px 6px;
  transition: transform 0.15s, background 0.2s;
}
.btn-cta {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(230,39,39,0.3);
}
.btn-cta:hover { background: var(--red-hover); color: var(--white); transform: translateY(-1px); }
.btn-cta-secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(243,242,236,0.3);
}
.btn-cta-secondary:hover { background: rgba(243,242,236,0.08); color: var(--cream); }

/* BLOG INDEX (cards layout) */
.blog-index-hero {
  background: var(--slate);
  padding: 96px 24px 56px;
  text-align: center;
}
.blog-index-hero .hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.blog-index-hero .hero-label::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--red);
}
.blog-index-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  color: var(--cream);
  letter-spacing: -0.02em;
  max-width: 720px;
  margin: 0 auto 14px;
}
.blog-index-hero p {
  font-size: 16px;
  color: rgba(243,242,236,0.6);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--surface) 100%);
  object-fit: cover;
  display: block;
}
.blog-card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .blog-tag { margin-bottom: 12px; align-self: flex-start; }
.blog-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--slate);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.blog-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mid);
  margin-bottom: 16px;
  flex: 1;
}
.blog-card .blog-card-meta {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* SITE FOOTER */
.site-footer {
  background: var(--slate);
  color: rgba(243,242,236,0.5);
  padding: 56px 24px 32px;
  margin-top: 48px;
}
.site-footer > .footer-brand,
.site-footer > .footer-col {
  max-width: var(--max-w);
}
.site-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  max-width: var(--max-w);
  margin: 48px auto 0;
  gap: 40px;
  padding: 56px 24px 0;
  border-radius: 0;
}
@media (max-width: 768px) {
  .site-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer { grid-template-columns: 1fr; }
}
.footer-brand .footer-logo {
  font-family: var(--font-logo);
  font-size: 18px;
  font-weight: 600;
  color: var(--cream);
  display: block;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 260px;
  color: rgba(243,242,236,0.5);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243,242,236,0.3);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li a {
  display: block;
  font-size: 13px;
  color: rgba(243,242,236,0.55);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom {
  grid-column: 1 / -1;
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding: 24px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgba(243,242,236,0.35);
  text-align: left;
}
.footer-bottom p { line-height: 1.8; margin: 0; }
.footer-bottom a { color: inherit; text-decoration: underline; }
.footer-bottom a:hover { color: var(--cream); }
.footer-disclosure {
  grid-column: 1 / -1;
  max-width: var(--max-w);
  margin: 16px auto 0;
  padding: 16px 0 0;
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgba(243,242,236,0.4);
  text-align: center;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-disclosure [data-business-address] {
  display: block;
  margin-top: 4px;
}
