/* ==========================================================================
   Dreamland Co. – styles
   Mobile-first. Palette taken from the embroidered logo.
   ========================================================================== */

:root {
  --navy: #1F4E79;
  --navy-deep: #163A5C;
  --navy-ink: #17324D;
  --copper: #B87333;
  --copper-ink: #8E5320;   /* copper dark enough for text on white */
  --cream: #FAF7F2;
  --cream-deep: #F3EEE6;
  --stone: #E6E3DF;        /* echoes the tufted headboard */
  --grey: #6B6F75;
  --text: #2A2F36;
  --white: #FFFFFF;
  --line: #E4DFD7;

  /* Firmness accents: product use only */
  --c-blue: #2C6CB0;
  --c-green: #2E8550;
  --c-orange: #E0761C;
  --c-red: #C2352B;

  --wa: #1E9E50;
  --wa-dark: #157A3D;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 50, 77, .06), 0 8px 24px rgba(23, 50, 77, .07);
  --header-h: 64px;
  --gutter: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  font-variant-numeric: lining-nums;
}
h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--copper-ink); }

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol { padding: 0; margin: 0; list-style: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow { max-width: 760px; }

.small { font-size: .875rem; }
.muted { color: var(--grey); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper-ink);
  margin-bottom: .75em;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 50px;
  padding: .75em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: .55em 1.05em; font-size: .92rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); color: var(--white); }

.btn-whatsapp { background: var(--wa-dark); color: var(--white); }
.btn-whatsapp:hover { background: #10652F; color: var(--white); }

.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Dots ---------- */

.dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  flex: none;
  background: var(--grey);
}
.dot-blue { background: var(--c-blue); }
.dot-green { background: var(--c-green); }
.dot-orange { background: var(--c-orange); }
.dot-red { background: var(--c-red); }
.dot-copper { background: var(--copper); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 12px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--navy);
  text-decoration: none;
}
.wordmark:hover { color: var(--navy); }
.wordmark-moon { width: 28px; height: 28px; color: var(--copper); }
.wordmark-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark-co { color: var(--copper-ink); }
.wordmark-light { color: var(--white); }
.wordmark-light .wordmark-co { color: #E2B489; }
.wordmark-light .wordmark-moon { color: #D9955A; }

.header-actions { display: flex; align-items: center; gap: 6px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  color: var(--grey);
  font-size: .9rem;
}
.lang-toggle button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: none;
  font: 600 .9rem var(--font-sans);
  color: var(--grey);
  cursor: pointer;
  border-radius: 8px;
}
.lang-toggle button[aria-pressed="true"] { color: var(--navy); text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 5px; }

@media (max-width: 399px) {
  .header-inner { gap: 4px; }
  .wordmark { gap: 6px; }
  .wordmark-moon { width: 22px; height: 22px; }
  .wordmark-text { font-size: .95rem; letter-spacing: .04em; }
  .header-actions { gap: 0; }
  .lang-toggle button { min-width: 38px; }
}

/* Tabs: own row under the logo on phones, same row as the logo from 820px */
.header-inner { flex-wrap: wrap; row-gap: 0; }
.site-nav {
  order: 3;
  margin: 0 calc(var(--gutter) * -1);
  width: calc(100% + var(--gutter) * 2);
  border-top: 1px solid var(--line);
}
.site-nav ul {
  display: flex;
  justify-content: space-between;
  padding: 0 calc(var(--gutter) - 8px);
}
.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-weight: 500;
  font-size: .95rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--navy-ink);
}
.site-nav a:hover { color: var(--copper-ink); }
.site-nav a[aria-current="page"] { color: var(--copper-ink); font-weight: 600; }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--copper);
}

@media (max-width: 819px) {
  html { scroll-padding-top: calc(var(--header-h) + 52px); } /* header is two rows here */
}

