/* ==========================================================================
   Unique Cabinets & More — shared stylesheet
   No build step. Edit this file directly; it is loaded by every page.
   ========================================================================== */

/* ---- Fonts -------------------------------------------------------------- */

@font-face {
  font-family: 'Fraunces';
  src: url('assets/fonts/Fraunces-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens -------------------------------------------------------- */

:root {
  /* Brand colors — from the logo vector. Do not add colors outside this set. */
  --maroon: #6B2A49;
  --maroon-deep: #4E1E35;
  --teal: #2A7EA0;
  --teal-deep: #1F6480;
  --teal-light: #6BB8D8;   /* same family, lightened for legibility on the dark navy sections */
  --ink: #1F2D3D;
  --bone: #F6F3EF;
  --white: #FFFFFF;

  /* Derived surface/text roles */
  --surface: var(--bone);
  --surface-card: var(--white);
  --surface-dark: var(--ink);
  --text-body: var(--ink);
  --text-on-dark: #F0F1F3;
  --text-muted: #55606E;
  --text-muted-on-dark: #AEB8C4;
  --border-soft: rgba(31, 45, 61, 0.12);
  --border-on-dark: rgba(255, 255, 255, 0.16);

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --step-body: 1.0625rem;       /* 17px */
  --step-lede: 1.25rem;         /* 20px */
  --step-h4: 1.625rem;          /* 26px */
  --step-h3: 2.125rem;          /* 34px */
  --step-h2: 2.75rem;           /* 44px */
  --step-h1: 3.375rem;          /* 54px */
  --step-hero: 4rem;            /* 64px */

  --leading-body: 1.65;
  --leading-tight: 1.15;
  --measure: 70ch;

  /* Space scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --radius-sm: 4px;
  --radius-md: 8px;

  --shadow-card: 0 1px 2px rgba(31, 45, 61, 0.06), 0 8px 24px rgba(31, 45, 61, 0.08);
  --shadow-lift: 0 4px 12px rgba(31, 45, 61, 0.14), 0 16px 40px rgba(31, 45, 61, 0.12);

  --transition-fast: 160ms ease;
  --transition-med: 320ms cubic-bezier(0.22, 1, 0.36, 1);

  --container-max: 1200px;
  --container-narrow: 780px;

  --header-height: 76px;
}

@media (max-width: 640px) {
  :root {
    --step-h4: 1.375rem;
    --step-h3: 1.75rem;
    --step-h2: 2.125rem;
    --step-h1: 2.5rem;
    --step-hero: 2.75rem;
    --header-height: 64px;
  }
}

/* ---- Reset ---------------------------------------------------------------- */

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

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

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

/* height:auto is required — without it the width/height attributes on every <img>
   (which are there to reserve space and prevent layout shift) stretch the image. */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg { display: block; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

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

h1, h2, h3, h4, h5, h6, p, figure, figcaption, dl, dd { margin: 0; }

/* ---- Focus ------------------------------------------------------------- */

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

a:focus-visible, button:focus-visible {
  outline-offset: 4px;
}

/* The standard teal ring is too faint on the dark navy and maroon sections, so those get lighter rings. */
.on-dark :focus-visible,
.site-footer :focus-visible,
.mobile-bar :focus-visible {
  outline-color: var(--teal-light);
}

.convert :focus-visible {
  outline-color: var(--white);
}

/* ---- Typography ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
  line-height: var(--leading-tight);
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--step-h1); font-weight: 700; }
h2 { font-size: var(--step-h2); font-weight: 600; }
h3 { font-size: var(--step-h3); font-weight: 600; }
h4 { font-size: var(--step-h4); font-weight: 600; }

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }

.hero-heading {
  font-size: var(--step-hero);
  font-weight: 700;
}

.lede {
  font-size: var(--step-lede);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: var(--measure);
}

.on-dark .lede { color: var(--text-muted-on-dark); }

p {
  max-width: var(--measure);
}

.text-center { text-align: center; }
.text-center p, .text-center .lede { margin-inline: auto; }

/* ---- Layout ---------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: 1360px; }

.section {
  padding-block: var(--space-2xl);
}

@media (max-width: 640px) {
  .section { padding-block: var(--space-xl); }
}

.section--dark {
  background: var(--ink);
  color: var(--text-on-dark);
}

.section--tight { padding-block: var(--space-xl); }

.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--space-md); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 800px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100px;
  background: var(--maroon);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-sm);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

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

.btn--secondary {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn--secondary:hover { background: var(--ink); color: var(--white); }

.on-dark .btn--secondary { color: var(--white); }
.on-dark .btn--secondary:hover { background: var(--white); color: var(--ink); }

.btn--block { width: 100%; }

/* On very narrow screens (or at 400% zoom), long button labels wrap instead of pushing the page sideways. */
@media (max-width: 420px) {
  .btn { white-space: normal; line-height: 1.25; }
}

.legal a,
.contact-details a {
  overflow-wrap: anywhere;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: var(--header-height);
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  flex-shrink: 0;
}

.site-header__logo img {
  height: 52px;
  width: auto;
}

@media (max-width: 640px) {
  .site-header__logo img { height: 40px; }
}

.site-nav {
  display: none;
}

@media (min-width: 980px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }

  .site-nav__links {
    display: flex;
    gap: var(--space-md);
  }

  .site-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-2xs) 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: border-color var(--transition-fast), color var(--transition-fast);
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    border-color: var(--maroon);
  }
}

@media (min-width: 980px) and (max-width: 1180px) {
  .site-nav__links {
    gap: var(--space-sm);
  }

  .site-nav a,
  .nav-dropdown__trigger {
    font-size: 0.88rem;
  }

  /* Full nav + phone + button don't fit at laptop/tablet widths; the nav's Contact link covers it. */
  .site-header .site-header__actions .btn--primary { display: none; }
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-2xs) 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-dropdown__trigger svg {
  transition: transform var(--transition-fast);
}

.nav-dropdown__trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-dropdown:hover .nav-dropdown__trigger,
.nav-dropdown__trigger[aria-expanded="true"],
.nav-dropdown__trigger[aria-current="page"] {
  border-color: var(--maroon);
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, -6px);
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: var(--space-2xs);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown:focus-within .nav-dropdown__panel,
.nav-dropdown__panel[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown__panel a {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: none !important;
}

.nav-dropdown__panel a:hover {
  background: var(--surface);
  color: var(--maroon);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-phone {
  display: none;
  font-weight: 600;
  color: var(--maroon);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .header-phone { display: inline-flex; align-items: center; gap: var(--space-3xs); }
}

.site-header__actions .btn--primary {
  display: none;
}

@media (min-width: 560px) {
  .site-header__actions .btn--primary { display: inline-flex; }
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

@media (min-width: 980px) {
  .nav-toggle { display: none; }
}

.nav-toggle__icon {
  position: relative;
  width: 22px;
  height: 16px;
}

.nav-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast), top var(--transition-fast);
}

.nav-toggle__icon span:nth-child(1) { top: 0; }
.nav-toggle__icon span:nth-child(2) { top: 7px; }
.nav-toggle__icon span:nth-child(3) { top: 14px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) {
  top: 7px; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) {
  top: 7px; transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--bone);
  z-index: 99;
  padding: var(--space-lg) var(--space-md);
  overflow-y: auto;
  transform: translateX(100%);
  /* Hidden (not just slid off-screen) while closed, so keyboard and screen reader users can't land on links they can't see. */
  visibility: hidden;
  transition: transform var(--transition-med), visibility 0s linear 320ms;
}

.mobile-nav[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--transition-med), visibility 0s linear 0s;
}

