/* =========================================================
   Pensiunea Broscuța – Horezu
   ========================================================= */

:root {
  --green-900: #1d3a25;
  --green-700: #2f5d3a;
  --green-500: #4a8a57;
  --green-100: #e6efe3;
  --terracotta: #b8462e;
  --terracotta-dark: #963722;
  --cream: #f8f3ea;
  --sand: #efe6d6;
  --ink: #23271f;
  --muted: #5d6458;
  --white: #ffffff;
  --whatsapp: #25d366;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(29, 58, 37, .12);
  --shadow-lg: 0 20px 50px rgba(29, 58, 37, .2);

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::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;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--green-900);
  font-weight: 600;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .75em 1.35em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, background-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: .95em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--terracotta); color: var(--white); box-shadow: 0 8px 20px rgba(184, 70, 46, .3); }
.btn--primary:hover { background: var(--terracotta-dark); }
.btn--light { background: var(--white); color: var(--green-900); }
.btn--light:hover { background: var(--sand); }
.btn--outline { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(248, 243, 234, .96); box-shadow: 0 2px 20px rgba(0,0,0,.08); backdrop-filter: blur(8px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--white); }
.logo__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--green-700);
  color: #cfe6c7;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.logo__text small { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.header.is-scrolled .logo { color: var(--green-900); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: currentColor; transform: scaleX(0); transition: transform .25s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.header.is-scrolled .nav a:not(.btn) { color: var(--ink); }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 30, 20, .55) 0%, rgba(15, 30, 20, .25) 40%, rgba(15, 30, 20, .75) 100%),
    linear-gradient(90deg, rgba(15, 30, 20, .55) 0%, rgba(15, 30, 20, 0) 70%);
}
.hero__content { position: relative; padding: calc(var(--header-h) + 40px) 0 80px; max-width: 760px; margin-left: max(16px, (100% - 1200px) / 2); }
.hero__eyebrow { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: #f3c9a8; }
.hero h1 { color: var(--white); margin-bottom: .3em; text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 600px; opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 0; }

/* ---------- Stats ---------- */
.stats { background: var(--green-900); color: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2rem 1rem;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat:last-child { border-right: 0; }
.stat i { font-size: 1.5rem; color: #a9d3a0; margin-bottom: .6rem; }
.stat strong { font-family: var(--font-head); font-size: 1.8rem; font-weight: 600; line-height: 1.1; }
.stat span { font-size: .9rem; opacity: .8; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section--tint { background: var(--sand); }
.section--dark { background: var(--green-900); color: #e8efe4; }
.section--dark h2 { color: var(--white); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section__head p:last-child { color: var(--muted); }

/* ---------- Split (Despre) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split__media { position: relative; padding: 0 12% 14% 0; }
.split__img { border-radius: var(--radius); box-shadow: var(--shadow-lg); object-fit: cover; }
.split__img--main { width: 100%; aspect-ratio: 4 / 4.4; }
.split__img--accent {
  position: absolute; right: 0; bottom: 0;
  width: 58%; aspect-ratio: 16 / 10;
  border: 6px solid var(--cream);
}
.split__text p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.2rem; }
.checklist li { display: flex; gap: .6rem; align-items: baseline; font-weight: 600; font-size: .95rem; }
.checklist i { color: var(--green-500); }

/* ---------- Rooms ---------- */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.room {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.room:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.room--featured { outline: 3px solid var(--terracotta); outline-offset: -3px; }
.room__badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: var(--terracotta); color: var(--white);
  font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .35em .9em; border-radius: 999px;
}
.room__img { aspect-ratio: 4 / 3; overflow: hidden; }
.room__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.room:hover .room__img img { transform: scale(1.06); }
.room__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.room__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; color: var(--muted); }
.room__meta i { color: var(--green-500); margin-right: .3em; }
.room__features { list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .93rem; }
.room__features li { padding: .4rem 0; border-top: 1px dashed #e2dccf; }
.room__features i { width: 1.4em; color: var(--green-700); }
.room__price { margin-top: auto; margin-bottom: 1rem; display: flex; align-items: baseline; gap: .4rem; }
.room__price strong { font-family: var(--font-head); font-size: 2.1rem; color: var(--terracotta); font-weight: 700; }
.room__price span { color: var(--muted); }

/* Inchiriere integrala */
.whole {
  position: relative;
  margin-top: 3rem;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  color: var(--white);
  min-height: 420px;
  display: flex; align-items: center;
  box-shadow: var(--shadow-lg);
}
.whole__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.whole__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 42, 27, .92) 0%, rgba(20, 42, 27, .75) 50%, rgba(20, 42, 27, .25) 100%); }
.whole__content { position: relative; padding: clamp(2rem, 5vw, 3.5rem); max-width: 620px; }
.whole h3 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.whole p { opacity: .92; }
.whole__price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin: 1.2rem 0 1.6rem; }
.whole__price strong { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.2rem); color: #f7c9a3; line-height: 1; }
.whole__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature {
  position: relative; margin: 0;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feature:hover img { transform: scale(1.06); }
.feature figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(10, 25, 15, .85));
  color: var(--white);
  font-weight: 700; font-size: 1.05rem;
}
.feature figcaption i { margin-right: .5em; color: #a9d3a0; }

.amenities {
  list-style: none; padding: 0; margin: 3rem 0 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem;
}
.amenities li {
  display: flex; align-items: center; gap: .7rem;
  padding: .9rem 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem;
  box-shadow: 0 2px 10px rgba(29, 58, 37, .06);
}
.amenities i { color: var(--green-700); font-size: 1.1rem; width: 1.3em; text-align: center; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 12px;
}
.gallery__item { display: block; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; position: relative; }
.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, filter .3s; }
.gallery__item:hover img { transform: scale(1.06); filter: brightness(1.05); }

/* ---------- Places ---------- */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.place {
  background: var(--white);
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green-500);
}
.place > i {
  font-size: 1.4rem; color: var(--white);
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px; background: var(--green-700);
  margin-bottom: 1rem;
}
.place p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; gap: 1rem; align-items: center; }
.contact__list i {
  width: 48px; height: 48px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #a9d3a0; font-size: 1.15rem;
}
.contact__list small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; opacity: .65; }
.contact__list a { color: var(--white); font-weight: 700; text-decoration: none; word-break: break-word; }
.contact__list a:hover { text-decoration: underline; }
.contact__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.contact__map { border-radius: var(--radius); overflow: hidden; min-height: 420px; box-shadow: var(--shadow-lg); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: #142a1b; color: rgba(255,255,255,.7); padding: 2rem 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; }
.logo--footer { color: var(--white); }

/* ---------- Floating buttons (dreapta jos) ---------- */
.fab {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-end;
}
.fab__btn {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--white);
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
}
.fab__btn:hover { transform: scale(1.08); box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.fab__btn--whatsapp { background: var(--whatsapp); font-size: 1.95rem; }
.fab__btn--phone { background: var(--terracotta); }
.fab__btn--phone i { animation: ring 2.4s ease-in-out infinite; }
.fab__btn--whatsapp::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--whatsapp); z-index: -1;
  animation: pulse 2.4s ease-out infinite;
}
.fab__label {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--ink); color: var(--white);
  font-family: var(--font-body); font-size: .85rem; font-weight: 700;
  padding: .4em .8em; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.fab__btn:hover .fab__label { opacity: 1; transform: translateY(-50%) translateX(0); }

