/* Case Maramureș - CSS Corect conform brand manual */
:root {
  --wood-dark: #3d2817;
  --wood-medium: #8b6f47;
  --forest-green: #2d5016;
  --wood-light: #d4a574;
  --mountain-blue: #4a6b8a;
  --accent-red: #8b2e2e;
  --cream: #f5f1e8;
  --font-display: 'Cormorant Garamond', 'Crimson Text', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--wood-dark);
  background: var(--cream);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(245, 241, 232, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(61, 40, 23, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
  max-width: 420px;
  min-width: 320px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--wood-dark);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--forest-green);
  transition: 0.3s;
}

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

.cta-button {
  background: var(--wood-dark);
  color: var(--cream);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--forest-green);
  transform: translateY(-2px);
}

/* Hero Carousel */
.hero-carousel {
  margin-top: 80px;
  min-height: 90vh;
  position: relative;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  height: 90vh;
}

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

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

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

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(61, 40, 23, 0.7) 0%, rgba(45, 80, 22, 0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.carousel-content {
  max-width: 900px;
  text-align: center;
  padding: 2rem;
  color: white;
}

.carousel-content h1 {
  font-size: 4.5rem;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-content p {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.carousel-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--wood-dark);
  color: var(--cream);
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: 0.3s;
  border: 2px solid var(--wood-dark);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--forest-green);
  border-color: var(--forest-green);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 1rem 2.5rem;
  border: 2px solid white;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: white;
  color: var(--wood-dark);
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(61, 40, 23, 0.7);
  color: white;
  border: none;
  padding: 1.5rem 1rem;
  font-size: 2rem;
  cursor: pointer;
  z-index: 3;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(61, 40, 23, 0.9);
}

.carousel-prev { left: 2rem; }
.carousel-next { right: 2rem; }

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 3;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.carousel-indicator.active {
  background: white;
  transform: scale(1.3);
}

/* Sections */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
  border: 1px solid rgba(61, 40, 23, 0.08);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  stroke: var(--wood-medium);
}

/* Gallery */
.gallery-preview {
  background: white;
  padding: 6rem 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  justify-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-item {
  position: relative;
  height: 280px;
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(61, 40, 23, 0.9) 0%, transparent 100%);
  padding: 1.5rem;
  color: white;
  opacity: 0;
  transition: 0.3s;
}

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

.gallery-overlay h4 {
  color: white;
  font-size: 1.1rem;
}

/* Modal pentru preview imagini */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.modal-close:hover {
  color: #ccc;
}

/* Contact */
.contact-section {
  background: linear-gradient(135deg, var(--cream) 0%, #e8dcc8 100%);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--wood-dark);
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(61, 40, 23, 0.1);
}

.contact-info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-icon {
  width: 28px;
  height: 28px;
  stroke: var(--wood-medium);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item strong {
  display: block;
  font-weight: 600;
  color: var(--wood-dark);
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.contact-info-item span,
.contact-info-item a {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--wood-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #E0E0E0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--wood-medium);
  box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

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

/* Footer */
.footer {
  background: var(--wood-dark);
  color: var(--cream);
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section a {
  color: rgba(245, 241, 232, 0.8);
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--cream);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-icon {
  width: 20px;
  height: 20px;
  stroke: var(--wood-light);
  flex-shrink: 0;
}

.footer-contact-item a,
.footer-contact-item span {
  color: rgba(245, 241, 232, 0.8);
  font-size: 0.95rem;
}

.footer-contact-item a:hover {
  color: var(--cream);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 241, 232, 0.2);
  color: rgba(245, 241, 232, 0.6);
}

/* WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: 0.3s;
  z-index: 999;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Hero pentru pagini legale - FIX */
.legal-hero {
  margin-top: 80px;
  min-height: 40vh;
  background: linear-gradient(135deg, var(--wood-dark) 0%, var(--forest-green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.legal-hero h1 {
  color: white;
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.legal-hero p {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 968px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .carousel-content h1 {
    font-size: 3rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .nav-menu {
    display: none;
  }
  
  .legal-hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .carousel-content h1 {
    font-size: 2.5rem;
  }
  
  .carousel-buttons {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