@media (min-width: 980px) {
  .mobile-nav { display: none; }
}

.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-h4);
  font-weight: 600;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-soft);
}

.mobile-nav__contact {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

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

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Measured against the actual photos: this keeps hero text at WCAG AA contrast wherever it lands. */
  background: linear-gradient(0deg, rgba(20, 27, 36, 0.92) 0%, rgba(20, 27, 36, 0.72) 50%, rgba(20, 27, 36, 0.45) 100%);
}

@media (max-width: 640px) {
  /* On phones the text fills most of the hero, so the whole image needs to sit darker. */
  .hero__media::after {
    background: linear-gradient(0deg, rgba(20, 27, 36, 0.92) 0%, rgba(20, 27, 36, 0.8) 55%, rgba(20, 27, 36, 0.66) 100%);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-2xl) var(--space-xl);
  max-width: 760px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-on-dark);
  margin-bottom: var(--space-sm);
}

.hero__lede {
  color: var(--text-on-dark);
  margin-top: var(--space-sm);
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* Homepage hero gets the one deliberate load animation; every other page's hero is static. */
.hero--home .hero__content h1 {
  color: var(--white);
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 150ms forwards;
}

.hero--home .hero__lede {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 320ms forwards;
}

.hero--home .hero__actions {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 480ms forwards;
}

.hero--page .hero__content h1 { color: var(--white); }

@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero--home .hero__content h1, .hero--home .hero__lede, .hero--home .hero__actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero--page {
  min-height: 56vh;
  align-items: center;
}

@media (max-width: 640px) {
  .hero { min-height: 78vh; }
  .hero--page { min-height: 42vh; }

  .hero__content {
    padding-block: var(--space-lg) var(--space-lg);
  }

  .hero__actions {
    margin-top: var(--space-md);
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* ---- Process steps -------------------------------------------------------- */

.process {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-2xl); }
}

.process__list {
  position: relative;
  padding-left: var(--space-lg);
}

.process__list::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-soft);
}

