:root {
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --text: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --accent: #bf1e2d;
  --accent-hover: #9e1825;
  --border: #e5e7eb;
  --max-width: 1120px;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-headline: "Space Grotesk", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  height: 120px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* Navigare mobilă */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.site-header.is-nav-open .nav-toggle-icon { background: transparent; }
.site-header.is-nav-open .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.site-header.is-nav-open .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.page-main {
  flex: 1;
  padding-block: clamp(3rem, 8vw, 5rem);
}

.page-content {
  max-width: 42rem;
}

.page-content h1 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--text);
}

.page-content p + p { margin-top: 0; }

.link-back {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.link-back:hover { color: var(--accent-hover); }

.blog-list {
  list-style: none;
  margin-top: 2rem;
}

.blog-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-list li:first-child { padding-top: 0; }

.blog-list a {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.blog-list a:hover { color: var(--accent); }

.blog-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.blog-excerpt {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.article-body h2 {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
}

.site-footer .logo img { height: 96px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0;
  }

  .logo img {
    height: 64px;
  }

  .site-footer .logo img {
    height: 72px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    width: 100%;
    padding-bottom: 0.5rem;
  }

  .site-header.is-nav-open .site-nav {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
    padding-top: 0.25rem;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.875rem 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-links a {
    font-size: 0.9375rem;
  }
}
