/* ==========================================================================
   MASSAED factory site — the shell every page wears (T127)

   Tokens, reset, typography, buttons, the header and mobile nav, the footer,
   the sticky bar, print rules and the handful of utilities every page uses
   (.container, .section, .skip-link, .visually-hidden, .toast).

   This was carved out of style.css because the 3D customizer was loading the
   whole landing page's stylesheet — 62 KB of render-blocking CSS of which
   82-84% never matched anything on that page — before it could draw. The
   customizer now takes this file plus configurator.css; the landing-type pages
   take this file plus landing.css. Nothing here may depend on a landing-page
   section, or the customizer will inherit a rule for markup it does not have.
   ========================================================================== */


:root {
  /* ---- Brand colours (from approved brand manual) ---- */
  --maroon-900: #3c0e09;
  --maroon-800: #53140c;   /* MASSAED Maroon — primary */
  --maroon-700: #6b1a10;
  --maroon-600: #832014;
  --maroon-100: #f4e3e0;
  --maroon-050: #faf1ef;

  --gray-900: #212122;
  --gray-800: #2c2c2e;
  --gray-700: #414042;     /* Secondary Gray */
  --gray-500: #6f6e70;
  --gray-400: #8d8c8e;     /* ≈3.3:1 on white — the minimum for control edges (WCAG 1.4.11) */
  --gray-300: #a8a7a9;
  --gray-200: #d8d7d8;
  --gray-100: #eeeded;
  --gray-050: #f7f6f6;

  --gold-500: #d3a24f;     /* Secondary Gold */
  --gold-600: #b8873a;
  --gold-700: #8a6526;     /* Darker gold for small text on light backgrounds (WCAG AA) */
  --gold-100: #f6ecd9;

  --white: #ffffff;
  --success: #1f7a4d;
  --error: #b3261e;

  /* ---- Semantic tokens ---- */
  --color-bg: var(--white);
  --color-bg-alt: var(--gray-050);
  --color-bg-dark: var(--maroon-900);
  --color-text: var(--gray-900);
  --color-text-muted: var(--gray-500);
  --color-text-inverse: var(--white);
  --color-brand: var(--maroon-800);
  --color-brand-strong: var(--maroon-900);
  --color-accent: var(--gold-500);
  --color-border: var(--gray-200);         /* decorative dividers and card edges */
  --color-border-strong: var(--gray-400);  /* form fields, swatch rings and other control edges */
  --color-focus: #1a73e8;
  --color-info-bg: #eef3f8;                /* neutral "next step" notices (email hand-off) — not green */
  --color-info-text: #1f3a5a;
  --color-info-border: #c7d6e6;

  /* ---- Type ---- */
  --font-base: 'Cairo', 'Cairo Fallback', 'Segoe UI', Tahoma, Arial, sans-serif;
  --fs-h1: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
  --fs-h2: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --lh-tight: 1.15;
  --lh-normal: 1.6;

  /* ---- Layout ---- */
  --container: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;

  --shadow-sm: 0 2px 8px rgba(33, 15, 10, 0.08);
  --shadow-md: 0 8px 24px rgba(33, 15, 10, 0.12);
  --shadow-lg: 0 16px 48px rgba(33, 15, 10, 0.18);

  --header-h: 76px;
  --transition: 200ms ease;
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                           */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
/* Quote CTAs (and ?intent=…#lead-form hand-offs) target the form itself: keep the section eyebrow, heading and the required-fields note in view. Adds to html scroll-padding-top, so the form lands ~296px down and the eyebrow sits below the fixed header at 360-1440px, EN and AR (T055). */
#lead-form { scroll-margin-block-start: 13rem; }
@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;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 700; line-height: var(--lh-tight); margin: 0 0 var(--space-2); color: var(--color-brand-strong); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--space-2); color: var(--color-text); }
a { color: var(--color-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-inline-start: 1.2rem; }
button { font-family: inherit; cursor: pointer; }

/* Visible focus states — accessibility requirement.
   Two-tone indicator (WCAG technique C40): the white band fills the 2px offset gap, so the blue ring always has
   >= 4.5:1 on one side, even over the hero photo or the 3D render. No border-radius here: at this specificity
   it overrode .btn (999px) and .swatch (50%) and squared pills and round swatches while they were focused. */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--white);
}
[hidden] { display: none !important; }
/* Conditional form fields (data-show-for) and any flex/grid element toggled by main.js: the attribute always wins */
.field[hidden], .btn[hidden], .form-status[hidden] { display: none !important; }

