/* ==========================================================================
   BETTER-LIVING — Global Stylesheet
   Premium outdoor-living manufacturer (B2B export)
   Palette: olive green #2D5016 / sand #C8B89A / charcoal #1A1A2E / off-white #FAF8F3
   ========================================================================== */

:root {
  --green: #2D5016;
  --green-dark: #223C10;
  --green-deep: #182B0B;
  --sand: #C8B89A;
  --sand-light: #D4C5A0;
  --sand-tint: #F2EDE1;
  --charcoal: #1A1A2E;
  --text: #3E3E4E;
  --muted: #6C6C7C;
  --bg: #FAF8F3;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 14px 34px rgba(26, 26, 46, 0.10);
  --shadow-lg: 0 26px 60px rgba(26, 26, 46, 0.16);
  --radius: 8px;
  --header-h: 76px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Type scale — 6 consolidated steps replace ~20 ad-hoc values */
  --fs-xs: 0.75rem;    /* 12px — tiny labels, eyebrow, contact-list strong */
  --fs-sm: 0.875rem;   /* 14px — captions, buttons, links, breadcrumbs, table heads, footer h3 */
  --fs-md: 0.9375rem;  /* 15px — card text, form inputs, spec tables, footer body, feature text */
  --fs-lg: 1.125rem;   /* 18px — lead, hero-sub, section-sub, brand */
  --fs-h3: 1.25rem;    /* 20px — h3 base */
  --fs-h2: 1.5rem;     /* 24px — large h3 variants */
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-dark);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  color: var(--charcoal);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-lg);
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--sand-light);
  color: var(--charcoal);
}

/* Focus states (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(45, 80, 22, 0.45);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 9vw, 104px) 0;
}

.section-white {
  background: var(--white);
}

.section-tint {
  background: var(--sand-tint);
}

.section-dark {
  background: var(--charcoal);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  font-size: var(--fs-lg);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 14px;
}

.lead {
  font-size: var(--fs-lg);
  color: var(--text);
}

.section-cta {
  margin-top: clamp(36px, 5vw, 52px);
  text-align: center;
}

/* Grids */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 28px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.span-2 {
  grid-column: span 2;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.split-copy h2 {
  margin-bottom: 18px;
}

.split-copy .btn {
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 4px;
  border: 2px solid transparent;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease,
    box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 12px 26px rgba(45, 80, 22, 0.3);
}

.btn-outline {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  background: #fff;
  color: var(--green-dark);
}

/* Text link with arrow */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}

.text-link::after {
  content: "\2192";
  transition: transform 0.25s ease;
}

.text-link:hover::after {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 6px 24px rgba(26, 26, 46, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: var(--header-h);
}

.brand {
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  white-space: nowrap;
}

.brand span {
  color: var(--green);
}

.brand:hover {
  color: var(--charcoal);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  font-size: var(--fs-md);
  font-weight: 500;
  color: #434356;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-cta {
  padding: 11px 22px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero (homepage)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 860px);
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(14, 20, 9, 0.82) 0%,
    rgba(14, 20, 9, 0.58) 46%,
    rgba(14, 20, 9, 0.22) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 120px 0 96px;
}

.hero-eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sand-light);
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: var(--fs-lg);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  overflow: hidden;
  color: #fff;
}

.page-hero .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(14, 20, 9, 0.35) 0%,
    rgba(14, 20, 9, 0.78) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 96px 0 56px;
  max-width: 780px;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 16px;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
}

.breadcrumb {
  font-size: var(--fs-sm);
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb .sep {
  margin: 0 8px;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--green-deep);
  color: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 30px 24px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item:first-child {
  border-left: 0;
}

.trust-item strong {
  display: block;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--sand-light);
  margin-bottom: 4px;
}

.trust-item span {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s ease;
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px;
}

.card-body h3 {
  margin-bottom: 10px;
}

.card-body p {
  color: var(--muted);
  font-size: var(--fs-md);
  margin-bottom: 18px;
}

.card-body .text-link {
  margin-top: auto;
}

/* Large product-line cards */
.line-card .card-media {
  aspect-ratio: 16 / 9;
}

.line-card .card-body {
  padding: 32px;
}

.line-card h3 {
  font-size: var(--fs-h2);
}

/* Icon cards (advantages) */
.icon-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.icon-wrap {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(45, 80, 22, 0.1);
  color: var(--green);
  margin-bottom: 20px;
}

.icon-wrap svg {
  width: 26px;
  height: 26px;
}

.icon-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: 10px;
}

.icon-card p {
  color: var(--muted);
  font-size: var(--fs-md);
}

