/* ==========================================================================
   1. VARIABILE ȘI SETĂRI GENERALE
   ========================================================================== */
:root {
  /* Industrial Professional Palette */
  --primary: #0A2342;
  /* Deep Navy */
  --primary-light: #2CA58D;
  /* Teal/Green for success/eco */
  --accent: #F4A261;
  /* Muted Orange/Gold for CTAs */
  --dark: #1B1B1E;
  --text-soft: #4A4A4A;
  --bg-light: #F0F2F5;
  --white: #ffffff;

  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);

  /* More rigid/stable shapes */
  --radius-lg: 12px;
  --radius-md: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ==========================================================================
   2. COMPONENTE REUTILIZABILE (Butoane, Badge-uri, Tipografie)
   ========================================================================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.subheading {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: block;
}

.badge {
  background: #E3F2FD;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.trust-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.btn-main {
  background: var(--accent);
  color: var(--dark);
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-main:hover {
  background: #e79b55;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(244, 162, 97, 0.3);
}

.btn-sub {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.btn-sub:hover {
  border-bottom-color: var(--primary);
}

/* ==========================================================================
   3. NAVBAR
   ========================================================================== */
.navbar {
  padding: 1rem 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.nav-links-desktop {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-right: 2rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--primary);
}

.logo span {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--accent);
}

.btn-cta {
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cta:hover {
  background: #06152a;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
  padding: 100px 0;
  background: radial-gradient(circle at top right, #f8faff, #ffffff);
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -2.5px;
  margin: 1.2rem 0;
  line-height: 1.05;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.hero-media .image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-media img {
  width: auto;
  height: 100%;
}

/* Stats & Hero additions */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
}

.stat span {
  font-size: 0.9rem;
  color: var(--text-soft);
  text-transform: uppercase;
  font-weight: 600;
}

/* Footer Cols */
.footer-top {
  display: flex;
  justify-content: space-between;
  text-align: left;
  margin-bottom: 2rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--primary);
}

/* ==========================================================================
   5. ABOUT SECTION
   ========================================================================== */
.about {
  padding: 120px 0;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 420px;
  background: var(--bg-light);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.experience-circle {
  width: 170px;
  height: 170px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.25);
}

.stats-card {
  position: absolute;
  bottom: 40px;
  right: -20px;
  background: var(--white);
  padding: 25px 35px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about-content h2 {
  font-size: 3rem;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.about-text p {
  color: var(--text-soft);
  margin-bottom: 1.2rem;
}

/* ==========================================================================
   6. SERVICES SECTION
   ========================================================================== */
.services {
  padding: 100px 0;
  background: var(--bg-light);
  border-radius: 60px;
  margin: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: 2.8rem;
  letter-spacing: -1px;
}

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

.service-card {
  background: var(--white);
  padding: 50px 40px;
  border-radius: 30px;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-soft);
  font-size: 1rem;
}

/* ==========================================================================
   7. FEATURES SECTION
   ========================================================================== */
.features {
  padding: 120px 0;
}

.features-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}

.feature-item {
  display: flex;
  gap: 24px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: #f0f7ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.features-media .image-box {
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   8. REVIEWS SECTION
   ========================================================================== */
.reviews {
  padding: 120px 0;
  background: var(--white);
}

.section-header-center {
  text-align: center;
  margin-bottom: 4rem;
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.review-card {
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.review-card:hover {
  background: var(--white);
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.stars {
  color: #ffcc00;
  margin-bottom: 1.2rem;
}

.review-text {
  font-style: italic;
  color: var(--dark);
  margin-bottom: 2rem;
}

.review-author {
  border-top: 1px solid #e5e5e5;
  padding-top: 1.5rem;
}

.review-author strong {
  display: block;
  color: var(--dark);
}

.review-author span {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.footer .logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ==========================================================================
   10. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {

  .hero-wrapper,
  .about-wrapper,
  .features-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p,
  .hero-actions {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .about-visual {
    order: 2;
  }

  .about-content {
    order: 1;
  }

  .services-grid,
  .reviews-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .services-grid,
  .reviews-container {
    grid-template-columns: 1fr;
  }

  .services {
    margin: 0;
    border-radius: 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .navbar .nav-right {
    gap: 1rem;
  }

  .nav-links-desktop {
    display: none;
  }

  /* Ascundem link-urile pe mobil pentru simplitate */
  .experience-tag {
    display: none;
  }
}

/* --- Page Header & Services Detailed --- */
.page-header {
  padding: 100px 0 60px;
  text-align: center;
  background: var(--bg-light);
}

.page-header h1 {
  font-size: 3.5rem;
  letter-spacing: -2px;
}

.trust-banner {
  padding: 60px 0;
  margin-top: -40px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.trust-card {
  background: var(--white);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
}

.services-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 80px 0;
}

.s-detail-card {
  padding: 40px;
  background: var(--white);
  border-radius: 32px;
  border: 1px solid #f0f0f0;
  transition: var(--transition);
}

.s-detail-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.s-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.leg-box {
  background: var(--dark);
  color: var(--white);
  padding: 60px;
  border-radius: 40px;
  text-align: center;
}

.leg-box h2 {
  margin-bottom: 1.5rem;
}

.leg-box p {
  opacity: 0.8;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Contact Form Style --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 100px 0;
}

.contact-methods {
  margin-top: 3rem;
}

.c-item {
  margin-bottom: 2rem;
}

.c-item strong {
  display: block;
  color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.c-item a {
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--dark);
}

.clean-form {
  background: var(--white);
  padding: 50px;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-family: inherit;
  background: var(--bg-light);
}

.form-group textarea {
  height: 120px;
}

@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

}

/* --- Cookie Consent --- */
#cookie-consent {
  position: fixed;
  bottom: -100px;
  /* Hidden by default */
  left: 0;
  width: 100%;
  background: var(--dark);
  color: var(--white);
  padding: 1.5rem;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: bottom 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

#cookie-consent.show {
  bottom: 0;
}

#cookie-consent p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 800px;
  line-height: 1.5;
}

#cookie-consent button {
  background: var(--accent);
  color: var(--dark);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

#cookie-consent button:hover {
  background: #e79b55;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  #cookie-consent {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
}

/* --- WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 2px 2px 10px #666;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 90px;
    /* Above the cookie banner if present */
    right: 15px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float img {
    width: 30px;
    height: 30px;
  }
}

/* ==========================================================================
   11. GALLERY ECO EXPERT
   ========================================================================== */
.gallery {
  padding: 100px 0;
  background: var(--bg-light);
  border-radius: 60px;
  margin: 0 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 3rem;
}

.gallery-item {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.video-wrapper {
  grid-column: span 2;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-wrapper {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .gallery {
    margin: 0;
    border-radius: 0;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .video-wrapper {
    grid-column: span 1;
    height: 250px;
  }
}

/* ==========================================================================
   12. MOBILE OPTIMIZATIONS (PADDINGS & SPACING)
   ========================================================================== */

.contact-hero {
  padding: 4rem 0;
  background: var(--bg-light); /* Or var(--bg-color) if defined */
}

@media (max-width: 768px) {
  /* Reduce excessive padding on sections */
  .hero { padding: 60px 0; }
  .about { padding: 60px 0; }
  .services, .gallery { padding: 60px 0; border-radius: 0; margin: 0; }
  .features, .reviews { padding: 60px 0; }
  .page-header { padding: 60px 0 40px; }
  .trust-banner { padding: 40px 0; }
  .services-list-grid { padding: 40px 0; }
  .contact-wrapper { padding: 60px 0; }
  .contact-hero { padding: 60px 0; }

  /* Reduce inner container paddings */
  .clean-form { padding: 25px; }
  .s-detail-card { padding: 25px; }
  .leg-box { padding: 30px; }
  
  /* Typography scaling */
  .hero h1 { font-size: 2.2rem; }
  .section-header h2, .about-content h2 { font-size: 2rem; }
  .trust-badge-row { flex-wrap: wrap; }
  
  /* Navbar and CTA vertical stacking fix */
  .navbar { padding: 12px 0; }
  .navbar .container { 
    flex-direction: column; 
    align-items: center; 
    gap: 15px; 
    padding: 0 15px;
  }
  .logo { 
    font-size: 1.4rem; 
    text-align: center; 
    line-height: 1.2;
  }
  .nav-right { 
    width: 100%; 
    justify-content: center; 
    margin-right: 0;
  }
  .btn-cta { 
    font-size: 1rem; 
    padding: 0.6rem 1.2rem; 
    border-radius: 50px; /* pill shape looks better on mobile */
    display: inline-block;
    white-space: nowrap; 
    flex-shrink: 0;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: pulse-cta 2s infinite;
  }
}

@keyframes pulse-cta {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}