/* ==========================================================================
   SOLUM — design system and page styles
   1. Tokens   2. Base   3. Layout   4. Components   5. Site chrome
   6. Home     7. Collection   8. Product   9. Corporate   10. Content pages
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  --forest: #1f3a2d;
  --forest-deep: #14271e;
  --moss: #3d5a45;
  --sage: #8fa58c;
  --sage-light: #c5d1bd;
  --sage-wash: #e6eadd;
  --cream: #f6f1e6;
  --beige: #e7ddcb;
  --sand: #d6c7ad;
  --white: #fffdf8;
  --clay: #9c5f37;

  --ink: #1b2a21;
  --ink-soft: #55645a;
  --line: #ddd4c2;
  --line-dark: rgba(246, 241, 230, .22);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --h4: clamp(1.35rem, 1.2rem + .5vw, 1.6rem);
  --h3: clamp(1.7rem, 1.45rem + 1vw, 2.25rem);
  --h2: clamp(2.3rem, 1.75rem + 2.4vw, 3.75rem);
  --h1: clamp(3rem, 2rem + 4.6vw, 6rem);

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(64px, 8vw, 128px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: var(--h1); font-weight: 400; line-height: .98; }
h2 { font-size: var(--h2); font-weight: 400; }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--cream); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 18px; background: var(--forest); color: var(--cream);
}
.skip-link:focus { top: 8px; }

/* 3. Layout
   ========================================================================== */
.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding-block: var(--section); }
.section--cream { background: var(--cream); }
.section--sage { background: var(--sage-wash); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--tight { padding-block: clamp(48px, 5vw, 80px); }

.grid { display: grid; gap: clamp(16px, 2.2vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 112px); align-items: center;
}
.split--reverse > :first-child { order: 2; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head > div { max-width: 44rem; }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: var(--text-lg); }
.section--forest .section-head p { color: var(--sage-light); }
.section-head--center { justify-content: center; text-align: center; }

.eyebrow {
  display: block; margin-bottom: 16px;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--moss);
}
.on-dark .eyebrow, .section--forest .eyebrow { color: var(--sage-light); }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.6; }
.prose > * + * { margin-top: 20px; }
.prose p { color: var(--ink-soft); }
.prose h2 + p, .prose .eyebrow + h2 { margin-top: 0; }
.prose h2 + p { margin-top: 24px; }
.frame { overflow: hidden; background: var(--beige); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* 4. Components
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  border: 1px solid var(--forest); border-radius: var(--radius);
  background: var(--forest); color: var(--cream);
  font-size: var(--text-sm); font-weight: 500; letter-spacing: .04em; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.btn--outline { background: transparent; color: var(--forest); }
.btn--outline:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--forest); }
.btn--light:hover { background: var(--white); border-color: var(--white); }
.btn--ghost { background: transparent; border-color: rgba(246, 241, 230, .6); color: var(--cream); }
.btn--ghost:hover { background: var(--cream); border-color: var(--cream); color: var(--forest); }
.btn--small { min-height: 44px; padding: 10px 16px; font-size: .8125rem; }
.btn--block { width: 100%; }
.btn--large { min-height: 64px; font-size: var(--text-md); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-block; padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: opacity .2s;
}
.text-link:hover { opacity: .65; }

.badge {
  display: inline-block; padding: 5px 10px;
  background: var(--white); color: var(--forest);
  font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
}
.badge--sale { background: var(--clay); color: var(--white); }
.badge--dark { background: var(--forest); color: var(--cream); }

.stars { color: var(--clay); font-size: var(--text-sm); letter-spacing: .08em; }

/* Product card */
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--beige); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card__badge { position: absolute; top: 12px; left: 12px; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding-top: 16px; }
.card__title { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); line-height: 1.15; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card__desc { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.5; }
.card__meta { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: var(--text-xs); }
.card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; font-weight: 500; }
.price-old { color: var(--ink-soft); font-size: var(--text-sm); font-weight: 400; text-decoration: line-through; }
.card .btn { margin-top: 12px; }

