/* ==========================================================================
   Pensiunea Iara — design system
   ========================================================================== */

:root {
  --wood: #a9682f;
  --wood-dark: #6d4423;
  --wood-darker: #4a2e18;
  --forest: #3f5540;
  --forest-dark: #2c3d2d;
  --stone: #6b6a63;
  --cream: #faf6ee;
  --cream-2: #f0e9da;
  --cream-3: #e6dcc6;
  --ink: #2a2521;
  --ink-soft: #57504a;
  --white: #ffffff;

  --font-head: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(42, 37, 33, 0.35);
  --shadow-sm: 0 4px 14px -6px rgba(42, 37, 33, 0.25);
  --container: 1180px;
  --nav-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--wood-darker);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
  margin-bottom: 0.9em;
}

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

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--cream2 { background: var(--cream-2); }
.section--forest {
  background: var(--forest-dark);
  color: #e9e6dc;
}
.section--forest h2, .section--forest h3 { color: #fff; }
.section--forest p { color: #cfd6cd; }

.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--wood);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--wood-dark); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-light {
  background: #fff;
  color: var(--wood-darker);
}
.btn-light:hover { background: var(--cream-2); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease, height 0.25s ease;
}
.nav.is-solid {
  background: rgba(250, 246, 238, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 18px rgba(42,37,33,0.08);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.25s ease;
}
.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  transition: color 0.25s ease;
}
.nav.is-solid .brand-name { color: var(--wood-darker); }
.nav.is-solid .brand-tag { color: var(--forest); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.2s ease;
}
.nav.is-solid .nav-links a { color: var(--ink); }
.nav-links a:hover, .nav-links a.is-active { border-color: var(--wood); }
.nav.is-solid .nav-links a:hover, .nav.is-solid .nav-links a.is-active { color: var(--wood-dark); }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-switch a {
  color: rgba(255,255,255,0.7);
  padding: 4px 6px;
}
.nav.is-solid .lang-switch a { color: var(--stone); }
.lang-switch a.is-active { color: #fff; text-decoration: underline; }
.nav.is-solid .lang-switch a.is-active { color: var(--wood-darker); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: #fff;
  transition: background 0.25s ease;
}
.nav.is-solid .nav-toggle span { background: var(--ink); }

/* mobile nav */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links a { color: var(--ink); }
  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-actions .btn-sm.call-btn { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,24,17,0.55) 0%, rgba(30,24,17,0.35) 40%, rgba(24,20,15,0.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-h);
  max-width: 720px;
}
.hero-content .eyebrow { color: #f2d9b3; }
.hero-content h1 { color: #fff; margin-bottom: 0.4em; }
.hero-content p.lead {
  font-size: 1.15rem;
  color: #f1ece0;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.page-hero .hero-content { padding-bottom: 56px; padding-top: calc(var(--nav-h) + 24px); max-width: 640px; }

/* ---------- stats / highlights ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.stat {
  text-align: center;
  padding: 20px 10px;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--wood);
}
.stat span {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.feature-card .icon {
  width: 46px; height: 46px;
  margin-bottom: 16px;
  color: var(--forest);
}
.feature-card .icon svg { width: 100%; height: 100%; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.feature-card p { margin: 0; font-size: 0.95rem; }

/* ---------- image + text split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
}
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3.1;
}
.checklist { list-style: none; margin: 0 0 1.4em; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--forest);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px; top: 10px;
  width: 8px; height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- room cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3.4;
  cursor: pointer;
}
.photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-card:hover img { transform: scale(1.06); }
.photo-card .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(20,16,12,0.75));
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.05rem;
}

/* ---------- gallery grid ---------- */
.gallery-cat { margin-bottom: 54px; }
.gallery-cat h3 { margin-bottom: 20px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 16, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  text-align: center;
  color: #e9e6dc;
  font-size: 0.9rem;
}

/* ---------- pricing / contact CTA box ---------- */
.cta-box {
  background: var(--wood);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.cta-box h2, .cta-box h3 { color: #fff; }
.cta-box p { color: #f6ead9; }
.cta-box .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- info / contact blocks ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.info-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.info-line .icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--forest); margin-top: 3px; }
.info-line .icon svg { width: 100%; height: 100%; }
.info-line strong { display: block; font-size: 0.95rem; }
.info-line span, .info-line a { color: var(--ink-soft); font-size: 0.95rem; }
.info-line a:hover { color: var(--wood); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- footer ---------- */
.footer {
  background: var(--wood-darker);
  color: #d8cbb9;
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer h4 {
  color: #f2e9d8;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer .brand-name { color: #fff; }
.footer .brand-tag { color: #cbb896; }
.footer p, .footer a { color: #cbbfa9; font-size: 0.92rem; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.82rem;
  color: #a8987c;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}
