/* Stil Modern - Pensiunea Green House Dambovicioara */
:root {
  --primary: #1e3f20;
  --primary-light: #2d5a30;
  --accent: #d93636;
  --accent-hover: #c26526;
  --dark: #1b1f1c;
  --light-bg: #f8faf7;
  --card-bg: #ffffff;
  --text-muted: #5a655c;
  --border: #e2e8e0;
  --radius: 12px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 500;
  background: #eaf3ea;
  color: var(--primary-light);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-light);
}

.btn-nav {
  background: var(--primary);
  color: white !important;
  padding: 8px 18px;
  border-radius: 8px;
  transition: 0.2s;
}

.btn-nav:hover {
  background: var(--primary-light) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark);
}

/* Zona principală Hero */
.hero {
  position: relative;
  height: 80vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
  overflow: hidden; /* <--- FOARTE IMPORTANT: taie orice iese în afara secțiunii */
}

/* Containerul de fundal */
.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Asigură tăierea strictă */
  z-index: 1;
}

/* Videoclipul fixat și adaptabil */
.hero-img,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Umple cadrul fără să iasă afară sau să se deformeze */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Îl centrează perfect */
  min-width: 100%;
  min-height: 100%;
  pointer-events: none; /* Previne blocarea click-urilor dacă dai click peste el */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(16, 26, 17, 0.45) 0%, rgba(10, 18, 11, 0.8) 100%);
  z-index: 2; /* Peste video, sub text */
}

.hero-content {
  position: relative;
  z-index: 3; /* Deasupra filtrului și a videoclipului */
  max-width: 800px;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 500;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.15rem;
  color: #e3ebd8;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid white;
  color: white;
}

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

.btn-secondary {
  background: var(--primary);
  color: white;
}

.btn-secondary:hover {
  background: var(--primary-light);
}

.btn-block {
  width: 100%;
}

.quick-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.q-icon {
  font-size: 1.8rem;
  background: #f0f5ee;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.quick-item h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.quick-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.sub-title {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  display: block;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img-wrap {
  height: 220px;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-tag {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.page-header {
  background: #1e3f20;
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.page-header p {
  color: #d1dfcf;
  font-size: 1.1rem;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 240px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

#lightboxCaption {
  color: #ccc;
  margin-top: 15px;
  font-size: 1rem;
}

.contact-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.form-card,
.info-card {
  background: white;
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-card h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.form-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--dark);
}

input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  background: #fbfdfb;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  background: #fff;
}

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.c-icon {
  font-size: 1.3rem;
}

.contact-detail a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.map-embed {
  margin-top: 25px;
}

.map-embed h4 {
  margin-bottom: 10px;
}

.footer {
  background: #142215;
  color: #adbfae;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3, .footer h4 {
  color: #fff;
  margin-bottom: 15px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  color: #adbfae;
  text-decoration: none;
}

.footer ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
}

.christmas-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 200px;
    height: 50px;

    background: linear-gradient(135deg, #c40000, #8b0000);
    color: #fff;
    text-decoration: none;

    border: 2px solid #ffd700;
    border-radius: 10px;

    font-size: 16px;
    font-weight: bold;

    overflow: hidden;
    cursor: pointer;

    box-shadow:
        0 0 5px #ff0000,
        0 0 15px rgba(255, 215, 0, 0.5);

    animation: christmas-glow 2s infinite;
}

/* Text stays above the snow */
.christmas-btn .button-text {
    position: relative;
    z-index: 10;
}

/* Snow */
.christmas-btn .snow {
    position: absolute;
    top: -30px;
    left: -90px;

    width: 300%;
    height: 200%;

    color: white;
    font-size: 14px;
    letter-spacing: 18px;
    line-height: 25px;

    opacity: 0.9;
    pointer-events: none;

    white-space: normal;

    animation: snow-fall 2s linear infinite;

    z-index: 5;
}

/* Falling snow */
@keyframes snow-fall {
    0% {
        transform: translateY(-30px) translateX(0);
    }

    100% {
        transform: translateY(70px) translateX(-40px);
    }
}

/* Christmas flickering glow */
@keyframes christmas-glow {

    0%, 100% {
        box-shadow:
            0 0 5px #ff0000,
            0 0 10px #ffd700;
    }

    25% {
        box-shadow:
            0 0 12px #ff0000,
            0 0 20px #ffd700;
    }

    50% {
        box-shadow:
            0 0 4px #ff0000,
            0 0 8px #ffd700;
    }

    75% {
        box-shadow:
            0 0 15px #ff0000,
            0 0 25px #ffd700;
    }
}

/* Hover */
.christmas-btn:hover {
    transform: scale(1.05);

    background: linear-gradient(135deg, #e00000, #a00000);

    box-shadow:
        0 0 10px #ff0000,
        0 0 25px #ffd700,
        0 0 40px rgba(255, 255, 255, 0.4);

    transition: 0.2s ease;
}

@media (max-width: 860px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 650px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.show {
    display: flex;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  
}