/* Category tile with caption over image */
.tile { display: flex; flex-direction: column; overflow: hidden; color: var(--cream); text-decoration: none; background: var(--forest); }
.tile img { width: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.035); }
.tile__caption {
  position: relative; flex: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding: clamp(14px, 1.6vw, 22px) clamp(14px, 1.8vw, 24px);
  background: var(--forest);
}
.tile__caption small { display: block; margin-top: 6px; font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: .03em; opacity: .9; }
.tile__arrow { flex: none; font-size: 1.25rem; line-height: 1.2; transition: transform .3s var(--ease); }
.tile:hover .tile__arrow { transform: translateX(4px); }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(16px, 2vw, 28px); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 500; }
.field label span { color: var(--clay); }
.input {
  width: 100%; min-height: 52px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #75817a; }
.input:hover { border-color: var(--sage); }
.input:focus { border-color: var(--forest); box-shadow: 0 0 0 1px var(--forest); outline: none; }
textarea.input { min-height: 132px; resize: vertical; }
select.input {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231f3a2d' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.form-note { color: var(--ink-soft); font-size: var(--text-xs); text-align: center; }

/* Breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--text-xs); letter-spacing: .03em; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .55; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { opacity: .75; }

/* Page hero */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(380px, 52vw, 620px); background: var(--forest); color: var(--cream); overflow: hidden; }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero picture { position: absolute; inset: 0; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 39, 30, .8), rgba(20, 39, 30, .08) 72%); }
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(32px, 5vw, 72px); }
.page-hero h1 { max-width: 14ch; margin-top: 16px; }
.page-hero p { max-width: 40rem; margin-top: 20px; }
.page-hero--light { color: var(--ink); background: var(--beige); }
.page-hero--light::after { background: linear-gradient(to right, rgba(231, 221, 203, .92) 35%, rgba(231, 221, 203, 0) 70%); }
.page-hero--light .eyebrow { color: var(--moss); }

/* Stats */
.stat { padding-top: 20px; border-top: 1px solid var(--line-dark); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2.4vw, 4.25rem); font-weight: 400; line-height: 1; }
.stat span { display: block; margin-top: 12px; color: var(--sage-light); font-size: var(--text-sm); line-height: 1.5; }
.stat--light { border-color: var(--line); }
.stat--light span { color: var(--ink-soft); }

/* Numbered feature list */
.feature { padding-top: 20px; border-top: 1px solid var(--line); }
.feature__num { display: block; margin-bottom: 28px; font-family: var(--font-display); font-size: var(--text-lg); font-style: italic; color: var(--moss); }
.feature h3 { font-size: var(--h4); }
.feature p { margin-top: 10px; color: var(--ink-soft); font-size: var(--text-sm); }
.section--forest .feature { border-color: var(--line-dark); }
.section--forest .feature__num { color: var(--sage-light); }
.section--forest .feature p { color: var(--sage-light); }

/* Accordion */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--h4); line-height: 1.2;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; flex: none; font-family: var(--font-body); font-size: 1.25rem; font-weight: 300; }
.accordion details[open] summary::after { content: "\2212"; }
.accordion__body { padding-bottom: 22px; color: var(--ink-soft); }
.accordion__body > * + * { margin-top: 12px; }

/* 5. Site chrome
   ========================================================================== */
