/* ElektroMobilita Tip — night-charging atmosphere, content-first magazine */
:root {
  --navy-deep: #0a121d;
  --navy: #101f30;
  --navy-mid: #16324a;
  --teal: #12878a;
  --teal-deep: #0a565c;
  --volt: #baf24d;
  --volt-deep: #8fc72a;
  --amber: #ffb454;
  --amber-deep: #e0902f;
  --ink: #141b22;
  --ink-muted: #59636d;
  --paper: #f8f5ee;
  --paper-warm: #efe7d6;
  --card: #fffdf8;
  --line: rgba(20, 27, 34, 0.12);
  --shadow: 0 14px 44px rgba(10, 18, 29, 0.14);
  --radius: 8px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 100% -10%, rgba(18, 135, 138, 0.10), transparent 55%),
    radial-gradient(ellipse 70% 50% at -10% 20%, rgba(255, 180, 84, 0.10), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; }

a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--amber-deep); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-deep); color: #fff; padding: 0.5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 245, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h); padding: 0.5rem 0;
}

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 2.35rem; height: 2.35rem; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--navy-deep);
  background: linear-gradient(145deg, var(--volt), var(--teal) 120%);
  box-shadow: inset 0 0 0 1px rgba(10, 18, 29, 0.15);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-tagline { font-size: 0.72rem; color: var(--ink-muted); letter-spacing: 0.01em; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 1.2rem; height: 2px; background: var(--ink); margin-inline: auto; }

.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; font-size: 0.93rem; }
.nav a { text-decoration: none; color: var(--ink-muted); font-weight: 500; padding: 0.25rem 0; }
.nav a:hover, .nav a.is-active { color: var(--teal-deep); }

/* Hero (homepage only) — atmospheric night-charging panel */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 90% at 85% 15%, rgba(186, 242, 77, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 70% at 10% 100%, rgba(255, 180, 84, 0.14), transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(18, 135, 138, 0.35), transparent 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 65%, var(--navy-mid) 100%);
  color: #eef4ee;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, black 10%, transparent 75%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; display: grid; gap: 2.5rem; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--volt); background: rgba(186, 242, 77, 0.12);
  border: 1px solid rgba(186, 242, 77, 0.3);
  padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 16ch;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--volt), var(--amber) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 46ch;
  font-size: 1.12rem;
  color: rgba(238, 244, 238, 0.78);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--volt); }
.hero-stat span { font-size: 0.8rem; color: rgba(238, 244, 238, 0.65); }

.hero-visual {
  position: relative;
  border-radius: 18px;
  padding: 2rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}

.hero-visual-bolt {
  width: 3.5rem; height: 3.5rem; border-radius: 12px; margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--volt), var(--teal));
  color: var(--navy-deep);
  box-shadow: 0 0 40px rgba(186, 242, 77, 0.35);
}

.hero-visual h2 {
  font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 0.6rem; color: #fff;
}

.hero-visual p { margin: 0 0 1.25rem; color: rgba(238, 244, 238, 0.75); font-size: 0.95rem; }

.hero-visual ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.hero-visual li {
  display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.9rem;
  color: rgba(238, 244, 238, 0.85);
}
.hero-visual li::before { content: "⚡"; color: var(--volt); font-size: 0.8rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 0; border-radius: var(--radius); padding: 0.75rem 1.3rem;
  font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  text-decoration: none; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--volt); color: var(--navy-deep); }
.btn-primary:hover { background: #cdff6e; color: var(--navy-deep); }

.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

.btn-outline { background: transparent; color: var(--teal-deep); border: 1px solid var(--line); }
.btn-outline:hover { background: rgba(18, 135, 138, 0.08); color: var(--teal-deep); }

.btn-accent { background: var(--amber); color: var(--navy-deep); }
.btn-accent:hover { background: var(--amber-deep); color: #fff; }

/* Category strip / pills */
.category-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.pill {
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: rgba(18, 135, 138, 0.08); color: var(--teal-deep);
}
.pill:hover { background: rgba(18, 135, 138, 0.16); color: var(--teal-deep); }
.pill.is-active { background: var(--navy-deep); color: #fff; }

/* Sections on paper background */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 1.75rem;
}
.section-head h2 {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 600; color: var(--navy-deep);
}
.section-head .section-link { font-size: 0.92rem; font-weight: 600; text-decoration: none; }

/* Article grid / cards */
.article-list {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  margin-bottom: 2rem;
}
.article-list-compact { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }

.article-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(10,18,29,0.16); }

.article-card-cat {
  align-self: flex-start; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--teal-deep); background: rgba(18,135,138,0.1);
  padding: 0.2rem 0.55rem; border-radius: 999px; margin-bottom: 0.75rem;
}

.article-card h2, .article-card h3 {
  font-family: var(--font-display); font-size: 1.18rem; margin: 0 0 0.5rem; line-height: 1.32; font-weight: 600;
}
.article-card h2 a, .article-card h3 a { text-decoration: none; color: var(--navy-deep); }
.article-card h2 a:hover, .article-card h3 a:hover { color: var(--teal-deep); }

