/* =============================================
   recenziisolar.md — Main Stylesheet
   Aesthetic: Editorial Minimalism
   ============================================= */

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

:root {
  --white: #ffffff;
  --off-white: #f8f6f2;
  --black: #0e0e0e;
  --gray-light: #e8e4de;
  --gray-mid: #b0a99e;
  --gray-dark: #5a554e;
  --accent: #c8a96a;
  --accent-light: #f5edd8;
  --cat-compare: #e8ede8;
  --cat-compare-text: #3a5c3a;
  --cat-guide: #e8e8f0;
  --cat-guide-text: #3a3a6b;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;

  --max-width: 1140px;
  --header-h: 68px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- UTILS ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-light);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 28px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
}

.site-footer .logo-img {
  height: 22px;
  max-width: 110px;
  filter: brightness(0) invert(1);
}

@media (max-width: 600px) {
  .logo-img { height: 22px; max-width: 110px; }
  .site-footer .logo-img { height: 18px; max-width: 90px; }
}

.main-nav {
  display: flex;
  gap: 32px;
  flex: 1;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--black); }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: var(--gray-dark);
  transition: all 0.2s;
  display: flex;
  gap: 4px;
}

.lang-toggle:hover { border-color: var(--accent); }
.lang-ro, .lang-ru { transition: color 0.2s; }
.lang-ro.active, .lang-ru.active { color: var(--black); font-weight: 500; }
.lang-sep { color: var(--gray-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-light);
  padding: 16px 32px 20px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-light);
}

.mobile-nav a:last-child { border-bottom: none; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--off-white);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 32px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 28px;
  max-width: 800px;
}

.hero-title .line { display: block; }

.hero-title em {
  font-style: italic;
  color: var(--accent);
  display: block;
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--gray-dark);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Sun rings decoration */
.hero-deco {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.sun-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  transform: translate(-50%, -50%);
  opacity: 0.2;
  animation: pulse 4s ease-in-out infinite;
}

.ring-1 { width: 300px; height: 300px; animation-delay: 0s; }
.ring-2 { width: 500px; height: 500px; opacity: 0.12; animation-delay: 0.8s; }
.ring-3 { width: 700px; height: 700px; opacity: 0.06; animation-delay: 1.6s; }

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: inherit; }
  50% { transform: translate(-50%, -50%) scale(1.03); opacity: 0.3; }
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  padding: 13px 28px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: #2a2a2a; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--gray-light);
  border-radius: 2px;
  transition: border-color 0.2s, transform 0.15s;
}

.btn-secondary:hover { border-color: var(--black); transform: translateY(-1px); }

/* ---- CATEGORIES ---- */
.categories {
  padding: 80px 0;
  background: var(--white);
}

.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--gray-light);
  border: 2px solid var(--gray-light);
}

.cat-card {
  display: block;
  padding: 56px 48px;
  text-decoration: none;
  color: var(--black);
  position: relative;
  transition: background 0.25s;
}

.cat-comparisons { background: var(--cat-compare); }
.cat-guides { background: var(--cat-guide); }

.cat-card:hover { filter: brightness(0.97); }

.cat-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  color: var(--gray-mid);
  line-height: 1;
  margin-bottom: 16px;
}

.cat-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cat-desc {
  font-size: 0.95rem;
  color: var(--black);
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 32px;
}

.cat-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--black);
}

