/* ============================================================
   Roaathawra — static recreation of the Shopify "Dwell" (Horizon) theme.
   Design tokens taken from the theme export: Instrument Serif + Inter,
   the exact color schemes, square #fcd430 primary buttons.
   ============================================================ */

:root {
  --font-head: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Active scheme-1 (light) defaults */
  --c-bg: #ffffff;
  --c-text: #1c1c1c;
  --c-heading: #000000;
  --c-muted: #6b6b6b;
  --c-border: #eae8e6;
  --c-accent: #fcd430;

  --btn-bg: #fcd430;
  --btn-text: #000000;
  --btn-border: #000000;
  --btn-hover-bg: #000000;
  --btn-hover-text: #ffffff;

  --btn2-bg: transparent;
  --btn2-text: #000000;
  --btn2-border: #000000;
  --btn2-hover-bg: #000000;
  --btn2-hover-text: #ffffff;

  --page-max: 1400px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 64px;
  --announce-h: 34px;
}

/* ---- Color scheme utilities (apply to sections) ---- */
.cs-light  { --c-bg:#ffffff; --c-text:#1c1c1c; --c-heading:#000000; --c-border:#eae8e6; }
.cs-yellow { --c-bg:#fcd430; --c-text:#000000; --c-heading:#000000; --c-border:#0000001a; }
.cs-olive  { --c-bg:#545545; --c-text:#f2f0ea; --c-heading:#ffffff; --c-border:#ffffff33; }
.cs-beige  { --c-bg:#e9e4e0; --c-text:#433625; --c-heading:#433625; --c-border:#43362526; }
.cs-green  { --c-bg:#3e4539; --c-text:#eef0ea; --c-heading:#ffffff; --c-border:#ffffff33; }
.cs-clay   { --c-bg:#7d5449; --c-text:#fbeee9; --c-heading:#ffffff; --c-border:#ffffff33; }
[class*="cs-"] { background: var(--c-bg); color: var(--c-text); }

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--c-heading);
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.8rem, 6.5vw, 5.4rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h4 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: .82rem; font-family: var(--font-body); font-weight: 600;
     letter-spacing: .14em; text-transform: uppercase; }
p { margin: 0 0 1em; }
em { font-style: italic; }

/* ---- Layout ---- */
.page { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.full { width: 100%; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: .82rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 0; border: 1px solid var(--btn-border);
  background: var(--btn-bg); color: var(--btn-text);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--btn-hover-bg); color: var(--btn-hover-text); border-color: var(--btn-hover-bg); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--secondary {
  background: var(--btn2-bg); color: var(--btn2-text); border-color: var(--btn2-border);
}
.btn--secondary:hover { background: var(--btn2-hover-bg); color: var(--btn2-hover-text); border-color: var(--btn2-hover-bg); }
.btn--block { width: 100%; }
.link-underline {
  font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding-bottom: 3px; border-bottom: 1px solid currentColor;
}

/* ---- Announcement bar ---- */
.announce {
  background: var(--c-accent); color: #000; text-align: center;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.5; padding: 12px 18px;
}
@media (max-width: 600px) { .announce { font-size: .66rem; padding: 12px 16px; } }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff; color: #000; border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h); padding-inline: var(--gutter);
}
.header-left, .header-right { display: flex; align-items: center; gap: 6px; }
.header-right { justify-content: flex-end; }
.header-brand {
  font-family: var(--font-body); font-weight: 500; font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  letter-spacing: .34em; text-transform: uppercase; text-align: center; color: #000;
}
/* desktop horizontal nav (no burger on desktop) */
.header-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; padding: 2px var(--gutter) 12px; }
.header-nav a {
  font-family: var(--font-body); font-size: .8rem; font-weight: 500; letter-spacing: .03em;
  color: #000; padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.header-nav a:hover { border-color: #000; }
.only-desktop { display: none; }
@media (min-width: 981px) {
  .only-desktop { display: flex; }
  .only-mobile { display: none !important; }
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 0; background: transparent; color: #000;
}
.icon-btn svg { width: 22px; height: 22px; }

/* ---- Drawer (hamburger menu) ---- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 61;
  width: min(420px, 86vw); background: #fff; color: #000;
  transform: translateX(-100%); transition: transform .34s cubic-bezier(.16,1,.3,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--c-border);
}
.drawer-head span { font-family: var(--font-body); font-weight: 500; font-size: 1rem; letter-spacing: .28em; text-transform: uppercase; }
.drawer-nav { padding: 8px 0; }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 24px; font-family: var(--font-body); font-size: 1.02rem; font-weight: 500; letter-spacing: .02em;
  border-bottom: 1px solid var(--c-border); transition: background .2s ease;
}
.drawer-nav a:hover { background: #faf8f4; }
.drawer-nav a small { font-family: var(--font-body); font-size: .7rem; letter-spacing: .12em;
  color: var(--c-muted); text-transform: uppercase; }
.drawer-foot { margin-top: auto; padding: 22px 24px; border-top: 1px solid var(--c-border);
  display: flex; gap: 18px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---- Search overlay ---- */
.search-overlay {
  position: fixed; inset: 0; z-index: 70; background: rgba(255,255,255,.98);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
  display: flex; flex-direction: column;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-top { display: flex; align-items: center; gap: 14px; padding: 22px var(--gutter);
  border-bottom: 1px solid var(--c-border); }
.search-top input {
  flex: 1; border: 0; outline: 0; background: transparent; color: #000;
  font-family: var(--font-head); font-size: clamp(1.4rem, 4vw, 2.4rem);
}
.search-results { padding: 22px var(--gutter); overflow-y: auto; }
.search-results .grid { margin-top: 0; }

/* ---- Product grid + card (theme: portrait images, minimal) ---- */
.grid {
  display: grid; gap: clamp(14px, 2vw, 28px) clamp(8px, 1.2vw, 14px);
  grid-template-columns: repeat(var(--cols, 4), 1fr); margin-top: 28px;
}
.grid--5 { --cols: 5; }
.grid--4 { --cols: 4; }
@media (max-width: 1100px) { .grid { --cols: 3 !important; } }
@media (max-width: 760px)  { .grid { --cols: 2 !important; gap: 22px 12px; } }

.card { display: flex; flex-direction: column; height: 100%; }
.card-media {
  position: relative; aspect-ratio: 3/4; overflow: hidden; background: #f4f2ee;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .img-2 { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media .img-2 { opacity: 1; }
.card-body { padding-top: 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-title { font-family: var(--font-body); font-size: .95rem; font-weight: 500; line-height: 1.3; color: var(--c-heading); }
.card-price { font-size: .9rem; color: var(--c-text); margin-bottom: 12px; }
.card-dm {
  margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 14px; border: 1px solid var(--c-heading); width: fit-content;
  transition: background .2s ease, color .2s ease;
}
.card-dm:hover { background: var(--c-heading); color: var(--c-bg); }
.card-dm svg { width: 14px; height: 14px; }

/* ---- Hero ---- */
.hero { position: relative; width: 100%; min-height: 78vh; display: flex;
  align-items: center; justify-content: center; overflow: hidden; color: #fff; }
.hero-media, .hero-media video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,.28)); }
.hero-content { position: relative; z-index: 1; text-align: center; padding: 40px 20px; max-width: 900px; }
.hero-content h1 { color: #fff; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---- Pull quote / simple centered section ---- */
.pull { text-align: center; }
.pull .quote { font-family: var(--font-head); font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; max-width: 760px; margin-inline: auto; }
.pull .btn { margin-top: 26px; }

/* ---- Section heading row (Elevated Essentials / Shop the look / VIEW ALL) ---- */
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.row-head .kicker { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); }
.row-head h2 { margin-top: 6px; }

/* ---- Media with content (video + text) ---- */
.media-with-content { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.media-with-content.reverse { grid-template-columns: .9fr 1.1fr; }
.media-with-content .mwc-media { aspect-ratio: 4/5; overflow: hidden; }
.media-with-content .mwc-media img, .media-with-content .mwc-media video { width: 100%; height: 100%; object-fit: cover; }
.media-with-content .mwc-text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
@media (max-width: 860px) { .media-with-content, .media-with-content.reverse { grid-template-columns: 1fr; } }

/* ---- Marquee ---- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; padding-block: 10px; animation: marquee 22s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 4rem); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Product page
   ============================================================ */
.product-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } }

/* gallery — show the WHOLE piece (no hard crop); contain on a soft panel */
.gallery { position: relative; }
.gallery-main { position: relative; background: #f4f2ee; aspect-ratio: 4/5; overflow: hidden; }
.gallery-main .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; display: flex; align-items: center; justify-content: center; }
.gallery-main .slide.is-active { opacity: 1; }
.gallery-main .slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border: 1px solid var(--c-border); border-radius: 50%;
  background: rgba(255,255,255,.85); color: #000; display: flex; align-items: center; justify-content: center;
}
.gallery-arrow.prev { left: 12px; } .gallery-arrow.next { right: 12px; }
.gallery-arrow svg { width: 18px; height: 18px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gallery-thumbs button { width: 64px; height: 80px; padding: 0; border: 1px solid transparent; background: #f4f2ee; overflow: hidden; }
.gallery-thumbs button.is-active { border-color: #000; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-details { display: flex; flex-direction: column; gap: 14px; }
.product-details.sticky { position: sticky; top: calc(var(--header-h) + 16px); }
.product-details h1 { font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.product-details .price { font-size: 1.15rem; }
.product-details .tax-note { font-size: .8rem; color: var(--c-muted); margin-top: -8px; }
.dm-actions { display: flex; flex-direction: column; gap: 10px; margin-block: 8px; }

/* accordion */
.accordion { border-top: 1px solid var(--c-border); }
.accordion details { border-bottom: 1px solid var(--c-border); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 18px 0; display: flex;
  align-items: center; justify-content: space-between;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus { position: relative; width: 16px; height: 16px; flex: none; }
.accordion summary .plus::before, .accordion summary .plus::after {
  content: ""; position: absolute; background: currentColor; transition: transform .25s ease;
}
.accordion summary .plus::before { left: 0; top: 7px; width: 16px; height: 2px; }
.accordion summary .plus::after  { left: 7px; top: 0; width: 2px; height: 16px; }
.accordion details[open] summary .plus::after { transform: scaleY(0); }
.accordion .acc-body { padding-bottom: 20px; }
.accordion .acc-body h2 { font-size: 1.5rem; margin: 18px 0 6px; }
.accordion .acc-body h3 { font-size: 1.2rem; margin: 16px 0 4px; }
.accordion .acc-body p { font-size: .95rem; line-height: 1.7; }
.accordion .spec-list { list-style: none; padding: 0; margin: 0 0 4px; }
.accordion .spec-list li { padding: 8px 0; border-bottom: 1px dashed var(--c-border); font-size: .92rem; line-height: 1.5; }
.accordion .spec-list li:last-child { border-bottom: 0; }
.accordion .spec-list b, .accordion .spec-list strong { font-weight: 600; }
.accordion .spec-list span { color: var(--c-text); }

/* ---- Footer ---- */
.site-footer { background: #111; color: #e7e4dd; padding-block: clamp(40px, 6vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { font-family: var(--font-head); font-size: 2rem; letter-spacing: .2em; text-transform: uppercase; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { display: block; padding: 5px 0; color: #b9b4aa; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid #2a2a2a; font-size: .78rem; color: #8c887f; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ---- Floating Instagram DM ---- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 54px; height: 54px;
  border-radius: 50%; background: var(--c-accent); color: #000; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 10px 26px rgba(0,0,0,.28); transition: transform .3s ease;
}
.fab:hover { transform: scale(1.1); }
.fab svg { width: 26px; height: 26px; }

/* ---- About page ---- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.about-hero .portrait { aspect-ratio: 4/5; overflow: hidden; background: #eee; }
.about-hero .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
@media (max-width: 800px) { .about-hero { grid-template-columns: 1fr; } }
.prose { max-width: 760px; }
.prose h2 { margin: 36px 0 12px; }
.prose h3 { margin: 28px 0 8px; font-size: 1.4rem; }
.prose p { font-size: 1.02rem; line-height: 1.8; color: var(--c-text); }
.about-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
@media (max-width: 800px) { .about-why { grid-template-columns: 1fr; } }
.about-why .item h4 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 8px; }

/* ---- Reveal animation ---- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
