.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
}

.alert + .alert {
  margin-top: 0.5rem;
}

.alert__title {
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.alert__text {
  margin: 0;
  color: var(--color-text-muted);
}

/* Toast */
.alert--toast {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  max-width: 350px;
}

.alert--toast.alert--success {
  color: var(--color-success);
}

.alert--toast.alert--warning {
  color: var(--color-warning);
}

.alert--toast.alert--danger {
  color: var(--color-danger);
}

.alert--toast.alert--info {
  color: var(--color-info);
}

/* Banner */
.alert--banner.alert--success {
  background: #d1fae5;
  color: #065f46;
}

.alert--banner.alert--warning {
  background: #fef3c7;
  color: #92400e;
}

.alert--banner.alert--danger {
  background: #fee2e2;
  color: #991b1b;
}

.alert--banner.alert--info {
  background: #dbeafe;
  color: #1e40af;
}

.alert--banner .alert__text {
  color: inherit;
  opacity: 0.85;
}

/* Announcement strip — full-width bar, title + text inline */
.alert--announcement {
  border-radius: 0;
}

.alert--announcement .alert__body {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.alert--announcement .alert__title {
  margin: 0;
}
.area {
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 3rem;

}

.area--contrast:nth-child(even) {
  background: var(--color-contrast, #f9fafb);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
  opacity: 1;
}

.button.button--primary {
  background: var(--color-primary);
  color: var(--color-primary-text, #ffffff);
}

.button.button--primary:hover {
  opacity: 0.85;
}

.button.button--secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}

.button.button--secondary:hover {
  background: var(--color-contrast, #f9fafb);
  color: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
}

.button-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.card {
  border-radius: var(--border-radius);
  background: var(--color-background, #fff);
}

.card--image-header {
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.card__image {
  width: 100%;
  display: block;
  background: var(--color-contrast, #f9fafb);
}

.card__image--cover {
  height: 150px;
  object-fit: cover;
}

.card__content {
  padding: 1.5rem;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--fg, var(--color-text));
}

.card__text {
  color: var(--fg-muted, var(--color-text-muted));
  font-size: 0.875rem;
}

.card__price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg-muted, var(--color-secondary));
  margin-top: 0.75rem;
}

.card__attribution {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 1rem 0 0;
  color: var(--color-text-muted);
}

.card--minimal {
  border: 1px solid var(--color-border);
  padding: 1rem;
}

.card + .card {
  margin-top: 1rem;
}

.card--secondary {
  border-color: var(--color-secondary);
  background: var(--color-contrast);
}

.card--horizontal {
  display: flex;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.card--horizontal .card__image {
  width: 220px;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
}

@media (max-width: 575px) {
  .card--horizontal {
    flex-direction: column;
  }

  .card--horizontal .card__image {
    width: 100%;
    height: 150px;
  }
}
.footer {
  --footer-bg:         var(--color-footer-bg, var(--color-contrast, #f9fafb));
  --footer-fg:         var(--color-footer-fg, var(--color-text, #111827));
  --footer-fg-muted:   var(--color-footer-fg, var(--color-text-muted, #6b7280));
  --footer-link:       var(--color-footer-fg, var(--color-text-muted, #6b7280));
  --footer-link-hover: var(--color-footer-fg, var(--color-text, #111827));
  --footer-border:     var(--color-border, #e5e7eb);

  background: var(--footer-bg);
  color: var(--footer-fg);
}

.footer--dark {
  --footer-fg:         #fff;
  --footer-fg-muted:   rgba(255, 255, 255, 0.9);
  --footer-link:       #ffffff;
  --footer-link-hover: #ffffff;
  --footer-border:     rgba(255, 255, 255, 0.15);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer__logo {
  height: 2rem;
  display: block;
}

.footer__logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--footer-fg);
  text-decoration: none;
}

.footer__link {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity 0.15s;
}

.footer--dark .footer__link {
  opacity: 0.9;
}

.footer--dark .footer__link:hover {
  opacity: 1;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--footer-fg-muted);
  margin: 0;
}

/* ─── Variation A: Simple bar ─── */
.footer--simple .footer__inner {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer--simple .footer__brand {
  flex: 0 0 100%;
}

.footer--simple .footer__links {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .footer--simple .footer__brand {
    flex: 0 0 auto;
  }
}

/* ─── Variation B: Multi-column ─── */
.footer--columns .footer__body {
  padding: 3rem 0 2rem;
}

.footer--columns .footer__tagline {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--footer-fg-muted);
  line-height: 1.5;
}

.footer--columns .footer__nav {
  flex: 1;
  min-width: 120px;
}

.footer--columns .footer__nav-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--footer-fg-muted);
  margin: 0 0 0.75rem;
}

.footer--columns .footer__nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer--columns .footer__bar {
  border-top: 1px solid var(--footer-border);
  padding: 1rem 0;
}

/* ─── Variation C: Centered ─── */
.footer--centered .footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer--centered .footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.form--stacked {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form--stacked .form__group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form--inline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form--inline .form__group {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.form__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.form__input,
textarea.form__input {
  width: 100%;
  font-family: inherit;
  resize: vertical;
}

.form__input {
  padding: 0.625rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  transition: border-color 0.15s;
}

.form__input:focus {
  outline: none;
  border-color: var(--color-primary);
}
.grid {
  --grid-gutter: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--grid-gutter);
}

.grid__cell {
  flex: 1;
  min-width: 0;
}

/* Width fractions — calc subtracts each cell's share of the gap so rows sum to 100% */
.grid__cell--width-5   { flex: 0 0 calc(5%       - var(--grid-gutter) * 0.95);    max-width: calc(5%       - var(--grid-gutter) * 0.95); }
.grid__cell--width-10  { flex: 0 0 calc(10%      - var(--grid-gutter) * 0.9);     max-width: calc(10%      - var(--grid-gutter) * 0.9); }
.grid__cell--width-15  { flex: 0 0 calc(15%      - var(--grid-gutter) * 0.85);    max-width: calc(15%      - var(--grid-gutter) * 0.85); }
.grid__cell--width-20  { flex: 0 0 calc(20%      - var(--grid-gutter) * 0.8);     max-width: calc(20%      - var(--grid-gutter) * 0.8); }
.grid__cell--width-25  { flex: 0 0 calc(25%      - var(--grid-gutter) * 0.75);    max-width: calc(25%      - var(--grid-gutter) * 0.75); }
.grid__cell--width-30  { flex: 0 0 calc(30%      - var(--grid-gutter) * 0.7);     max-width: calc(30%      - var(--grid-gutter) * 0.7); }
.grid__cell--width-33  { flex: 0 0 calc(33.333%  - var(--grid-gutter) * 0.66667); max-width: calc(33.333%  - var(--grid-gutter) * 0.66667); }
.grid__cell--width-35  { flex: 0 0 calc(35%      - var(--grid-gutter) * 0.65);    max-width: calc(35%      - var(--grid-gutter) * 0.65); }
.grid__cell--width-40  { flex: 0 0 calc(40%      - var(--grid-gutter) * 0.6);     max-width: calc(40%      - var(--grid-gutter) * 0.6); }
.grid__cell--width-45  { flex: 0 0 calc(45%      - var(--grid-gutter) * 0.55);    max-width: calc(45%      - var(--grid-gutter) * 0.55); }
.grid__cell--width-50  { flex: 0 0 calc(50%      - var(--grid-gutter) * 0.5);     max-width: calc(50%      - var(--grid-gutter) * 0.5); }
.grid__cell--width-55  { flex: 0 0 calc(55%      - var(--grid-gutter) * 0.45);    max-width: calc(55%      - var(--grid-gutter) * 0.45); }
.grid__cell--width-60  { flex: 0 0 calc(60%      - var(--grid-gutter) * 0.4);     max-width: calc(60%      - var(--grid-gutter) * 0.4); }
.grid__cell--width-65  { flex: 0 0 calc(65%      - var(--grid-gutter) * 0.35);    max-width: calc(65%      - var(--grid-gutter) * 0.35); }
.grid__cell--width-66  { flex: 0 0 calc(66.666%  - var(--grid-gutter) * 0.33334); max-width: calc(66.666%  - var(--grid-gutter) * 0.33334); }
.grid__cell--width-70  { flex: 0 0 calc(70%      - var(--grid-gutter) * 0.3);     max-width: calc(70%      - var(--grid-gutter) * 0.3); }
.grid__cell--width-75  { flex: 0 0 calc(75%      - var(--grid-gutter) * 0.25);    max-width: calc(75%      - var(--grid-gutter) * 0.25); }
.grid__cell--width-80  { flex: 0 0 calc(80%      - var(--grid-gutter) * 0.2);     max-width: calc(80%      - var(--grid-gutter) * 0.2); }
.grid__cell--width-85  { flex: 0 0 calc(85%      - var(--grid-gutter) * 0.15);    max-width: calc(85%      - var(--grid-gutter) * 0.15); }
.grid__cell--width-90  { flex: 0 0 calc(90%      - var(--grid-gutter) * 0.1);     max-width: calc(90%      - var(--grid-gutter) * 0.1); }
.grid__cell--width-95  { flex: 0 0 calc(95%      - var(--grid-gutter) * 0.05);    max-width: calc(95%      - var(--grid-gutter) * 0.05); }
.grid__cell--width-100 { flex: 0 0 100%; max-width: 100%; }

/* Gutter modifier */
.grid--no-gutter { --grid-gutter: 0rem; }

/* Full-width all cells */
.grid--full > .grid__cell { flex: 0 0 100%; max-width: 100%; }

/* Vertical alignment */
.grid--top    { align-items: flex-start; }
.grid--center { align-items: center; }
.grid--bottom { align-items: flex-end; }

.grid__cell--top    { align-self: flex-start; }
.grid__cell--center { align-self: center; }
.grid__cell--bottom { align-self: flex-end; }

/* Horizontal alignment */
.grid--halign-center { justify-content: center; }
.grid--halign-right  { justify-content: flex-end; }

/* Per-cell */
.grid__cell--width-fixed { flex: none; }

/* Responsive: -sm ≥ 576px */
@media (min-width: 576px) {
  .grid__cell--width-5-sm   { flex: 0 0 calc(5%       - var(--grid-gutter) * 0.95);    max-width: calc(5%       - var(--grid-gutter) * 0.95); }
  .grid__cell--width-10-sm  { flex: 0 0 calc(10%      - var(--grid-gutter) * 0.9);     max-width: calc(10%      - var(--grid-gutter) * 0.9); }
  .grid__cell--width-15-sm  { flex: 0 0 calc(15%      - var(--grid-gutter) * 0.85);    max-width: calc(15%      - var(--grid-gutter) * 0.85); }
  .grid__cell--width-20-sm  { flex: 0 0 calc(20%      - var(--grid-gutter) * 0.8);     max-width: calc(20%      - var(--grid-gutter) * 0.8); }
  .grid__cell--width-25-sm  { flex: 0 0 calc(25%      - var(--grid-gutter) * 0.75);    max-width: calc(25%      - var(--grid-gutter) * 0.75); }
  .grid__cell--width-30-sm  { flex: 0 0 calc(30%      - var(--grid-gutter) * 0.7);     max-width: calc(30%      - var(--grid-gutter) * 0.7); }
  .grid__cell--width-33-sm  { flex: 0 0 calc(33.333%  - var(--grid-gutter) * 0.66667); max-width: calc(33.333%  - var(--grid-gutter) * 0.66667); }
  .grid__cell--width-35-sm  { flex: 0 0 calc(35%      - var(--grid-gutter) * 0.65);    max-width: calc(35%      - var(--grid-gutter) * 0.65); }
  .grid__cell--width-40-sm  { flex: 0 0 calc(40%      - var(--grid-gutter) * 0.6);     max-width: calc(40%      - var(--grid-gutter) * 0.6); }
  .grid__cell--width-45-sm  { flex: 0 0 calc(45%      - var(--grid-gutter) * 0.55);    max-width: calc(45%      - var(--grid-gutter) * 0.55); }
  .grid__cell--width-50-sm  { flex: 0 0 calc(50%      - var(--grid-gutter) * 0.5);     max-width: calc(50%      - var(--grid-gutter) * 0.5); }
  .grid__cell--width-55-sm  { flex: 0 0 calc(55%      - var(--grid-gutter) * 0.45);    max-width: calc(55%      - var(--grid-gutter) * 0.45); }
  .grid__cell--width-60-sm  { flex: 0 0 calc(60%      - var(--grid-gutter) * 0.4);     max-width: calc(60%      - var(--grid-gutter) * 0.4); }
  .grid__cell--width-65-sm  { flex: 0 0 calc(65%      - var(--grid-gutter) * 0.35);    max-width: calc(65%      - var(--grid-gutter) * 0.35); }
  .grid__cell--width-66-sm  { flex: 0 0 calc(66.666%  - var(--grid-gutter) * 0.33334); max-width: calc(66.666%  - var(--grid-gutter) * 0.33334); }
  .grid__cell--width-70-sm  { flex: 0 0 calc(70%      - var(--grid-gutter) * 0.3);     max-width: calc(70%      - var(--grid-gutter) * 0.3); }
  .grid__cell--width-75-sm  { flex: 0 0 calc(75%      - var(--grid-gutter) * 0.25);    max-width: calc(75%      - var(--grid-gutter) * 0.25); }
  .grid__cell--width-80-sm  { flex: 0 0 calc(80%      - var(--grid-gutter) * 0.2);     max-width: calc(80%      - var(--grid-gutter) * 0.2); }
  .grid__cell--width-85-sm  { flex: 0 0 calc(85%      - var(--grid-gutter) * 0.15);    max-width: calc(85%      - var(--grid-gutter) * 0.15); }
  .grid__cell--width-90-sm  { flex: 0 0 calc(90%      - var(--grid-gutter) * 0.1);     max-width: calc(90%      - var(--grid-gutter) * 0.1); }
  .grid__cell--width-95-sm  { flex: 0 0 calc(95%      - var(--grid-gutter) * 0.05);    max-width: calc(95%      - var(--grid-gutter) * 0.05); }
  .grid__cell--width-100-sm { flex: 0 0 100%; max-width: 100%; }
  .grid__cell--width-auto-sm { flex: 1; max-width: none; }
}

/* Responsive: -md ≥ 768px */
@media (min-width: 768px) {
  .grid__cell--width-5-md   { flex: 0 0 calc(5%       - var(--grid-gutter) * 0.95);    max-width: calc(5%       - var(--grid-gutter) * 0.95); }
  .grid__cell--width-10-md  { flex: 0 0 calc(10%      - var(--grid-gutter) * 0.9);     max-width: calc(10%      - var(--grid-gutter) * 0.9); }
  .grid__cell--width-15-md  { flex: 0 0 calc(15%      - var(--grid-gutter) * 0.85);    max-width: calc(15%      - var(--grid-gutter) * 0.85); }
  .grid__cell--width-20-md  { flex: 0 0 calc(20%      - var(--grid-gutter) * 0.8);     max-width: calc(20%      - var(--grid-gutter) * 0.8); }
  .grid__cell--width-25-md  { flex: 0 0 calc(25%      - var(--grid-gutter) * 0.75);    max-width: calc(25%      - var(--grid-gutter) * 0.75); }
  .grid__cell--width-30-md  { flex: 0 0 calc(30%      - var(--grid-gutter) * 0.7);     max-width: calc(30%      - var(--grid-gutter) * 0.7); }
  .grid__cell--width-33-md  { flex: 0 0 calc(33.333%  - var(--grid-gutter) * 0.66667); max-width: calc(33.333%  - var(--grid-gutter) * 0.66667); }
  .grid__cell--width-35-md  { flex: 0 0 calc(35%      - var(--grid-gutter) * 0.65);    max-width: calc(35%      - var(--grid-gutter) * 0.65); }
  .grid__cell--width-40-md  { flex: 0 0 calc(40%      - var(--grid-gutter) * 0.6);     max-width: calc(40%      - var(--grid-gutter) * 0.6); }
  .grid__cell--width-45-md  { flex: 0 0 calc(45%      - var(--grid-gutter) * 0.55);    max-width: calc(45%      - var(--grid-gutter) * 0.55); }
  .grid__cell--width-50-md  { flex: 0 0 calc(50%      - var(--grid-gutter) * 0.5);     max-width: calc(50%      - var(--grid-gutter) * 0.5); }
  .grid__cell--width-55-md  { flex: 0 0 calc(55%      - var(--grid-gutter) * 0.45);    max-width: calc(55%      - var(--grid-gutter) * 0.45); }
  .grid__cell--width-60-md  { flex: 0 0 calc(60%      - var(--grid-gutter) * 0.4);     max-width: calc(60%      - var(--grid-gutter) * 0.4); }
  .grid__cell--width-65-md  { flex: 0 0 calc(65%      - var(--grid-gutter) * 0.35);    max-width: calc(65%      - var(--grid-gutter) * 0.35); }
  .grid__cell--width-66-md  { flex: 0 0 calc(66.666%  - var(--grid-gutter) * 0.33334); max-width: calc(66.666%  - var(--grid-gutter) * 0.33334); }
  .grid__cell--width-70-md  { flex: 0 0 calc(70%      - var(--grid-gutter) * 0.3);     max-width: calc(70%      - var(--grid-gutter) * 0.3); }
  .grid__cell--width-75-md  { flex: 0 0 calc(75%      - var(--grid-gutter) * 0.25);    max-width: calc(75%      - var(--grid-gutter) * 0.25); }
  .grid__cell--width-80-md  { flex: 0 0 calc(80%      - var(--grid-gutter) * 0.2);     max-width: calc(80%      - var(--grid-gutter) * 0.2); }
  .grid__cell--width-85-md  { flex: 0 0 calc(85%      - var(--grid-gutter) * 0.15);    max-width: calc(85%      - var(--grid-gutter) * 0.15); }
  .grid__cell--width-90-md  { flex: 0 0 calc(90%      - var(--grid-gutter) * 0.1);     max-width: calc(90%      - var(--grid-gutter) * 0.1); }
  .grid__cell--width-95-md  { flex: 0 0 calc(95%      - var(--grid-gutter) * 0.05);    max-width: calc(95%      - var(--grid-gutter) * 0.05); }
  .grid__cell--width-100-md { flex: 0 0 100%; max-width: 100%; }
  .grid__cell--width-auto-md { flex: 1; max-width: none; }
}

/* Responsive: -lg ≥ 1024px */
@media (min-width: 1024px) {
  .grid__cell--width-5-lg   { flex: 0 0 calc(5%       - var(--grid-gutter) * 0.95);    max-width: calc(5%       - var(--grid-gutter) * 0.95); }
  .grid__cell--width-10-lg  { flex: 0 0 calc(10%      - var(--grid-gutter) * 0.9);     max-width: calc(10%      - var(--grid-gutter) * 0.9); }
  .grid__cell--width-15-lg  { flex: 0 0 calc(15%      - var(--grid-gutter) * 0.85);    max-width: calc(15%      - var(--grid-gutter) * 0.85); }
  .grid__cell--width-20-lg  { flex: 0 0 calc(20%      - var(--grid-gutter) * 0.8);     max-width: calc(20%      - var(--grid-gutter) * 0.8); }
  .grid__cell--width-25-lg  { flex: 0 0 calc(25%      - var(--grid-gutter) * 0.75);    max-width: calc(25%      - var(--grid-gutter) * 0.75); }
  .grid__cell--width-30-lg  { flex: 0 0 calc(30%      - var(--grid-gutter) * 0.7);     max-width: calc(30%      - var(--grid-gutter) * 0.7); }
  .grid__cell--width-33-lg  { flex: 0 0 calc(33.333%  - var(--grid-gutter) * 0.66667); max-width: calc(33.333%  - var(--grid-gutter) * 0.66667); }
  .grid__cell--width-35-lg  { flex: 0 0 calc(35%      - var(--grid-gutter) * 0.65);    max-width: calc(35%      - var(--grid-gutter) * 0.65); }
  .grid__cell--width-40-lg  { flex: 0 0 calc(40%      - var(--grid-gutter) * 0.6);     max-width: calc(40%      - var(--grid-gutter) * 0.6); }
  .grid__cell--width-45-lg  { flex: 0 0 calc(45%      - var(--grid-gutter) * 0.55);    max-width: calc(45%      - var(--grid-gutter) * 0.55); }
  .grid__cell--width-50-lg  { flex: 0 0 calc(50%      - var(--grid-gutter) * 0.5);     max-width: calc(50%      - var(--grid-gutter) * 0.5); }
  .grid__cell--width-55-lg  { flex: 0 0 calc(55%      - var(--grid-gutter) * 0.45);    max-width: calc(55%      - var(--grid-gutter) * 0.45); }
  .grid__cell--width-60-lg  { flex: 0 0 calc(60%      - var(--grid-gutter) * 0.4);     max-width: calc(60%      - var(--grid-gutter) * 0.4); }
  .grid__cell--width-65-lg  { flex: 0 0 calc(65%      - var(--grid-gutter) * 0.35);    max-width: calc(65%      - var(--grid-gutter) * 0.35); }
  .grid__cell--width-66-lg  { flex: 0 0 calc(66.666%  - var(--grid-gutter) * 0.33334); max-width: calc(66.666%  - var(--grid-gutter) * 0.33334); }
  .grid__cell--width-70-lg  { flex: 0 0 calc(70%      - var(--grid-gutter) * 0.3);     max-width: calc(70%      - var(--grid-gutter) * 0.3); }
  .grid__cell--width-75-lg  { flex: 0 0 calc(75%      - var(--grid-gutter) * 0.25);    max-width: calc(75%      - var(--grid-gutter) * 0.25); }
  .grid__cell--width-80-lg  { flex: 0 0 calc(80%      - var(--grid-gutter) * 0.2);     max-width: calc(80%      - var(--grid-gutter) * 0.2); }
  .grid__cell--width-85-lg  { flex: 0 0 calc(85%      - var(--grid-gutter) * 0.15);    max-width: calc(85%      - var(--grid-gutter) * 0.15); }
  .grid__cell--width-90-lg  { flex: 0 0 calc(90%      - var(--grid-gutter) * 0.1);     max-width: calc(90%      - var(--grid-gutter) * 0.1); }
  .grid__cell--width-95-lg  { flex: 0 0 calc(95%      - var(--grid-gutter) * 0.05);    max-width: calc(95%      - var(--grid-gutter) * 0.05); }
  .grid__cell--width-100-lg { flex: 0 0 100%; max-width: 100%; }
  .grid__cell--width-auto-lg { flex: 1; max-width: none; }
}

/* Responsive: -xl ≥ 1280px */
@media (min-width: 1280px) {
  .grid__cell--width-5-xl   { flex: 0 0 calc(5%       - var(--grid-gutter) * 0.95);    max-width: calc(5%       - var(--grid-gutter) * 0.95); }
  .grid__cell--width-10-xl  { flex: 0 0 calc(10%      - var(--grid-gutter) * 0.9);     max-width: calc(10%      - var(--grid-gutter) * 0.9); }
  .grid__cell--width-15-xl  { flex: 0 0 calc(15%      - var(--grid-gutter) * 0.85);    max-width: calc(15%      - var(--grid-gutter) * 0.85); }
  .grid__cell--width-20-xl  { flex: 0 0 calc(20%      - var(--grid-gutter) * 0.8);     max-width: calc(20%      - var(--grid-gutter) * 0.8); }
  .grid__cell--width-25-xl  { flex: 0 0 calc(25%      - var(--grid-gutter) * 0.75);    max-width: calc(25%      - var(--grid-gutter) * 0.75); }
  .grid__cell--width-30-xl  { flex: 0 0 calc(30%      - var(--grid-gutter) * 0.7);     max-width: calc(30%      - var(--grid-gutter) * 0.7); }
  .grid__cell--width-33-xl  { flex: 0 0 calc(33.333%  - var(--grid-gutter) * 0.66667); max-width: calc(33.333%  - var(--grid-gutter) * 0.66667); }
  .grid__cell--width-35-xl  { flex: 0 0 calc(35%      - var(--grid-gutter) * 0.65);    max-width: calc(35%      - var(--grid-gutter) * 0.65); }
  .grid__cell--width-40-xl  { flex: 0 0 calc(40%      - var(--grid-gutter) * 0.6);     max-width: calc(40%      - var(--grid-gutter) * 0.6); }
  .grid__cell--width-45-xl  { flex: 0 0 calc(45%      - var(--grid-gutter) * 0.55);    max-width: calc(45%      - var(--grid-gutter) * 0.55); }
  .grid__cell--width-50-xl  { flex: 0 0 calc(50%      - var(--grid-gutter) * 0.5);     max-width: calc(50%      - var(--grid-gutter) * 0.5); }
  .grid__cell--width-55-xl  { flex: 0 0 calc(55%      - var(--grid-gutter) * 0.45);    max-width: calc(55%      - var(--grid-gutter) * 0.45); }
  .grid__cell--width-60-xl  { flex: 0 0 calc(60%      - var(--grid-gutter) * 0.4);     max-width: calc(60%      - var(--grid-gutter) * 0.4); }
  .grid__cell--width-65-xl  { flex: 0 0 calc(65%      - var(--grid-gutter) * 0.35);    max-width: calc(65%      - var(--grid-gutter) * 0.35); }
  .grid__cell--width-66-xl  { flex: 0 0 calc(66.666%  - var(--grid-gutter) * 0.33334); max-width: calc(66.666%  - var(--grid-gutter) * 0.33334); }
  .grid__cell--width-70-xl  { flex: 0 0 calc(70%      - var(--grid-gutter) * 0.3);     max-width: calc(70%      - var(--grid-gutter) * 0.3); }
  .grid__cell--width-75-xl  { flex: 0 0 calc(75%      - var(--grid-gutter) * 0.25);    max-width: calc(75%      - var(--grid-gutter) * 0.25); }
  .grid__cell--width-80-xl  { flex: 0 0 calc(80%      - var(--grid-gutter) * 0.2);     max-width: calc(80%      - var(--grid-gutter) * 0.2); }
  .grid__cell--width-85-xl  { flex: 0 0 calc(85%      - var(--grid-gutter) * 0.15);    max-width: calc(85%      - var(--grid-gutter) * 0.15); }
  .grid__cell--width-90-xl  { flex: 0 0 calc(90%      - var(--grid-gutter) * 0.1);     max-width: calc(90%      - var(--grid-gutter) * 0.1); }
  .grid__cell--width-95-xl  { flex: 0 0 calc(95%      - var(--grid-gutter) * 0.05);    max-width: calc(95%      - var(--grid-gutter) * 0.05); }
  .grid__cell--width-100-xl { flex: 0 0 100%; max-width: 100%; }
  .grid__cell--width-auto-xl { flex: 1; max-width: none; }
}
.hero__title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.hero__tagline {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 520px;
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

.hero__image--cover {
  max-height: 420px;
  object-fit: cover;
}

.hero__content {
  padding: 0;
}

.hero__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.menu {
  display: flex;
  flex-direction: column;
}

.menu--vertical {
  width: 250px;
  background: var(--color-background, #fff);
  border-right: 1px solid var(--color-border);
  padding: 1rem 0;
}

.menu__section {
  margin-bottom: 1.5rem;
}

.menu__section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  padding: 0 1.5rem;
}

.menu__links {
  list-style: none;
  margin: 0;
  padding: 0 0.5rem;
}

.menu__item {
  position: relative;
  margin-bottom: 0;
}

.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  opacity: 1;
  border-radius: var(--border-radius);
  transition: background 0.15s;
}

.menu__link:hover {
  background: var(--color-border);
}

.menu__item--has-children > .menu__link::after {
  content: '›';
  font-size: 1rem;
  opacity: 0.5;
}

.menu__link--active {
  background: var(--color-primary);
  color: var(--color-primary-text, #ffffff);
}

.menu__link--active:hover {
  opacity: 0.85;
}

.menu__submenu {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 0.25rem;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 100;
}

.menu__item:hover > .menu__submenu {
  display: block;
}
.modal--centered {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* The dialog box — can be shown standalone in dev preview */
.modal__dialog {
  background: var(--color-background);
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.modal__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0;
}

.modal__body {
  padding: 1.5rem;
}

.modal--drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 400px;
  background: var(--color-background);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s;
}

.modal--drawer.active {
  transform: translateX(0);
}

/* Video modal — centered overlay with autoplay on open */

.modal--video {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal--video.modal--open {
  opacity: 1;
  pointer-events: auto;
}

.modal--video .modal__dialog {
  max-width: 720px;
  background: #000;
}

.modal--video .modal__header {
  background: #111;
  border-bottom-color: #333;
}

.modal--video .modal__title,
.modal--video .modal__close {
  color: #fff;
}

.modal--video .modal__body {
  padding: 0;
}

.modal--video video {
  width: 100%;
  display: block;
  max-height: 80vh;
}

/* Preview modal — full-bleed iframe with browser chrome */

.modal--preview {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal--preview.modal--open {
  opacity: 1;
  pointer-events: auto;
}

.modal--preview__dialog {
  width: 90vw;
  height: 88vh;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(12px);
  transition: transform 0.2s;
}

.modal--preview.modal--open .modal--preview__dialog {
  transform: translateY(0);
}

.modal--preview__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  background: #1e1e1e;
  flex-shrink: 0;
}

.modal--preview__dots {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.modal--preview__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #444;
}

.modal--preview__dot--red    { background: #ff5f57; }
.modal--preview__dot--yellow { background: #ffbd2e; }
.modal--preview__dot--green  { background: #28c840; }

.modal--preview__urlbar {
  flex: 1;
  background: #333;
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: #aaa;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal--preview__close {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  flex-shrink: 0;
}

.modal--preview__close:hover {
  color: #fff;
}

.modal--preview__frame {
  flex: 1;
  overflow: hidden;
  background: #fff;
}

.modal--preview__frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.nav--horizontal {
  background: var(--color-nav-bg, var(--color-contrast, #f9fafb));
  position: relative;
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  position: relative;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-nav-link, var(--color-text));
  padding: 0.75rem 1rem 0.75rem 0;
  margin-right: 1rem;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 2rem;
  width: auto;
  display: block;
}

/* Hamburger toggle — hidden on desktop */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 1rem;
  margin-left: auto;
}

.nav__hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-nav-link, var(--color-text));
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav__toggle--active .nav__hamburger:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle--active .nav__hamburger:nth-child(2) {
  opacity: 0;
}

.nav__toggle--active .nav__hamburger:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Link list */
.nav__links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: stretch;
  margin-bottom: 0;
}

.nav__link {
  display: flex;
  align-items: center;
  padding: 1rem 0.875rem;
  color: var(--color-nav-link, var(--color-text-muted));
  text-decoration: none;
  opacity: 1;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
  width: 100%;
  text-align: left;
}

.nav__link:hover,
.nav__link:focus {
  background-color: var(--color-primary-hover);
  color: var(--color-nav-link, oklch(from var(--color-primary-hover) clamp(0, (0.5 - l) * 10000, 1) 0 0));
  outline: none;
}

.nav__item--has-children > .nav__link::after {
  content: ' ▼';
  font-size: 0.5rem;
  vertical-align: middle;
  margin-left: 4px;
  opacity: 0.5;
}

.nav__submenu .nav__item--has-children > .nav__link::after {
  content: ' ▶';
}

/* Dropdown — animated reveal */
.nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-nav-bg, var(--color-background));
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1001;
}

/* Nested submenus fly right, aligned with the triggering item */
.nav__submenu .nav__submenu {
  top: 0;
  left: 100%;
}

@media (min-width: 769px) {
  .nav__item--has-children:hover > .nav__submenu,
  .nav__item--has-children:focus-within > .nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-nav-bg, var(--color-contrast, #f9fafb));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1000;
  }

  .nav__links--active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__item {
    width: 100%;
    flex-direction: column;
  }

  .nav__link {
    padding: 0.5rem 1rem;
  }

  /* Mobile dropdowns expand inline, no flyout */
  .nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    box-shadow: none;
    border-radius: 0;
    background: var(--color-nav-bg, var(--color-background));
    padding: 0;
    display: none;
  }

  .nav__submenu--active {
    display: block;
  }

  .nav__submenu .nav__link {
    padding-left: 1.75rem;
    border-radius: 0;
  }

  .nav__submenu .nav__submenu .nav__link {
    padding-left: 2.75rem;
  }
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-background);
}

.table--bordered .table__th,
.table--bordered .table__td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--color-border);
}

.table--bordered .table__th {
  background: var(--color-contrast, #f9fafb);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
}

.table--bordered .table__td {
  font-size: 0.875rem;
  color: var(--color-text);
}

.table--striped .table__th,
.table--striped .table__td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table--striped .table__th {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
}

.table--striped .table__td {
  font-size: 0.875rem;
  color: var(--color-text);
}

.table--striped tr:nth-child(even) .table__td {
  background: var(--color-contrast, #f9fafb);
}

.table--card {
  margin-top: 0.5rem;
}
.tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 2rem;
}

.tabs__btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.tabs__btn:hover {
  color: var(--color-text);
}

.tabs__btn--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tabs__panel {
  display: none;
}

.tabs__panel--active {
  display: block;
}
.heading {
  display: block;
  font-family: var(--font-heading, var(--font-sans, system-ui, sans-serif));
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  color: var(--color-text);
}

/* Generic section heading — uses primary color, works across any site theme */
.heading--area {
  font-size: clamp(1.25rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  color: var(--color-primary);
}

/* Brand heading — gradient text with animated underline, BhamDIY-specific */
.heading--brand {
  font-size: clamp(1.25rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 3.5rem;
  background: linear-gradient(
    135deg,
    var(--heading-area-from, var(--color-primary)),
    var(--heading-area-to,   var(--color-primary))
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.heading--brand::after {
  content: "";
  display: block;
  width: 25%;
  height: 3px;
  margin-top: 0.4em;
  background: linear-gradient(
    90deg,
    var(--heading-area-from, var(--color-primary)),
    var(--heading-area-to,   var(--color-primary))
  );
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
}

.heading--brand.is-visible::after {
  transform: scaleX(1);
}

/* Heading size utility classes */
.h1 { font-size: clamp(1.6rem, 5.6vw, 2.7rem); }
.h2 { font-size: clamp(1.4rem, 4.8vw, 2.25rem); }
.h3 { font-size: clamp(1.2rem, 4vw,   1.8rem); }
.h4 { font-size: clamp(1rem,   3.2vw, 1.5rem); }
.h5 { font-size: clamp(0.9rem, 2.4vw, 1.35rem); }
.h6 { font-size: clamp(0.8rem, 1.6vw, 1.2rem); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading, var(--font-sans, system-ui, sans-serif));
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

h1 { font-size: clamp(1.6rem, 5.6vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 4.8vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 4vw,   1.8rem); }
h4 { font-size: clamp(1rem,   3.2vw, 1.5rem); }
h5 { font-size: clamp(0.9rem, 2.4vw, 1.35rem); }
h6 { font-size: clamp(0.8rem, 1.6vw, 1.2rem); }

p {
  margin: 0 0 1rem;
  line-height: 1.625;
  color: var(--color-text);
}

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.875rem;
  background: var(--color-contrast, #f9fafb);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 0.1em 0.35em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s;
}

a:hover {
  opacity: 1;
}

ul, ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
  line-height: 1.625;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li {
  margin-bottom: 0.25rem;
}

dl {
  margin: 0 0 1rem;
}

dt {
  font-weight: 600;
  color: var(--color-text);
  margin-top: 0.75rem;
}

dt:first-child {
  margin-top: 0;
}

dd {
  margin: 0.125rem 0 0 1rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.blockquote {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--color-primary);
  font-style: italic;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.details__summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  list-style: none;
}

.details__summary::-webkit-details-marker {
  display: none;
}
