/* ============================================================
   ACS GLOBAL — Layout, Typography, Shared Components
   ============================================================ */

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

/* --- Section Bands --- */
/* Every page section uses one of these background classes */
.band {
  padding-block: var(--space-xl);
}
.band--page    { background: var(--color-page); }
.band--surface { background: var(--color-surface); }
.band--sand    { background: var(--color-sand); }   /* opt-in: rare accent band, max once per page */
.band--dark    { background: var(--color-dark); }

/* Ruled top border on sections that need separation */
.band--ruled {
  border-top: 1px solid var(--color-rule);
}
.band--dark.band--ruled {
  border-top: 1px solid var(--color-rule-dark);
}

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

/* Serif headline — used for H1, H2, pull quotes */
.type-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
}
.type-serif--italic {
  font-style: italic;
}

/* Spaced uppercase section label */
.type-label {
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.type-label--orange {
  /* Legacy class name — eyebrows are now ink for editorial restraint.
     Clay is reserved for the page's single accent moment. */
  color: var(--color-text-primary);
}
.type-label--rule {
  /* label with a rule line extending to the right */
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.type-label--rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-rule);
}

/* Body text sizes */
.type-body     { font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--color-text-body); }
.type-body--lg { font-size: var(--text-lg);   line-height: var(--leading-relaxed); color: var(--color-text-body); }
.type-muted    { color: var(--color-text-muted); }
.type-inverse  { color: var(--color-text-inverse); }
.type-muted-inverse { color: var(--color-text-muted-inverse); }
.type-orange   { color: var(--color-orange); }

/* --- Horizontal Rule --- */
.rule {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: 0;
}
.rule--dark {
  border-color: var(--color-rule-dark);
}

/* --- Buttons --- */

/* Primary: solid black */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  border: 1px solid transparent;
  border-radius: var(--radius-none);
  white-space: nowrap;
  text-align: center;
}

.btn--primary {
  background: var(--color-dark);
  color: var(--color-text-inverse);
  border-color: var(--color-dark);
}
.btn--primary:hover {
  background: var(--color-clay);
  border-color: var(--color-clay);
  color: var(--color-cream);
}

/* Outline: bordered, no fill */
.btn--outline {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-rule);
}
.btn--outline:hover {
  border-color: var(--color-text-primary);
}

/* Orange ghost: orange text, no border */
.btn--ghost-orange {
  background: transparent;
  color: var(--color-orange);
  border-color: transparent;
  padding-inline: 0;
}
.btn--ghost-orange:hover {
  color: var(--color-orange-hover);
}
.btn--ghost-orange::after {
  content: ' →';
}

/* Inverse outline: for use on dark backgrounds */
.btn--outline-inverse {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: var(--rule-inverse);
}
.btn--outline-inverse:hover {
  border-color: var(--color-text-inverse);
}

/* Orange outline on dark (e.g. bottom CTA) */
.btn--outline-orange {
  background: transparent;
  color: var(--color-text-inverse);
  border: 1px solid var(--color-orange);
}
.btn--outline-orange:hover {
  background: rgb(207 145 117 / 0.15); /* clay @ 0.15 */
  border-color: var(--color-clay);
  color: var(--color-text-inverse);
}

/* --- Section Label + Heading Block --- */
/* Standard pattern used before every major section */
.section-header {
  margin-bottom: var(--space-lg);
}
.section-header--centered {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}
.section-header .type-label {
  margin-bottom: var(--space-sm);
  display: block;
}

/* --- Stat Row --- */
/* Inline stats separated by vertical pipes — used at bottom of hero */
.stat-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-rule);
}
.stat-item {}
.stat-item__number {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-item__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--color-rule);
  flex-shrink: 0;
}

/* --- Numbered Grid (Services) --- */
/* Ruled rows, no cards, no shadows */
.numbered-grid {
  display: grid;
  border-top: 1px solid var(--color-rule);
}
.numbered-grid__item {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--color-rule);
  align-items: start;
}
.numbered-grid__num {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1;
  padding-top: 0;
}
.numbered-grid__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
}
.numbered-grid__desc {
  font-size: var(--text-base);
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
}
.numbered-grid__link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-text-primary);
  padding-bottom: 1px;
}
.numbered-grid__link::after { content: ' →'; }

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.two-col--align-center { align-items: center; }

/* --- Pull Quote --- */
.pull-quote {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-style: italic;
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-tight);
}
.pull-quote span {
  /* Italic + serif carry the emphasis. No color tint. */
  color: inherit;
  font-style: italic;
}

.pull-quote.type-inverse {
  color: var(--color-text-inverse);
}

.band--dark .page-prose li {
  color: var(--color-text-muted-inverse);
}

/* --- Client Logo Wall --- */
.logo-wall {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.logo-wall__item {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-rule);
  padding: 10px 20px;
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.img-placeholder {
  background: var(--color-rule);
  aspect-ratio: 16 / 9;
  width: 100%;
}

body.nav-is-open {
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 200;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-dark);
  color: var(--color-text-inverse);
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
}

.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.logo-wall img {
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.9;
  filter: grayscale(100%);
}

.logo-wall__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
}

/* Page-specific layouts (contact, about, services, etc.) live in
   their own CSS files (css/contact.css, css/about.css, css/services.css).
   The legacy "Phase 1 shells" that used to live here have been removed
   to avoid clashes with the newer page CSS — particularly a global rule
   that center-aligned `.contact-layout > div:first-child` at <=768px,
   which broke the contact page's left-aligned mobile layout. */