@media (min-width: 820px) {
  .header-inner { flex-wrap: nowrap; }
  .site-nav { order: 2; width: auto; margin: 0 0 0 auto; border: 0; }
  .header-actions { order: 3; }
  .site-nav ul { gap: 4px; padding: 0; margin-right: 12px; }
  .site-nav a { padding: 10px 14px; border-radius: 8px; }
  .site-nav a[aria-current="page"]::after { left: 14px; right: 14px; bottom: 4px; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: 32px 0 48px;
}
.hero-inner { display: grid; gap: 28px; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: 1.1rem; color: #474D55; max-width: 34em; margin-bottom: 1.5em; }
.hero-media { margin: 0; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hero-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  font-size: .9rem;
  color: var(--grey);
}
.hero-dots li { display: inline-flex; align-items: center; gap: 7px; }

@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero-inner { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 56px; }
}

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section-tint { background: var(--cream); }
.section-navy { background: var(--navy-ink); color: #E8EEF4; }
.section-navy h2 { color: var(--white); }
.section-navy .eyebrow { color: #E2B489; }

.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p:last-child { color: #4F555D; margin-bottom: 0; }

@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 48px; }
}

/* ---------- Colour code ---------- */

.section-code { background: var(--cream); }

.code-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.code-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 18px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-swatch {
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--swatch);
}
.code-colour {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--swatch-ink, var(--swatch));
}
.code-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  margin: 4px 0 2px;
}
.code-weight { font-size: .95rem; color: var(--grey); }
.code-blue { --swatch: var(--c-blue); }
.code-green { --swatch: var(--c-green); }
.code-orange { --swatch: var(--c-orange); --swatch-ink: #A9530C; }
.code-red { --swatch: var(--c-red); }

.code-scale {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--grey);
}
.code-scale-line {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-green), var(--c-orange), var(--c-red));
}
.code-note { margin-top: 16px; font-size: .9rem; color: var(--grey); }

@media (min-width: 720px) {
  .code-strip { grid-template-columns: repeat(4, 1fr); }
  .code-step { padding: 26px 22px 22px; }
}

/* ---------- Products ---------- */

.product-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--stone);
}
.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}
.product-body h3 { margin-bottom: .3em; font-size: 1.45rem; }
.product-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--grey);
  margin-bottom: 8px;
}
.product-desc { color: #4F555D; font-size: .95rem; }
.price {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: var(--navy);
}

/* ---------- Quiz ---------- */

.quiz { padding: 24px 18px; }
.quiz fieldset,
.order-form fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.quiz legend,
.order-form legend {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  padding: 0;
}
.order-form legend { font-family: var(--font-sans); font-size: .95rem; margin-bottom: 8px; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 500;
  transition: border-color .2s, background-color .2s, color .2s;
}
.choice:hover span { border-color: var(--navy); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 2px; }

.form-error { color: #A52A21; font-weight: 500; }

.quiz-result {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--cream);
  border-left: 5px solid var(--result, var(--navy));
}
.quiz-result:focus { outline: none; }
.quiz-result-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: var(--navy);
  margin-bottom: 6px;
}
.quiz-result-name .dot { width: 18px; height: 18px; }
.quiz .small { margin: 20px 0 0; }

@media (min-width: 640px) { .quiz { padding: 36px; } }

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 36px 24px; } }

.feature h3 { font-size: 1.1rem; margin-bottom: .25em; }
.feature p { font-size: .92rem; color: #4F555D; margin: 0; }
.feature-icon {
  width: 48px; height: 48px;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--copper-ink);
}

.detail-grid {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 720px) { .detail-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.detail { margin: 0; }
.detail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.detail figcaption {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--stone);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 56px 12px;
  border: 0;
  background: rgba(14, 26, 38, .94);
  color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(14, 26, 38, .6); }
.lightbox-figure { margin: 0; max-width: 1200px; width: 100%; }
.lightbox-figure img {
  width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-figure figcaption { text-align: center; margin-top: 12px; font-size: .95rem; color: #D5DCE3; }
.lightbox-btn {
  position: absolute;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: var(--white);
  cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .26); }
.lightbox-btn svg { width: 24px; height: 24px; }
.lightbox-close { top: 8px; right: 8px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 719px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 8px; transform: none; }
  .lightbox-prev { left: calc(50% - 56px); }
  .lightbox-next { right: calc(50% - 56px); }
}

/* ---------- Stockists ---------- */

