/* ============================================================
   WILDAWBREN CONSTRUCTION — Global Stylesheet
   Tone: gritty, tough, warm | Neo-brutalist influence
   ============================================================ */

/* --- Self-hosted variable fonts --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-normal.woff2') format('woff2-variations'),
       url('../fonts/inter-latin-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-italic.woff2') format('woff2-variations'),
       url('../fonts/inter-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html, body {
  overflow-x: clip;
}

p, h1, h2, h3, h4 {
  overflow-wrap: break-word;
}

/* --- Design Tokens --- */
:root {
  /* Color — monochrome theme: white + black */
  --color-brand: #000000;
  --color-brand-dark: #000000;
  --color-brand-light: #1F1F1F;
  --color-accent: #000000;
  --color-accent-dark: #2A2A2A;
  --color-rust: #4A4A4A;
  --color-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F5F5F5;
  --color-text: #111111;
  --color-text-muted: #6B6B6B;
  --color-text-on-dark: #FFFFFF;
  --color-border: #E5E5E5;
  --color-border-light: #EFEFEF;

  /* Type — Inter variable */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --fs-base: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --fs-sm: 0.875rem;
  --fs-xs: 0.8125rem;
  --fs-h1: clamp(2.25rem, 1.8rem + 2.2vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h4: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --lh-body: 1.65;
  --lh-heading: 1.15;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 0.75rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2.5rem;
  --sp-2xl: 4rem;
  --sp-3xl: 6rem;
  --sp-section: clamp(4rem, 3rem + 4vw, 7rem);

  /* Radius — sharp, authoritative */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-hero: 6px 6px 6px 24px;

  /* Shadow */
  --shadow-card: 0 2px 8px rgb(0 0 0 / 0.08);
  --shadow-card-hover: 0 4px 12px rgb(0 0 0 / 0.12);

  /* Motion — rugged archetype (construction/excavation brand) */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-med: 180ms;
  --dur-hover: 120ms;
  --dur-reveal: 240ms;
  --dist-reveal: 12px;
  --stagger: 60ms;
  --hover-lift: -2px;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 3vw, 2rem);
}

/* --- Base --- */
html {
  font-size: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Blanket reduced-motion safety — kills all animations and transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-heading);
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-lg); }
h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-md); }
h4 { font-size: var(--fs-h4); margin-bottom: var(--sp-sm); }

p { margin-bottom: var(--sp-md); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease-hover);
}

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

strong { font-weight: var(--fw-bold); }

/* --- Images --- */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-md);
  background: var(--color-brand);
  color: var(--color-surface);
  padding: var(--sp-sm) var(--sp-md);
  z-index: 9999;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
}

.skip-link:focus {
  top: 0;
}

/* --- FOUC guard for partial includes --- */
#site-nav-container:empty,
#site-footer-container:empty {
  display: none;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-brand);
  border-bottom: 3px solid var(--color-surface);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-sm) var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
  min-height: 88px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  text-decoration: none;
  color: var(--color-text-on-dark);
  flex-shrink: 0;
}