.process__step {
  position: relative;
  padding-bottom: var(--space-lg);
}

.process__step:last-child { padding-bottom: 0; }

.process__number {
  position: absolute;
  left: calc(-1 * var(--space-lg));
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.process__step h3 {
  font-size: var(--step-h4);
  margin-bottom: var(--space-2xs);
}

.process__step p {
  color: var(--text-muted);
}

.process__image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ---- Asymmetric "what we sell" grid ---------------------------------------- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: var(--space-sm);
}

@media (max-width: 900px) {
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
}

.offer-card {
  position: relative;
  grid-column: span 3;
  grid-row: span 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--white);
}

.offer-card:nth-child(1) { grid-column: span 4; }
.offer-card:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.offer-card:nth-child(3) { grid-column: span 2; grid-row: span 1; }
.offer-card:nth-child(4) { grid-column: span 3; }
.offer-card:nth-child(5) { grid-column: span 3; }
.offer-card:nth-child(6) { grid-column: span 6; grid-row: span 1; }

@media (max-width: 900px) {
  .offer-card,
  .offer-card:nth-child(1),
  .offer-card:nth-child(2),
  .offer-card:nth-child(3),
  .offer-card:nth-child(4),
  .offer-card:nth-child(5),
  .offer-card:nth-child(6) {
    grid-column: span 2;
    grid-row: span 1;
  }
}

.offer-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-med);
}

.offer-card:hover img { transform: scale(1.04); }

.offer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 27, 36, 0.92) 0%, rgba(20, 27, 36, 0.74) 35%, rgba(20, 27, 36, 0) 80%);
}

.offer-card__label {
  position: absolute;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-sm);
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.offer-card__label small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-on-dark);
  margin-top: 2px;
}

/* ---- Why us split ----------------------------------------------------- */

.why-us {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 900px) {
  .why-us { grid-template-columns: 1fr 1fr; }
}

.why-us__image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.why-us__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.why-us__point {
  border-top: 1px solid var(--border-soft);
  padding-top: var(--space-md);
}

.why-us__point h3 {
  font-size: var(--step-h4);
  color: var(--maroon);
  margin-bottom: var(--space-2xs);
}

.why-us__point p {
  color: var(--text-muted);
}

/* ---- Showroom invitation / dark band ------------------------------------ */

.invite {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .invite { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: var(--space-2xl); }
}

.invite__facts {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.invite__fact dt {
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.invite__fact dd {
  margin: var(--space-3xs) 0 0;
  color: var(--text-on-dark);
  font-size: 1.05rem;
}

.invite__image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ---- Conversion block ---------------------------------------------------- */

.convert {
  background: var(--maroon);
  color: var(--white);
  padding-block: var(--space-xl);
}

.convert__grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .convert__grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.convert__phone {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 700;
  color: var(--white);
  display: inline-block;
}

.convert__meta {
  margin-top: var(--space-sm);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.convert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (min-width: 900px) {
  .convert__actions { justify-content: flex-end; }
}

.convert .btn--secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.convert .btn--secondary:hover {
  background: var(--white);
  color: var(--maroon);
}

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

.site-footer {
  background: var(--ink);
  color: var(--text-muted-on-dark);
  padding-block: var(--space-xl) var(--space-lg);
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg) var(--space-xl); }
}

@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: var(--space-xl); }
}

.footer-heading {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.footer-free {
  margin-top: var(--space-sm);
  color: var(--text-on-dark);
}

.footer-directions__label {
  margin-top: var(--space-md);
  margin-bottom: var(--space-2xs);
  color: var(--white);
  font-weight: 600;
}

.footer-directions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.footer-directions a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 44px;
  padding: var(--space-2xs) var(--space-sm);
  border: 1px solid var(--border-on-dark);
  border-radius: 999px;
  color: var(--text-on-dark);
  font-weight: 600;
  font-size: 0.9rem;
  overflow-wrap: normal;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.footer-directions a:hover {
  background: var(--white);
  color: var(--ink);
}

.footer-legal {
  margin-top: var(--space-xl);
}

.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-md);
}