.stockist-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) { .stockist-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stockist-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.stockist { padding: 20px; }
.stockist h3 { font-size: 1.2rem; margin-bottom: .2em; }
.stockist-town {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--grey);
  margin-bottom: 12px;
}
.stockist-town .icon { color: var(--copper); }
.stockist-phones { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.stockist-phones a,
.person-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cream);
  font-weight: 500;
  text-decoration: none;
  color: var(--navy-ink);
}
.stockist-phones a:hover,
.person-links a:hover { background: var(--cream-deep); color: var(--navy); }

/* ---------- Bulk ---------- */

.bulk-inner { display: grid; gap: 32px; align-items: center; }
.bulk-copy p { color: #D3DDE7; }
.tick-list { margin: 0 0 28px; display: grid; gap: 10px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; }
.tick-list .icon { color: #E2B489; margin-top: .2em; }
.tick-list-dark .icon { color: var(--copper); }
.bulk-media { margin: 0; }
.bulk-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) { .bulk-inner { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ---------- Contact ---------- */

.contact-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1.25fr; gap: 32px; } }

.person { padding: 22px; }
.person h3 { font-size: 1.3rem; }
.person-links { display: grid; gap: 8px; }
.person-links a { width: 100%; border-radius: var(--radius-sm); word-break: break-all; }
.person-links .icon { color: var(--copper-ink); }
.person-links li:first-child .icon { color: var(--wa-dark); }

.order-form { padding: 24px 18px; }
@media (min-width: 640px) { .order-form { padding: 32px; } }
.order-form h3 { font-size: 1.45rem; margin-bottom: .25em; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--navy-ink); }
.field-row { display: grid; grid-template-columns: 1fr 96px; gap: 12px; }

input[type="text"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #CFC8BD;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font: 400 1rem var(--font-sans);   /* 16px stops iOS zooming on focus */
}
textarea { resize: vertical; min-height: 96px; }
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 3px solid var(--copper); outline-offset: 1px; border-color: var(--navy); }
[aria-invalid="true"] { border-color: #A52A21; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-ink);
  color: #C9D4DF;
  padding: 56px 0 96px;   /* bottom room for the floating WhatsApp button */
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #E2B489; }
.footer-inner { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; } .site-footer { padding-bottom: 40px; } }
.footer-tagline { font-family: var(--font-serif); font-size: 1.15rem; color: var(--white); margin: 8px 0; }
.footer-head { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #E2B489; margin-bottom: 12px; }
.footer-links { display: grid; gap: 6px; }
.footer-links a { display: inline-block; padding: 4px 0; }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-base p { margin: 0; }

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wa-dark);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transition: transform .2s;
}
.wa-float:hover { color: var(--white); transform: scale(1.05); }
.wa-float svg { width: 32px; height: 32px; }
@media (min-width: 1024px) { .wa-float { display: none; } }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .gallery-item:hover img { transform: none; }
}


/* ==========================================================================
   Multi-page additions
   ========================================================================== */

.btn-outline { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.text-link { font-weight: 600; color: var(--copper-ink); }

.section-tight { padding: 48px 0; }
.section-flush-top { padding-top: 0; }
@media (min-width: 900px) { .section-tight { padding: 64px 0; } }

/* ---------- Inner page header ---------- */

.page-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: 40px 0;
}
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); max-width: 18em; }
.page-hero .lead { font-size: 1.1rem; color: #474D55; max-width: 38em; margin-bottom: 0; }
@media (min-width: 900px) { .page-hero { padding: 72px 0 56px; } }

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.jump-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  color: var(--navy-ink);
}
.jump-links a:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Product cards (home) ---------- */

