/* ===== Variabile ===== */
:root {
  --green-900: #12332a;
  --green-800: #1a4436;
  --green-700: #22584a;
  --green-100: #e6efe9;
  --wine: #8c1f2c;
  --wine-dark: #6f1621;
  --cream: #faf6ef;
  --cream-2: #f3ece0;
  --ink: #1f2522;
  --muted: #5d6762;
  --line: #e4ddd0;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(18, 51, 42, 0.12);
  --shadow-sm: 0 4px 14px rgba(18, 51, 42, 0.08);
  --header-h: 72px;
}

/* ===== Bază ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--green-900); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--wine); margin-bottom: .6em;
}
.eyebrow--light { color: #f0c9a8; }

/* ===== Butoane ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .9em 1.6em; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--wine); color: var(--white); box-shadow: 0 8px 20px rgba(140, 31, 44, .3); }
.btn--primary:hover { background: var(--wine-dark); }
.btn--ghost { border-color: rgba(255,255,255,.75); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--light { background: var(--white); color: var(--green-900); }
.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { background: rgba(250, 246, 239, .96); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: .55em; font-family: var(--font-display); font-size: 1.3rem; color: var(--white); }
.logo i { font-size: 1.1rem; color: #f0c9a8; }
.logo strong { font-weight: 700; }
.header.is-scrolled .logo { color: var(--green-900); }
.header.is-scrolled .logo i { color: var(--wine); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--white); font-weight: 600; font-size: .97rem; opacity: .92; transition: opacity .2s, color .2s; }
.nav a:hover { opacity: 1; }
.header.is-scrolled .nav a { color: var(--ink); }
.header.is-scrolled .nav a:hover { color: var(--wine); }
.nav .nav__cta { background: var(--wine); color: var(--white) !important; padding: .55em 1.2em; border-radius: 999px; opacity: 1; }
.nav .nav__cta:hover { background: var(--wine-dark); }

.nav-toggle {
  display: none; background: none; border: 0; font-size: 1.5rem; color: var(--white); cursor: pointer; padding: 8px;
}
.header.is-scrolled .nav-toggle { color: var(--green-900); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: var(--white); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; transform: scale(1.05); }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 30, 24, .55) 0%, rgba(10, 30, 24, .25) 40%, rgba(10, 30, 24, .75) 100%),
    linear-gradient(90deg, rgba(10, 30, 24, .55) 0%, rgba(10, 30, 24, 0) 70%);
}
.hero__content { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; }
.hero__eyebrow { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; margin: 0; color: #f0c9a8; }
.hero h1 { color: var(--white); font-size: clamp(2.8rem, 8vw, 5.5rem); font-weight: 700; margin: .05em 0 .3em; max-width: 12ch; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34rem; opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 48px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.hero__facts li { font-size: 1rem; opacity: .95; }
.hero__facts strong { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; margin-right: .2em; color: var(--white); }
.hero__facts span { display: block; font-size: .85rem; opacity: .8; }

/* ===== Secțiuni ===== */
.section { padding: 110px 0; }
.section--tint { background: var(--cream-2); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__head p:last-child { color: var(--muted); }

/* ===== Despre ===== */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about__text > p { color: var(--muted); }
.about__text strong { color: var(--ink); }
.about__checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.about__checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.about__checks i {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--green-100); color: var(--green-700); font-size: .8rem;
}
.about__media { position: relative; padding-bottom: 60px; }
.about__img { border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.about__img--main { width: 82%; aspect-ratio: 4 / 5; }
.about__img--small {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1;
  border: 6px solid var(--cream);
}

/* ===== Facilități ===== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--green-800); color: #f0c9a8; font-size: 1.45rem; margin-bottom: 18px;
}
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ===== Camere ===== */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.room { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.room__img { aspect-ratio: 4 / 3; overflow: hidden; }
.room__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.room:hover .room__img img { transform: scale(1.06); }
.room__body { padding: 26px; }
.room__body p { color: var(--muted); font-size: .97rem; }
.room__tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.room__tags li { font-size: .82rem; font-weight: 700; color: var(--green-700); background: var(--green-100); padding: .35em .85em; border-radius: 999px; }
.room__tags i { margin-right: .35em; }

/* ===== Galerie ===== */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px;
}
.gallery__item { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--line); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.gallery__item:hover img { transform: scale(1.06); filter: brightness(.9); }

/* ===== Tarife ===== */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 900px; margin: 0 auto; }
.price-card {
  background: var(--white); border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); display: flex; flex-direction: column;
}
.price-card--featured { border: 2px solid var(--green-800); box-shadow: var(--shadow); }
.price-card__badge {
  align-self: flex-start; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  background: var(--green-800); color: var(--white); padding: .4em 1em; border-radius: 999px; margin-bottom: 20px;
}
.price-card__badge--soft { background: #f6e3cf; color: #8a4b17; }
.price-card__price { font-size: 1.05rem; color: var(--muted); margin-bottom: 14px; }
.price-card__price span { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; color: var(--wine); line-height: 1; margin-right: .1em; }
.price-card__price--muted { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--green-900); line-height: 1.2; }
.price-card__note { color: var(--muted); font-size: .97rem; }
.price-card__list { list-style: none; padding: 0; margin: 4px 0 28px; display: grid; gap: 10px; }
.price-card__list li { display: flex; gap: 10px; align-items: baseline; }
.price-card__list i { color: var(--green-700); font-size: .85rem; }
.price-card .btn { margin-top: auto; }

