/* ============================================
   BURANSH COTTAGE — Design Tokens
   ============================================ */
:root {
  --ivory: #EAE3D3;
  --ivory-light: #F2EDE1;
  --walnut: #2E2115;
  --walnut-soft: #4A392A;
  --indigo: #2B3A4D;
  --rug-red: #9C4A3D;
  --forest: #4B5D45;
  --mustard: #B8863A;
  --border-soft: rgba(46, 33, 21, 0.14);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--walnut);
  background: var(--ivory-light);
  line-height: 1.6;
  font-size: 16px;
  -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;
  line-height: 1.15;
  color: var(--walnut);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { max-width: 62ch; }

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

/* ============================================
   Motif — buransh (rhododendron) flower mark
   ============================================ */
.motif {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  background-image: url("../images/buransh-illustration.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 237, 225, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  list-style: none;
  font-size: 0.95rem;
}
.nav-links a {
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--rug-red); }
.nav-links a.active {
  border-bottom: 1.5px solid var(--rug-red);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--walnut);
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory-light);
    flex-direction: column;
    padding: 1rem var(--gutter) 1.5rem;
    display: none;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-links.open { display: flex; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,15,10,0.05) 0%, rgba(20,15,10,0.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--ivory-light);
  padding: 0 var(--gutter) clamp(3rem, 8vw, 5.5rem);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0.9;
  margin-bottom: 0.8rem;
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero-sub {
  margin-top: 1.1rem;
  font-size: 1.15rem;
  max-width: 42ch;
  color: rgba(255,255,255,0.92);
}

/* Smaller page hero (non-home pages) */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,15,10,0.1) 0%, rgba(20,15,10,0.6) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 var(--gutter) 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.page-hero h1 { color: #fff; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border: 1.5px solid var(--walnut);
  font-size: 0.95rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--walnut); color: var(--ivory-light); }
.btn-light {
  border-color: rgba(255,255,255,0.85);
  color: #fff;
}
.btn-light:hover { background: #fff; color: var(--walnut); border-color: #fff; }
.btn-solid {
  background: var(--rug-red);
  border-color: var(--rug-red);
  color: #fff;
}
.btn-solid:hover { background: var(--walnut); border-color: var(--walnut); }

/* ============================================
   Sections
   ============================================ */
section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-alt { background: var(--ivory); }

.intro-block {
  max-width: 640px;
}
.intro-block p { color: var(--walnut-soft); font-size: 1.08rem; }

/* Split section: image + text side by side */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  border-radius: 14px;
}
.split-text p { color: var(--walnut-soft); }

@media (max-width: 860px) {
  .split, .split.reverse .split-media, .split.reverse .split-text {
    order: initial;
  }
  .split { grid-template-columns: 1fr; }
  .split-media img { aspect-ratio: 3/2; }
}

/* Teaser cards on home page */
.teasers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  margin-top: 3rem;
}
.teaser {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 14px;
}
.teaser img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.teaser:hover img { transform: scale(1.05); }
.teaser::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,15,10,0) 40%, rgba(20,15,10,0.75) 100%);
}
.teaser-label {
  position: absolute;
  bottom: 1.4rem; left: 1.4rem; right: 1.4rem;
  z-index: 2;
  color: #fff;
}
.teaser-label h3 { color: #fff; margin-bottom: 0.2rem; }
.teaser-label span { font-size: 0.88rem; opacity: 0.85; }

@media (max-width: 860px) {
  .teasers { grid-template-columns: 1fr; }
}

/* Rooms */
.room-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--border-soft);
}
.room-card:last-child { border-bottom: none; }
.room-card:nth-child(even) .room-media { order: 2; }
.room-card:nth-child(even) .room-text { order: 1; }
.room-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 14px; }
.room-text p { color: var(--walnut-soft); }
.room-meta {
  display: flex;
  gap: 1.6rem;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--walnut-soft);
}
@media (max-width: 800px) {
  .room-card, .room-card:nth-child(even) .room-media, .room-card:nth-child(even) .room-text {
    order: initial;
  }
  .room-card { grid-template-columns: 1fr; }
}

/* Amenities grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  margin-top: 2.5rem;
}
.amenity h3 { margin-bottom: 0.5rem; }
.amenity p { color: var(--walnut-soft); font-size: 0.98rem; }
@media (max-width: 720px) {
  .amenities-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .amenities-grid { grid-template-columns: 1fr; }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  cursor: pointer;
  border-radius: 14px;
}
.gallery-grid .tall { grid-row: span 2; aspect-ratio: 1/2.1; }
.gallery-grid .wide { grid-column: span 2; aspect-ratio: 2/1; }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .wide { grid-column: span 2; }
  .gallery-grid .tall { grid-row: span 1; aspect-ratio: 1/1; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,15,10,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contact-info h3 { margin-bottom: 0.4rem; }
.contact-info .info-block { margin-bottom: 1.8rem; }
.contact-info p { color: var(--walnut-soft); }

form { display: flex; flex-direction: column; gap: 1.1rem; }
label { font-size: 0.88rem; color: var(--walnut-soft); margin-bottom: 0.35rem; display: block; }
input, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-soft);
  background: var(--ivory-light);
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--walnut);
}
input:focus, textarea:focus {
  outline: 2px solid var(--indigo);
  outline-offset: 1px;
}
textarea { min-height: 120px; resize: vertical; }

@media (max-width: 800px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  background: var(--walnut);
  color: var(--ivory-light);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(234,227,211,0.18);
}
.footer-brand { font-family: var(--serif); font-size: 1.3rem; }
.footer-links { display: flex; gap: 1.8rem; list-style: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--mustard); }
.footer-bottom {
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: rgba(234,227,211,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Utility */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 3rem; }
