/* ====== Reset & Base ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #0b0b0b;
  color: #f4f4f4;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.page-content .btn {
  display: block;
  width: fit-content;
  margin: 25px auto 0;
}
.contact-short .btn {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
}

/* ====== Header ====== */
header {
  background: #111;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.page-header {
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.2rem;
  color: #ccc;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
}

/* Default nav (desktop) */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul li a {
  color: #f4f4f4;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #e50914;
}

.lang-switch button {
  background: none;
  border: none;
  color: #f4f4f4;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.lang-switch button:hover {
  color: #e50914;
}

/* ====== MOBILE MENU ====== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.menu-toggle .hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: 0.3s ease;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: 0.3s ease;
}

.menu-toggle .hamburger::before {
  top: -6px;
}

.menu-toggle .hamburger::after {
  top: 6px;
}

/* Mobile nav hidden */
nav {
  transition: 0.3s ease;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #111;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.25s ease;
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 999;
  }

  nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .lang-switch {
    display: flex;
    position: absolute;
    top: 15px;
    right: 60px;
    background: rgba(17,17,17,0.9);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    z-index: 1000;
    align-items: center;
  }

  .lang-switch .sep {
    margin: 0 6px;
    color: #aaa;
  }
}

/* Hamburger animation */
.menu-toggle.open .hamburger {
  background: transparent;
}

.menu-toggle.open .hamburger::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open .hamburger::after {
  transform: translateY(-6px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

/* ====== Butoane ====== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  background: linear-gradient(145deg, #e50914, #b00610);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.25);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: linear-gradient(145deg, #ff1a24, #c00b10);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(229, 9, 20, 0.4);
}

.btn:active {
  transform: scale(0.98);
  box-shadow: 0 3px 8px rgba(229, 9, 20, 0.3);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-20deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::after {
  transform: skewX(-20deg) translateX(100%);
}

/* ====== CAR OFFERS ====== */
.vertical-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 25px;
}

.vertical-blocks .block {
  background: #161616;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #e50914;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  min-height: 380px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.vertical-blocks .block:hover {
  transform: translateY(-6px);
  background: #1b1b1b;
  box-shadow: 0 8px 22px rgba(229, 9, 20, 0.25);
}

.vertical-blocks .block img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.vertical-blocks .block:hover img {
  transform: scale(1.05);
}

.vertical-blocks .block h2 {
  margin-bottom: 10px;
}

.vertical-blocks .block p {
  flex-grow: 1;
  color: #ddd;
  margin-bottom: 15px;
}

.vertical-blocks .block .btn {
  align-self: center;
  margin-top: auto;
  width: 80%;
}

/* Responsive Layouts */
@media (max-width: 992px) {
  .vertical-blocks {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .vertical-blocks {
    grid-template-columns: 1fr;
  }
  .vertical-blocks .block {
    min-height: auto;
  }
}

/* ====== Gallery ====== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  transition: 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* ====== Contact Page ====== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
  background: url('images/car.png') center/cover no-repeat;
  color: #fff;
}

.contact-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

.contact-grid > * {
  position: relative;
  z-index: 1;
  background: rgba(27, 27, 27, 0.7);
  padding: 20px;
  border-radius: 8px;
}

/* ====== Footer ====== */
footer {
  background: #111;
  padding: 5px 0;
  text-align: center;
  border-top: 2px solid #e50914;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.social-icons a {
  display: inline-block;
  margin-left: 10px;
}

.social-icons img {
  width: 28px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.social-icons img:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

/* ====== Formular mesaj ====== */
.form-message {
  margin-top: 15px;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-message.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-message.success {
  background: rgba(0, 180, 90, 0.2);
  border: 1px solid #3fd86b;
  color: #3fd86b;
}

.form-message.error {
  background: rgba(200, 40, 40, 0.25);
  border: 1px solid #e50914;
  color: #ff6b6b;
}

/* ====== Optimizare Contact Page pe mobil ====== */
@media (max-width: 600px) {
  .contact-grid {
    gap: 20px;
  }

  .contact-form, .contact-info {
    padding: 15px;
    border-radius: 10px;
  }

  .contact-form h2,
  .contact-info h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .contact-form button.btn {
    width: 100%;
    margin-top: 5px;
  }
}

/* ====== Aranjare frumoasă formular contact ====== */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 0.95rem;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

.contact-form button.btn {
  width: fit-content;
  align-self: flex-start;
  margin-top: 5px;
}

@media (max-width: 600px) {
  .contact-form form {
    gap: 10px;
  }

  .contact-form button.btn {
    width: 100%;
  }
}
