/* Reset și bază */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
  color: #222;
  padding-bottom: 100px;
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#preloader img {
  width: 150px;
}

/* Header */
header {
  background: #111;
  color: #fff;
  padding: 1em 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
}
.brand .logo {
  width: 50px;
  margin-right: 0.5em;
}
nav a,
.social-nav a {
  color: #fff;
  margin-left: 1em;
  text-decoration: none;
  font-weight: 500;
  transition: transform .3s;
}
nav a:hover,
.social-nav a:hover {
  transform: scale(1.2);
}

/* Hero */
.hero {
  padding: 5em 1em;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url('images/tow_truck.webp') no-repeat center center;
  background-size: cover;
  position: relative;
}

/* Fallback pentru browsere care nu suportă WebP */
@supports not (background-image: url("images/tow_truck.webp")) {
  .hero {
    background-image: url('images/tow_truck.jpg');
  }
}

/* Stiluri adaptative */
@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
    background-position: center top;
  }
  .hero .container {
    position: absolute;
    top: 1rem;
    right: 1rem;
    left: auto;
    width: calc(100% - 2rem);
    max-width: none;
    transform: none;
  }
}

/* Butoane */
.btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: .7em 1.5em;
  margin-top: 1em;
  text-decoration: none;
  border-radius: 6px;
  transition: background .3s;
}
.btn:hover {
  background: #0056b3;
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Secțiuni */
.section {
  padding: 4em 1em;
}
.section.alt {
  background: #f9f9f9;
}

/* Two-column */
.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}
.two-column .text,
.two-column .image {
  flex: 1 1 45%;
}
.two-column img {
  max-width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
}

/* Reviews */
.reviews-container {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  justify-content: center;
}
.review-item {
  background: #f4f4f4;
  padding: 1em;
  border-radius: 8px;
  max-width: 300px;
  text-align: center;
}
.review-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1em;
}

/* Galerie Swiper */
.swiper-container {
  width: 100%;
  padding: 2em 0;
}
.swiper-slide img {
  width: 100%;
  border-radius: 8px;
}

/* Contact */
#contact .icon {
  margin-right: .5em;
}
#contact p {
  margin-bottom: .8em;
  font-size: 1.1em;
}
#contact .btn {
  margin: .5em 0;
  padding: .7em 1.5em;
}
form {
  background: #f4f4f4;
  padding: 1em;
  border-radius: 8px;
}
.form-group {
  margin-bottom: 1em;
}
.form-group label {
  margin-bottom: .3em;
  display: block;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .7em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Harta */
.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
  margin-top: 1em;
}

/* Butoane flotante */
.floating-buttons {
  position: fixed !important;
  left: 20px !important;
  bottom: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  z-index: 99999 !important;
}
@media (max-width: 768px) {
  .floating-buttons {
    left: 10px !important;
    bottom: 10px !important;
  }
}
.floating-btn {
  display: flex;
  align-items: center;
  color: #fff;
  padding: 0.8em 1em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.floating-btn i {
  margin-right: 0.5em;
}
.call-btn {
  background: #007bff;
}
.whatsapp-btn {
  background: #25D366;
}

/* Footer */
footer {
  background: #222;
  color: #fff;
  padding: 2em 1em;
  text-align: center;
}
.social-icons a {
  color: #fff;
  margin: 0 .5em;
  font-size: 1.5em;
  transition: transform .3s;
}
.social-icons a:hover {
  transform: scale(1.2);
}

/* Adaptări mobile suplimentare */
@media (max-width: 768px) {
  .two-column {
    flex-direction: column;
  }
  .two-column .text {
    order: 2;
  }
  .two-column .image {
    order: 1;
  }
  .two-column img {
    max-height: unset;
    width: 100%;
  }
}

/* Stiluri mobile pentru Hero mai detaliate */
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    background-position: center center;
    background-size: cover;
    padding: 2em 1em;
  }
  .hero .container {
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 8px;
    background: rgba(255,255,255,0.85);
    padding: 1em;
  }
}

/* Hero pe desktop: fixăm înălțimea și poziția imaginii */
@media (min-width: 769px) {
  .hero {
    padding: 0;                   
    height: 60vh;                 
    background-position: 75% center !important; 
    background-size: cover;       
  }
  .hero .container {
    height: 100%;                 
    display: flex;
    flex-direction: column;
    justify-content: center;      
    padding: 0 1em;               
  }
}

/* Spaţiu după titlurile h2 din secţiuni */
.section h2 {
  margin-bottom: 1.5em; /* ajustează valoarea după preferinţă */
}

.btn {
  transition: transform .2s ease;
}
.btn:hover {
  transform: scale(1.1);
}

.social-icons a:hover {
  color: #25D366;        /* să devină verde Whatsapp, de exemplu */
  transform: rotate(10deg);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Butoanele flotante pulse nonstop */
.call-btn,
.whatsapp-btn {
  animation: pulse 2s ease-in-out infinite;
}

/* Păstrează hover-ul suplimentar */
.call-btn:hover,
.whatsapp-btn:hover {
  transform: scale(1.2); /* resize suplimentar când dai hover */
}


.hero {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

/* Animație pulse pentru telefon și e-mail în contact */
#contact .text a[href^="tel"],
#contact .text a[href^="mailto"] {
  display: inline-block;
  animation: pulse 3s ease-in-out infinite;
  /* ca să nu miște tot conținutul, ci doar link-ul */
}

