/* =========================================================================
   Shihnoo — "Lamplight" design system
   Dark, warm hero surfaces give way to light, readable content.
   Signature: the honey-amber glow of a lamp being turned on.
   ========================================================================= */

:root {
  /* Palette — drawn from the product's own world: walnut furniture,
     natural hevea wood, and warm incandescent glow. */
  --walnut:      #241b14;  /* deep warm dark — hero & footer */
  --walnut-2:    #2f2419;  /* raised dark surface */
  --paper:       #f7f3ec;  /* warm light — reading surfaces */
  --paper-2:     #efe8db;  /* alternate light section */
  --amber:       #e3a24c;  /* lamplight accent — the glow */
  --amber-soft:  #f1cd8a;
  --oak:         #b98a54;  /* wood mid-tone */
  --ink:         #29221b;  /* body text on light */
  --ink-soft:    #6f6459;  /* muted text / captions */
  --line:        #e0d7c6;  /* hairline on light */
  --line-dark:   rgba(247,243,236,.14); /* hairline on dark */

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-glow: 0 0 44px -8px rgba(227,162,76,.55);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------ reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ------------------------------ type ----------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
.display {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 600;
}
.h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--oak);
}
.lede { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--ink-soft); line-height: 1.5; }
.muted { color: var(--ink-soft); }

/* ------------------------------ layout --------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--paper2 { background: var(--paper-2); }
.center { text-align: center; }
.stack > * + * { margin-top: 1.1rem; }

/* ------------------------------ header --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.site-header__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: .5ch;
}
.brand__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 10px 1px var(--amber);
}
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.nav a { font-size: .95rem; letter-spacing: .01em; position: relative; padding-block: 4px; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: currentColor; transition: right .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

/* transparent header over the dark hero (home) */
.site-header.is-transparent {
  position: fixed; left: 0; right: 0;
  background: transparent; border-color: transparent; color: var(--paper);
}
.site-header.is-transparent .brand__dot { box-shadow: 0 0 12px 2px var(--amber); }
.site-header.is-transparent.is-scrolled {
  background: rgba(36,27,20,.86);
  backdrop-filter: blur(8px);
  border-color: var(--line-dark);
  color: var(--paper);
}

/* mobile nav */
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: inherit; }
.nav-toggle svg { display: block; }

/* ------------------------------ buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6ch;
  padding: 15px 30px; border-radius: var(--radius);
  font-weight: 600; font-size: .96rem; letter-spacing: .01em;
  border: 1px solid transparent; transition: transform .18s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber); color: #3a2a12; box-shadow: var(--shadow-glow); }
.btn--primary:hover { box-shadow: 0 0 60px -6px rgba(227,162,76,.75); }
.btn--dark { background: var(--walnut); color: var(--paper); }
.btn--dark:hover { background: #33261a; }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: rgba(247,243,236,.08); }
.btn--onlight.btn--ghost { border-color: var(--ink); }
.btn--onlight.btn--ghost:hover { background: rgba(41,34,27,.05); }
.btn--wide { width: 100%; }

/* ------------------------------ hero ----------------------------------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: var(--walnut); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20,14,9,.92) 0%, rgba(20,14,9,.35) 42%, rgba(20,14,9,.55) 100%);
}
/* signature: warm lamplight glow that "turns on" */
.hero__glow {
  position: absolute; right: 8%; top: 34%; width: 46vmax; height: 46vmax;
  transform: translate(20%, -30%);
  background: radial-gradient(circle, rgba(255,196,110,.55) 0%, rgba(227,162,76,.22) 34%, transparent 66%);
  pointer-events: none; filter: blur(6px);
  opacity: 0; animation: lampOn 2.6s var(--ease) .3s forwards;
}
@keyframes lampOn {
  0% { opacity: 0; transform: translate(20%, -30%) scale(.8); }
  100% { opacity: 1; transform: translate(20%, -30%) scale(1); }
}
.hero__content { position: relative; padding-bottom: clamp(64px, 11vh, 128px); color: var(--paper); max-width: 760px; }
.hero__content .eyebrow { color: var(--amber-soft); }
.hero .display { color: #fbf4e8; margin-top: .5rem; }
.hero__lede { color: rgba(247,243,236,.82); font-size: clamp(1.05rem,1.7vw,1.3rem); margin-top: 1.2rem; max-width: 52ch; }
.hero__price { margin-top: 1.5rem; color: #fbf4e8; font-family: var(--serif); font-size: 1.75rem; font-weight: 500; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hero__price span { font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(247,243,236,.7); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.hero__scrolldown { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(247,243,236,.6); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }

/* --------------------------- room gallery ------------------------------ */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 26px); }
.room { position: relative; border-radius: var(--radius); overflow: hidden; }
.room img { aspect-ratio: 3/4; object-fit: cover; width: 100%; transition: transform .8s var(--ease); }
.room:hover img { transform: scale(1.04); }
.room__label {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 20px;
  color: var(--paper); font-family: var(--serif); font-size: 1.25rem;
  background: linear-gradient(to top, rgba(20,14,9,.8), transparent);
}