.brand__logo {
  display: block;
  height: 66px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.brand__mark {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand__mark span {
  display: block;
  color: var(--color-accent);
  font-size: 0.65em;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Desktop Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  list-style: none;
}

.nav-links a {
  color: var(--color-text-on-dark);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  padding: var(--sp-xs) var(--sp-sm);
  border-radius: var(--r-sm);
  transition: background var(--dur-fast) var(--ease-hover), color var(--dur-fast) var(--ease-hover);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgb(255 255 255 / 0.1);
  color: var(--color-accent);
}

.nav-links a[aria-current="page"] {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

/* Nav CTA */
.nav-links a.nav-cta {
  background: var(--color-accent);
  color: var(--color-brand-dark);
  font-weight: var(--fw-bold);
  padding: var(--sp-xs) var(--sp-md);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus-visible {
  background: var(--color-accent-dark);
  color: var(--color-surface);
}

.nav-links li:has(a.nav-cta[aria-current="page"]) {
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-xs);
  color: var(--color-text-on-dark);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* --- Mobile Nav --- */
@media (max-width: 767px) {
  .brand__logo {
    height: 54px;
  }

  .brand__mark {
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--color-brand);
    z-index: 45;
    transform: translateX(100%);
    transition: transform var(--dur-med) var(--ease-smooth);
    visibility: hidden;
    padding-top: 91px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-lg);
    gap: var(--sp-xs);
  }

  .nav-links a {
    display: block;
    padding: var(--sp-md);
    font-size: var(--fs-base);
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
  }

  .nav-links a.nav-cta {
    margin-top: var(--sp-md);
    justify-content: center;
    border-bottom: none;
  }

  body:has(.site-nav[data-open="true"]) {
    overflow: hidden;
  }
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
    align-items: center;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--dur-med) var(--ease-smooth), color var(--dur-med) var(--ease-smooth), border-color var(--dur-med) var(--ease-smooth), transform var(--dur-med) var(--ease-smooth), box-shadow var(--dur-med) var(--ease-smooth);
  min-height: 48px;
  line-height: 1.2;
  will-change: transform;
}

.btn:active {
  transform: translateY(0);
  transition-duration: var(--dur-fast);
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: background var(--dur-fast) var(--ease-hover), color var(--dur-fast) var(--ease-hover), border-color var(--dur-fast) var(--ease-hover); }
  .btn:hover, .btn:focus-visible { transform: none !important; }
}

a.btn,
a.btn--primary,
a.btn--ghost,
a.btn--accent,
a.btn--light {
  color: var(--btn-fg, var(--color-surface));
}

.btn--primary {
  --btn-fg: var(--color-text-on-dark);
  background: var(--color-brand);
  color: var(--color-text-on-dark);
  border-color: var(--color-brand);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-brand-light);
  border-color: var(--color-brand-light);
  color: var(--color-text-on-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgb(0 0 0 / 0.35);
}

.btn--ghost {
  --btn-fg: var(--color-brand);
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--color-brand);
  color: var(--color-surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgb(0 0 0 / 0.35);
}

.btn--light {
  --btn-fg: var(--color-brand-dark);
  background: var(--color-surface);
  color: var(--color-brand-dark);
  border-color: var(--color-surface);
}

.btn--light:hover,
.btn--light:focus-visible {
  background: var(--color-bg);
  border-color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgb(0 0 0 / 0.25);
}

.btn--ghost-light {
  --btn-fg: var(--color-text-on-dark);
  background: transparent;
  color: var(--color-text-on-dark);
  border-color: var(--color-text-on-dark);
}

.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  background: var(--color-surface);
  color: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgb(0 0 0 / 0.35);
}

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

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

/* --- Sections --- */
.section {
  padding-block: var(--sp-section);
}

.section--cream {
  background: var(--color-surface-alt);
}

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

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

.section--dark a:not(.btn) {
  color: var(--color-text-on-dark);
  text-decoration: underline;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-surface);
}

.section--dark .section__label,
.hero .section__label,
.page-hero .section__label {
  color: var(--color-text-on-dark);
}

.section--dark .text-muted {
  color: rgb(255 255 255 / 0.7);
}

/* Section label — small caps above heading */
.section__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: var(--sp-sm);
}

.section__intro {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

.section--dark .section__intro {
  color: rgb(255 255 255 / 0.8);
}

.text-center .section__intro {
  margin-inline: auto;
}

.pull-quote--center {
  border-left: none;
  text-align: center;
  margin-inline: auto;
  max-width: 55ch;
}

/* --- Split Grid (text + image) --- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-grid--reverse {
    direction: rtl;
  }

  .split-grid--reverse > * {
    direction: ltr;
  }
}

.split-grid__image img,
.split-grid__image video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-hero);
  display: block;
}

/* Compact media: keeps decorative clips from dominating a half-column.
   Caps width and lets the asset respect its intrinsic aspect ratio. */
.split-grid__image--compact {
  display: flex;
  justify-content: center;
}

.split-grid__image--compact img,
.split-grid__image--compact video {
  width: 100%;
  max-width: 360px;
  aspect-ratio: auto;
  height: auto;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--sp-xl);
}