@keyframes pulse {
  0%   { transform: scale(1);   opacity: .6; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}
@keyframes ring {
  0%, 60%, 100% { transform: rotate(0); }
  65% { transform: rotate(-14deg); }
  70% { transform: rotate(14deg); }
  75% { transform: rotate(-10deg); }
  80% { transform: rotate(10deg); }
  85% { transform: rotate(0); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 18, 12, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 70px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); margin: 0; font-size: .95rem; padding: 0 16px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); border: 0; color: var(--white);
  width: 50px; height: 50px; border-radius: 50%; font-size: 1.3rem; cursor: pointer;
  transition: background-color .2s;
}
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal on 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: 1100px) {
  .amenities { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    padding: .5rem 16px 1.2rem;
    box-shadow: 0 20px 30px rgba(0,0,0,.12);
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { color: var(--ink); padding: .9rem 0; border-bottom: 1px solid #e6dfd1; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1rem; }
  .header.menu-open { background: var(--cream); }
  .header.menu-open .logo, .header.menu-open .nav-toggle { color: var(--green-900); }

  .split, .contact { grid-template-columns: 1fr; }
  .rooms { grid-template-columns: 1fr 1fr; }
  .rooms .room--featured { grid-column: span 2; }
  .features, .places { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .logo__text strong { font-size: 1.02rem; }
  .hero__actions .btn { width: 100%; }
  .rooms, .features, .places { grid-template-columns: 1fr; }
  .rooms .room--featured { grid-column: auto; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .amenities li { font-size: .85rem; padding: .8rem; }
  .checklist { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  .gallery__item--wide { grid-column: span 2; }
  .whole__overlay { background: rgba(20, 42, 27, .82); }
  .whole__actions .btn, .contact__actions .btn { width: 100%; }
  .stat { padding: 1.5rem .5rem; }
  .fab { right: 14px; bottom: 14px; }
  .fab__btn { width: 54px; height: 54px; font-size: 1.4rem; }
  .fab__btn--whatsapp { font-size: 1.75rem; }
  .fab__label { display: none; }
  .lightbox { padding: 60px 8px; }
  .lightbox__nav--prev { left: 6px; top: auto; bottom: 10px; transform: none; }
  .lightbox__nav--next { right: 6px; top: auto; bottom: 10px; transform: none; }
  .lightbox__caption { bottom: 26px; padding: 0 70px; font-size: .85rem; }
}

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