/* =========================================================
   AUTOVIVA - autoviva.ro
   Foaia de stil a site-ului.

   Provine din CSS-ul componentelor React, concatenat 1:1 in
   aceeasi ordine in care Next.js le incarca. Singurele modificari
   sunt marcate cu comentariu; la final sunt cateva adaugiri necesare
   pentru ca HTML-ul static sa arate ca varianta React.

   Se editeaza direct fisierul asta - nu e generat de build-autoviva.py.
   ========================================================= */


/* =========================================================
   Baza: variabile, tipografie, utilitare
   (globals.css)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@500;700;800&display=swap");

:root {
  --bg-dark: #0b0d10;
  --bg-card: #15181e;
  --bg-checkered: #1a1d24;

  --primary-red: #d90429;
  --primary-red-hover: #b3001a;

  --primary-blue: #3a86ff;
  --primary-blue-dim: #1e3a8a;

  --text-main: #edf2f4;
  --text-muted: #a4adb9; /* Increased contrast from #8d99ae */
  --text-dark: #2b2d42;

  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  --container-width: 1200px;
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary-red);
  color: white;
  padding: 10px 20px;
  z-index: 10000;
  transition: top 0.3s;
  font-weight: 600;
  border-bottom-right-radius: 8px;
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 4px;
}

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

.section {
  padding: 80px 0;
}

.text-red {
  color: var(--primary-red);
}
.text-blue {
  color: var(--primary-blue);
}
.text-center {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary-red);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 35, 60, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Grid Layouts - Mobile First */
.grid-2,
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  h1 {
    font-size: 4.5rem;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 60px 0;
  }
  h1 {
    font-size: 2.5rem;
  }
}


/* =========================================================
   Antet si navigatie
   (Navbar.css)
   ========================================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 20px 0;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(11, 13, 16, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  opacity: 0.8;
  position: relative;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--primary-blue);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background: var(--bg-card);
  padding: 80px 20px;
  transition: right 0.3s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 600;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.full-width {
  width: 100%;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}


/* =========================================================
   Subsol
   (Footer.css)
   ========================================================= */

.footer {
  background-color: #050608;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 20px 0;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary-red);
  color: white;
}

.footer-col h4 {
  color: white;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 12px;
}

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