.card {
  background: var(--color-surface);
  border: 2px solid var(--color-border-light);
  border-radius: var(--r-md);
  padding: var(--sp-xl);
  transition: border-color var(--dur-fast) var(--ease-hover), transform var(--dur-fast) var(--ease-hover);
}

.card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

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

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-lg);
  color: var(--color-accent);
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

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

/* --- Numbered List (split layout) --- */
.numbered-list {
  list-style: none;
  counter-reset: numbered;
}

.numbered-list li {
  counter-increment: numbered;
  display: flex;
  gap: var(--sp-md);
  padding-block: var(--sp-md);
  border-bottom: 1px solid var(--color-border-light);
}

.numbered-list li::before {
  content: counter(numbered, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-black);
  color: var(--color-accent);
  flex-shrink: 0;
  line-height: 1.4;
}

.section--dark .numbered-list li {
  border-color: rgb(255 255 255 / 0.12);
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-xl);
  text-align: center;
  padding-block: var(--sp-xl);
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  color: var(--color-accent);
  line-height: 1;
}

.stat__label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--sp-xs);
}

.section--dark .stat__label {
  color: rgb(255 255 255 / 0.7);
}

/* --- Pull Quote --- */
.pull-quote {
  border-left: 4px solid var(--color-accent);
  padding: var(--sp-lg) var(--sp-xl);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  font-style: italic;
  color: var(--color-text);
  max-width: 50ch;
  margin-block: var(--sp-xl);
}

.section--dark .pull-quote {
  color: var(--color-text-on-dark);
}

.pull-quote.pull-quote--center {
  border-left: none;
  text-align: center;
  margin-inline: auto;
  max-width: 55ch;
  padding-inline: var(--sp-md);
}

/* --- Forms --- */
.form__group {
  margin-bottom: var(--sp-lg);
}

.form__group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-xs);
  color: var(--color-text);
}

.form__group input,
.form__group textarea,
.form__group select {
  width: 100%;
  padding: 0.875rem var(--sp-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease-hover);
  min-height: 48px;
}

.form__group input:focus-visible,
.form__group textarea:focus-visible,
.form__group select:focus-visible {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgb(0 0 0 / 0.55);
}

/* Suppress the native outline for mouse/touch users who get the border-color change */
.form__group input:focus:not(:focus-visible),
.form__group textarea:focus:not(:focus-visible),
.form__group select:focus:not(:focus-visible) {
  outline: none;
  border-color: var(--color-brand);
}

.form__group textarea {
  resize: vertical;
  min-height: 120px;
}

.form__group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%235A5A5A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__error {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-rust);
  margin-top: var(--sp-xs);
}

.form__hint {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--sp-xs);
}

/* Honeypot */
.form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Form status banner (success / error after POST submission) */
.form__status {
  padding: var(--sp-md);
  margin-bottom: var(--sp-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  background: var(--color-surface);
  color: var(--color-text);
}
.form__status--success {
  border-color: var(--color-brand);
  background: var(--color-surface-alt);
  color: var(--color-text);
}
.form__status--error {
  border-color: var(--color-rust);
  background: var(--color-surface);
  color: var(--color-rust);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-brand-dark);
  color: var(--color-text-on-dark);
  padding-block: var(--sp-2xl) var(--sp-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
  }
}

.footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  text-decoration: none;
  margin-bottom: var(--sp-md);
}

.footer__logo {
  display: block;
  height: 96px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-black);
  text-transform: uppercase;
  color: var(--color-surface);
  letter-spacing: -0.01em;
}

.footer__brand span {
  display: block;
  color: var(--color-accent);
  font-size: 0.65em;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
}

.footer__desc {
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / 0.7);
  line-height: 1.6;
  max-width: 35ch;
}

.footer__heading {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--sp-md);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--sp-sm);
}

.footer__links a {
  color: rgb(255 255 255 / 0.8);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color var(--dur-fast) var(--ease-hover);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__hint {
  display: block;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.footer__social {
  display: flex;
  gap: var(--sp-md);
  margin-top: var(--sp-md);
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-on-dark);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-hover);
}

.footer__social a:hover {
  color: var(--color-accent);
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

/* Footer Instagram chooser popover */
.footer__social-pop {
  position: relative;
  display: inline-flex;
}

.footer__social-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--color-text-on-dark);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-hover);
}

