/* ---------- VARIABILE ---------- */
:root {
  --brand: #8b5e3c;        /* maro lemn */
  --brand-dark: #5a3e2b;   /* maro închis */
  --ink: #2d1f16;          /* text principal */
  --muted: #7a5c45;        /* text secundar */
  --bg: #f5efe6;           /* crem deschis */
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 25px -12px rgba(139, 94, 60, 0.35);
}

/* ---------- REGLAJ GLOBAL ---------- */
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- HEADER ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(209, 208, 205,0.7);
  border-bottom: 1px solid rgba(45,31,22,0.08);
  transition: 0.25s;
}
.site-header.scrolled{
  background: rgba(245,239,230,0.95);
  box-shadow: 0 8px 24px -16px rgba(45,31,22,0.2);
}
.site-header .container{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .85rem 1rem;
  gap: .6rem;
}

.brand{
  font-weight: 800;
  color: var(--brand-dark);
  font-size: 1.6rem;
}

.brand img {
  height: 70px;
  display: block;
  margin: 0 auto;
}

/* NAV */
.nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}
.nav a{
  padding: .5rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: var(--brand-dark);
  background: rgba(139,94,60,0.08);
  border: 1px solid rgba(139,94,60,0.2);
  transition: 0.2s;
}
.nav a:hover{
  background: var(--white);
  transform: translateY(-1px);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  background-image:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('https://images.unsplash.com/photo-1503387762-592deb58ef4e');
  background-size: cover;
  background-position: center;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}
.hero .lead {
  font-size: clamp(1rem, 2.3vw, 1.5rem);
}

/* BUTTON */
.btn {
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s;
  box-shadow: var(--shadow);
}
.btn-primary {
  background: #b5afa7;
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 4rem 0;
}
.section-alt {
  background: #efe6dc;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--brand-dark);
  margin-bottom: 2rem;
}

/* ---------- SERVICES ---------- */
.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 8px 24px -18px rgba(0,0,0,0.3);
  transition: 0.25s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -18px rgba(139,94,60,0.35);
}
.card .icon {
  color: var(--brand);
  display: flex;
  justify-content: center;
}
.text-lg {
  text-align: center;
  color: var(--ink);
}

/* ---------- GALERIE ---------- */
.slider {
  position: relative;
  z-index: 1;
}

.slider {
  overflow: hidden;
}
.slides {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg); /* cheia */
}
.slide {
  display: none;
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: linear-gradient(#f5efe6, #efe6dc); /* fundal dacă rămân spații */
}
.slide.active {
  display: block;
}
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(45,31,22,0.7);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-btn:hover {
  background: var(--brand);
}
.slide-btn.prev {
  left: 10px;
}

.slide-btn.next {
  right: 10px;
}
/* ---------- CONTACT ---------- */
.contact-form .hidden {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.contact-form {
  background: #fff;
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px -18px rgba(0,0,0,0.25);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e5d3bf;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #635f5f;
  color: #fff;
  text-align: center;
  padding: 1.25rem;
}

/* ---------- galerie deschidere ---------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }
/* ---------- ANIMAȚII ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.6s;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}