/* ---- LATEST POSTS ---- */
.latest-posts {
  padding: 80px 0;
  background: var(--off-white);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.see-all {
  font-size: 0.875rem;
  color: var(--gray-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.see-all:hover { color: var(--black); }

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
  background: var(--gray-light);
}

.post-card {
  background: var(--white);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-featured {
  grid-column: 1 / -1;
  background: var(--black);
  color: var(--white);
}

.post-featured h3 a { color: var(--white); }
.post-featured p { color: rgba(255,255,255,0.65); }
.post-featured .post-date { color: rgba(255,255,255,0.4); }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-cat {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}

.post-cat.comparisons {
  background: var(--cat-compare);
  color: var(--cat-compare-text);
}

.post-cat.guides {
  background: var(--cat-guide);
  color: var(--cat-guide-text);
}

.post-featured .post-cat.comparisons {
  background: rgba(200,169,106,0.25);
  color: var(--accent);
}

.post-date {
  font-size: 0.8rem;
  color: var(--gray-mid);
}

.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
}

.post-card h3 a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}

.post-card h3 a:hover { color: var(--accent); }

.post-card p {
  font-size: 0.9rem;
  color: #3a3530;
  line-height: 1.65;
  flex: 1;
}

.read-more {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray-dark);
  text-decoration: none;
  transition: color 0.2s;
  margin-top: auto;
}

.read-more:hover { color: var(--black); }
.post-featured .read-more { color: rgba(255,255,255,0.6); }
.post-featured .read-more:hover { color: var(--white); }

/* ---- ABOUT STRIP ---- */
.about-strip {
  padding: 80px 0;
  background: var(--accent-light);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-strip-text h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.about-strip-text p {
  font-size: 0.95rem;
  color: #3a3530;
  line-height: 1.75;
  margin-bottom: 28px;
}

.about-strip-stats {
  display: flex;
  gap: 48px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--black);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-dark);
  letter-spacing: 0.04em;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  max-width: 280px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ---- PAGE ENTER ANIMATION ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fadeUp 0.6s ease both 0.1s; }
.hero-title { animation: fadeUp 0.7s ease both 0.2s; }
.hero-sub { animation: fadeUp 0.7s ease both 0.35s; }
.hero-cta { animation: fadeUp 0.7s ease both 0.5s; }

/* ---- RESPONSIVE: TABLET ---- */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-featured { grid-column: 1; }
  .about-strip-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-strip-stats { gap: 32px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { padding: 16px 20px 20px; }
}

/* ---- RESPONSIVE: MOBILE ---- */
@media (max-width: 480px) {
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .header-inner { gap: 8px; }
  .lang-toggle { padding: 4px 8px; font-size: 0.7rem; }
}

@media (max-width: 600px) {
  :root { --header-h: 56px; }

  .container { padding: 0 16px; }

  /* Header */
  .header-inner { padding: 0 16px; gap: 12px; }
  .logo { font-size: 1.05rem; }
  .mobile-nav { padding: 12px 16px 16px; }
  .mobile-nav a { font-size: 0.9rem; padding: 12px 0; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-inner { padding: 48px 16px 52px; }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3rem); margin-bottom: 20px; }
  .hero-sub { font-size: 0.92rem; margin-bottom: 28px; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .btn-primary, .btn-secondary { text-align: center; padding: 14px 20px; width: 100%; }
  .hero-deco { display: none; }

  /* Categories */
  .categories { padding: 40px 0; }
  .cat-card { padding: 32px 20px; }
  .cat-num { font-size: 3rem; margin-bottom: 10px; }
  .cat-title { font-size: 1.5rem; }
  .cat-desc { font-size: 0.88rem; margin-bottom: 20px; }

  /* Latest posts */
  .latest-posts { padding: 40px 0; }
  .section-header { margin-bottom: 20px; }
  .section-header h2 { font-size: 1.4rem; }
  .post-card { padding: 24px 20px; gap: 10px; }
  .post-card h3 { font-size: 1.15rem; }
  .post-card p { font-size: 0.88rem; }

  /* About strip */
  .about-strip { padding: 40px 0; }
  .about-strip-text h2 { font-size: 1.6rem; }
  .about-strip-text p { font-size: 0.9rem; }
  .about-strip-stats { flex-wrap: wrap; gap: 20px; }
  .stat-num { font-size: 2rem; }
  .stat-label { font-size: 0.75rem; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-links { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .site-footer { padding: 40px 0 24px; }
}