/* --------------------------------------------------------------------------
   Check list & feature items
   -------------------------------------------------------------------------- */
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232D5016" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 40px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-item .tick {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(45, 80, 22, 0.1);
  color: var(--green);
  margin-top: 2px;
}

.feature-item .tick svg {
  width: 16px;
  height: 16px;
}

.feature-item h3 {
  font-size: var(--fs-lg);
  margin-bottom: 4px;
}

.feature-item p {
  color: var(--muted);
  font-size: var(--fs-md);
}

/* --------------------------------------------------------------------------
   Accessories / note strip
   -------------------------------------------------------------------------- */
.note-strip {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.9);
  padding: 26px 0;
  font-size: var(--fs-md);
}

.note-strip strong {
  color: var(--sand-light);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--fs-sm);
  margin-right: 10px;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(72px, 9vw, 100px) 0;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto 34px;
}

.cta-band .btn-ghost {
  border-color: #fff;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 44px;
  padding: clamp(56px, 7vw, 80px) 0 56px;
}

.footer-logo {
  color: #fff;
  font-size: var(--fs-lg);
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--sand-light);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fs-md);
}

.footer-col h3 {
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  padding: 5px 0;
}

.footer-col a:hover {
  color: var(--sand-light);
}

.footer-contact p {
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.62);
}

.contact-person {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-person:first-of-type {
  padding-top: 0;
}

.contact-person:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-name {
  display: block;
  color: var(--sand-light);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.contact-detail {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fs-sm);
  padding: 2px 0;
  line-height: 1.5;
}

.contact-detail a {
  color: rgba(255, 255, 255, 0.78);
  padding: 0;
  display: inline;
}

.contact-detail a:hover {
  color: var(--sand-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Forms (contact page)
   -------------------------------------------------------------------------- */
.contact-split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 36px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}

.form-card > h2 {
  font-size: var(--fs-h2);
  margin-bottom: 8px;
}

.form-intro {
  color: var(--muted);
  font-size: var(--fs-md);
  margin-bottom: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--charcoal);
}

.form-field label .req {
  color: #B3261E;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: var(--fs-md);
  color: var(--charcoal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.14);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #A6A6B2;
}

.form-submit {
  margin-top: 26px;
}

.form-note {
  margin-top: 18px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.form-success {
  background: rgba(45, 80, 22, 0.08);
  border: 1px solid rgba(45, 80, 22, 0.35);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.form-success:focus {
  outline: none;
}

.form-success h3 {
  font-size: var(--fs-h3);
  margin-bottom: 12px;
  color: var(--green-dark);
}

.form-success p {
  color: var(--text);
  max-width: 480px;
  margin: 0 auto;
}

/* Contact info panel */
.contact-panel {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
}

.contact-panel h2 {
  color: #fff;
  font-size: var(--fs-h3);
  margin-bottom: 24px;
}

.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-list li:first-child {
  padding-top: 0;
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list strong {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sand-light);
  margin-bottom: 4px;
}

.contact-list a,
.contact-list span {
  color: #fff;
  font-size: 1rem;
}

.contact-list a:hover {
  color: var(--sand-light);
}

.panel-note {
  margin-top: 26px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.78);
}

/* --------------------------------------------------------------------------
   Stats band (factory page)
   -------------------------------------------------------------------------- */
.stats-band {
  background: var(--green);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 44px 0;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--sand-light);
  margin-bottom: 4px;
}

.stat span {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.8);
}

/* Gallery captions */
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(14, 20, 9, 0.85));
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Quality columns */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.quality-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.quality-card h3 {
  margin-bottom: 12px;
  font-size: var(--fs-lg);
}

.quality-card p {
  color: var(--muted);
  font-size: var(--fs-md);
}

/* --------------------------------------------------------------------------
   Product detail layout (cushion categories)
   -------------------------------------------------------------------------- */
.product-detail {
  margin-bottom: clamp(56px, 7vw, 80px);
  padding-bottom: clamp(56px, 7vw, 80px);
  border-bottom: 1px solid var(--border);
}

.product-detail:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.pd-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-main-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.pd-thumbs img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pd-thumbs img:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

