/* ============================================ */
/* CSS VARIABLES - Design System */
/* ============================================ */
:root {
  /* Brand Colors */
  --color-primary: #FFD700;
  --color-primary-dark: #FFC107;
  --color-primary-light: #FFE44D;
  --color-black: #1a1a1a;
  --color-white: #ffffff;
  --color-gray-dark: #2d2d2d;
  --color-gray: #666666;
  --color-gray-light: #f5f5f5;
  
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 50px;
}

/* ============================================ */
/* RESET & BASE STYLES */
/* ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================ */
/* CONTAINER */
/* ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ============================================ */
/* HEADER / HERO SECTION */
/* ============================================ */
header {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.75) 0%,
    rgba(26, 26, 26, 0.6) 100%
  );
}

.hero-content {
  text-align: center;
  color: var(--color-white);
  padding: var(--spacing-md);
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

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

header h1 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero-subtitle {
  font-family: var(--font-secondary);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-black);
  padding: 1rem 2.5rem;
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
}

.cta-button:active {
  transform: translateY(-1px);
}

.cta-button i {
  font-size: 1.1em;
}

/* ============================================ */
/* SECTIONS */
/* ============================================ */
.about,
.services {
  padding: var(--spacing-xl) var(--spacing-md);
}

.about {
  background-color: var(--color-white);
}

.services {
  background-color: var(--color-gray-light);
}

.section-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  text-align: center;
  color: var(--color-gray);
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================ */
/* TYPOGRAPHY */
/* ============================================ */
h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--color-black);
  position: relative;
  display: inline-block;
  width: 100%;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 2px;
}

h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-black);
}

/* ============================================ */
/* SERVICE CARDS */
/* ============================================ */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* Desktop: 2 coloane, cu a 4-a căsuță sub a 2-a */
@media (min-width: 769px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Poziționare explicită pentru layout dorit */
  .service-card-1 {
    grid-column: 1;
    grid-row: 1;
  }
  
  .service-card-2 {
    grid-column: 2;
    grid-row: 1;
  }
  
  .service-card-3 {
    grid-column: 1;
    grid-row: 2;
  }
  
  .service-card-4 {
    grid-column: 2;
    grid-row: 2;
  }
}

.service-card {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  display: block;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  color: var(--color-gray);
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
footer {
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-gray-dark) 100%);
  color: var(--color-white);
  padding: var(--spacing-lg) var(--spacing-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-location,
.footer-phone {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--color-white);
}

.footer-location i,
.footer-phone i {
  color: var(--color-primary);
  font-size: 1.1em;
}

.footer-phone a {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-phone a:hover {
  color: var(--color-primary);
}

.social-icons {
  display: flex;
  gap: var(--spacing-sm);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.social-icons a:hover {
  background: var(--color-primary);
  color: var(--color-black);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.copyright {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================ */
/* WHATSAPP BUTTON */
/* ============================================ */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all var(--transition-normal);
  animation: pulse 2s infinite;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  background: linear-gradient(135deg, #20BA5A 0%, #25D366 100%);
}

.whatsapp-button:active {
  transform: scale(1.05);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6);
  }
}

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

/* Tablets (max-width: 968px) */
@media (max-width: 968px) {
  header {
    height: 80vh;
    min-height: 500px;
  }

  .hero-content {
    padding: var(--spacing-sm);
  }

  .about,
  .services {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .service-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile (max-width: 640px) */
@media (max-width: 640px) {
  header {
    height: 70vh;
    min-height: 400px;
  }

  .hero-content {
    padding: var(--spacing-sm);
  }

  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .about,
  .services {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .service-card {
    padding: var(--spacing-md);
  }

  .footer-content {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .footer-info {
    width: 100%;
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }

  .whatsapp-button {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
    font-size: 1.8rem;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  header {
    height: 60vh;
    min-height: 350px;
  }

  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .service-card {
    padding: var(--spacing-sm);
  }

  .whatsapp-button {
    width: 52px;
    height: 52px;
    bottom: 15px;
    right: 15px;
    font-size: 1.6rem;
  }
}