/* Links inside running text and labels are underlined (WCAG 1.4.1 — colour is not the only cue);
   navigation, buttons and card links keep the hover-only underline */
.legal p a, .legal li a, .checkbox-row a, .accordion-panel a, .field-hint a, .form-status a,
.hero__links a, .orders__line a, .serve-card p a, .form-nojs-note a { text-decoration: underline; text-underline-offset: 0.14em; }

/* Hidden off the top edge (not the side) so it never widens the page in RTL */
.skip-link {
  position: absolute; inset-inline-start: 0; top: 0; transform: translateY(-120%);
  background: var(--color-brand); color: var(--white);
  padding: 0.75rem 1.25rem; z-index: 1000; border-end-end-radius: 8px;
}
.skip-link:focus { transform: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-3); }
.section { padding-block: var(--space-6); }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-brand-strong); color: var(--color-text-inverse); }
.section--dark h2, .section--dark h3, .section--dark p { color: var(--color-text-inverse); }
.section-head { max-width: 760px; margin-block-end: var(--space-4); }
.eyebrow {
  display: inline-block; font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-700); margin-block-end: var(--space-1);
}
.section--dark .eyebrow, .visit-cta .eyebrow { color: var(--gold-500); }
.lead { font-size: var(--fs-lead); color: var(--color-text-muted); }
.section--dark .lead { color: var(--gray-200); }

.tbc {
  display: inline-block;
  padding: 0.05em 0.5em;
  border: 1.5px dashed var(--gold-600);
  border-radius: 5px;
  background: var(--gold-100);
  color: var(--maroon-800);
  font-size: 0.85em;
  font-weight: 600;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  border: 2px solid transparent; transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
  text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-brand); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--maroon-700); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.65); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; color: var(--color-brand); border-color: var(--color-brand); }
.btn-outline:hover { background: var(--maroon-050); }
.btn-gold { background: var(--color-accent); color: var(--maroon-900); }
.btn-gold:hover { background: var(--gold-600); color: var(--maroon-900); } /* dark text stays: white on the darker gold is only 3.2:1 */
.btn-whatsapp { background: #25D366; color: #06210f; }
.btn-whatsapp:hover { background: #1ebe5a; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
/* Phase 1 D: comfortable 44 px tap height for small buttons on phones (post-submit Call / WhatsApp / Copy my request, card CTAs) */
@media (max-width: 720px) { .btn-sm { min-height: 44px; } }
/* The one dominant action per page (hero "Upload Drawings for a Factory Quote") */
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.08rem; }
.btn-lg.btn-primary { box-shadow: var(--shadow-md); }
.btn-lg.btn-primary:focus-visible { box-shadow: 0 0 0 2px var(--white), var(--shadow-md); } /* the rule above outranks the global focus rule, so it restates the white band */
/* A live quote POST is in flight (main.js sets aria-disabled, not disabled, so keyboard focus stays on the button) */
.btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
/* "Copy my request" beside the Call / WhatsApp fallback buttons */
.form-fallback button, .form-fallback .btn-copy, .form-fallback button.copy {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: 0.88rem; line-height: 1.2;
  background: var(--white); color: var(--color-brand); border: 2px solid var(--color-brand); cursor: pointer;
}
.form-fallback button:hover, .form-fallback .btn-copy:hover { background: var(--maroon-050); }
.form-fallback button.is-copied { background: var(--color-brand); color: var(--white); }
/* Small confirmation toast ("Copied") — main.js adds .is-visible for a moment */
.toast {
  position: fixed; inset-inline-start: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px) + 12px); z-index: 950;
  transform: translate(-50%, 8px); background: var(--maroon-900); color: var(--white); font-size: 0.85rem; font-weight: 700;
  padding: 0.55rem 1rem; border-radius: 999px; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition); max-width: calc(100vw - 2rem); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