.footer-legal a,
.footer-legal__button {
  display: inline-block;
  padding-block: var(--space-3xs);
  color: var(--text-on-dark);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  cursor: pointer;
}

.footer-legal a:hover,
.footer-legal__button:hover {
  color: var(--white);
}

.footer-grid ul li {
  margin-bottom: var(--space-2xs);
}

/* Lets the long email address wrap instead of pushing the page wider than the screen. */
.footer-grid > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-grid a:hover {
  color: var(--white);
}

/* The full-colour logo sits on a white panel so it reads on the dark footer.
   Do not add a brightness/invert filter here: it fills the badge boxes solid
   white and hides the words UNIQUE and & MORE. */
.footer-logo {
  display: inline-block;
  background: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.footer-logo img {
  display: block;
  height: 44px;
  width: auto; /* without this the width attribute squashes the mark */
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.footer-social a:hover {
  background: var(--white);
  color: var(--ink);
}

.footer-bottom {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-on-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.85rem;
}

/* ---- Forms ----------------------------------------------------------------- */

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  margin-bottom: var(--space-md);
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid #7A8594; /* 3.7:1 against white, so field edges are visible to low-vision users */
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal);
}

.form-field[data-invalid="true"] input,
.form-field[data-invalid="true"] select,
.form-field[data-invalid="true"] textarea {
  border-color: #B3261E;
}

.form-error {
  color: #B3261E;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.form-grid {
  display: grid;
  gap: var(--space-md) var(--space-lg);
}

@media (min-width: 700px) {
  .form-grid--2col { grid-template-columns: 1fr 1fr; }
}

.form-hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.form-required-note {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.form-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-consent {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: var(--space-md);
}

.form-success,
.form-status {
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: rgba(42, 126, 160, 0.1);
  border: 1px solid rgba(42, 126, 160, 0.3);
  margin-bottom: var(--space-md);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  padding: 0;
  width: 100%;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-med);
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15, 20, 27, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.lightbox[data-open="true"] { display: flex; }

.lightbox__figure {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  color: var(--white);
}

.lightbox__figure img {
  max-height: 78vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius-sm);
}

.lightbox__caption {
  margin-top: var(--space-sm);
  text-align: center;
  color: var(--text-on-dark);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  color: var(--white);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color var(--transition-fast);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__close { top: var(--space-md); right: var(--space-md); }
.lightbox__prev { left: var(--space-md); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--space-md); top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { width: 40px; height: 40px; }
}

/* ---- Mobile bottom bar ----------------------------------------------------- */

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  border-top: 1px solid var(--border-on-dark);
  padding: var(--space-2xs);
  gap: var(--space-2xs);
}

@media (min-width: 640px) {
  .mobile-bar { display: none; }
}

.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}

.mobile-bar__call {
  background: var(--maroon);
  color: var(--white);
}

.mobile-bar__quote {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border-on-dark);
}

body.has-mobile-bar {
  padding-bottom: 72px;
}

@media (min-width: 640px) {
  body.has-mobile-bar { padding-bottom: 0; }
}

/* ---- Simple content blocks used across inner pages ------------------------ */

.split-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 900px) {
  .split-media { grid-template-columns: 1fr 1fr; }
  .split-media--reverse .split-media__image { order: 2; }
}