.footer__social-trigger:hover,
.footer__social-trigger[aria-expanded="true"] {
  color: var(--color-accent);
}

.footer__social-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 8px;
  box-shadow: var(--shadow-card-hover);
  white-space: nowrap;
  z-index: 10;
}

.footer__social-menu[hidden] {
  display: none;
}

.footer__social-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-surface);
}

.footer__social-menu a {
  display: block;
  width: auto;
  height: auto;
  padding: 8px 14px;
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.footer__social-menu a:hover,
.footer__social-menu a:focus-visible {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.footer-meta {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-top: var(--sp-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
  font-size: var(--fs-xs);
  color: rgb(255 255 255 / 0.75);
}

.footer-meta a {
  color: rgb(255 255 255 / 0.75);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--color-accent);
}

.footer-meta__links {
  display: flex;
  gap: var(--sp-md);
}

/* --- Scroll Reveal Animation --- */
html.has-anim .reveal {
  opacity: 0;
  transform: translateY(var(--dist-reveal));
  transition: opacity var(--dur-reveal) var(--ease-smooth), transform var(--dur-reveal) var(--ease-smooth);
  transition-delay: var(--delay, 0s);
}

html.has-anim .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.has-anim .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--color-text-muted); }

.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }
.my-lg { margin-block: var(--sp-lg); }
.py-lg { padding-block: var(--sp-lg); }

.list-disc {
  list-style: disc;
  padding-left: var(--sp-lg);
}

.list-disc li {
  margin-bottom: var(--sp-sm);
}

/* content-narrow for legal pages */
.content-narrow {
  max-width: 75ch;
  margin-inline: auto;
}

.content-narrow h2 {
  margin-top: var(--sp-2xl);
}

.content-narrow h3 {
  margin-top: var(--sp-xl);
}

.content-narrow p {
  line-height: 1.75;
}

/* Info grid for contact page */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Contact details list --- */
.contact-details {
  display: grid;
  gap: var(--sp-md);
  margin: 0 0 var(--sp-xl);
  padding: 0;
}

.contact-details__item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
}

.contact-details__item dt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-details__item dt svg {
  width: 20px;
  height: 20px;
}

.contact-details__item dd {
  margin: 0;
  font-size: var(--fs-base);
  color: var(--color-text);
  line-height: 1.5;
  align-self: center;
}

.contact-details__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.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;
}

/* --- Contact links --- */
.contact-links {
  display: grid;
  gap: var(--sp-sm);
}

.contact-links__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--color-brand);
  color: var(--color-text-on-dark);
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: background var(--dur-hover) var(--ease-hover), color var(--dur-hover) var(--ease-hover);
}

.contact-links__item:hover,
.contact-links__item:focus-visible {
  background: var(--color-accent);
  color: var(--color-brand-dark);
}

.contact-links__item svg {
  flex-shrink: 0;
}

/* --- Mobile Call Bar --- */
.mobile-call-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-call-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--color-brand);
    border-top: 2px solid var(--color-surface);
    padding: var(--sp-sm) var(--container-pad);
    padding-bottom: calc(var(--sp-sm) + env(safe-area-inset-bottom));
    justify-content: center;
    gap: var(--sp-sm);
    transform: translateY(0);
    transition: transform var(--dur-med) var(--ease-smooth);
  }

  .mobile-call-bar.is-hidden {
    transform: translateY(110%);
    pointer-events: none;
  }

  .mobile-call-bar .btn {
    flex: 1;
    font-size: var(--fs-xs);
    padding: var(--sp-sm) var(--sp-md);
    min-height: 44px;
  }
}

/* --- Hero --- */
.hero {
  background: var(--color-brand);
  color: var(--color-text-on-dark);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 6rem);
  position: relative;
  overflow: hidden;
}

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

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--color-surface);
  margin-bottom: var(--sp-sm);
}

.hero h1 em {
  font-style: normal;
  color: rgb(255 255 255 / 0.72);
}

.hero__sub {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: rgb(255 255 255 / 0.85);
  margin-bottom: var(--sp-xl);
  max-width: 45ch;
  line-height: 1.7;
}