/* --------------------------- feature rows ------------------------------ */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media img { border-radius: var(--radius); }
.figure-caption { font-size: .82rem; color: var(--ink-soft); margin-top: .6rem; }

/* spec list */
.specs { border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-soft); }
.specs dd { font-weight: 600; text-align: right; }

/* value props */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.prop__k { font-family: var(--serif); font-size: 1.3rem; margin-bottom: .3rem; }
.prop__i { width: 30px; height: 30px; color: var(--oak); margin-bottom: 14px; }

/* --------------------------- dark cta band ----------------------------- */
.band { position: relative; background: var(--walnut); color: var(--paper); overflow: hidden; }
.band__glow {
  position: absolute; left: 50%; top: 50%; width: 60vmax; height: 60vmax; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(227,162,76,.20) 0%, transparent 62%); pointer-events: none;
}
.band .h2, .band h2 { color: #fbf4e8; }
.band .lede { color: rgba(247,243,236,.78); }

/* =========================== product page ============================= */
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.gallery__main { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.gallery__main img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery__thumbs button { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; background: none; transition: border-color .2s; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--oak); }
.gallery__thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.buybox { position: sticky; top: 96px; }
.price { font-family: var(--serif); font-size: 2.4rem; }
.price small { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
.pay-stack > * + * { margin-top: 12px; }
.pay-divider { display:flex; align-items:center; gap:14px; color: var(--ink-soft); font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; margin: 4px 0; }
.pay-divider::before, .pay-divider::after { content:""; flex:1; height:1px; background: var(--line); }
.paypal-slot { min-height: 48px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: .86rem; color: var(--ink-soft); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--oak); flex: none; }

/* --------------------------- article / legal --------------------------- */
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .3em; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; margin-bottom: .5em; }
.prose p, .prose li { color: #40372e; }
.prose p + p { margin-top: 1em; }
.prose ul { margin: 1em 0; padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose a { color: #9a6a2a; text-decoration: underline; text-underline-offset: 3px; }
.updated { font-size: .85rem; color: var(--ink-soft); margin-bottom: 2em; }

/* breadcrumb */
.crumbs { font-size: .84rem; color: var(--ink-soft); padding-block: 20px; }
.crumbs a:hover { color: var(--ink); }

/* contact form */
.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 600; }
.field input, .field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }

/* --------------------------- footer ------------------------------------ */
.site-footer { background: var(--walnut); color: rgba(247,243,236,.8); padding-block: clamp(48px, 7vw, 84px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.site-footer .brand { color: #fbf4e8; }
.footer-h { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber-soft); margin-bottom: 14px; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: rgba(247,243,236,.72); font-size: .93rem; }
.footer-links a:hover { color: #fbf4e8; }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .82rem; color: rgba(247,243,236,.55); }

/* --------------------------- reveal anim ------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------- responsive -------------------------------- */
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .split, .split--flip .split__media { grid-template-columns: 1fr; order: 0; }
  .split { grid-template-columns: 1fr; }
  .rooms { grid-template-columns: 1fr; }
  .props { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--walnut); color: var(--paper); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 26px; padding: 40px; transform: translateX(100%);
    transition: transform .4s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.4); }
  .nav.open { transform: none; }
  .nav a { font-size: 1.15rem; color: var(--paper); }
  .nav-toggle { display: inline-flex; z-index: 60; }
  .footer-grid { grid-template-columns: 1fr; }
  body.nav-open { overflow: hidden; }
}

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