:root {
  --bg: #07090d;
  --bg-soft: #11151d;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.12);
  --gold: #d6a84f;
  --gold-light: #ffd978;
  --red: #9f1f24;
  --text: #f4f1ea;
  --muted: #a8adb7;
  --white: #ffffff;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(214, 168, 79, 0.12), transparent 35%),
    radial-gradient(circle at bottom right, rgba(159, 31, 36, 0.14), transparent 35%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ================= HEADER ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 78px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 9, 13, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--panel-border);
}

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

.logo span {
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 900;
}

.logo strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  gap: 22px;
}

.nav-menu a {
  position: relative;
  font-size: 13px;
  color: var(--muted);
  transition: 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -28px;
  width: 0;
  height: 2px;
  background: var(--gold-light);
  transition: 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold-light);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-light);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 22px;
  cursor: pointer;
}

/* ================= HERO FIX PENTRU IFRAME ================= */
/* Nu folosim 100vh aici, deoarece în WordPress iframe poza devine uriașă. */

.hero {
  position: relative;
  width: 100%;
  height: 720px;
  min-height: 720px;
  max-height: 720px;
  display: flex;
  align-items: center;
  padding: 80px 7%;
  background:
    linear-gradient(
      90deg,
      rgba(7, 9, 13, 0.92),
      rgba(7, 9, 13, 0.58),
      rgba(7, 9, 13, 0.18)
    ),
    url("images/hero-train.png") center center / cover no-repeat;
  background-color: #07090d;
}

.hero-content {
  position: relative;
  max-width: 760px;
  z-index: 2;
}

.eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  margin: 18px 0;
}

.hero p {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ================= BUTTONS ================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1204;
  box-shadow: 0 12px 30px rgba(214, 168, 79, 0.25);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(214, 168, 79, 0.35);
}

.btn.secondary {
  color: var(--white);
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.06);
}

.btn.secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ================= SECTIONS ================= */

.intro-section,
.models-gallery-section,
.download-section,
.contact-section,
.premium-section,
.solar-dashboard-section {
  padding: 90px 7%;
}

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-title p {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.section-title h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 10px 0 0;
}

/* ================= HOME CARDS - VARIANTA INITIALA ================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.info-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  color: var(--gold-light);
  font-size: 24px;
  margin-top: 0;
}

.info-card p {
  color: var(--muted);
  line-height: 1.7;
}

.card-icon {
  color: var(--gold-light);
  font-size: 34px;
  margin-bottom: 14px;
}

/* ================= PREMIUM SECTION ================= */

.premium-section {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 34px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(7, 9, 13, 0.90), rgba(7, 9, 13, 0.82)),
    url("images/hero-train.png") center center / cover no-repeat;
  background-color: #07090d;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.premium-text h2 {
  font-size: clamp(32px, 4vw, 54px);
  margin: 10px 0;
}