.split-media__image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.detail-trio {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.detail-trio figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

/* Column ratio balances one portrait photo against two stacked landscape photos. */
@media (min-width: 800px) {
  .detail-trio {
    grid-template-columns: 9fr 8fr;
  }

  .detail-trio figure:first-child {
    grid-row: span 2;
  }

  .detail-trio figure:first-child img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.quality-points {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (min-width: 800px) {
  .quality-points { grid-template-columns: repeat(3, 1fr); }
}

.quality-points > div {
  border-top: 1px solid var(--border-on-dark);
  padding-top: var(--space-md);
}

.quality-points h3 {
  font-size: var(--step-h4);
  margin-bottom: var(--space-2xs);
}

.quality-points p {
  color: var(--text-muted-on-dark);
}

.full-bleed-figure {
  overflow: hidden;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-top: var(--space-sm);
}

.tag {
  padding: var(--space-3xs) var(--space-sm);
  border-radius: 999px;
  background: rgba(107, 42, 73, 0.08);
  color: var(--maroon-deep);
  font-size: 0.85rem;
  font-weight: 600;
}

.on-dark .tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.checklist {
  display: grid;
  gap: var(--space-sm);
}

.checklist li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.checklist li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--teal);
}

.on-dark .checklist li svg {
  color: var(--teal-light);
}

.service-areas {
  color: var(--text-muted);
}

.on-dark .service-areas { color: var(--text-muted-on-dark); }

/* ---- Cabinet colors, construction, and details dialog (cabinets page) --- */

[hidden] { display: none !important; }

.section-intro {
  max-width: var(--container-narrow);
  margin-bottom: var(--space-lg);
}

.text-link {
  color: var(--maroon);
  font-weight: 600;
  border-bottom: 1.5px solid currentColor;
  transition: color var(--transition-fast);
}

.text-link:hover { color: var(--maroon-deep); }

/* Maroon is unreadable on the navy sections, so links there use the light teal. */
.on-dark .text-link { color: var(--teal-light); }
.on-dark .text-link:hover { color: var(--white); }

.tag--link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tag--link:hover { background: rgba(107, 42, 73, 0.16); }

.color-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-bottom: var(--space-lg);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-soft);
  background: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.chip span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chip:hover { border-color: var(--ink); }

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.chip[aria-pressed="true"] span { color: var(--text-muted-on-dark); }

.color-group + .color-group {
  margin-top: var(--space-xl);
}

.color-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2xs) var(--space-md);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-soft);
}

.color-group__head h3 {
  font-size: var(--step-h4);
}

.color-group__head p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-lg) var(--space-md);
}

@media (max-width: 480px) {
  .swatch-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md) var(--space-sm); }
}