[dir="rtl"] .toast { transform: translate(50%, 8px); }
[dir="rtl"] .toast.is-visible { transform: translate(50%, 0); }
@media (min-width: 721px) { .toast { bottom: 96px; } } /* above the WhatsApp + Call corner pill (.sticky-cta from 721 px) */

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-block-end: 1px solid var(--color-border);
  height: var(--header-h);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--space-3); }
.brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
@media (max-width: 420px) { .brand img { height: 32px; } }
/* The logos sit in a <picture> (1x/2x/3x PNG + WebP, T098). The img itself is display: block
   (the img rule above), so the wrapper only has to stay out of the way: in the header the
   picture is the flex item and wraps the img exactly; in the footer display: contents lays the
   img out as a direct child of .footer-logo, as before. */
.brand picture { display: block; }
.footer-logo picture { display: contents; }
.brand__name { font-weight: 700; font-size: 1.05rem; color: var(--color-brand-strong); }

.main-nav { display: flex; align-items: center; gap: var(--space-4); }
.main-nav__list { list-style: none; display: flex; gap: var(--space-3); margin: 0; padding: 0; }
.main-nav__list a { color: var(--gray-800); font-weight: 600; font-size: 0.95rem; padding: 0.4rem 0.1rem; position: relative; }
.main-nav__list a:hover { color: var(--color-brand); text-decoration: none; }
.main-nav__list a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--color-accent); transition: width var(--transition);
}
.main-nav__list a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
/* No overflow:hidden — it clipped the focus ring to a sliver; the children are rounded instead */
.lang-switch {
  display: inline-flex; border: 1.5px solid var(--color-border-strong); border-radius: 999px; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.lang-switch a, .lang-switch span { padding: 0.4rem 0.75rem; color: var(--gray-700); border-radius: 999px; }
.lang-switch [aria-current="true"] { background: var(--color-brand); color: var(--white); }
.lang-switch a:hover { text-decoration: none; background: var(--maroon-050); }

.nav-toggle {
  display: none; background: none; border: none; padding: 0.4rem; color: var(--color-brand-strong);
}
.nav-toggle svg { width: 28px; height: 28px; }
/* T064: the button carries both glyphs and aria-expanded picks one, so the icon can
   never disagree with the label the script sets. */
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
/* The menu button needs main.js; without it the button is not shown (footer Explore list, language switch and sticky bar still work). visibility keeps the header the same size before and after main.js runs, so nothing shifts on a slow first load */
html:not(.js) .nav-toggle { visibility: hidden; }

/* Menu collapse: from 1141 px the seven desktop links (incl. "Factory Visit") fit in EN and AR; below that the
   header shows logo, language switch, Factory Quote and the menu button (main.js reads the toggle's display) */
@media (max-width: 1140px) {
  .main-nav__list { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { white-space: nowrap; }
}
/* T018: the header quote button stays down to 721 px (tablets, phones in landscape);
   below that the sticky bar takes over, so there is never a width without a quote link */
@media (max-width: 720px) {
  .header-actions .btn-primary.header-cta { display: none; }
}
/* Very narrow screens / 400 % zoom: tighter header so the menu button never leaves the viewport */
@media (max-width: 400px) {
  .site-header__inner { gap: 0.75rem; }
  .header-actions { gap: 0.4rem; }
  .lang-switch a, .lang-switch span { padding-inline: 0.55rem; }
  .nav-toggle { padding: 0.3rem; }
}

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); z-index: 490;
  display: none; overflow-y: auto; padding: var(--space-4) var(--space-3);
}
.mobile-nav.is-open { display: block; }
.mobile-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav__list a { display: block; padding: 0.9rem 0.5rem; font-weight: 700; font-size: 1.1rem; color: var(--gray-900); border-block-end: 1px solid var(--color-border); }
/* The quote / samples / visit CTAs lead the panel (T064), spaced from the link list below them */
.mobile-nav__cta { margin-block-end: var(--space-4); display: flex; flex-direction: column; gap: 0.75rem; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */
.site-footer { background: var(--gray-900); color: var(--gray-200); padding-block: var(--space-6) calc(var(--space-5) + 70px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 { color: var(--white); font-size: 1rem; margin-block-end: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.9rem; }
.footer-grid a { color: var(--gray-300); }
.footer-grid a:hover { color: var(--white); }
.footer-logo img { height: 40px; width: auto; margin-block-end: 0.9rem; }
.footer-grid li { color: var(--gray-300); }
/* First column: legal name, the technical line, then the tagline in small type */
.footer__legal { color: var(--gray-200); font-size: 0.92rem; font-weight: 600; margin-block-end: 0.5rem; }
.footer__line { color: var(--gray-300); font-size: 0.9rem; margin-block-end: 0.5rem; max-width: 19.04em; } /* = 34ch in Cairo at 400; em, not ch: on the Arabic pages ch follows Cairo's Latin file (T141, landing.css .hero h1) */
.footer__tagline { color: var(--gold-500); font-size: 0.82rem; font-style: italic; margin-block-end: 0; }
.footer-social { display: flex; gap: 0.6rem; margin-block-start: 1rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-block-start: 1px solid rgba(255,255,255,0.12); margin-block-start: var(--space-5); padding-block-start: var(--space-3);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.82rem; color: var(--gray-300);
}
.footer-bottom a { color: var(--gray-300); }
.site-footer--compact { padding-block: var(--space-2) var(--space-4); }
.site-footer--compact .footer-bottom { border: 0; margin: 0; }

/* Legal / long-form text pages */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-block: var(--space-4) var(--space-1); }
.legal ul { display: grid; gap: 0.5rem; }
.legal code { font-size: 0.9em; background: var(--gray-100); padding: 0.1em 0.35em; border-radius: 4px; }

/* ---------------------------------------------------------------------- */
/* Mobile sticky CTA bar                                                    */
/* ---------------------------------------------------------------------- */
/* Three differentiated actions: Request a Quote (primary, wider, maroon), WhatsApp, Factory Visit */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 480; background: var(--white);
  border-block-start: 1px solid var(--color-border); box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  display: none; grid-template-columns: 1.4fr 1fr 1fr;
  padding-block-end: env(safe-area-inset-bottom, 0px);
}
.sticky-cta a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  min-height: 56px; min-width: 0; padding: 0.5rem 0.3rem;
  font-size: 0.72rem; font-weight: 700; line-height: 1.2; text-align: center; overflow-wrap: break-word;
  color: var(--gray-800); text-decoration: none;
}
.sticky-cta a svg { width: 20px; height: 20px; flex-shrink: 0; }
/* T063: while the hero's own buttons are on screen the bar repeats them, so main.js
   stows it. Transform only — the body keeps its reserved bottom padding, so nothing
   reflows and the bar cannot cover the credibility line under the hero buttons.
   No JS, no class: the bar stays where it always was. */