.hero__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-hero);
  border: 3px solid var(--color-accent);
}

/* Page Hero (interior pages) */
.page-hero {
  background: var(--color-brand);
  color: var(--color-text-on-dark);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem);
  text-align: center;
}

.page-hero h1 {
  color: var(--color-surface);
  margin-bottom: var(--sp-md);
}

.page-hero p {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  color: rgb(255 255 255 / 0.8);
  max-width: 55ch;
  margin-inline: auto;
}

/* --- Service Card (services page variant) --- */
.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .service-block {
    grid-template-columns: 1fr 1fr;
  }

  .service-block--reverse {
    direction: rtl;
  }

  .service-block--reverse > * {
    direction: ltr;
  }
}

.service-block__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-hero);
  border: 2px solid var(--color-border-light);
}

.service-block__content .section__label {
  margin-bottom: var(--sp-xs);
}

/* --- Recent Work gallery (kitchens section) --- */
.recent-work {
  margin-top: var(--sp-2xl);
}

.recent-work__heading {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.recent-work__eyebrow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-xs);
}

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

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

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

.recent-grid img,
.recent-grid video {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 2px solid var(--color-border-light);
  transition: transform var(--dur-hover) var(--ease-hover), border-color var(--dur-hover) var(--ease-hover);
  display: block;
  background: var(--color-surface-alt, #f5f5f5);
}

.recent-grid img:hover,
.recent-grid video:hover {
  transform: translateY(var(--hover-lift));
  border-color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .recent-grid video { animation: none; }
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--color-brand);
  color: var(--color-text-on-dark);
  padding-block: var(--sp-2xl);
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-surface);
  margin-bottom: var(--sp-md);
}

.cta-banner p {
  color: rgb(255 255 255 / 0.8);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--sp-xl);
}

.cta-banner .btn-group {
  justify-content: center;
}

/* --- Credential Badge --- */
.credential-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg);
  align-items: center;
}

.credential-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--r-md);
  padding: var(--sp-sm) var(--sp-md);
}

.section--white .credential-badge,
.section--cream .credential-badge {
  background: var(--color-bg);
  border-color: var(--color-border-light);
}

.credential-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.credential-badge__text {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Featured variant: larger pill with a photo/logo thumbnail, centered in its section */
.text-center .credential-badges,
.credential-badges--featured {
  justify-content: center;
}

.credential-badges--featured {
  gap: var(--sp-lg) var(--sp-xl);
  margin-top: var(--sp-xl);
}

.credential-badge--featured {
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg) var(--sp-md) var(--sp-sm);
  border-radius: var(--r-lg);
  min-height: 88px;
  align-items: center;
}

.credential-badge--featured img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-accent);
}

/* SVG icon slot: mirrors the img slot so brand-logo-pending badges keep
   the same height as image-backed ones. Drop in real <img> when supplied. */
.credential-badge--featured svg {
  width: 56px;
  height: 56px;
  padding: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  box-sizing: border-box;
  overflow: visible;
}

/* Wide variant — for rectangular brand logos (e.g. BBB Accredited Business)
   that must not be circle-cropped. Preserves aspect ratio and full artwork. */
.credential-badge--featured-wide img {
  width: auto;
  height: 48px;
  max-width: 120px;
  border-radius: 0;
  object-fit: contain;
  border: 0;
  background: transparent;
}

/* Hero-only: compact inline trust markers on a thin divider row */
.hero .credential-badges {
  gap: var(--sp-md) var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.hero .credential-badge {
  display: inline-flex;
  gap: var(--sp-xs);
  background: transparent;
  border: 0;
  padding: 0;
  color: rgb(255 255 255 / 0.75);
  transition: color var(--dur-med) var(--ease-smooth);
}

.hero .credential-badge:hover {
  color: var(--color-text-on-dark);
}

.hero .credential-badge svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-med) var(--ease-smooth);
}

.hero .credential-badge:hover svg {
  transform: scale(1.1) rotate(-4deg);
}

.hero .credential-badge__text {
  letter-spacing: 0.06em;
}