.footer-links a:hover {
  color: var(--primary-red);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Banner cookie
   (CookieBanner.css)
   ========================================================= */

.cookie-banner-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.cookie-banner {
  background: #0f1115;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.cookie-header h3 {
  color: white;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.cookie-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.cookie-link {
  color: var(--primary-blue);
  text-decoration: underline;
  cursor: pointer;
}

/* Simple Actions */
.cookie-simple-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-accept-all {
  background: var(--primary-red);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-accept-all:hover {
  background: #cc0000;
}

.btn-reject-all {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
}

.btn-reject-all:hover {
  border-color: white;
}

.btn-customize {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

/* Details View */
.cookie-details {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 20px;
  animation: slideUp 0.3s ease-out;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.option-info {
  display: flex;
  flex-direction: column;
}

.option-title {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.option-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

.cookie-detailed-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-save-prefs {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.btn-back {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-blue);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.toggle-switch.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toggle-switch.disabled .slider {
  background-color: var(--primary-red); /* Strict is red/locked */
  cursor: not-allowed;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .cookie-simple-actions {
    flex-direction: column;
  }

  .btn-accept-all,
  .btn-reject-all,
  .btn-customize {
    width: 100%;
    text-align: center;
  }
}


/* =========================================================
   Hero
   (Hero.css)
   ========================================================= */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(11, 13, 16, 0.95) 0%,
    rgba(11, 13, 16, 0.8) 50%,
    rgba(11, 13, 16, 0.4) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 80px; /* Offset for navbar */
}

.hero-text {
  max-width: 650px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

.hero-text.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-text h1 {
  font-size: 4.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(11, 13, 16, 0.8) 0%,
      rgba(11, 13, 16, 0.95) 100%
    );
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 1s;
}

.scroll-indicator.visible {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.scroll-indicator.hidden {
  opacity: 0 !important;
  transform: translate(-50%, 40px);
  visibility: hidden;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--primary-red);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}


/* =========================================================
   Banda de avantaje
   (Features.css)
   ========================================================= */

.features-banner {
  background-color: var(--bg-card);
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 767px) {
  .features-banner {
    display: none;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-item .icon-box {
  background: rgba(239, 35, 60, 0.1);
  color: var(--primary-red);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Selectorul era scris pentru h4, dar marcajul foloseste h3, deci
   regula nu se aplica niciodata. Corectat sa tinteasca h3. */
.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: white;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
}


/* =========================================================
   Despre noi
   (About.css)
   ========================================================= */

.about-section {
  background-color: var(--bg-dark);
}

.about-grid {
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: brightness(0.8) contrast(1.1);
  transition: all 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.02);
  filter: brightness(1);
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: var(--primary-red);
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(239, 35, 60, 0.4);
}

.experience-badge .years {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 5px;
  font-family: var(--font-heading);
}

.experience-badge .text {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-content .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-main);
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.features-list {
  margin-bottom: 30px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--text-main);
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-image {
    margin-bottom: 40px;
  }
  .experience-badge {
    right: 20px;
    bottom: 20px;
  }
}


/* =========================================================
   Servicii
   (Services.css)
   ========================================================= */

.services-section {
  background-color: var(--bg-card);
}

.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-dark);
  padding: 40px 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  group: hover;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.icon-wrapper {
  display: inline-flex;
  padding: 16px;
  background: rgba(239, 35, 60, 0.1);
  color: var(--primary-red);
  border-radius: 12px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
  background: var(--primary-red);
  color: white;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}


/* =========================================================
   Galerie foto
   (Gallery.css)
   ========================================================= */

.gallery-section {
  background-color: var(--bg-card);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 300px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 13, 16, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay span {
  border: 1px solid white;
  padding: 10px 20px;
  color: white;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  .gallery-item {
    height: 250px;
  }
}

/* Modal Styles */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  cursor: zoom-out;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.close-btn {
  position: absolute;
  top: -40px;
  right: -40px;
  background: transparent;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--primary-red);
}

@media (max-width: 768px) {
  .close-btn {
    top: -50px;
    right: 0;
  }
}


/* =========================================================
   Contact, formular, harta
   (Contact.css)
   ========================================================= */

.contact-section {
  background-color: var(--bg-dark);
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.1;
}

.contact-desc {
  margin-bottom: 40px;
  color: var(--text-muted);
}

.info-items {
  display: grid;
  gap: 30px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-item .icon {
  background: rgba(58, 134, 255, 0.1);
  color: var(--primary-blue);
  padding: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Acelasi caz ca la .feature-item: regula era scrisa pentru h4,
   iar marcajul foloseste h3. */
.info-item h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.info-item p,
.contact-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--primary-blue);
}

.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-wrapper {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form h3 {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
}

@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 30px 20px;
  }
}

/* Status Messages */
.status-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
  animation: fadeIn 0.5s ease-out;
}

.status-message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-message.error {
  background: rgba(239, 35, 60, 0.1);
  border: 1px solid rgba(239, 35, 60, 0.2);
  color: #ef233c;
}

/* Map Navigation */
.map-navigation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.nav-btn img {
  display: block;
}

/* Brand specific styling */
.nav-btn.waze svg {
  color: #33ccff;
}

.nav-btn.google svg {
  color: #ea4335;
}

.nav-btn.waze:hover {
  border-color: #33ccff;
  background: rgba(51, 204, 255, 0.1);
}
.nav-btn.google:hover {
  border-color: #ea4335;
}
.nav-btn.apple:hover {
  border-color: #a3aaae;
}

@media (max-width: 480px) {
  .map-navigation {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Adaugiri pentru varianta statica
   Aici e singura diferenta fata de CSS-ul componentelor React.
   Fiecare regula inlocuieste ceva ce inainte facea React sau
   componenta <Image> din Next.js, care isi punea stiluri inline.
   ========================================================= */

/* <Image fill> punea inline `position:absolute; inset:0; width:100%;
   height:100%; object-fit:cover`. Cu <img> simplu, o scriem noi.
   Se aplica fundalului din hero si imaginii din pagina 404. */
.hero-bg img,
.err-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cadrul imaginii din pagina 404 (era style inline in not-found.jsx). */
.err-hero {
  position: relative;
  width: 100%;
  height: 400px;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* React scotea elementele din DOM cand nu erau necesare
   (`if (!bannerVisible) return null`). In HTML static ele exista
   mereu, iar JS-ul le arata sau le ascunde prin atributul `hidden`.
   Regula trebuie sa fie !important: bannerul si fereastra galeriei
   au `display:flex` setat mai sus, care altfel bate `hidden`. */
[hidden] {
  display: none !important;
}

/* Butonul de meniu contine ambele iconite (hamburger si X); JS-ul
   o ascunde pe cea nefolosita. Fara asta ar aparea una peste alta. */
.mobile-toggle svg {
  display: block;
}

/* Mesajul de raspuns al formularului e creat de JS dupa trimitere.
   Clasa .status-message si variantele .success / .error sunt deja
   definite mai sus, la sectiunea de contact. */
.contact-form button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Marcheaza campurile invalide la trimiterea formularului. */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--primary-red);
}

/* Harta se incarca abia dupa acordul pentru cookie-uri. Pana atunci
   iframe-ul nu are `src`, deci punem un chenar in locul ei. */
.map-wrapper.map-gated {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  padding: 20px;
  text-align: center;
  background: var(--bg-card);
}

.map-wrapper.map-gated iframe {
  display: none;
}

.map-gated-note {
  display: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.map-wrapper.map-gated .map-gated-note {
  display: block;
}

.map-gated-note button {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary-blue);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* =========================================================
   Stiluri care erau scrise inline in componentele React
   (atributul `style={{...}}` din JSX). Valorile sunt copiate
   una cate una, ca paginile sa arate exact ca inainte.
   ========================================================= */

/* --- Butoanele cu iconita --- */
/* In varianta React fiecare iconita din buton avea marginea scrisa inline:
   `marginRight: 8px` la telefonul din "Programare", `marginLeft: 8px` la
   sageata din "Programare Online" si la avionul din "Trimite Cererea".
   Cum .btn e deja inline-flex, un singur `gap` le rezolva pe toate, in
   ambele sensuri. Butoanele fara iconita nu sunt afectate: gap-ul nu
   face nimic cand exista un singur element inauntru. */
.btn {
  gap: 8px;
}

/* --- Subsol: butonul de setari cookie si blocul ANPC --- */
.footer-link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-dpo {
  color: #8d99ae;
  font-size: 0.95rem;
}

.anpc-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.anpc-links img {
  width: 250px;
  height: auto;
  border-radius: 4px;
}

/* --- Despre noi: butonul de la finalul textului --- */
.about-cta {
  margin-top: 20px;
}

/* --- Formularul de contact: bifa de acord GDPR --- */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.gdpr-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.gdpr-text label {
  display: inline;
  color: white;
  cursor: pointer;
}

.gdpr-text p {
  margin-top: 5px;
  font-size: 0.8rem;
}

.gdpr-text a {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* --- Paginile legale: GDPR si politica de cookie-uri --- */
.pagina-legala {
  min-height: 80vh;
  padding-top: 120px;
}

.pagina-legala h1 {
  margin-bottom: 40px;
  font-size: 2.5rem;
}

.pagina-legala .content {
  color: var(--text-muted);
  line-height: 1.8;
}

.pagina-legala .ultima-actualizare {
  margin-bottom: 20px;
}

.pagina-legala .content h3 {
  color: white;
  margin-top: 30px;
  margin-bottom: 15px;
}

.pagina-legala .content h4 {
  color: white;
  margin-top: 20px;
  margin-bottom: 10px;
}

.pagina-legala .content ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.pagina-legala .content a {
  color: var(--primary-blue);
}

/* --- Pagina 404 --- */
.pagina-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.err-wrap {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.pagina-404 h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--text-main);
}

.pagina-404 p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.err-cta {
  padding: 16px 32px;
  font-size: 1.1rem;
}