.announcement {
  padding: 9px var(--gutter); background: var(--forest-deep); color: var(--cream);
  font-size: var(--text-xs); letter-spacing: .05em; text-align: center;
}
.announcement a { text-underline-offset: 2px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  min-height: 76px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; letter-spacing: .24em; line-height: 1;
  text-decoration: none; color: var(--forest);
}
.logo svg { width: 22px; height: 22px; flex: none; }
.logo span { margin-right: -.24em; }
.nav ul { display: flex; gap: clamp(16px, 2vw, 30px); }
.nav a {
  position: relative; display: block; padding: 8px 0;
  font-size: var(--text-sm); text-decoration: none; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; gap: 4px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: var(--forest); text-decoration: none;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { color: var(--moss); }
.cart-count {
  position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; border-radius: 50%;
  background: var(--forest); color: var(--cream);
  font-size: .625rem; font-weight: 600; line-height: 17px; text-align: center;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn { display: none; }

.site-footer { background: var(--forest-deep); color: var(--cream); padding-top: clamp(56px, 6vw, 96px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(32px, 4vw, 64px); }
.footer-brand .logo { color: var(--cream); }
.footer-brand p { max-width: 24rem; margin-top: 20px; color: var(--sage-light); font-size: var(--text-sm); }
.footer-col h2 { margin-bottom: 18px; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-light); }
.footer-col li + li { margin-top: 6px; }
.footer-col a { display: inline-block; padding: 3px 0; font-size: var(--text-sm); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: clamp(40px, 5vw, 72px); padding-block: 22px;
  border-top: 1px solid var(--line-dark); color: var(--sage-light); font-size: var(--text-xs);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* 6. Home
   ========================================================================== */
.hero { position: relative; display: flex; align-items: center; min-height: min(calc(100vh - 112px), 860px); background: var(--forest-deep); color: var(--cream); overflow: hidden; }
.hero picture { position: absolute; inset: 0; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__inner { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 120px); }
.hero__copy { max-width: 36rem; }
.hero h1 em { font-weight: 300; }
.hero .lede { max-width: 30rem; margin-top: 24px; color: var(--sage-wash); }
.hero .btn-row { margin-top: 36px; }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.category-grid .tile img { aspect-ratio: 4 / 5; }
.category-grid .tile:nth-child(even) { margin-top: clamp(0px, 4vw, 56px); }
.category-grid h3 { font-size: var(--h4); }

.story__media { aspect-ratio: 5 / 6; }
.story__note { display: flex; gap: clamp(24px, 4vw, 56px); margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.story__note strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1.1; }
.story__note span { color: var(--ink-soft); font-size: var(--text-sm); }

.promo { position: relative; display: flex; align-items: center; min-height: clamp(460px, 42vw, 620px); background: var(--moss); color: var(--cream); overflow: hidden; }
.promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.promo__inner { position: relative; z-index: 1; padding-block: 56px; }
.promo__copy { max-width: 34rem; }
.promo p { margin: 20px 0 32px; color: var(--sage-wash); }

.quote { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 40px); background: var(--white); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 1.25rem + .45vw, 1.65rem); line-height: 1.28; }
.quote footer { margin-top: auto; font-size: var(--text-sm); }
.quote footer span { display: block; color: var(--ink-soft); font-size: var(--text-xs); }

.newsletter { text-align: center; }
.newsletter p { max-width: 34rem; margin: 18px auto 0; color: var(--ink-soft); }
.newsletter-form { display: flex; gap: 8px; max-width: 520px; margin: 32px auto 0; }
.newsletter-form .input { flex: 1; min-width: 0; }
.newsletter small { display: block; margin-top: 14px; color: var(--ink-soft); font-size: var(--text-xs); }

/* 7. Collection
   ========================================================================== */
.collection-head { background: var(--sage-wash); }
.collection-head__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; min-height: clamp(260px, 26vw, 400px); padding-block: 32px; }
.collection-head h1 { margin-top: 20px; font-size: clamp(2.8rem, 2rem + 3.6vw, 5rem); }
.collection-head p { max-width: 30rem; margin-top: 16px; color: var(--ink-soft); }
.collection-head__art { display: flex; justify-content: flex-end; gap: 12px; }
.collection-head__art img { width: min(46%, 220px); aspect-ratio: 4 / 5; object-fit: cover; }
.collection-head__art img:last-child { margin-top: 32px; }

.collection { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); padding-block: clamp(32px, 4vw, 56px) var(--section); }
.filter-toggle { position: absolute; opacity: 0; pointer-events: none; }
.filter-btn { display: none; }
.filter-group { padding-block: 20px; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group h2 { margin-bottom: 12px; font-size: 1.3rem; }
.check { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: var(--text-sm); cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--forest); }
.check small { margin-left: auto; color: var(--ink-soft); font-size: var(--text-xs); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: block; min-width: 44px; padding: 8px 14px; border: 1px solid var(--line);
  font-size: var(--text-sm); line-height: 1.4; text-align: center; transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover span { border-color: var(--forest); }
.chip input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.chip input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 2px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.toolbar__count { color: var(--ink-soft); font-size: var(--text-sm); }
.toolbar__sort { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); }
.toolbar__sort label { white-space: nowrap; }
.toolbar__sort .input { width: auto; min-height: 44px; padding-block: 8px; }
.product-grid { row-gap: clamp(32px, 4vw, 56px); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin-top: clamp(40px, 5vw, 72px); }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding-inline: 8px;
  font-size: var(--text-sm); text-decoration: none;
}
.pagination a:hover { background: var(--sage-wash); }
.pagination [aria-current] { background: var(--forest); color: var(--cream); }

/* 8. Product
   ========================================================================== */
