/* ============ Nestquil — editorial theme (LANKASOL-style) ============ */
:root {
  --paper: #f4f0e8;
  --paper-raised: #fbf9f4;
  --panel: #eae3d7;
  --ink: #2a2622;
  --ink-soft: #867c6f;
  --line: #e2dccf;
  --line-strong: #d3cabb;
  --accent: #4d6274;
  --accent-dark: #38495a;
  --shadow-sm: 0 1px 2px rgba(42, 38, 34, 0.05);
  --shadow: 0 14px 40px -18px rgba(42, 38, 34, 0.28);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.button {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  padding: 14px 26px;
  border: 0;
  transition: background 0.2s ease;
}
.button:hover { background: var(--accent-dark); }
.button--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.button--ghost:hover { background: var(--ink); color: #fff; }
.arrow { display: inline-block; transition: transform 0.2s ease; }
a:hover .arrow { transform: translateX(3px); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 5vw; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 5vw;
}
.site-header__logo { text-decoration: none; color: var(--ink); }
.site-header__word {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.site-header__tag {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 5px;
}
.site-header__nav { display: flex; gap: 30px; }
.site-header__nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header__nav a:hover { border-color: var(--ink); }
.site-header__right { display: flex; align-items: center; gap: 20px; }
.langswitch { display: flex; gap: 4px; font-size: 0.78rem; }
.langswitch a { text-decoration: none; color: var(--ink-soft); padding: 3px 7px; letter-spacing: 0.04em; }
.langswitch a.is-active { color: var(--ink); font-weight: 600; border: 1px solid var(--line-strong); }
.langswitch a:hover { color: var(--ink); }
.site-header__icons { display: flex; gap: 18px; color: var(--ink); }
.site-header__icons svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: min(74vh, 640px);
  overflow: hidden;
  background: var(--panel);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__card {
  position: absolute;
  top: 50%;
  left: max(5vw, calc((100vw - 1240px) / 2 + 5vw));
  transform: translateY(-50%);
  width: min(400px, 82vw);
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(4px);
  padding: 40px 40px 42px;
}
.hero__card h1 { margin: 0 0 16px; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.05; }
.hero__card p { margin: 0 0 26px; color: #4a453e; font-size: 1rem; line-height: 1.6; }
.hero__dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero__dots span { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.6); }
.hero__dots span.is-active { background: #fff; width: 20px; border-radius: 999px; }

/* ---------- room bar ---------- */
.roombar { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.roombar__item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 8px;
  text-decoration: none; color: var(--ink);
  border-right: 1px solid var(--line);
  transition: background 0.2s ease;
}
.roombar__item:first-child { border-left: 1px solid var(--line); }
.roombar__item:hover { background: var(--paper-raised); }
.roombar__item svg { width: 30px; height: 30px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.roombar__item span { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- section scaffolding ---------- */
.section { padding: 80px 0; }
.section--panel { background: var(--panel); }
.section__lead { max-width: 30em; }
.section__lead h2 { margin: 6px 0 18px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.08; }
.section__lead p { color: var(--ink-soft); margin: 0 0 26px; }
.link-arrow {
  font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px;
}

/* ---------- featured home (text + mosaic) ---------- */
.featured { display: grid; grid-template-columns: 340px 1fr; gap: 54px; align-items: center; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; gap: 14px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic a { display: block; overflow: hidden; }
.mosaic a img { transition: transform 0.4s ease; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic__tall { grid-row: span 2; }

/* ---------- product row ---------- */
.product-row { display: grid; grid-template-columns: 300px 1fr; gap: 54px; align-items: start; }
.product-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr);
  gap: 22px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory;
}
.product-strip::-webkit-scrollbar { height: 6px; }
.product-strip::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.pcard { text-decoration: none; color: var(--ink); scroll-snap-align: start; }
.pcard__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.pcard__name { margin: 14px 0 3px; font-family: var(--font-display); font-size: 1rem; font-weight: 500; }
.pcard__shop { margin: 0 0 4px; font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.pcard__price { margin: 0; font-size: 0.95rem; font-weight: 600; }
.pcard:hover .pcard__img { border-color: var(--line-strong); }

/* ---------- inspiration cards ---------- */
.insp-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.insp-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.insp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.insp-card { text-decoration: none; color: var(--ink); }
.insp-card__img { overflow: hidden; }
.insp-card__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.4s ease; }
.insp-card:hover .insp-card__img img { transform: scale(1.05); }
.insp-card__foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 0; }
.insp-card__foot span { font-family: var(--font-display); font-size: 1.02rem; }

/* ---------- generic page hero ---------- */
.page-hero { padding: 70px 0 28px; }
.page-hero h1 { margin: 8px 0 10px; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: var(--ink-soft); max-width: 42em; margin: 0; }
.page-hero .eyebrow a { color: inherit; text-decoration: none; }
.empty-note { color: var(--ink-soft); font-style: italic; }
.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink); background: var(--panel);
  padding: 5px 13px; margin-right: 7px; text-decoration: none;
}
.tag:hover { background: var(--line-strong); }

/* ---------- category / post / looks grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; padding-bottom: 90px; }
.tilelink { text-decoration: none; color: var(--ink); }
.tilelink__img { overflow: hidden; }
.tilelink__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.tilelink:hover .tilelink__img img { transform: scale(1.04); }
.tilelink__body { padding: 14px 2px 0; }
.tilelink__body h3 { margin: 0 0 5px; font-size: 1.15rem; }
.tilelink__body p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

.roomtile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 10px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); background: var(--paper-raised);
}
.roomtile:hover { border-color: var(--line-strong); }
.roomtile__icon { font-size: 1.6rem; }
.roomtile span { font-size: 0.82rem; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding-bottom: 90px; }

/* ---------- single look page (article + product rail) ---------- */
.look { padding-bottom: 90px; }
.look__hero-img { margin-bottom: 44px; }
.look__hero-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.look__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; }
.look__head h1 { margin: 8px 0 12px; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.1; }
.look__cats { margin: 0 0 28px; }
.look__lead { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.5; margin: 0 0 24px; }
.look__article { font-size: 1.08rem; line-height: 1.72; }
.look__article h2 { font-size: 1.5rem; margin: 34px 0 12px; }
.look__article p { margin: 0 0 18px; max-width: 42em; }
.look__article img { width: 100%; margin: 26px 0; }
.look__rail { position: sticky; top: 24px; }
.look__rail-inner { background: var(--paper-raised); border: 1px solid var(--line); padding: 24px 22px 18px; }
.look__rail-inner h2 { margin: 0 0 4px; font-size: 1.3rem; }
.look__rail-note { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 18px; }
.rail-products { display: flex; flex-direction: column; }
.rail-product { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); padding: 12px 0; border-top: 1px solid var(--line); }
.rail-product:first-child { border-top: 0; }
.rail-product__img { width: 68px; height: 68px; flex: none; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.rail-product__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rail-product__name { font-family: var(--font-display); font-size: 0.98rem; line-height: 1.25; }
.rail-product__shop { font-size: 0.74rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.rail-product__price { font-size: 0.88rem; font-weight: 600; }
.rail-product:hover .rail-product__name { text-decoration: underline; text-underline-offset: 3px; }
.look__rail-disclosure { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.74rem; line-height: 1.45; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d8cfc2; margin-top: 0; }
.site-footer__in { max-width: 1240px; margin: 0 auto; padding: 56px 5vw 60px; }
.site-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.site-footer__word { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.site-footer__nav { display: flex; gap: 26px; }
.site-footer__nav a { color: #d8cfc2; text-decoration: none; font-size: 0.9rem; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__disclosure { color: #a99e8f; font-size: 0.82rem; max-width: 62em; margin: 26px 0 8px; }
.site-footer__copy { color: #a99e8f; font-size: 0.8rem; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .featured, .product-row { grid-template-columns: 1fr; gap: 30px; }
  .insp-grid { grid-template-columns: repeat(3, 1fr); }
  .look__layout { grid-template-columns: 1fr; gap: 34px; }
  .look__rail { position: static; }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; }
  .site-header__nav { order: 3; width: 100%; overflow-x: auto; gap: 20px; }
  .roombar { grid-template-columns: repeat(4, 1fr); }
  .roombar__item:nth-child(4) { border-right: 1px solid var(--line); }
  .hero__card { left: 5vw; right: 5vw; width: auto; }
  .mosaic { grid-auto-rows: 130px; }
  .insp-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 54px 0; }
}

/* --- Language dropdown (flags) --- */
.lang-menu { position: relative; }
.lang-menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--ink); padding: 5px 10px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--paper-raised); user-select: none;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::after { content: "▾"; font-size: 0.7em; color: var(--ink-soft); }
.lang-menu[open] > summary { border-color: var(--accent); }
.lang-menu__code { letter-spacing: 0.04em; font-weight: 600; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: var(--shadow); min-width: 176px; z-index: 40;
}
.lang-menu li { margin: 0; }
.lang-menu li a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-size: 0.9rem; white-space: nowrap;
}
.lang-menu li a:hover { background: var(--panel); }
.flag { font-size: 1.05rem; line-height: 1; }

/* --- Geo language offer banner --- */
.geo-offer {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 14px; max-width: 92vw;
  background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 10px 12px 10px 18px; box-shadow: var(--shadow); font-size: 0.9rem; color: var(--ink);
}
.geo-offer__text { white-space: nowrap; }
.geo-offer__yes {
  text-decoration: none; background: var(--ink); color: var(--paper); padding: 7px 14px;
  border-radius: 999px; font-size: 0.85rem; font-weight: 500;
}
.geo-offer__yes:hover { background: var(--accent-dark); }
.geo-offer__no {
  background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 0.85rem;
  font-family: inherit; padding: 6px;
}
.geo-offer__no:hover { color: var(--ink); }
@media (max-width: 520px) {
  .geo-offer { flex-wrap: wrap; justify-content: center; border-radius: 16px; text-align: center; }
  .geo-offer__text { white-space: normal; }
}

/* --- Look gallery (mood board of generated scenes) --- */
.look-gallery { margin: 44px 0 8px; }
.look-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.look-gallery__item { margin: 0; border-radius: 12px; overflow: hidden; background: var(--panel); aspect-ratio: 3 / 2; }
.look-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) { .look-gallery__grid { grid-template-columns: repeat(2, 1fr); } }