@media (prefers-reduced-motion: reduce) {
  .hero .credential-badge:hover svg { transform: none; }
}

/* --- Wave Divider --- */
.wave-divider {
  width: 100%;
  display: block;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   MONOCHROME THEME OVERRIDES
   On dark surfaces we flip --color-accent to white so legacy
   `color: var(--color-accent)` rules stay readable (the token
   itself resolves to black everywhere else for brand purity).
   ============================================================ */
.site-header,
.site-nav,
.site-footer,
.section--dark,
.mobile-call-bar,
.cta-banner,
.contact-details__item dt {
  --color-accent: var(--color-text-on-dark);
  --color-accent-dark: var(--color-surface);
}

/* Primary CTA on dark surfaces: flip to white with black text */
.site-header .btn--primary,
.site-nav .btn--primary,
.section--dark .btn--primary,
.cta-banner .btn--primary,
.mobile-call-bar .btn--primary {
  background: var(--color-surface);
  color: var(--color-brand);
  border-color: var(--color-surface);
}

.site-header .btn--primary:hover,
.site-nav .btn--primary:hover,
.section--dark .btn--primary:hover,
.cta-banner .btn--primary:hover,
.mobile-call-bar .btn--primary:hover,
.site-header .btn--primary:focus-visible,
.site-nav .btn--primary:focus-visible,
.section--dark .btn--primary:focus-visible,
.cta-banner .btn--primary:focus-visible,
.mobile-call-bar .btn--primary:focus-visible {
  background: rgb(255 255 255 / 0.85);
  border-color: rgb(255 255 255 / 0.85);
  color: var(--color-brand);
}

/* Nav CTA — white pill on black header */
.nav-links a.nav-cta {
  background: var(--color-surface);
  color: var(--color-brand);
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus-visible {
  background: rgb(255 255 255 / 0.85);
  color: var(--color-brand);
}

/* Anchor hover token on light backgrounds (accent-dark is now black) */
a:hover { color: var(--color-text-muted); }

/* ============================================================
   ORBIT HERO (home page) — logo center, services orbiting
   ============================================================ */
.hero--orbit {
  background: var(--color-brand);
  color: var(--color-text-on-dark);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero--orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgb(255 255 255 / 0.06) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgb(255 255 255 / 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.hero--orbit > .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 1rem + 3vw, 3rem);
}

.orbit-hero__intro {
  max-width: 72ch;
  margin-inline: auto;
}

.hero--orbit h1 {
  color: var(--color-surface);
  margin-bottom: var(--sp-sm);
  font-size: clamp(1.625rem, 1.25rem + 1.6vw, 2.5rem);
  line-height: 1.2;
}

.hero--orbit h1 em {
  font-style: normal;
  color: rgb(255 255 255 / 0.72);
}

.hero--orbit .hero__sub {
  color: rgb(255 255 255 / 0.85);
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  line-height: 1.55;
  max-width: 68ch;
  margin: 0 auto;
}

/* --- Orbit Stage --- */
.orbit-stage {
  --orbit-size: min(580px, calc(100vw - 1.5rem));
  --satellite-size: clamp(94px, 16.1vmin, 150px);
  --orbit-radius: calc((var(--orbit-size) - var(--satellite-size)) / 2);
  position: relative;
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin-inline: auto;
}

/* Decorative dashed orbit ring */
.orbit-stage::before {
  content: "";
  position: absolute;
  inset: calc(var(--satellite-size) / 2);
  border-radius: 50%;
  border: 1px dashed rgb(255 255 255 / 0.18);
  pointer-events: none;
}

.orbit-stage__logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(170px, 42%, 280px);
  height: auto;
  z-index: 2;
  filter: invert(1);
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.orbit {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: orbit-spin 90s linear infinite;
  will-change: transform;
}

.orbit__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--satellite-size);
  height: var(--satellite-size);
  margin: calc(var(--satellite-size) / -2) 0 0 calc(var(--satellite-size) / -2);
  transform: rotate(var(--angle, 0deg)) translateY(calc(-1 * var(--orbit-radius)));
}

