:root {
  --bg-body: #020617;
  --bg-layer: rgba(15,23,42,0.92);
  --accent: #38bdf8;
  --accent-soft: #0ea5e9;
  --accent-strong: #2563eb;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-soft: rgba(148,163,184,0.4);
  --card-bg: rgba(15,23,42,0.94);
  --radius-lg: 20px;
  --shadow-soft: 0 18px 40px rgba(15,23,42,0.8);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
}

/* PARALLAX BACKGROUND (fără poze externe, doar degradeuri) */
.parallax-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.28;
}





.parallax-layer.mountains {
  background-image:
    /* gradient mai „subțire”, doar o ușoară întunecare pentru text */
    linear-gradient(to top,
      rgba(2, 6, 23, 0.65) 0%,
      rgba(15, 23, 42, 0.45) 40%,
      rgba(15, 23, 42, 0.30) 70%,
      rgba(15, 23, 42, 0.15) 100%
    ),
    url('/assets/img/background/cabana-casaru-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}





.parallax-layer.forest {
  background-image:
    radial-gradient(circle at 80% 90%, rgba(34,197,94,0.27), transparent 55%),
    linear-gradient(to top, transparent 0, rgba(15,23,42,0.85) 70%);
  mix-blend-mode: screen;
}

.parallax-layer.fog {
  background-image:
    radial-gradient(circle at 50% 80%, rgba(148,163,184,0.50), transparent 70%);
  opacity: 0.35;
  animation: fog-move 32s ease-in-out infinite alternate;
}

@keyframes fog-move {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -18px, 0);
  }
}

/* LAYOUT DE BAZĂ */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

.page-shell {
  padding-top: 96px;
  padding-bottom: 56px;
}

/* HEADER + MENIU */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15,23,42,0.95), rgba(15,23,42,0.78), transparent);
  border-bottom: 1px solid rgba(148,163,184,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: radial-gradient(circle at 30% 0%, #facc15, #f97316 40%, #0f172a 100%);
  color: #020617;
  box-shadow: 0 0 0 1px rgba(248,250,252,0.7), 0 10px 25px rgba(15,23,42,0.95);
}

.logo-text {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-main);
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.3rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  padding: 0.25rem 0.1rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(to right, var(--accent-strong), var(--accent-soft));
  transition: transform 150ms ease-out;
}

.main-nav a:hover {
  color: #f9fafb;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.main-nav a.active {
  color: #e5f2ff;
}

.main-nav a.active::after {
  transform: scaleX(1);
}

/* HERO */
.page-hero {
  padding: 1.8rem 0 1.6rem;
}

.page-hero-inner {
  max-width: 780px;
}

.page-hero h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 0.7rem;
}

.page-hero p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* SECȚIUNI */
.page-section {
  padding: 1.8rem 0 0.4rem;
}

.section-header {
  margin-bottom: 1.1rem;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.section-header .lead {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* CARD & GRID */
.card {
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.4rem;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(15,23,42,0.95);
  border-color: rgba(96,165,250,0.7);
}

/* Card pentru imagini individuale (galerie, acasă) */
.gallery-card {
  padding: 0.9rem;
}

.gallery-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.gallery-card .photo-slot {
  min-height: 140px;
}

.partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 0.8rem;
}

.partner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.partner-header h3 {
  margin: 0 0 0.15rem;
  font-size: 1.2rem;
}

.partner-header a.partner-title-link {
  color: #7dd3fc;
  text-decoration: none;
}

.partner-header a.partner-title-link:hover {
  color: #e0f2fe;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.partner-type {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.partner-meta {
  font-size: 0.9rem;
}

.partner-meta p {
  margin: 0.15rem 0;
}

.partner-meta a {
  color: #93c5fd;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.partner-meta a:hover {
  color: #bfdbfe;
}

.partner-note {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.partner-badge {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(59,130,246,0.9), rgba(56,189,248,0.95));
  color: #0b1120;
  box-shadow: 0 8px 18px rgba(15,23,42,0.65);
  font-weight: 600;
  pointer-events: none;
}

.partner-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #0b1120;
}

/* FOTO / GALLERY CARD */
.partner-photos,
.gallery-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.photo-slot {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 15%, rgba(148,163,184,0.35), transparent 60%),
    radial-gradient(circle at 80% 90%, rgba(56,189,248,0.25), transparent 55%),
    rgba(15,23,42,0.85);
  /* Toate pozele au aceeași dimensiune vizuală */
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 180ms ease-out;
}

.photo-slot:hover img {
  transform: scale(1.04);
}

.small-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* GRID DESPRE / CONTACT */
.split-grid {
  display: grid;
  grid-template-columns: 2fr 1.25fr;
  gap: 24px;
}

.split-grid p {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "•";
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.05rem;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.4fr;
  gap: 24px;
}

.contact-card p {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-card a {
  color: #93c5fd;
}

.contact-card a:hover {
  color: #bfdbfe;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.92);
  color: var(--text-main);
  padding: 0.5rem 0.7rem;
  font: inherit;
  margin-bottom: 0.7rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-soft));
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(15,23,42,0.85);
}

.button-primary:hover {
  filter: brightness(1.05);
}

/* LOCATIE */
.map-card {
  height: 320px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148,163,184,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: radial-gradient(circle at 0 0, rgba(56,189,248,0.2), transparent 55%),
              rgba(15,23,42,0.9);
  text-align: center;
  padding: 0 1.2rem;
}

/* FOOTER */
.site-footer {
  margin-top: 3rem;
  padding: 1.4rem 0 1.5rem;
  border-top: 1px solid rgba(148,163,184,0.38);
  background: linear-gradient(to top, rgba(15,23,42,0.96), rgba(15,23,42,0.88));
}

.footer-inner {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-note {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
}


/* REVEAL ANIMATIONS (scroll) */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 540ms ease-out, transform 540ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* LIGHTBOX */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15,23,42,0.92);
  display: none;
  align-items: center;
  justify-content: center;
}

.photo-lightbox.visible {
  display: flex;
}

.photo-lightbox-inner {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.photo-lightbox-img-wrap {
  position: relative;
  width: min(1100px, 96vw);
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  border-radius: 18px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(148,163,184,0.7);
}

.photo-lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-lightbox-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 100%;
}

.photo-lightbox-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.photo-lightbox-btn {
  pointer-events: auto;
  border: none;
  background: rgba(15,23,42,0.7);
  color: #e5e7eb;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  margin: 0 0.4rem;
  transition: background 140ms ease-out, transform 120ms ease-out;
}

.photo-lightbox-btn:hover {
  background: rgba(37,99,235,0.85);
  transform: translateY(-1px);
}

.photo-lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(15,23,42,0.85);
  color: #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(15,23,42,0.8);
}

.photo-lightbox-close:hover {
  background: rgba(248,113,113,0.95);
}

.photo-lightbox-index {
  position: absolute;
  bottom: 10px;
  right: 16px;
  font-size: 0.8rem;
  background: rgba(15,23,42,0.75);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  color: #e5e7eb;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .page-shell {
    padding-top: 104px;
  }

  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.6rem, 100%);
  }

  .partner-photos {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero {
    padding-top: 1.4rem;
  }

  .photo-lightbox-close {
    top: -38px;
    right: 2px;
  }

  .photo-lightbox-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}