.pd-info h3 {
  font-size: var(--fs-h2);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

.pd-info > p {
  color: var(--muted);
  font-size: var(--fs-md);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive — 1200px
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .container {
    width: 94%;
  }

  .header-inner {
    gap: 24px;
  }

  .main-nav {
    gap: 22px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — 900px
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-media {
    order: -1;
  }

  .grid-3,
  .gallery-grid,
  .quality-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(3) {
    border-left: 0;
  }

  .trust-item {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .trust-item:nth-child(-n + 2) {
    border-top: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .contact-split {
    grid-template-columns: 1fr;
  }

  .pd-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pd-thumbs img {
    height: 100px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Responsive — 768px (mobile navigation)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 190;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: #fff;
    padding: 10px 4% 26px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 44px rgba(26, 26, 46, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav a {
    padding: 15px 4px;
    font-size: 1rem;
    border-bottom: 1px solid #F0EFE8;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav .nav-cta-mobile {
    display: inline-flex;
    margin-top: 18px;
    border-bottom: 0;
    justify-content: center;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 96px 0 72px;
  }

  .hero-sub {
    font-size: var(--fs-md);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 400px;
  }

  /* Mobile typography scale — shrink component text */
  .card-body p,
  .icon-card p,
  .feature-item p,
  .quality-card p,
  .form-intro,
  .site-footer,
  .footer-brand p,
  .spec-table {
    font-size: var(--fs-sm);
  }

  .section-sub,
  .lead,
  .hero-sub,
  .icon-card h3,
  .feature-item h3,
  .quality-card h3 {
    font-size: var(--fs-md);
  }

  .eyebrow {
    font-size: 0.7rem;
  }
}

/* Mobile-only CTA inside nav */
.nav-cta-mobile {
  display: none;
}

/* --------------------------------------------------------------------------
   Responsive — 480px
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .grid-3,
  .grid-4,
  .gallery-grid,
  .quality-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .trust-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 16px;
  }

  .trust-item:first-child {
    border-top: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* Extra-small typography */
  body {
    font-size: 0.9375rem; /* 15px */
  }

  .btn {
    font-size: 0.8rem;
    padding: 13px 24px;
  }

  .gallery-item figcaption {
    font-size: 0.8rem;
    padding: 28px 14px 12px;
  }

  .trust-item span,
  .stat span,
  .footer-bottom-inner,
  .contact-detail,
  .contact-name,
  .form-field label,
  .form-note,
  .panel-note {
    font-size: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   Specification tables
   -------------------------------------------------------------------------- */
.spec-block {
  margin-bottom: clamp(48px, 6vw, 64px);
}

.spec-block:last-child {
  margin-bottom: 0;
}

.spec-block h3 {
  font-size: var(--fs-h3);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

.spec-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-md);
  line-height: 1.55;
  white-space: nowrap;
}

.spec-table th,
.spec-table td {
  padding: 13px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.spec-table thead th {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.spec-table thead th:first-child {
  border-radius: var(--radius) 0 0 0;
}

.spec-table thead th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.spec-table tbody tr:nth-child(even) {
  background: var(--sand-tint);
}

.spec-table tbody td:first-child {
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
}

.spec-table td {
  color: var(--text);
}

/* Allow wrapping on wider screens for readability */
@media (min-width: 768px) {
  .spec-table {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   FAQ section
   -------------------------------------------------------------------------- */
.faq-grid {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color .25s;
}

.faq-item[open] {
  border-color: var(--green);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--green);
  transition: transform .25s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Product detail pages (Phase 3) — parasol model pages
   -------------------------------------------------------------------------- */
.model-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.pd-info h3 {
  margin-bottom: 8px;
  border-bottom: 0;
  padding-bottom: 0;
}

.pd-info .pd-sub {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 18px;
}

.key-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.key-specs li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: var(--fs-sm);
  color: var(--text);
}

.key-specs strong {
  display: block;
  color: var(--green);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.pd-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.dim-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 12px;
}

.dim-figure {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dim-figure img {
  width: 100%;
  height: auto;
}

.dim-figure figcaption {
  padding: 12px 16px;
  font-size: var(--fs-sm);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.dim-note {
  font-size: var(--fs-sm);
  color: var(--muted);
  background: var(--sand-tint);
  border-left: 4px solid var(--sand);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 16px;
}

.model-panel {
  border-top: 1px solid var(--border);
  padding-top: 44px;
}

.model-panel .pd-layout {
  margin-top: 8px;
}

.swatch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 20px;
}

.swatch-list li {
  font-size: var(--fs-sm);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch-list li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--swatch, #ccc);
  flex-shrink: 0;
}

.related-grid {
  margin-top: 8px;
}

.table-note {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: 10px;
}

@media (max-width: 900px) {
  .pd-layout,
  .dim-grid {
    grid-template-columns: 1fr;
  }

  .dim-grid .dim-figure {
    order: -1;
  }
}

@media (max-width: 480px) {
  .key-specs {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Phase 4 — fabric chart & model comparison
   -------------------------------------------------------------------------- */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 12px;
}

.chart-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px 16px;
  box-shadow: var(--shadow-sm);
}

.chart-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 4px;
}

.chart-card .chart-sub {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: 14px;
}

.chart-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-card figcaption {
  font-size: var(--fs-xs);
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
}

.cmp-note {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: 14px;
}

@media (max-width: 900px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }
}
