/* Vhanyai Farming Estate — editorial wellness palette
   Base: cream / olive / charcoal (Babylonstoren-inspired)
   Sub-brand accents: Crimson, Emerald, Gold                 */

:root {
  --cream:      #F6F1E7;
  --cream-2:    #EFE7D6;
  --paper:      #FBF8F1;
  --olive:      #3B4A2A;
  --olive-2:    #4F6238;
  --charcoal:   #1C1C1A;
  --muted:      #6E6A60;
  --line:       #D9D0BC;

  --crimson:    #B23A2A;
  --emerald:    #1F5D3A;
  --gold:       #C49A3A;

  --serif:  "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --maxw:   1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 500;
}

.lead { font-size: 1.1rem; color: var(--muted); max-width: 56ch; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(64px, 9vw, 128px) 0; }
.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive);
  margin-top: 2px;
}
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.nav a.is-active { color: var(--olive); }
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  font-size: 1.4rem; color: var(--charcoal);
}

@media (max-width: 760px) {
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(28,28,26,0.05) 0%, rgba(28,28,26,0.55) 100%),
    url('../img/hero.jpg') center/cover no-repeat,
    linear-gradient(135deg, #6b7a4a 0%, #3b4a2a 60%, #1c1c1a 100%);
  color: #fff;
  padding: clamp(60px, 10vw, 140px) 0;
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero .eyebrow { color: #E6DFCB; }
.hero p { color: rgba(255,255,255,0.86); max-width: 48ch; font-size: 1.1rem; }
.hero-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--olive); color: #fff; border-color: var(--olive); }
.btn-primary:hover { background: var(--olive-2); border-color: var(--olive-2); }
.btn-light { color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-light:hover { background: #fff; color: var(--charcoal); }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--cream); }

/* ---------- Sub-brand tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 880px) { .tiles { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--cream-2);
  overflow: hidden;
  border-radius: 4px;
  isolation: isolate;
}
.tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.tile .swatch {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent, var(--olive)) 0%, #1c1c1a 100%);
  opacity: 0.95;
  transition: transform 0.6s ease;
}
.tile:hover .swatch { transform: scale(1.04); }
.tile .label {
  position: absolute; left: 28px; right: 28px; bottom: 26px;
  color: #fff; z-index: 2;
}
.tile .label .eyebrow { color: rgba(255,255,255,0.78); }
.tile .label h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: #fff;
  margin: 6px 0 4px;
}
.tile .label p { color: rgba(255,255,255,0.82); margin: 0; font-size: 0.95rem; }
.tile .pill {
  position: absolute; top: 22px; left: 22px; z-index: 2;
  background: rgba(255,255,255,0.92);
  color: var(--charcoal);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}

.tile.crimson { --accent: var(--crimson); }
.tile.emerald { --accent: var(--emerald); }
.tile.gold    { --accent: var(--gold); }

/* ---------- Two-up content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.split .media {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #6b7a4a 0%, #3b4a2a 60%, #1c1c1a 100%);
  border-radius: 4px;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Page header ---------- */
.page-head { padding: clamp(80px, 10vw, 140px) 0 clamp(28px, 4vw, 56px); }
.page-head .eyebrow { margin-bottom: 14px; display: inline-block; }

/* ---------- Shop ---------- */
.brand-section { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.brand-section + .brand-section { border-top: 1px solid var(--line); }

.brand-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 36px;
}
.brand-head .eyebrow { color: var(--accent, var(--olive)); }
.brand-head h2 { margin: 4px 0 0; }
.brand-head .meta { color: var(--muted); font-size: 0.9rem; max-width: 42ch; }

.brand-section.crimson { --accent: var(--crimson); }
.brand-section.emerald { --accent: var(--emerald); }
.brand-section.gold    { --accent: var(--gold); }

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 28px);
}
@media (max-width: 1040px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .products { grid-template-columns: 1fr; } }

.product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -24px rgba(28,28,26,0.35); }
.product .thumb {
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, #efe7d6, #d9d0bc);
  border-radius: 3px;
  margin-bottom: 18px;
  display: grid; place-items: center;
  color: var(--accent, var(--olive));
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0.06em;
}
.product h4 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 4px; }
.product .sub { color: var(--muted); font-size: 0.85rem; margin: 0 0 14px; }
.product .price { font-size: 1.1rem; margin: 0 0 18px; color: var(--charcoal); }
.product .btn { width: 100%; justify-content: center; padding: 12px 18px; }

.coming-soon {
  border: 1px dashed var(--line);
  background: transparent;
  padding: 36px;
  text-align: center;
  border-radius: 4px;
}
.coming-soon h3 { margin: 0 0 6px; }
.coming-soon p { margin: 0; color: var(--muted); }

/* ---------- Stays ---------- */
.stays-hero {
  min-height: 70vh;
  background:
    linear-gradient(180deg, rgba(28,28,26,0.15) 0%, rgba(28,28,26,0.55) 100%),
    linear-gradient(135deg, #8a7b5a 0%, #4f6238 60%, #1c1c1a 100%);
  color: #fff;
  display: flex; align-items: center;
  padding: clamp(80px, 12vw, 160px) 0;
}
.stays-hero h1 { color: #fff; }
.stays-hero p { color: rgba(255,255,255,0.86); }

.notify {
  display: flex; gap: 10px; margin-top: 24px; max-width: 460px;
}
.notify input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.notify input::placeholder { color: rgba(255,255,255,0.65); }
.notify input:focus { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(246,241,231,0.78);
  padding: 64px 0 32px;
  margin-top: 40px;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 860px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 {
  color: #fff; font-family: var(--sans);
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; margin: 0 0 14px;
}
.site-footer a { color: rgba(246,241,231,0.78); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: rgba(246,241,231,0.6); }
.legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem;
  color: rgba(246,241,231,0.55);
}

/* ---------- Misc ---------- */
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 48px; }