.pdp { padding-block: 24px var(--section); }
.pdp .breadcrumb { margin-bottom: 24px; }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; position: sticky; top: 100px; }
.gallery input { position: absolute; opacity: 0; pointer-events: none; }
.gallery__main { grid-column: 2; grid-row: 1; position: relative; aspect-ratio: 4 / 5; background: var(--beige); overflow: hidden; }
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.gallery__thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.gallery__thumbs label { display: block; aspect-ratio: 4 / 5; overflow: hidden; cursor: pointer; opacity: .65; outline: 1px solid transparent; outline-offset: 2px; transition: opacity .2s; }
.gallery__thumbs label:hover { opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
#g1:checked ~ .gallery__main img:nth-child(1), #g2:checked ~ .gallery__main img:nth-child(2),
#g3:checked ~ .gallery__main img:nth-child(3), #g4:checked ~ .gallery__main img:nth-child(4) { opacity: 1; }
#g1:checked ~ .gallery__thumbs label:nth-child(1), #g2:checked ~ .gallery__thumbs label:nth-child(2),
#g3:checked ~ .gallery__thumbs label:nth-child(3), #g4:checked ~ .gallery__thumbs label:nth-child(4) { opacity: 1; outline-color: var(--forest); }
#g1:focus-visible ~ .gallery__thumbs label:nth-child(1), #g2:focus-visible ~ .gallery__thumbs label:nth-child(2),
#g3:focus-visible ~ .gallery__thumbs label:nth-child(3), #g4:focus-visible ~ .gallery__thumbs label:nth-child(4) { outline: 2px solid var(--forest); }
.gallery__badge { position: absolute; top: 14px; left: 14px; z-index: 1; }

.buybox h1 { font-size: clamp(2.5rem, 2rem + 2.2vw, 4rem); line-height: 1.02; }
.buybox__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; font-size: var(--text-sm); }
.buybox__rating a { color: var(--ink-soft); text-underline-offset: 3px; }
.buybox__price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.buybox__price strong { font-family: var(--font-display); font-size: 2.1rem; font-weight: 500; line-height: 1; }
.buybox__price .price-old { font-size: var(--text-md); }
.buybox__intro { margin-top: 20px; color: var(--ink-soft); }
.option { margin: 28px 0 0; padding: 0; border: 0; }
.option legend { padding: 0; margin-bottom: 10px; font-size: var(--text-sm); font-weight: 500; }
.option legend span { color: var(--ink-soft); font-weight: 400; }
.buy-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin-top: 28px; }
.qty { display: flex; align-items: stretch; border: 1px solid var(--forest); }
.qty button { width: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: var(--sage-wash); }
.qty input { width: 44px; border: 0; background: none; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { appearance: none; }
.assurances { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--ink-soft); }
.assurances li { display: flex; gap: 10px; }
.assurances li::before { content: "\2713"; color: var(--moss); }
.buybox .accordion { margin-top: 32px; }
.ingredient-list li { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; border-bottom: 1px dotted var(--line); font-size: var(--text-sm); }
.ingredient-list span:last-child { color: var(--ink-soft); text-align: right; }

.reviews { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.reviews__score { font-family: var(--font-display); font-size: 5rem; line-height: 1; }
.bars { display: grid; gap: 8px; margin: 24px 0 28px; font-size: var(--text-xs); }
.bars li { display: grid; grid-template-columns: 26px 1fr 30px; align-items: center; gap: 8px; }
.bars i { display: block; height: 4px; background: var(--beige); }
.bars i b { display: block; height: 100%; background: var(--forest); }
.review { padding-block: 24px; border-bottom: 1px solid var(--line); }
.review:first-child { padding-top: 0; }
.review h3 { margin-top: 8px; font-size: var(--h4); }
.review p { margin-top: 8px; color: var(--ink-soft); }
.review small { display: block; margin-top: 12px; color: var(--ink-soft); font-size: var(--text-xs); }

/* 9. Corporate
   ========================================================================== */
.corp-hero { min-height: min(calc(100vh - 112px), 820px); align-items: center; background: var(--forest-deep); }
.corp-hero::after { display: none; }
.corp-hero .page-hero__img { object-position: 75% 50%; }
.corp-hero h1 { max-width: 12ch; }
.corp-hero .btn { margin-top: 32px; }
.corp-hero p { max-width: 32rem; color: var(--sage-wash); }
.corp-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.corp-cats .tile img { aspect-ratio: 1 / 1; }
.corp-cats h3 { font-size: var(--h4); }

.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px clamp(32px, 6vw, 88px); font-family: var(--font-display); font-size: 1.5rem; color: var(--moss); }
.logos__label { width: 100%; color: var(--ink-soft); font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: .14em; text-align: center; text-transform: uppercase; }