.swatch {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.swatch__door {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 2;
  padding: var(--space-sm);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

/* Frames are 1:2 and every door photo is at least that wide, so fitting by width never overflows. */
.swatch__door img {
  width: 100%;
  height: auto;
  box-shadow: 0 4px 10px rgba(31, 45, 61, 0.18);
}

.swatch:hover .swatch__door,
.swatch:focus-visible .swatch__door {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.swatch__badge {
  position: absolute;
  top: var(--space-2xs);
  left: var(--space-2xs);
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--maroon);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
}

.swatch__code {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.swatch__name {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--ink);
}

.swatch__cta {
  margin-top: auto;
  padding-top: var(--space-2xs);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--maroon);
}

.swatch:hover .swatch__cta { text-decoration: underline; text-underline-offset: 3px; }

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

.construction__row {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

.construction__row + .construction__row {
  margin-top: var(--space-xl);
}

@media (min-width: 900px) {
  .construction__row { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .construction__row--reverse .construction__figure { order: 2; }
}

.construction__figure figcaption {
  margin-top: var(--space-2xs);
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
}

.feature-list {
  display: grid;
  gap: var(--space-md);
}

.feature-list li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.feature-list__num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 2px;
}

.feature-list h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.feature-list p {
  color: var(--text-muted);
}

.feature-tag {
  display: inline-block;
  margin-left: var(--space-3xs);
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(107, 42, 73, 0.1);
  color: var(--maroon-deep);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: 2px;
}

.feature-list--compact { gap: var(--space-sm); }
.feature-list--compact li { font-size: 0.95rem; }
.feature-list--compact h3 { font-size: 0.98rem; }
.feature-list--compact p { line-height: 1.5; }

.project-grid {
  display: grid;
  gap: var(--space-sm);
}

@media (min-width: 700px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-grid__wide { grid-column: 1 / -1; }
}

.project-grid figure {
  border-radius: var(--radius-md);
  overflow: hidden;
}

html.dialog-open { overflow: hidden; }

.door-dialog {
  width: min(1040px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--bone);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
  overflow: auto;
}

.door-dialog::backdrop {
  background: rgba(15, 20, 27, 0.72);
}

.door-dialog[open] {
  animation: dialog-in 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.door-dialog__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.door-dialog__inner > * { min-width: 0; }

@media (min-width: 800px) {
  .door-dialog__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }

  /* The door stays in view while the feature list scrolls beside it. */
  .door-dialog__media {
    position: sticky;
    top: 0;
    align-self: start;
    height: calc(100vh - 2rem);
    max-height: 100%;
  }
}

.door-dialog__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.door-dialog__close:hover { background: var(--ink); color: var(--white); }

.door-dialog__media {
  background: var(--white);
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.door-dialog__door {
  max-height: min(60vh, 520px);
  width: auto;
  box-shadow: 0 10px 24px rgba(31, 45, 61, 0.22);
}

@media (max-width: 799px) {
  .door-dialog__door { max-height: 300px; }
}

.door-dialog__nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.door-dialog__nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.door-dialog__nav button:hover { border-color: var(--ink); }

.door-dialog__count {
  min-width: 5.5em;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.door-dialog__body {
  padding: var(--space-lg);
}

.door-dialog__collection {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--maroon);
  padding-right: 3rem;
}

.door-dialog__body h2 {
  font-size: var(--step-h3);
  margin-top: var(--space-3xs);
}

.door-dialog__lede {
  margin-top: var(--space-sm);
  color: var(--text-muted);
}

.door-dialog__diagrams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0;
  padding: var(--space-sm);
  background: var(--white);
  border-radius: var(--radius-md);
}

.door-dialog__actions {
  margin-top: var(--space-lg);
}

@media (max-width: 560px) {
  .door-dialog__body { padding: var(--space-md); }
  .door-dialog__actions .btn { width: 100%; white-space: normal; }
}

/* ---- Prominent inline phone (contractors, contact, 404) ------------------ */

.big-phone {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
  font-size: var(--step-h2);
  font-weight: 700;
  color: var(--maroon);
  display: inline-block;
  line-height: 1.1;
}

.big-phone:hover { color: var(--maroon-deep); }

.contact-details {
  display: grid;
  gap: var(--space-md);
}

.contact-details dt {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.contact-details dd {
  margin: var(--space-3xs) 0 0;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 420px;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: var(--space-2xs) 0;
  border-bottom: 1px solid var(--border-soft);
  font-weight: 400;
}

.hours-table th {
  font-weight: 600;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  line-height: 0;
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

/* ---- 404 -------------------------------------------------------------- */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* ---- Owner/attorney placeholders --------------------------------------------
   Deliberately loud so nothing unfinished can go live unnoticed. Every one must be
   replaced (or removed) before launch. See TODO.md. */

.placeholder,
.placeholder-block {
  background: #FFF4C2;
  color: #4A3500;
  border: 2px dashed #8A6A00;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9em;
}

.placeholder {
  padding: 0 0.35em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.placeholder-block {
  display: block;
  padding: var(--space-sm);
}

/* ---- Cookie consent banner (only rendered when a tracker ID is set in main.js) ---- */

.consent {
  position: fixed;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: calc(72px + var(--space-sm));
  z-index: 95;
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--white);
  color: var(--text-body);
  border: 1px solid #7A8594;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
}

@media (max-width: 639px) {
  .consent { padding: var(--space-sm); gap: var(--space-xs); }
  .consent__text { font-size: 0.9rem; line-height: 1.5; }
}

@media (min-width: 640px) {
  .consent { bottom: var(--space-md); }
}

@media (min-width: 760px) {
  .consent { grid-template-columns: 1fr auto; align-items: center; gap: var(--space-md); }
}

.consent__text {
  font-size: 0.95rem;
  line-height: 1.55;
}

.consent__text a {
  color: var(--maroon);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xs);
}

.consent__button {
  min-width: 110px;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.consent__button:hover {
  background: var(--ink);
  color: var(--white);
}

/* "Got it" just closes the notice, so it sits a step quieter than the opt-out button. */
.consent__button--quiet {
  border-color: #7A8594;
  font-weight: 600;
}

/* ---- Legal pages (privacy, terms, accessibility, warranty) ------------------ */

.legal h1 { margin-bottom: var(--space-sm); }

.legal__meta {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.legal__summary {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.legal h2 {
  font-size: var(--step-h4);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  scroll-margin-top: calc(var(--header-height) + var(--space-sm));
}

.legal h3 {
  font-size: 1.2rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-2xs);
}

.legal p + p,
.legal p + ul,
.legal ul + p,
.legal table + p { margin-top: var(--space-sm); }

.legal ul,
.legal ol {
  list-style: disc;
  padding-left: 1.4rem;
  max-width: var(--measure);
}

.legal ol { list-style: decimal; }

.legal__summary h2 { margin-top: 0; }

.legal li + li { margin-top: var(--space-2xs); }

.legal a:not(.btn) {
  color: var(--maroon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin-top: var(--space-sm);
}

.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-table caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: var(--space-2xs);
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-2xs) var(--space-sm) var(--space-2xs) 0;
  border-bottom: 1px solid var(--border-soft);
}

.legal-table th[scope="col"] { font-weight: 600; }
