/* ==========================================================================
   UMANI RETREAT — stylesheet
   Palette: cream #FAF7F1, ink #2B2A26, forest #3B4A3B, gold #B08D57,
            gold-light #D8BE8E, line #E4DDCC
   Type: "Cormorant Garamond" (display/serif) + "Jost" (body/sans)
   ========================================================================== */

:root {
  --cream: #FAF7F1;
  --cream-deep: #F2EDE1;
  --ink: #2B2A26;
  --ink-soft: #565349;
  --forest: #3B4A3B;
  --forest-deep: #2A362A;
  --gold: #B08D57;
  --gold-light: #D8BE8E;
  --line: #E4DDCC;
  --white: #FFFFFF;

  --serif: 'Cormorant Garamond', serif;
  --sans: 'Jost', sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.05; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.15; }
h3 { font-size: 1.5rem; }

p { max-width: 62ch; color: var(--ink-soft); }
p.lead { font-size: 1.15rem; color: var(--ink); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--forest { background: var(--forest); color: var(--cream); }
.section--forest p { color: #D9E0D4; }
.section--forest h2, .section--forest h3 { color: var(--white); }
.section--cream-deep { background: var(--cream-deep); }

.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.4em;
}

.rule {
  width: 64px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 22px 0;
}
.rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: var(--sans);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn--gold {
  background: var(--gold);
  color: var(--white);
}
.btn--gold:hover { background: #96754A; }
.btn--outline {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn--outline:hover { background: var(--gold); color: var(--white); }
.btn--outline-light {
  border-color: var(--gold-light);
  color: var(--cream);
}
.btn--outline-light:hover { background: var(--gold-light); color: var(--forest-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--ink);
}
.brand img { height: 52px; width: auto; }
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-top: 1px;
}

nav.main-nav { display: flex; align-items: center; gap: 34px; }
nav.main-nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--gold); }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-left: 6px;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  cursor: pointer;
}
.lang-switch button.active { background: var(--gold); color: var(--white); }

.social-icons { display: flex; align-items: center; gap: 12px; margin-left: 4px; }
.social-icons a { color: var(--ink-soft); display: flex; transition: color 0.2s ease; }
.social-icons a:hover { color: var(--gold); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,24,18,0.15) 0%, rgba(20,24,18,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
  max-width: 720px;
}
.hero-content .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); }
.hero p.lead { color: #EDE9DD; }
.hero-cta { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Villa intro cards on homepage ---------- */
.villa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}
.villa-card {
  background: var(--white);
  border: 1px solid var(--line);
}
.villa-card img { height: 320px; width: 100%; object-fit: cover; }
.villa-card .body { padding: 32px; }
.villa-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 22px;
}
.villa-card .tags span {
  font-size: 0.8rem;
  color: var(--forest);
  background: var(--cream-deep);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 20px;
}

/* ---------- Feature list rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-row.reverse .feature-row-img { order: 2; }
.feature-row-img img { width: 100%; height: 460px; object-fit: cover; }
.feature-row ul.checklist { list-style: none; padding: 0; margin: 20px 0; }
.feature-row ul.checklist li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.feature-row ul.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- Room capacity strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 40px 0;
}
.stat-strip div {
  padding: 26px 10px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-strip div:last-child { border-right: none; }
.stat-strip strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--gold);
}
.stat-strip span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.gallery-tabs button {
  padding: 10px 24px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  color: var(--ink-soft);
}
.gallery-tabs button.active { background: var(--forest); color: var(--white); border-color: var(--forest); }

.gallery-grid {
  columns: 3 240px;
  column-gap: 18px;
}
.gallery-grid figure {
  break-inside: avoid;
  margin: 0 0 18px;
  overflow: hidden;
}
.gallery-grid img { width: 100%; display: block; transition: transform 0.5s ease; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-item { display: none; }
.gallery-item.show { display: block; }

/* ---------- Offers ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.offer-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 30px;
  position: relative;
}
.offer-card .badge {
  display: inline-block;
  background: var(--forest);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  margin-bottom: 18px;
}
.offer-card h3 { margin-bottom: 10px; }
.offer-card .price { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); margin: 14px 0; }

/* ---------- Map / contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-block { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 26px; }
.contact-block h4 { margin-bottom: 6px; font-size: 1.05rem; color: var(--gold); }
.map-embed { width: 100%; height: 100%; min-height: 420px; border: 1px solid var(--line); }

/* ---------- Booking CTA banner ---------- */
.booking-banner {
  background: var(--forest);
  color: var(--cream);
  padding: 60px 0;
  text-align: center;
}
.booking-banner h2 { color: var(--white); }
.booking-banner .btn-row { display: flex; gap: 18px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: #C9C6BC;
  padding: 70px 0 30px;
  font-size: 0.92rem;
}
footer.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #3D3B34;
}
.footer-grid p, .footer-grid a { color: #C9C6BC; max-width: none; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-legal {
  padding-top: 26px;
  font-size: 0.8rem;
  color: #8C8A80;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cookie banner ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 100;
  flex-wrap: wrap;
}
#cookie-banner p { color: #D8D5CB; margin: 0; font-size: 0.88rem; max-width: 70ch; }
#cookie-banner .btn { padding: 10px 22px; font-size: 0.85rem; }
.hidden { display: none !important; }

/* ---------- Language visibility ---------- */
[data-lang="en"] { display: none; }
html[data-active-lang="en"] [data-lang="ro"] { display: none; }
html[data-active-lang="en"] [data-lang="en"] { display: block; }
html[data-active-lang="en"] span[data-lang="en"],
html[data-active-lang="en"] strong[data-lang="en"],
html[data-active-lang="en"] a[data-lang="en"],
html[data-active-lang="en"] small[data-lang="en"] { display: inline; }
html[data-active-lang="en"] li[data-lang="en"] { display: list-item; }
html[data-active-lang="en"] figure[data-lang="en"] { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .villa-grid, .feature-row, .contact-grid { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-row-img { order: 0; }
  .offer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip div:nth-child(2) { border-right: none; }
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
}