@media (min-width: 1150px) { .product-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.product-grid-5 .product-body { padding: 16px 16px 18px; }
.product-grid-5 .product-desc { margin-bottom: .75em; }
.product-card .price { margin-top: auto; margin-bottom: 14px; }
.product-actions { display: grid; gap: 8px; }
.product-actions .btn { width: 100%; padding-left: .6em; padding-right: .6em; font-size: .88rem; white-space: nowrap; gap: .45em; }

.meter { display: inline-flex; gap: 4px; vertical-align: middle; margin-bottom: 10px; }
.pip {
  width: 18px; height: 6px;
  border-radius: 3px;
  background: var(--stone);
}
.pip.on { background: var(--accent, var(--navy)); }

/* ---------- Product detail sections ---------- */

.product-detail {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: -32px; /* html scroll-padding clears the header; skip some of the section's own padding */
}
.product-detail:first-child { border-top: 0; padding-top: 16px; }
.pd-inner { display: grid; gap: 28px; align-items: start; }
.pd-media > picture img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border-top: 5px solid var(--accent);
  box-shadow: var(--shadow);
}
.pd-thumb { margin-top: 12px; max-width: 46%; }
.pd-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.pd-eyebrow { display: flex; align-items: center; gap: 8px; }
.pd-info h2 { margin-bottom: .2em; }
.pd-info .lead { font-size: 1.1rem; color: #474D55; }
.pd-info h3 { font-size: 1.1rem; margin: 0 0 .6em; }

.pd-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0 0 28px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.pd-specs > div { background: var(--white); padding: 12px 14px; }
.pd-specs dt { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.pd-specs dd { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 500; }
.pd-specs .meter { margin: 0; }
.pd-specs .price { font-size: 1.5rem; margin: 0; }

.pd-columns { display: grid; gap: 24px; margin-bottom: 24px; }
.pd-features { display: grid; gap: 8px; }
.pd-features li { display: flex; align-items: center; gap: 10px; }
.pd-features .icon { width: 22px; height: 22px; color: var(--copper-ink); }
.pd-info .tick-list { margin-bottom: 12px; }
.pd-info .tick-list .icon { color: var(--accent); }

@media (min-width: 640px) {
  .pd-columns { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .product-detail { padding: 80px 0; }
  .pd-inner { grid-template-columns: 1fr 1fr; gap: 56px; }
  .product-detail.is-flipped .pd-media { order: 2; }
  .pd-media { position: sticky; top: calc(var(--header-h) + 24px); }
}

.quiz-result .button-row { margin-top: 8px; }

/* ---------- Call back ---------- */

.callback-inner { display: grid; gap: 32px; align-items: center; }
.callback-copy p { color: #D3DDE7; }
@media (min-width: 900px) { .callback-inner { grid-template-columns: 1fr 1.1fr; gap: 56px; } }

.callback-form, .trade-form { padding: 24px 18px; color: var(--text); }
@media (min-width: 640px) { .callback-form, .trade-form { padding: 32px; } }
.field-row-even { grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 480px) { .field-row-even { grid-template-columns: 1fr 1fr; } }
.field-error { margin: 6px 0 0; font-size: .875rem; font-weight: 500; color: #A52A21; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-privacy { margin: 14px 0 0; }
input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #CFC8BD;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font: 400 1rem var(--font-sans);
}
input[type="email"]:focus-visible { outline: 3px solid var(--copper); outline-offset: 1px; border-color: var(--navy); }
input::placeholder { color: #8B9097; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  background: var(--cream);
}
.form-status.is-success { background: #E6F4EA; color: #14532D; }
.form-status.is-error { background: #FBEAE8; color: #7F1D16; }
.form-status a { display: inline-flex; align-items: center; gap: 6px; color: var(--wa-dark); font-weight: 600; }

/* ---------- Stockist strip (home) ---------- */

.strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.strip-head h2 { margin: 0; }
.stockist-strip {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.strip-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 14px 16px;
  background: var(--white);
}
.strip-item strong { font-family: var(--font-serif); color: var(--navy); font-size: 1.05rem; }
.strip-item .muted { grid-column: 1; font-size: .9rem; }
.strip-item a {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: .92rem;
  color: var(--navy-ink);
}
@media (min-width: 900px) {
  .stockist-strip { grid-template-columns: repeat(5, 1fr); }
  .strip-item { grid-template-columns: 1fr; padding: 18px; }
  .strip-item a { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}

/* ---------- About ---------- */

.story-inner { display: grid; gap: 32px; align-items: center; }
.story-copy p { font-size: 1.05rem; color: #3F454D; }
.story-media { margin: 0; }
.story-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .story-inner { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

.values-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .values-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.value { padding: 24px; }
.value h3 { font-size: 1.2rem; margin-bottom: .3em; }
.value p { margin: 0; color: #4F555D; font-size: .95rem; }

.team-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

/* ---------- Contact ---------- */

.contact-layout h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: .3em; }
.contact-layout > div > p { color: #4F555D; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1fr; gap: 40px; } }