/* Per-satellite angles — five equally-spaced positions (72deg apart) */
.orbit__item:nth-child(1) { --angle: -90deg; }
.orbit__item:nth-child(2) { --angle: -18deg; }
.orbit__item:nth-child(3) { --angle:  54deg; }
.orbit__item:nth-child(4) { --angle: 126deg; }
.orbit__item:nth-child(5) { --angle: 198deg; }

.orbit__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-surface);
  border: 2px solid var(--color-text);
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  animation: orbit-counter 90s linear infinite;
  will-change: transform;
  transition: background-color var(--dur-hover) var(--ease-hover),
              border-color var(--dur-hover) var(--ease-hover),
              box-shadow var(--dur-hover) var(--ease-hover);
}

.orbit__link img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: filter var(--dur-hover) var(--ease-hover);
}

.orbit__link:hover,
.orbit__link:focus-visible {
  background: var(--color-text);
  border-color: var(--color-surface);
  box-shadow: 0 0 0 5px rgb(255 255 255 / 0.16);
  outline: none;
}

.orbit__link:hover img,
.orbit__link:focus-visible img {
  filter: invert(1);
}

.orbit__link:focus-visible {
  outline: 3px solid var(--color-surface);
  outline-offset: 4px;
}

/* Pause orbit while user is interacting so satellites are easy to click */
.orbit-stage:hover .orbit,
.orbit-stage:hover .orbit__link,
.orbit-stage:focus-within .orbit,
.orbit-stage:focus-within .orbit__link {
  animation-play-state: paused;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Counter-rotation cancels BOTH the orbit's continuous spin AND the
   per-satellite static --angle, so each satellite stays upright at all
   times instead of ending up tilted by its placement angle. */
@keyframes orbit-counter {
  from { transform: rotate(calc(-1 * var(--angle, 0deg))); }
  to   { transform: rotate(calc(-1 * var(--angle, 0deg) - 360deg)); }
}

/* --- Orbit-hero CTA cluster --- */
.orbit-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-lg);
  width: 100%;
}

.orbit-hero__cta .btn-group {
  justify-content: center;
}

.hero--orbit .credential-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-md) var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  width: min(560px, 100%);
}

/* Smaller phones — drop the icon, keep the text legible */
@media (max-width: 480px) {
  .orbit-stage {
    --satellite-size: clamp(83px, 25.3vmin, 106px);
  }
  .orbit-stage__logo {
    width: clamp(110px, 30%, 170px);
  }
}

/* Reduced motion: stop the spin entirely (covered by global blanket too) */
@media (prefers-reduced-motion: reduce) {
  .orbit,
  .orbit__link {
    animation: none !important;
  }
}

/* ============================================================
   FOCUS-RING OVERRIDES
   The global :focus-visible uses --color-accent which is
   context-overridden to white on dark surfaces. A white ring
   on a white button (btn--primary on dark bg) or a black ring
   on a black element is invisible. These overrides use a dual-ring
   pattern so keyboard users always see a clear indicator.
   ============================================================ */

/* nav-toggle: white outline on black header — visible at 21:1, explicit rule for clarity */
.nav-toggle:focus-visible {
  outline: 2px solid var(--color-surface);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* btn--primary on dark surfaces: white bg button, white ring = invisible.
   Use a black inner outline with a white halo. */
.site-header .btn--primary:focus-visible,
.site-nav .btn--primary:focus-visible,
.section--dark .btn--primary:focus-visible,
.cta-banner .btn--primary:focus-visible,
.mobile-call-bar .btn--primary:focus-visible,
.hero--orbit .btn--primary:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-surface);
}

/* contact-links__item: black bg element, black ring = invisible on cream page.
   Switch to white outline with black halo. */
.contact-links__item:focus-visible {
  outline: 2px solid var(--color-surface);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-brand);
}

/* --- No-JS / pre-injection fallback inside the footer placeholder.
   Renders only when JS is disabled (noscript) OR until components.js
   replaces the contents with the real footer partial. */
.footer__noscript {
  max-width: 60rem;
  margin: 0 auto;
  padding: var(--sp-md);
  text-align: center;
}
.footer__noscript p { margin: 0.4em 0; }
.footer__noscript a {
  color: var(--color-accent);
  text-decoration: underline;
}