.steps { counter-reset: step; }
.enquiry { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); background: var(--white); }
.enquiry__aside { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 64px); background: var(--forest); color: var(--cream); }
.enquiry__aside h2 { font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3.25rem); }
.enquiry__aside p { margin-top: 18px; color: var(--sage-light); }
.enquiry__list { display: grid; gap: 20px; margin-top: 36px; }
.enquiry__list li { padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: var(--text-sm); }
.enquiry__list strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.enquiry__list span { color: var(--sage-light); }
.enquiry__contact { margin-top: auto; padding-top: 36px; font-size: var(--text-sm); }
.enquiry__contact a { text-underline-offset: 3px; }
.enquiry__form { padding: clamp(24px, 4vw, 64px); }

/* 10. Content pages
   ========================================================================== */
.timeline { border-top: 1px solid var(--line-dark); }
.timeline li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line-dark); }
.timeline strong { font-family: var(--font-display); font-size: 2rem; font-weight: 400; line-height: 1.1; }
.timeline p { color: var(--sage-light); }
.timeline h3 { margin-bottom: 6px; font-size: var(--h4); }

.statement { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.4rem); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--text-sm); text-align: left; }
.table th, .table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.table tbody th { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact-list { display: grid; gap: 24px; }
.contact-list li { padding-top: 16px; border-top: 1px solid var(--line); }
.contact-list h2 { margin-bottom: 8px; font-size: var(--h4); }
.contact-list p, .contact-list a { color: var(--ink-soft); font-size: var(--text-sm); }
.contact-form-panel { padding: clamp(24px, 4vw, 56px); background: var(--cream); }
.contact-form-panel > h2 { margin-bottom: 28px; font-size: var(--h3); }

/* Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-header__inner { grid-template-columns: 1fr auto 1fr; min-height: 68px; gap: 8px; }
  .nav-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; cursor: pointer; }
  .nav-btn span { display: block; width: 24px; height: 1px; background: var(--forest); transition: transform .25s var(--ease), opacity .2s; }
  .nav-toggle:focus-visible ~ .nav-btn { outline: 2px solid var(--forest); }
  .nav-toggle:checked ~ .nav-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; padding: 8px var(--gutter) 28px;
    background: var(--white); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav ul { display: block; }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { padding: 14px 0; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { font-style: italic; }
  .logo { grid-column: 2; }
  .header-actions { grid-column: 3; grid-row: 1; }
  .nav-btn { grid-column: 1; grid-row: 1; }
  .logo { grid-row: 1; }
  .collection { grid-template-columns: 210px minmax(0, 1fr); }
  .reviews { grid-template-columns: 240px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3.grid--stack-md { grid-template-columns: minmax(0, 1fr); }
  .split, .contact-grid, .enquiry, .reviews { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
  .story__media { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .corp-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid .tile:nth-child(even) { margin-top: 0; }

  .collection { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .filter-btn { display: inline-flex; margin-bottom: 16px; }
  .filter-toggle:focus-visible ~ .filter-btn { outline: 2px solid var(--forest); outline-offset: 2px; }
  .filters { display: none; margin-bottom: 28px; padding: 20px; background: var(--cream); }
  .filter-toggle:checked ~ .filters { display: block; }

  .pdp__grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; grid-template-columns: minmax(0, 1fr); }
  .gallery__main { grid-column: 1; grid-row: 1; }
  .gallery__thumbs { grid-column: 1; grid-row: 2; flex-direction: row; }
  .gallery__thumbs label { flex: 1; max-width: 96px; }
  .timeline li { grid-template-columns: 100px minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .section-head { display: block; }
  .section-head .text-link { margin-top: 16px; }
  .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--stack-sm { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .site-header__inner { min-height: 60px; }
  .logo { font-size: 1.4rem; gap: 8px; letter-spacing: .2em; }
  .logo svg { width: 18px; height: 18px; }
  .header-actions .icon-btn--search { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card .btn { padding-inline: 8px; }

  .hero .btn-row { flex-direction: column; }
  .hero .btn-row .btn { width: 100%; }
  .corp-hero .btn { width: 100%; }

  .promo { align-items: flex-start; min-height: 600px; }
  .promo > img { object-position: 82% 100%; }
  .promo__inner { padding-block: 40px; }
  .page-hero--light::after { background: linear-gradient(to top, rgba(231, 221, 203, .95) 45%, rgba(231, 221, 203, .1) 90%); }

  .collection-head__inner { grid-template-columns: minmax(0, 1fr); }
  .collection-head__art { display: none; }
  .toolbar { flex-wrap: wrap; }
  .newsletter-form { flex-direction: column; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .buy-row { grid-template-columns: minmax(0, 1fr); }
  .qty { justify-content: space-between; min-height: 52px; }
  .qty button { width: 56px; }
  .story__note { flex-wrap: wrap; }
}

/* Narrow landscape: keep hero copy legible where it nears the products */
@media (max-width: 1280px) {
  .hero::before, .corp-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to right, rgba(20, 39, 30, .82) 30%, rgba(20, 39, 30, 0) 68%);
  }
  .hero__inner, .corp-hero .page-hero__inner { z-index: 2; }
}