/* ===== Contact ===== */
.contact {
  background:
    linear-gradient(rgba(18, 51, 42, .9), rgba(18, 51, 42, .92)),
    url("../images/living-tv.jpg") center / cover;
  color: var(--white); text-align: center;
}
.contact h2 { color: var(--white); }
.contact__inner > p { opacity: .85; max-width: 520px; margin: 0 auto 28px; }
.contact__phone {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 600; margin-bottom: 30px;
}
.contact__phone i { font-size: .65em; color: #f0c9a8; }
.contact__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ===== Footer ===== */
.footer { background: var(--green-900); color: rgba(255,255,255,.7); padding: 26px 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer p { margin: 0; }
.footer i { color: #f0c9a8; margin-right: .4em; }

/* ===== Butoane flotante (dreapta jos) ===== */
.float-actions {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; gap: 14px;
}
.float-btn {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  color: var(--white); font-size: 1.55rem; box-shadow: 0 8px 22px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.float-btn:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(0,0,0,.3); }
.float-btn--whatsapp { background: var(--whatsapp); font-size: 1.9rem; }
.float-btn--phone { background: var(--wine); position: relative; }
.float-btn--phone::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wine); animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 18, 14, .94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(92vw, 1200px); max-height: 84vh; border-radius: 8px; object-fit: contain; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); border: 0; color: var(--white);
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; transition: background .2s;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); margin: 0; font-size: .9rem; }

/* ===== Animație la scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .rooms { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 12px 24px 24px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .nav__cta { margin-top: 16px; text-align: center; border-bottom: 0; }
  .header.menu-open { background: var(--cream); }
  .header.menu-open .logo, .header.menu-open .nav-toggle { color: var(--green-900); }
  .header.menu-open .logo i { color: var(--wine); }

  .section { padding: 80px 0; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .pricing { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }
  .features { grid-template-columns: 1fr; }
  .rooms { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { gap: 12px 28px; }
  .hero__facts strong { font-size: 1.8rem; }
  .price-card { padding: 30px 22px; }
  .float-actions { right: 14px; bottom: 14px; gap: 12px; }
  .float-btn { width: 52px; height: 52px; font-size: 1.35rem; }
  .float-btn--whatsapp { font-size: 1.7rem; }
  .lightbox__nav { top: auto !important; bottom: 14px; transform: none !important; }
  .lightbox__counter { bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
