/* marketing.css is only loaded on the homepage/blog/post pages, so it's safe to set this
   unconditionally - without it, a page shorter than the viewport shows the light :root
   background (meant for the admin panel) below the footer. */
html { background: #ffffff; }

/* ── Nav: language switcher (nav itself is always dark, see .marketing-nav in admin.css) ── */
.marketing-nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { position: relative; }
.lang-switch-btn {
  appearance: none; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #f8f2e9;
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.lang-switch-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-caret { font-size: 9px; opacity: .7; }
.lang-switch-menu {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 8px; background: #fff;
  border: 1px solid #e8e1d6; border-radius: 12px; min-width: 150px; padding: 6px;
  box-shadow: 0 20px 40px -20px rgba(19,18,26,.35); z-index: 50;
}
.lang-switch-menu.show { display: block; }
.lang-switch-menu a {
  display: block; padding: 8px 10px; font-size: 13px; color: #776a5c; text-decoration: none; border-radius: 7px;
}
.lang-switch-menu a:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); }
.lang-switch-menu a.active { color: var(--accent); font-weight: 700; }

/* ── Section heading (Features) ── */
.section-title { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin: 0 0 40px; }

/* ── Features: icon + title + description floating in a row, no card box (matches reference) ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px 28px; }
.feature-card { transition: transform .25s ease; }
.feature-card h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; }
.feature-card p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.feature-card .feature-icon { transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .2s; }
@media (hover: hover) {
  .feature-card:hover { transform: translateY(-4px); }
  .feature-card:hover .feature-icon { transform: scale(1.12) rotate(-4deg); background: color-mix(in srgb, var(--accent) 18%, transparent); }
}

/* ── Blog teaser on homepage ── */
.blog-teaser-inner { max-width: 1120px; margin: 0 auto; padding: 90px 20px; }
.blog-teaser-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.blog-teaser-sub { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.blog-view-all { color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.blog-view-all:hover { text-decoration: underline; }
.blog-teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.blog-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; transition: border-color .15s, transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 20px 36px -24px rgba(19,18,26,.3); }
.blog-card-cover { height: 5px; background: var(--accent); }
.blog-card-body { padding: 22px; }
.blog-card-body h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 10px; line-height: 1.35; }
.blog-card-body p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 14px; }
.blog-card-link { font-size: 12.5px; font-weight: 700; color: var(--accent); }

/* ── Blog listing page ── */
.blog-list-hero { max-width: 720px; margin: 0 auto; padding: 60px 20px 10px; text-align: center; }
.blog-list-hero h1 { font-weight: 800; letter-spacing: -.02em; font-size: 40px; color: var(--ink); margin: 0 0 12px; }
.blog-list-hero p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.blog-list-wrap { max-width: 980px; margin: 0 auto; padding: 40px 20px 80px; }
.blog-list-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.blog-list-empty { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 40px 0; }

/* ── Single blog post ── */
.post-article { max-width: 720px; margin: 0 auto; padding: 0 20px 80px; }
.post-cover { height: 8px; border-radius: 4px; margin-top: 40px; }
.post-header { text-align: center; padding: 40px 0 30px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.post-back { display: inline-block; color: var(--accent); text-decoration: none; font-size: 12.5px; font-weight: 700; margin-bottom: 22px; }
.post-back:hover { text-decoration: underline; }
.post-header h1 { font-weight: 800; letter-spacing: -.02em; font-size: 34px; color: var(--ink); margin: 0 0 14px; line-height: 1.25; }
.post-meta { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.post-body { font-size: 15.5px; color: var(--ink); line-height: 1.8; }
.post-body h2 { font-weight: 800; letter-spacing: -.01em; font-size: 23px; color: var(--ink); margin: 36px 0 14px; }
.post-body p { margin: 0 0 18px; color: var(--ink-soft); }
.post-body p:first-of-type { color: var(--ink); font-size: 16.5px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 22px; color: var(--ink-soft); }
.post-body li { margin-bottom: 6px; }
.post-body strong { color: var(--ink); }

/* ── Partner ad: sabotronic.eu callout, homepage only, just above the footer ── */
.marketing-partner-band { padding: 0 20px 90px; }
.partner-band-inner {
  max-width: 1000px; margin: 0 auto; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 20px; padding: 44px 44px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.partner-band-text { flex: 1; min-width: 240px; }
.partner-band-text h2 { font-size: 25px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; }
.partner-band-text p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; margin: 0; max-width: 460px; }
.partner-band-btn { flex: none; white-space: nowrap; }

@media (max-width: 760px) {
  .features-grid { grid-template-columns: 1fr; }
  .partner-band-inner { padding: 34px 26px; }
}