/* Portrait heroes: copy in flow on top, square product composition below.
   Matches the <source media> on the hero and corporate pictures. */
@media (max-width: 640px), (max-width: 1024px) and (orientation: portrait) {
  .hero, .corp-hero { flex-direction: column; align-items: stretch; min-height: 0; background: var(--forest); }
  .hero::before, .corp-hero::before { display: none; }
  .hero picture, .corp-hero picture {
    position: static; order: 2; display: block; margin-top: 8px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%);
    mask-image: linear-gradient(to bottom, transparent, #000 16%);
  }
  .hero img, .corp-hero .page-hero__img { position: static; width: 100%; height: auto; aspect-ratio: 1 / 1; object-position: 50% 100%; }
  .hero__inner, .corp-hero .page-hero__inner { padding-block: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 11. Cart
   ========================================================================== */
.cart { padding-block: 24px var(--section); }
.cart h1 { margin-top: 24px; font-size: clamp(2.8rem, 2rem + 3.6vw, 5rem); }
.cart__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(24px, 3vw, 48px); }
.ship-note { padding-bottom: 20px; font-size: var(--text-sm); }
.ship-note__bar { height: 4px; margin-top: 10px; background: var(--beige); }
.ship-note__bar span { display: block; height: 100%; background: var(--forest); }
.cart-lines { margin-bottom: 28px; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: clamp(88px, 12vw, 140px) minmax(0, 1fr) auto; gap: clamp(14px, 2vw, 28px); padding-block: 24px; border-bottom: 1px solid var(--line); }
.cart-line__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--beige); }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h2 { font-size: var(--h4); }
.cart-line h2 a { text-decoration: none; }
.cart-line h2 a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cart-line__info > p { margin-top: 6px; color: var(--ink-soft); font-size: var(--text-sm); }
.cart-line__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.qty--small { min-height: 44px; }
.cart-line__remove { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-soft); font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart-line__remove:hover { color: var(--ink); }
.cart-line__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-weight: 500; white-space: nowrap; }
.summary { position: sticky; top: 100px; padding: clamp(24px, 3vw, 40px); background: var(--cream); }
.summary h2 { font-size: var(--h3); }
.summary__rows { margin: 20px 0 24px; font-size: var(--text-sm); }
.summary__rows div { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.summary__rows dt { color: var(--ink-soft); }
.summary__rows dd { margin: 0; text-align: right; }
.summary__rows .summary__total { align-items: baseline; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.summary__total dt { color: var(--ink); font-size: var(--text-md); font-weight: 500; }
.summary__total dd { font-family: var(--font-display); font-size: 2.1rem; font-weight: 500; line-height: 1; }
.summary__code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.summary__note { margin: 20px 0 24px; }
.summary__note textarea.input { min-height: 88px; }
.summary .form-note { margin-top: 12px; }
.summary__corp { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--text-sm); text-align: center; }
.summary__corp a { text-underline-offset: 3px; }

@media (max-width: 900px) {
  .cart__grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .cart-line { grid-template-columns: 88px minmax(0, 1fr); }
  .cart-line__price { grid-column: 2; grid-row: 2; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 8px; }
  .cart-line__img { grid-row: 1 / span 2; align-self: start; }
}

.tpl-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:7px var(--gutter);background:#16201b;color:#fff;font:400 12px/1.4 Arial,sans-serif}.tpl-bar a{color:#fff;font-weight:700}