.article-card-meta { font-size: 0.82rem; color: var(--ink-muted); margin: 0 0 0.7rem; }
.article-card-excerpt { font-size: 0.94rem; color: var(--ink-muted); margin: 0 0 1rem; flex: 1; }
.article-card-link { font-weight: 700; font-size: 0.9rem; text-decoration: none; color: var(--amber-deep); }
.article-card-link:hover { color: var(--teal-deep); }

/* Featured (first) article on home */
.featured-article {
  display: grid; gap: 1.5rem; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 2rem; margin-bottom: 2rem;
}
@media (min-width: 800px) {
  .featured-article { grid-template-columns: 1fr auto; align-items: center; }
}
.featured-article .article-card-cat { margin-bottom: 1rem; }
.featured-article h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.75rem; }
.featured-article h2 a { text-decoration: none; color: var(--navy-deep); }
.featured-article p { color: var(--ink-muted); margin: 0 0 1.25rem; max-width: 60ch; }

/* Pagination */
.pagination { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pagination-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.3rem; height: 2.3rem; border-radius: var(--radius); border: 1px solid var(--line);
  text-decoration: none; color: var(--navy-deep); font-weight: 600; font-size: 0.9rem;
}
.pagination-link.is-active { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }

/* Generic pages */
.page { padding: 2.5rem 0 4rem; }
.page-narrow { max-width: 42rem; }
.breadcrumb { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 1.25rem; }
.breadcrumb a { text-decoration: none; }

.page h1 {
  font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 0.6rem;
  color: var(--navy-deep); letter-spacing: -0.02em; line-height: 1.14; font-weight: 600;
}
.lede { font-size: 1.1rem; color: var(--ink-muted); margin: 0 0 1.75rem; }

.prose h2 {
  font-family: var(--font-display); font-size: 1.4rem; margin: 2rem 0 0.85rem; color: var(--navy-deep); font-weight: 600;
}
.prose p { margin: 0 0 1.1rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }

/* Article detail */
.page-article .article-meta { font-size: 0.88rem; color: var(--ink-muted); margin: 0 0 1.9rem; }
.article-body { max-width: 42rem; }
.article-body h2 { font-family: var(--font-display); font-size: 1.42rem; margin: 2.2rem 0 0.85rem; color: var(--navy-deep); font-weight: 600; }
.article-body h3 { font-family: var(--font-display); font-size: 1.18rem; margin: 1.75rem 0 0.6rem; color: var(--navy-deep); font-weight: 600; }
.article-body p { margin: 0 0 1.15rem; }
.article-body ul { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body a { font-weight: 600; }
.article-body strong { color: var(--navy-deep); }

.article-cta {
  margin: 2.5rem 0; padding: 1.5rem 1.75rem; border-radius: 12px; max-width: 42rem;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  color: #eef4ee;
}
.article-cta p { margin: 0; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.article-cta strong { color: var(--volt); }

.related-articles { max-width: 42rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.related-articles h2 { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy-deep); margin: 0 0 0.9rem; }
.related-articles-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.related-articles-list a { text-decoration: none; font-weight: 600; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 30rem; }
.form label { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 600; font-size: 0.92rem; }
.form input, .form textarea, .form select {
  font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.form-note { font-size: 0.88rem; color: var(--ink-muted); }

.alert { padding: 0.9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; background: rgba(18,135,138,0.08); border: 1px solid rgba(18,135,138,0.2); }
.alert-error { background: rgba(224, 144, 47, 0.1); border-color: rgba(224, 144, 47, 0.3); }

/* Value props (home) */
.value-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.value-card { padding: 1.5rem; }
.value-card .value-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(18,135,138,0.1); color: var(--teal-deep); margin-bottom: 1rem; font-size: 1.2rem;
}
.value-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 0.5rem; color: var(--navy-deep); font-weight: 600; }
.value-card p { margin: 0; color: var(--ink-muted); font-size: 0.94rem; }

.value-card.is-link {
  display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.value-card.is-link:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(10,18,29,0.16); }

.empty-state {
  text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,0.5);
}
.empty-state p { color: var(--ink-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--navy-deep); color: rgba(238,244,238,0.85);
  padding: 2.75rem 0 2rem; margin-top: auto;
}
.footer-inner { display: grid; gap: 1.5rem; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.footer-brand p { margin: 0.4rem 0 0; max-width: 32ch; opacity: 0.8; font-size: 0.92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.footer-nav a { color: rgba(238,244,238,0.75); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--volt); }
.footer-note { margin: 0; font-size: 0.8rem; opacity: 0.6; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none; flex-direction: column; width: 100%; gap: 0.35rem;
    padding: 0.75rem 0 0.5rem;
  }
  .nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .hero h1 { max-width: none; }
}
