/*
  Atelier: a shop-style template cloned in layout and style from the Blocksy "Furniture" starter.
  Oat and linen grounds, one walnut brown with olive as the quiet second, big rounded panels, white product cards, pill buttons.
  A company's colour is one line: --brand. The data may set it: <html style="--brand: #..."> from theme.brand.
*/
:root {
  --brand: #5a3d2b;        /* walnut: buttons, dark panels' accent */
  --brand-2: #4e5a2c;      /* olive, the quiet second: hover, current page, eyebrows; 7:1 on --ground */
  --brand-ink: #fff;       /* text on --brand */
  --forest: #2b1f17;       /* headings, the dark panels */
  --ground: #fbf8f2;        /* oat */
  --mist: #f1ebdf;         /* hero panel, bands */
  --mist-2: #e8dfcd;       /* chips, soft buttons */
  --ink: #2b1f17;
  --muted: #574a3e;        /* 8:1 on --ground */
  --line: #e3d9c7;
  --card: #fff;
  --r-panel: 30px; --r-tile: 20px; --r-card: 12px; --r-pill: 100px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 5.2vw, 75px);
  --wrap: 1290px;

  --kit-accent: var(--brand); --kit-accent-ink: var(--brand-ink); --kit-surface: #fff; --kit-ink: var(--ink);
  --kit-muted: var(--muted); --kit-line: var(--line); --kit-radius: 16px; --kit-font: var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