.sticky-cta { transition: transform 0.24s ease; }
.sticky-cta.is-stowed { transform: translateY(110%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
.sticky-cta a.sticky-cta__quote { background: var(--color-brand); color: var(--white); font-size: 0.8rem; font-weight: 700; }
.sticky-cta a.sticky-cta__quote:active { background: var(--maroon-700); }
/* Darker green label for contrast on white (~5:1); the icon keeps the WhatsApp brand green */
.sticky-cta a.sticky-cta__whatsapp { color: #15803d; }
.sticky-cta a.sticky-cta__whatsapp svg { color: #25d366; }
.sticky-cta a.sticky-cta__visit { color: var(--gray-800); }
@media (max-width: 720px) {
  .sticky-cta { display: grid; }
  body { padding-block-end: calc(64px + env(safe-area-inset-bottom, 0px)); }
  /* T014: focused controls and anchor targets stop above the bar instead of underneath it */
  html { scroll-padding-block-end: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
/* Phase 1 D item 4: from 721 px the same nav is a small WhatsApp + Call pill in the bottom-end corner (the header keeps the quote button) */
@media (min-width: 721px) {
  .sticky-cta { display: flex; inset-inline: auto 24px; bottom: 24px; gap: 0.25rem; padding: 0.3rem; border: 1px solid var(--color-border); border-radius: 999px; box-shadow: var(--shadow-md); }
  .sticky-cta a.sticky-cta__quote, .sticky-cta a.sticky-cta__visit { display: none; }
  .sticky-cta a { flex-direction: row; gap: 0.45rem; min-height: 44px; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.85rem; white-space: nowrap; }
  .sticky-cta a:hover { background: var(--maroon-050); text-decoration: none; }
  .sticky-cta.sticky-cta--phone-only { display: none; }
}
/* Phones keep the three-column bar (quote, WhatsApp, visit — T063); the call link is for the pill only */
@media (max-width: 720px) { .sticky-cta a.sticky-cta__call { display: none; } }

/* ---------------------------------------------------------------------- */
/* Print                                                                     */
/* ---------------------------------------------------------------------- */
@media print {
  .site-header, .mobile-nav, .sticky-cta, .lightbox, .skip-link, .nav-toggle, .header-cta, .toast, .visit-cta__map { display: none !important; }
  [data-animate] { opacity: 1 !important; transform: none !important; }
  body { padding: 0; color: #000; background: #fff; }
  a { color: inherit; }
  /* Mood board (3D designer): once cabin-configurator.js has filled [data-cc-moodboard] and removed its hidden
     attribute (or set body.cc-print-moodboard), only the mood board prints. Ordinary Ctrl+P on any page is unaffected. */
  body:has(.cc-moodboard:not([hidden])) > *:not(main),
  body:has(.cc-moodboard:not([hidden])) > main > *:not(.cc-moodboard),
  body.cc-print-moodboard > *:not(main),
  body.cc-print-moodboard > main > *:not(.cc-moodboard) { display: none !important; }
  body:has(.cc-moodboard:not([hidden])) > main > .cc-moodboard,
  body.cc-print-moodboard > main > .cc-moodboard { display: block !important; }
}

/* ---------------------------------------------------------------------- */
/* Utilities                                                                */
/* ---------------------------------------------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
/* Reveal-on-scroll is an enhancement: cards are hidden only after main.js has set html.js-reveal (DEG-01) */
.js-reveal [data-animate] { opacity: 0; transform: translateY(16px); transition: opacity 550ms ease, transform 550ms ease; }
.js-reveal [data-animate].in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal [data-animate] { opacity: 1; transform: none; transition: none; } }

.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700;
  padding: 0.4rem 0.8rem; border-radius: 999px; background: var(--gray-100); color: var(--gray-700);
}

.breadcrumbs { font-size: 0.85rem; color: var(--gray-500); padding-block: var(--space-2); }
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 0.4rem; color: var(--gray-300); }
[dir="rtl"] .breadcrumbs li:not(:last-child)::after { content: "\\"; }

/* T135: #capabilities merged into #products. Nothing on the site links to the old
   id, but a shared or printed link might, so it survives as a zero-size anchor that
   scroll-padding still lands correctly against. */
.anchor-alias { display: block; height: 0; overflow: hidden; }