.premium-text p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.premium-box {
  min-height: 230px;
  border-radius: 30px;
  border: 1px solid rgba(214, 168, 79, 0.4);
  background:
    radial-gradient(circle at top, rgba(255, 217, 120, 0.18), transparent 45%),
    rgba(7, 9, 13, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.premium-box span {
  font-size: 64px;
  font-weight: 900;
  color: var(--gold-light);
}

.premium-box p {
  color: var(--muted);
  margin: 8px 0 0;
}

/* ================= PAGE HERO ================= */

.page-hero {
  padding: 110px 7%;
  text-align: center;
  background:
    radial-gradient(circle at center top, rgba(214, 168, 79, 0.16), transparent 45%),
    linear-gradient(180deg, #10141c, #07090d);
  border-bottom: 1px solid var(--panel-border);
}

.page-hero.small h1 {
  font-size: clamp(38px, 5vw, 64px);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-hero.small p {
  color: var(--muted);
  font-size: 18px;
}

/* ================= MODELE GALLERY ================= */

.models-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.gallery-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 217, 120, 0.42);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}

.gallery-card-body {
  padding: 20px;
}

.gallery-card-body h3 {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-size: 20px;
}

.gallery-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* ================= SOLAR DASHBOARD ================= */

.solar-dashboard-shell {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.solar-dashboard-frame {
  width: 100%;
  height: 860px;
  display: block;
  border: 0;
  border-radius: 20px;
  background: #07090d;
}

.solar-note {
  max-width: 960px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

/* ================= LIGHTBOX ================= */

.zoom-img {
  cursor: zoom-in;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.zoom-img:hover {
  transform: scale(1.04);
  filter: brightness(1.12);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 82px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 34px;
  z-index: 10000;
  color: #ffffff;
  background: transparent;
  border: none;
  font-size: 54px;
  line-height: 1;
  cursor: pointer;
  transition: 0.25s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  color: var(--gold-light);
  transform: scale(1.08);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  width: 54px;
  height: 74px;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 58px;
  line-height: 1;
  cursor: pointer;
  transition: 0.25s ease;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-counter {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.72);
  border: 1px solid var(--panel-border);
  color: var(--gold-light);
  font-weight: 700;
}

/* ================= DOWNLOAD ================= */

.download-section {
  display: grid;
  gap: 22px;
}

.download-card {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.file-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
  color: #fff;
}

.file-icon.pdf {
  background: linear-gradient(135deg, #c72b2b, #f04c4c);
}

.file-icon.plan {
  background: linear-gradient(135deg, #205b9f, #4b9be8);
  font-size: 13px;
}

.file-icon.guide {
  background: linear-gradient(135deg, #226b3a, #4caf70);
  font-size: 13px;
}

.download-card h2 {
  margin: 0 0 8px;
  color: var(--gold-light);
}

.download-card p {
  margin: 0;
  color: var(--muted);
}

/* ================= CONTACT ================= */

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-info,
.contact-form {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.contact-info h2 {
  color: var(--gold-light);
  margin-top: 0;
}

.contact-info p {
  color: var(--muted);
  line-height: 1.7;
}

.contact-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.contact-box strong {
  display: block;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.contact-box span {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 16px;
  padding: 15px 17px;
  font-size: 15px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.contact-form textarea {
  resize: vertical;
}

/* ================= FOOTER ================= */

footer {
  padding: 28px 7%;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.28);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
  .models-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-menu {
    gap: 16px;
  }

  .nav-menu a {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: auto;
    padding: 18px 7%;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0 4px;
  }

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

  .nav-menu a::after {
    display: none;
  }

  .hero {
    height: 620px;
    min-height: 620px;
    max-height: 620px;
    padding-top: 90px;
    padding-bottom: 90px;
    background-size: cover;
    background-position: center center;
  }

  .cards-grid,
  .premium-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .models-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .download-card .btn {
    width: fit-content;
  }

  .solar-dashboard-frame {
    height: 760px;
  }
}

@media (max-width: 600px) {
  .logo strong {
    font-size: 16px;
  }

  .logo small {
    font-size: 9px;
  }

  .hero {
    height: 540px;
    min-height: 540px;
    max-height: 540px;
    padding-top: 70px;
    padding-bottom: 70px;
    background-size: cover;
    background-position: center center;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 15px;
  }

  .intro-section,
  .models-gallery-section,
  .download-section,
  .contact-section,
  .premium-section,
  .solar-dashboard-section {
    padding: 60px 6%;
  }

  .page-hero {
    padding: 80px 6%;
  }

  .models-gallery {
    grid-template-columns: 1fr;
  }

  .info-card,
  .download-card,
  .contact-info,
  .contact-form,
  .gallery-card,
  .solar-dashboard-shell {
    border-radius: 20px;
  }

  .info-card,
  .download-card,
  .contact-info,
  .contact-form {
    padding: 22px;
  }

  .solar-dashboard-shell {
    padding: 10px;
  }

  .solar-dashboard-frame {
    height: 680px;
    border-radius: 14px;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox img {
    max-width: 94vw;
    max-height: 78vh;
    border-radius: 12px;
  }

  .lightbox-close {
    top: 14px;
    right: 18px;
    font-size: 42px;
  }

  .lightbox-nav {
    width: 42px;
    height: 58px;
    font-size: 42px;
    border-radius: 12px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-counter {
    bottom: 14px;
  }
}