a, dd, li { overflow-wrap: anywhere; }
body { margin: 0; background: var(--ground); color: var(--muted); font: 400 16px/1.65 var(--font); padding-bottom: 56px; overflow-wrap: break-word; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--forest); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
.cap { text-transform: capitalize; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px; border-radius: var(--r-pill); border: 1px solid transparent; font: 500 15px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--brand); color: var(--brand-ink); min-height: 56px; padding-inline: 34px; }
.btn--primary:hover { background: var(--brand-2); }
.btn--soft { background: var(--mist-2); color: var(--forest); }
.btn--soft:hover { background: var(--brand); color: var(--brand-ink); }
.btn--ghost { border-color: var(--line); color: var(--forest); background: transparent; }
.btn--ghost:hover { border-color: var(--brand); }
.btn--on-dark { background: #fff; color: var(--forest); }
.btn--on-dark:hover { background: var(--mist-2); }
.btn--ghost-dark { border-color: rgb(255 255 255 / .35); color: #fff; }
.btn--ghost-dark:hover { border-color: #fff; }
.btn--sm { min-height: 46px; padding-inline: 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* header */
.nav { background: #fff; position: relative; z-index: 20; }
.nav__top { background: var(--forest); font-size: 13px; color: #f0e8da; }
.nav__top-in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 20px; }
.nav__top ul { display: flex; gap: 22px; }
.nav__top a { color: rgb(240 232 218 / .85); text-decoration: none; }
.nav__top a:hover { color: #fff; text-decoration: underline; }
.nav__mid { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: -.01em; padding: 26px 0; }
.wordmark svg { width: 30px; height: 30px; flex: none; }
.wordmark span { color: var(--forest); }
.nav__panel { display: contents; }
.nav__links { display: flex; gap: 6px; margin-left: auto; order: 1; }
.nav__links a { display: block; padding: 8px 14px; color: var(--forest); font-weight: 500; font-size: 15px; text-decoration: none; border-radius: var(--r-pill); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--brand-2); }
.nav__actions { display: flex; gap: 10px; order: 2; }
.nav__actions .btn { min-height: 44px; padding-inline: 20px; }
.nav__cats { order: 3; flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 0 6px; border-top: 1px solid var(--line); }
.nav__cats a { display: block; padding: 18px 16px; font-weight: 500; font-size: 15px; color: var(--forest); text-decoration: none; }
.nav__cats a:hover { color: var(--brand-2); }
.nav__where { margin-left: auto; align-self: center; font-size: 13px; color: var(--muted); }
.nav__toggle { display: none; }

/* shared blocks */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); }
.lead { font-size: 18px; line-height: 1.65; color: var(--forest); max-width: 44ch; }
.block { padding-block: clamp(40px, 6vw, 70px) 0; }
.block__head { text-align: center; max-width: 620px; margin: 0 auto clamp(24px, 3.4vw, 40px); }
.block__head h2 { font-size: clamp(25px, 2.4vw, 30px); line-height: 1.3; }
.block__head p { margin-top: 12px; }
.block__head--row { text-align: left; max-width: none; margin-bottom: 24px; }
.block__more { text-align: center; margin-top: 40px; }
.pagehead { background: var(--mist); border-radius: var(--r-panel); padding: clamp(28px, 4.5vw, 56px); margin-top: clamp(16px, 2.4vw, 28px); display: grid; gap: 14px; justify-items: start; }
.pagehead h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.2; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pills a { display: inline-block; padding: 10px 20px; border-radius: var(--r-pill); background: #fff; color: var(--forest); font-weight: 500; font-size: 15px; text-decoration: none; transition: background .2s, color .2s; }
.pills a:hover { background: var(--brand); color: var(--brand-ink); }

/* hero */
.hero { padding-top: clamp(16px, 2.4vw, 28px); }
.hero__panel { background: var(--mist); border-radius: var(--r-panel); padding: clamp(20px, 3.5vw, 50px); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: stretch; }
.hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 22px; align-items: flex-start; padding-block: 16px; }
.hero__copy h1 { font-size: clamp(30px, 3.1vw, 46px); line-height: 1.25; }
.hero__chip { display: inline-flex; align-items: center; gap: 12px; background: var(--mist-2); border-radius: var(--r-pill); padding: 8px 22px 8px 14px; color: var(--forest); }
.hero__chip svg { width: 20px; height: 20px; }
.hero__chip button { background: none; border: 0; padding: 4px 0; font: 500 15px var(--font); color: inherit; cursor: pointer; }
.hero__chip button:hover { text-decoration: underline; }
.hero__tiles { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.1fr .9fr; gap: 20px; min-height: 520px; }
.tile { position: relative; display: block; border-radius: var(--r-tile); overflow: hidden; background: var(--mist-2); text-decoration: none; }
.tile img, .cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover img, .cat:hover img { transform: scale(1.04); }
.tile--tall { grid-row: span 2; }
.tile--dark { background: var(--forest); color: #fff; padding: 26px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.tile--dark h2 { color: #fff; font-size: 20px; line-height: 1.3; }
.tile--dark p { color: #efe6d8; font-size: 15px; line-height: 1.55; margin-bottom: 6px; }
.tile__label { position: absolute; left: 14px; top: 14px; max-width: calc(100% - 28px); background: #fff; border-radius: 10px; padding: 10px 16px; display: grid; gap: 2px; }
.tile__label b { color: var(--forest); font-size: 16px; line-height: 1.3; }
.tile__label small { font-size: 14px; color: var(--muted); }
.tile__go { position: absolute; left: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--forest); display: grid; place-items: center; transition: background .2s, color .2s; }
.tile__go svg { width: 20px; height: 20px; }
.tile:hover .tile__go { background: var(--brand); color: #fff; }

/* product cards */
.grid { --cols: 4; --gap: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.grid > .card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s; scroll-margin-top: 24px; }
.card:hover, .card:focus-within { box-shadow: 0 14px 34px rgb(43 31 23 / .1); transform: translateY(-3px); }
.card__img { aspect-ratio: 1; background: var(--mist); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 22px 20px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; flex: 1; }
.card h3 { font-size: 17px; font-weight: 600; line-height: 1.5; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card__cat { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.card__desc { font-size: 14.5px; line-height: 1.55; margin-top: 6px; }
.card__foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.card .btn { position: relative; z-index: 2; }
.price { font-weight: 600; color: var(--forest); font-size: 16px; }
.price--ask { font-weight: 500; color: var(--muted); }

/* dark category panel */
.dark { padding-top: clamp(40px, 6vw, 70px); }
.dark__panel { background: var(--forest); border-radius: var(--r-panel); padding: clamp(20px, 3.5vw, 50px); display: grid; gap: clamp(20px, 3vw, 30px); }
.cats__intro h2 { color: #fff; font-size: clamp(25px, 2.4vw, 30px); }
.cats__intro p { color: #efe6d8; margin-top: 10px; max-width: 46ch; }
.cats { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; gap: 20px; }
.cat { position: relative; display: block; border-radius: var(--r-tile); overflow: hidden; background: var(--brand-2); text-decoration: none; }
.cat .tile__label { top: auto; bottom: 14px; }
/* first category is the big frame; the rest stack beside it (counts 1 to 6, else an even grid) */
.cats .cat:first-child { grid-row: span 2; }
.cats:has(.cat:only-child) .cat { grid-column: 1 / -1; }
.cats:has(.cat:nth-child(2):last-child) .cat { grid-row: span 2; }
.cats:has(.cat:nth-child(4)) .cat:first-child { grid-row: span 3; }
.cats:has(.cat:nth-child(5)) .cat:first-child { grid-row: span 4; }
.cats:has(.cat:nth-child(6)) .cat:first-child { grid-row: span 5; }
.cats:has(.cat:nth-child(7)) .cat:first-child { grid-row: auto; }
.cats:has(.cat:nth-child(7)) { grid-auto-rows: 220px; }
.cats:has(.cat:nth-child(5)) { grid-auto-rows: 190px; }

/* promos, feature, steps */
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.promo { background: var(--forest); border-radius: var(--r-tile); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.promo h3 { color: #fff; font-size: 20px; }
.promo p { color: #efe6d8; font-size: 15px; line-height: 1.6; margin-bottom: 8px; }
.promo .btn { margin-top: auto; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 75px); align-items: center; padding-top: clamp(40px, 6vw, 70px); }
.feature__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.feature__copy h2 { font-size: clamp(26px, 2.6vw, 35px); line-height: 1.4; }
.feature__img { border-radius: var(--r-tile); overflow: hidden; aspect-ratio: 724 / 551; background: var(--mist); }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.band { background: var(--mist); margin-top: clamp(40px, 6vw, 70px); padding-block: clamp(36px, 5vw, 56px); }
.band .block__head { margin-bottom: 32px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 30px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--r-card); padding: 26px; display: grid; gap: 8px; align-content: start; }
.steps__n { width: 42px; height: 42px; border-radius: 50%; background: var(--mist-2); color: var(--forest); display: grid; place-items: center; font-weight: 700; }
.steps h3 { font-size: 18px; }
.facts { display: grid; gap: 10px; }
.facts div { display: flex; gap: 14px; flex-wrap: wrap; }
.facts dt { font-weight: 600; color: var(--forest); min-width: 96px; }
.facts dd { margin: 0; }
.facts a { color: var(--brand); font-weight: 500; }

/* about gallery, faq, contact */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.gallery li { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.faq { max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 17px; color: var(--forest); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 24px 22px; }
.faq__cta { margin-top: 28px; }
.empty { background: var(--mist); border-radius: var(--r-panel); padding: 36px; display: grid; gap: 10px; }
.empty h2 { font-size: 22px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 20px; }
.contact__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.contact__card--dark { background: var(--forest); border-color: var(--forest); }
.contact__card h2 { color: #fff; font-size: 25px; }
.contact__card--dark p { color: #efe6d8; }
.facts--stack { gap: 14px; width: 100%; }
.facts--stack a { font-size: 18px; }

/* footer */
.footer { margin-top: clamp(40px, 6vw, 70px); }
.ask__box { background: var(--forest); border-radius: var(--r-panel); padding: clamp(24px, 3.5vw, 44px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.ask__box h2 { color: #fff; font-size: 22px; }
.ask__box p { color: #efe6d8; margin-top: 4px; }
.footer__main { background: var(--mist); margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 64px 36px; }
.footer__about p { margin-top: 12px; max-width: 36ch; font-size: 15px; }
.footer__about .wordmark { padding: 0; }
.footer__main h2 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer li { padding: 3px 0; font-size: 15px; }
.footer li a { text-decoration: none; }
.footer li a:hover { text-decoration: underline; color: var(--brand); }
.footer__notice { font-size: 13px; padding-block: 18px 28px; border-top: 1px solid var(--line); }

/* tablet */
/* full-screen invitation to the 3D customiser (opens saunas.castomo.com in a new tab) */
.inv { position: relative; isolation: isolate; display: flex; align-items: center; min-block-size: 100vh; min-block-size: 100svh; overflow: hidden; background: var(--forest); color: #fff; margin-block: clamp(32px, 5vw, 64px) 0; }
.inv__bg { position: absolute; inset: 0; z-index: -2; inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: cover; object-position: 50% 62%; }
.inv::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(43 31 23 / .88) 0%, rgb(43 31 23 / .72) 55%, rgb(43 31 23 / .5) 100%); }
.inv__in { padding-block: clamp(72px, 10vw, 140px); }
.inv h2 { color: #fff; font-size: clamp(27px, 5.4vw, 76px); line-height: 1.1; letter-spacing: -.02em; text-wrap: initial; }
.inv p { max-width: 36em; margin-top: clamp(18px, 2vw, 26px); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: #f3ece0; }
.inv .btn { margin-top: clamp(26px, 3vw, 40px); min-height: 56px; padding-inline: 34px; }
.inv .btn svg { transition: transform .2s; }
.inv .btn:hover svg { transform: translateX(4px); }
@keyframes inv-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.inv__in > * { animation: inv-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.inv__in > p { animation-delay: .12s; }
.inv__in > .btn { animation-delay: .24s; }
@media (max-width: 1100px) {
  .hero__panel { grid-template-columns: 1fr; }
  .hero__tiles { min-height: 460px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .grid { --cols: 3; }
  .nav__top { display: none; }
  .nav__mid { justify-content: space-between; }
  .wordmark { padding: 14px 0; }
  .nav__toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font: 500 15px var(--font); color: var(--forest); cursor: pointer; }
  .nav__bars, .nav__bars::before { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
  .nav__bars::before { content: ""; top: 6px; position: absolute; left: 0; }
  .nav__bars { margin-bottom: 6px; }
  .nav__panel { display: none; flex: 1 0 100%; padding: 4px 0 24px; border-top: 1px solid var(--line); }
  .is-open .nav__panel { display: block; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__actions { margin-top: 18px; flex-wrap: wrap; }
  .nav__cats { border-top: 0; margin-top: 12px; gap: 8px; }
  .nav__cats a { padding: 8px 16px; background: var(--mist); border-radius: var(--r-pill); font-size: 14px; }
  .nav__where { display: none; }
  .feature { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid { --gap: 16px; --cols: 2; }
  .hero__tiles { grid-template-columns: 1fr; grid-template-rows: 300px 200px auto; min-height: 0; }
  .tile--tall { grid-row: auto; }
  .cats, .cats:has(.cat) { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .cats .cat, .cats:has(.cat) .cat { grid-column: auto; grid-row: auto !important; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 48px 24px; }
  .btn-row .btn { flex: 1 1 auto; }
  .ask__box .btn-row { width: 100%; }
}
@media (max-width: 440px) {
  .grid { --cols: 1 !important; }
}
@media (max-width: 360px) {
  .btn { padding-inline: 20px; }
  .btn--primary { padding-inline: 24px; }
  .card h3 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
}
