/* ==========================================================================
   CONCRETEFOUNDATION.ORG — BESPOKE ARCHITECTURAL FORMWORK & GEOTECHNICAL UI
   Palette: Cast-in-Place Concrete (#EBE9E2), Basalt Graphite (#181B20),
   Theodolite Survey Orange (#D44A1A), Rebar Oxide Slate (#3A404A)
   Typography: 'Space Grotesk' + 'IBM Plex Sans' + 'IBM Plex Mono'
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --bg-concrete: #ebe9e2;
  --bg-slab: #f5f4ef;
  --bg-basalt: #181b20;
  --bg-basalt-soft: #22262d;
  --text-primary: #14171c;
  --text-secondary: #3e444e;
  --text-muted: #5d6470;
  --accent-orange: #c94314;
  --accent-orange-hover: #a8350d;
  --accent-gold: #c94314;
  --rebar-border: #b8b5ab;
  --rebar-dark: #2c313a;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-concrete);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-concrete);
  background-image:
    radial-gradient(circle at 24px 24px, rgba(24, 27, 32, 0.08) 1.5px, transparent 1.5px);
  background-size: 48px 48px;
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .hero-title, .section-title, .card-title, .legal-title {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p, li, dd, figcaption, td, th {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 3px;
}

.form-input:user-valid {
  border-color: #15803d;
}
.form-input:user-invalid {
  border-color: #b91c1c;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.section-alt, .site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   BESPOKE HEADER: CAST-IN-PLACE ARCHITECTURAL FORMWORK BEAM
   ========================================================================== */
.cf-telemetry-ribbon {
  background: var(--bg-basalt);
  color: #d5d7dc;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  border-bottom: 1px solid #323741;
  padding: 8px 0;
}

.cf-telemetry-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cf-telemetry-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.cf-telemetry-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cf-telemetry-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef6c35;
  display: inline-block;
}

.cf-formwork-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 239, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--bg-basalt);
  box-shadow: 0 6px 0 rgba(24, 27, 32, 0.07);
}

.cf-header-beam {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  min-height: 78px;
}

.cf-brand-plate {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px 12px 0;
  border-right: 2px solid var(--rebar-border);
}

.cf-brand-monogram {
  width: 46px;
  height: 46px;
  background: var(--bg-basalt);
  color: #ffffff;
  border: 2px solid var(--accent-orange);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  position: relative;
  flex-shrink: 0;
}

.cf-brand-monogram::after {
  content: '';
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  background: var(--accent-orange);
}

.cf-brand-text {
  display: flex;
  flex-direction: column;
}

.cf-brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bg-basalt);
}

.cf-brand-sub {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cf-nav-bays {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cf-nav-bays li {
  display: flex;
  align-items: stretch;
  border-right: 1px solid var(--rebar-border);
}

.cf-nav-bays a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 18px;
  min-height: 48px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cf-nav-bays a .bay-index {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--accent-orange);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.cf-nav-bays a:hover {
  background: #e5e2d8;
  color: var(--accent-orange);
}

.cf-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 20px;
}

.header-cta, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  background: var(--accent-orange);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--bg-basalt);
  box-shadow: 4px 4px 0 var(--bg-basalt);
  cursor: pointer;
}

.header-cta:hover, .btn-primary:hover {
  background: var(--accent-orange-hover);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--bg-basalt);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  background: var(--bg-slab);
  color: var(--bg-basalt);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--bg-basalt);
  box-shadow: 4px 4px 0 rgba(24, 27, 32, 0.16);
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--bg-basalt);
  color: #ffffff;
}

#mobileMenuToggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  background: var(--bg-slab);
  border: 2px solid var(--bg-basalt);
  color: var(--bg-basalt);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  cursor: pointer;
}

/* Mobile Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 24, 0.65);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 90vw);
  height: 100vh;
  background: var(--bg-slab);
  border-left: 3px solid var(--bg-basalt);
  z-index: 200;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(102%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.mobile-drawer.open {
  transform: translateX(0);
}
.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--bg-basalt);
}
.mobile-drawer-close {
  min-width: 46px;
  min-height: 46px;
  background: var(--bg-basalt);
  color: #ffffff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}
.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1.5px solid var(--rebar-border);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   BESPOKE HERO: GEOLOGICAL BOREHOLE LOG + STRUCTURAL REACTION DECK
   ========================================================================== */
.cf-borehole-hero {
  padding: 36px 0 56px;
  border-bottom: 3px solid var(--bg-basalt);
}

.cf-hero-frame {
  display: grid;
  grid-template-columns: 315px 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Left Column: Vertical Geotechnical Borehole Log CABA */
.cf-stratigraphy-log {
  background: var(--bg-basalt);
  color: #e6e7eb;
  border: 2px solid var(--bg-basalt);
  box-shadow: 7px 7px 0 rgba(24, 27, 32, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  position: relative;
}

.cf-log-header {
  border-bottom: 1px solid #353b46;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.cf-log-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #ef6c35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

.cf-log-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #ffffff;
  margin-top: 4px;
}

.cf-strata-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cf-stratum-layer {
  background: #232830;
  border-left: 4px solid #ef6c35;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-stratum-layer.layer-2 { border-left-color: #d99b26; }
.cf-stratum-layer.layer-3 { border-left-color: #38bdf8; }
.cf-stratum-layer.layer-4 { border-left-color: #10b981; }

.cf-stratum-depth {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: #9ca3af;
}

.cf-stratum-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
}

.cf-stratum-metrics {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 7px;
  margin-top: 2px;
}

.cf-log-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #3d4451;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: #9ca3af;
}

/* Right Main Structural Reaction Deck */
.cf-reaction-deck {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cf-manifesto-slab {
  background: var(--bg-slab);
  border: 2px solid var(--bg-basalt);
  box-shadow: 7px 7px 0 rgba(24, 27, 32, 0.14);
  padding: 34px 36px;
  position: relative;
}

/* Formwork tie-hole corner markers */
.cf-tie-holes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rebar-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.cf-stamp-badge {
  background: #fae6de;
  color: #9a2e08;
  border: 1px solid #d44a1a;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.73rem;
  text-transform: uppercase;
}

.cf-hero-h1 {
  font-size: clamp(2.05rem, 3.5vw, 3.15rem);
  font-weight: 700;
  color: var(--bg-basalt);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.cf-hero-lead {
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 82ch;
  margin-bottom: 24px;
}

.cf-hero-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Bottom 3-panel inspection strip inside Hero */
.cf-inspection-triptych {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.cf-lcp-viewport {
  position: relative;
  border: 2px solid var(--bg-basalt);
  background: var(--bg-basalt);
  overflow: hidden;
  min-height: 290px;
}

.cf-lcp-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-lcp-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(24, 27, 32, 0.92);
  color: #ffffff;
  border: 1px solid var(--accent-orange);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cf-instrument-card {
  background: var(--bg-slab);
  border: 2px solid var(--bg-basalt);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cf-inst-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-orange);
  font-weight: 700;
  text-transform: uppercase;
}

.cf-inst-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg-basalt);
  margin: 8px 0 4px;
}

.cf-inst-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cf-inst-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   SECTION 1: INTERACTIVE CIRSOC 201 CONCRETE MIX & FOUNDATION SIMULATOR
   ========================================================================== */
.cf-section {
  padding: 72px 0;
  border-bottom: 2px solid var(--rebar-border);
}

.cf-section-dark {
  background: var(--bg-basalt);
  color: #f3f4f6;
  padding: 72px 0;
  border-bottom: 3px solid var(--accent-orange);
}

.cf-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 38px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--bg-basalt);
}

.cf-section-dark .cf-section-header {
  border-bottom-color: #363c47;
}

.cf-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.cf-section-dark .cf-kicker {
  color: #ff7847;
}

.cf-section-title {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  color: var(--bg-basalt);
}

.cf-section-dark .cf-section-title {
  color: #ffffff;
}

.cf-simulator-box {
  background: var(--bg-slab);
  border: 2px solid var(--bg-basalt);
  box-shadow: 8px 8px 0 rgba(24, 27, 32, 0.14);
}

.cf-sim-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 2px solid var(--bg-basalt);
  background: #e1dfd6;
}

.cf-sim-tab {
  min-height: 54px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--bg-basalt);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cf-sim-tab:last-child {
  border-right: none;
}

.cf-sim-tab.active {
  background: var(--bg-basalt);
  color: #ffffff;
}

.cf-sim-tab .tab-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
}

.cf-sim-tab.active .tab-sub {
  color: #ff7847;
}

.cf-sim-body {
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

.cf-sim-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cf-sim-metric {
  background: #ffffff;
  border: 1.5px solid var(--rebar-border);
  padding: 14px 16px;
}

.cf-sim-metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cf-sim-metric-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bg-basalt);
  margin-top: 4px;
}

.cf-sim-recommendation {
  background: var(--bg-basalt);
  color: #ffffff;
  padding: 24px;
  border-left: 5px solid var(--accent-orange);
}

.cf-sim-recommendation h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.cf-sim-recommendation p {
  font-size: 0.92rem;
  color: #d1d5db;
  margin-bottom: 16px;
}

/* ==========================================================================
   SECTION 2: NORMATIVE LABORATORY TESTING MATRIX TABLE (IRAM / CIRSOC)
   ========================================================================== */
.cf-table-wrap {
  overflow-x: auto;
  background: var(--bg-slab);
  border: 2px solid var(--bg-basalt);
  box-shadow: 7px 7px 0 rgba(24, 27, 32, 0.12);
}

.cf-norm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cf-norm-table th {
  background: var(--bg-basalt);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  text-align: left;
  border-right: 1px solid #333944;
}

.cf-norm-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rebar-border);
  border-right: 1px solid #dcd9ce;
  color: var(--text-primary);
}

.cf-norm-table tr:nth-child(even) td {
  background: #eeece5;
}

.cf-norm-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-orange);
  white-space: nowrap;
}

/* ==========================================================================
   SECTION 3: 4-STAGE FIELD-TO-LAB PROTOCOL WITH REAL LAB IMAGERY
   ========================================================================== */
.cf-protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cf-protocol-card {
  background: #232830;
  border: 1.5px solid #3b424f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cf-protocol-img {
  height: 230px;
  overflow: hidden;
  border-bottom: 2px solid var(--accent-orange);
  position: relative;
}

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

.cf-protocol-step {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bg-basalt);
  color: #ff7847;
  border: 1px solid #ff7847;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
}

.cf-protocol-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cf-protocol-body h3 {
  color: #ffffff;
  font-size: 1.2rem;
}

.cf-protocol-body p {
  color: #cbd5e1;
  font-size: 0.91rem;
}

/* ==========================================================================
   SECTION 4: IRAM 4504 BLUEPRINT SCHEDULE OF 12 SPECIALIZED SERVICES
   ========================================================================== */
.cf-blueprint-schedule {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cf-rotulo-card {
  background: var(--bg-slab);
  border: 2px solid var(--bg-basalt);
  display: grid;
  grid-template-columns: 185px 1fr;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cf-rotulo-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--bg-basalt);
}

.cf-rotulo-thumb {
  position: relative;
  border-right: 2px solid var(--bg-basalt);
  min-height: 195px;
  background: var(--bg-basalt);
}

.cf-rotulo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-rotulo-code-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bg-basalt);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border: 1px solid var(--accent-orange);
}

.cf-rotulo-info {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cf-rotulo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-orange);
  font-weight: 600;
  border-bottom: 1px dashed var(--rebar-border);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.cf-rotulo-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--bg-basalt);
  margin-bottom: 8px;
}

.cf-rotulo-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.cf-rotulo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bg-basalt);
  text-transform: uppercase;
  border-top: 1px solid var(--rebar-border);
  padding-top: 8px;
}

.cf-rotulo-link:hover {
  color: var(--accent-orange);
}

/* ==========================================================================
   INTERNAL PAGES, FORMS, ACCORDIONS & FOOTER
   ========================================================================== */
.page-hero-internal {
  background: var(--bg-basalt);
  color: #ffffff;
  padding: 48px 0;
  border-bottom: 4px solid var(--accent-orange);
}

.breadcrumb-nav {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 14px;
}

.breadcrumb-nav a {
  color: #ff7847;
}

.internal-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 32px;
  padding: 56px 0;
}

.tech-card {
  background: var(--bg-slab);
  border: 2px solid var(--bg-basalt);
  padding: 28px;
  box-shadow: 6px 6px 0 rgba(24, 27, 32, 0.12);
}

.spec-dl {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.spec-row {
  border-bottom: 1px dashed var(--rebar-border);
  padding-bottom: 10px;
}

.spec-row dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-orange);
  font-weight: 700;
  text-transform: uppercase;
}

.spec-row dd {
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-top: 3px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--bg-basalt);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  background: #ffffff;
  border: 2px solid var(--bg-basalt);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
}

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

.accordion-item {
  background: var(--bg-slab);
  border: 2px solid var(--bg-basalt);
  margin-bottom: 14px;
}

.accordion-header {
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--bg-basalt);
  cursor: pointer;
}

.accordion-body {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: none;
  border-top: 1px dashed var(--rebar-border);
  padding-top: 14px;
}

.accordion-item.active .accordion-body {
  display: block;
}

.site-footer {
  background: var(--bg-basalt);
  color: #d1d5db;
  padding: 64px 0 36px;
  border-top: 4px solid var(--accent-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid #323842;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff7847;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.88rem;
  color: #d1d5db;
}

.footer-links a:hover {
  color: #ff7847;
}

.afip-badge-box {
  background: #232830;
  border: 1.5px solid #454d5c;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 680px;
  background: var(--bg-basalt);
  color: #ffffff;
  border: 2px solid var(--accent-orange);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
  padding: 20px 24px;
  z-index: 300;
  display: none;
}

.cookie-banner.show {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 1080px) {
  .cf-nav-bays { display: none; }
  #mobileMenuToggle { display: inline-flex; }
  .cf-hero-frame { grid-template-columns: 1fr; }
  .cf-inspection-triptych { grid-template-columns: 1fr; }
  .cf-sim-tabs { grid-template-columns: repeat(2, 1fr); }
  .cf-sim-body { grid-template-columns: 1fr; }
  .cf-protocol-grid { grid-template-columns: 1fr; }
  .cf-blueprint-schedule { grid-template-columns: 1fr; }
  .internal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cf-rotulo-card { grid-template-columns: 1fr; }
  .cf-rotulo-thumb { border-right: none; border-bottom: 2px solid var(--bg-basalt); height: 190px; }
  .cf-sim-tabs { grid-template-columns: 1fr; }
  .cf-sim-specs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* === MACRO-ARCHITECTURE: FIXED LEFT VERTICAL CAD SIDEBAR + PANORAMIC BOREHOLE === */
/* === MACRO-ARCHITECTURE: FIXED LEFT VERTICAL CAD SIDEBAR + PANORAMIC BOREHOLE === */
.cf-telemetry-ribbon {
  display: none !important;
}
body {
  background-color: #E8EEF4 !important;
  background-image:
    linear-gradient(rgba(15, 36, 58, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 36, 58, 0.06) 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
}
@media (min-width: 1080px) {
  .cf-formwork-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 265px !important;
    background: #0B1522 !important;
    border-right: 4px solid #F59E0B !important;
    border-bottom: none !important;
    z-index: 300 !important;
    padding: 1.5rem 1.15rem !important;
    overflow-y: auto !important;
    box-shadow: 10px 0 30px rgba(11, 21, 34, 0.25) !important;
  }
  .cf-header-beam {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 1.5rem !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .cf-brand-plate {
    border-bottom: 1px solid rgba(245, 158, 11, 0.35) !important;
    padding-bottom: 1.15rem !important;
  }
  .cf-brand-title {
    color: #FFFFFF !important;
    font-size: 0.95rem !important;
  }
  .cf-brand-sub {
    color: #F59E0B !important;
  }
  .cf-nav-bays {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }
  .cf-nav-bays a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 46px !important;
    padding: 0.55rem 0.85rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-left: 3px solid transparent !important;
    color: #E2E8F0 !important;
    font-size: 0.82rem !important;
  }
  .cf-nav-bays a:hover,
  .cf-nav-bays a.active {
    background: rgba(245, 158, 11, 0.15) !important;
    border-left-color: #F59E0B !important;
    color: #FFFFFF !important;
  }
  .cf-header-actions {
    margin-top: auto !important;
    width: 100% !important;
  }
  .cf-header-actions .header-cta {
    width: 100% !important;
    justify-content: center !important;
    background: #F59E0B !important;
    color: #0B1522 !important;
    font-weight: 700 !important;
  }
  main, .site-footer {
    margin-left: 265px !important;
    width: calc(100% - 265px) !important;
  }
}
/* Hero: Stacked Panoramic Deck on Top + 4-Column Horizontal Borehole Log Below */
.cf-borehole-hero {
  padding: 2.25rem 0 3.5rem !important;
}
.cf-hero-frame {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}
.cf-reaction-deck {
  order: 1 !important;
}
.cf-stratigraphy-log {
  order: 2 !important;
  width: 100% !important;
  background: #0B1522 !important;
  border: 2px solid #F59E0B !important;
}
.cf-strata-stack {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0.85rem !important;
}
@media (max-width: 960px) {
  .cf-strata-stack {
    grid-template-columns: 1fr !important;
  }
}


/* === MOBILE RESPONSIVENESS & ZERO-OVERFLOW ARCHITECTURE (<= 980px & <= 640px) === */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

div, section, article, aside, header, footer, main, nav, figure {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 980px) {
  /* 1. Clean single-row mobile header: Brand on Left, Hamburger on Right, hide desktop CTA & ribbons */
  .cf-telemetry-ribbon,
  .on-finder-bar,
  .on-phone-pill,
  .on-dept-ribbon,
  .ono-top-bar,
  .ono-wing-nav,
  .ono-header-wings > nav,
  .pd-canon-ribbon,
  .pd-folio-nav,
  .pc-cnv-compass-bar,
  .pc-organic-nav,
  .psg-safety-strip,
  .psg-track-nav,
  .sf-tuning-ribbon,
  .sf-stave-nav,
  .sfu-trl-ribbon,
  .sfu-nav,
  .ssl-meridian-strip,
  .ssl-nav,
  .vb-press-strip,
  .vb-nav,
  header .header-cta,
  .cf-header-actions .header-cta,
  .on-header-desk .header-cta,
  .ono-header-wings .header-cta,
  .pd-header-actions .header-cta,
  .pc-header-cta-group .header-cta,
  .psg-header-actions .header-cta,
  .sf-header-actions .header-cta,
  .sfu-header-actions .header-cta,
  .ssl-header-actions .header-cta,
  .vb-header-actions .header-cta {
    display: none !important;
  }

  /* Ensure mobile hamburger toggle is always visible and 46x46px */
  #mobileMenuToggle,
  .mobile-menu-toggle,
  .sfu-burger,
  .ssl-burger,
  .vb-burger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 46px !important;
    min-height: 46px !important;
    width: 46px !important;
    height: 46px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Force header inner container into a single clean flex row */
  .cf-header-beam,
  .on-top-deck,
  .ono-header-wings,
  .pd-lectern-bar-inner,
  .pc-capsule-shell,
  .psg-gantry-inner,
  .sf-masthead-inner,
  .sfu-dock-inner,
  .ssl-veranda-inner,
  .vb-bar-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.65rem !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.6rem 0.9rem !important;
    box-sizing: border-box !important;
  }

  .cf-formwork-header,
  .on-catalog-header,
  .ono-congress-header,
  .pd-athenaeum-header,
  .pc-circle-header,
  .psg-gantry-header,
  .sf-conservatory-header,
  .sfu-uvt-header,
  .ssl-archival-header,
  .vb-botanical-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .sfu-dock-bar,
  .pc-capsule-nav-row .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .pc-capsule-shell {
    border-radius: 0 !important;
  }

  /* Compact brand block on mobile so it never wraps into 5 lines */
  .cf-brand-plate,
  .on-brand-identity,
  .ono-center-crest,
  .pd-brand-crest,
  .pc-brand-link,
  .psg-brand-box,
  .sf-brand-mark,
  .sfu-brand,
  .ssl-brand,
  .vb-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.6rem !important;
    max-width: calc(100% - 60px) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .ono-center-crest {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.1rem !important;
    background: transparent !important;
  }

  .cf-brand-title,
  .on-brand-name,
  .ono-crest-title,
  .pd-brand-name,
  .pc-brand-title,
  .psg-brand-name,
  .sf-brand-name,
  .sfu-brand-title,
  .ssl-brand-name,
  .vb-brand-name {
    font-size: 1.05rem !important;
    line-height: 1.15 !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 220px !important;
    display: block !important;
  }

  .cf-brand-sub,
  .on-brand-tagline,
  .ono-crest-sub,
  .ono-crest-kicker,
  .pd-brand-sub,
  .pc-brand-tagline,
  .psg-brand-sub,
  .sf-brand-sub,
  .sfu-brand-sub,
  .ssl-brand-tag,
  .vb-brand-sub {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 215px !important;
    display: block !important;
  }

  /* 2. Containers & Hero Sections: Proper mobile padding & natural vertical order (Copy first, Image second) */
  .container,
  .sfu-container,
  .ssl-container,
  .vb-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
  }

  .cf-borehole-hero,
  .on-showroom-bento-hero,
  .ono-pavilion-hero,
  .pd-disputation-hero,
  .pc-venn-dialogue-hero,
  .psg-portal-frame-hero,
  .sf-blue-note-hero,
  .sfu-trl-blueprint-hero,
  .ssl-courtyard-folio-hero,
  .vb-apotheke-counter-hero {
    padding: 1.5rem 0 2.5rem !important;
  }

  /* Put H1/Copy BEFORE Hero Image on mobile screens */
  .on-bento-main-copy,
  .psg-hero-left,
  .vb-hero-story,
  .pd-manifesto-col {
    order: 1 !important;
  }
  .on-bento-lcp-stage,
  .psg-hero-right,
  .vb-hero-counter-stage,
  .pd-amphitheater-stage {
    order: 2 !important;
  }
  .pd-canon-index-col,
  .on-bento-tile {
    order: 3 !important;
  }

  /* Hero inner padding & single-column grids on mobile */
  .sfu-hero-dossier,
  .on-bento-main-copy,
  .ono-hero-stage,
  .cf-manifesto-slab,
  .psg-gantry-frame-box,
  .ssl-hero-courtyard-grid,
  .pd-manifesto-col,
  .pd-amphitheater-stage,
  .pd-canon-index-col {
    padding: 1.25rem !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .sfu-hero-dossier > *,
  .sfu-hero-lead {
    grid-column: 1 / -1 !important;
  }

  /* Prevent badges, kickers, and pills from overflowing 375px width */
  .cf-tie-holes,
  .cf-stamp-badge,
  .on-catalog-pill-row,
  .on-pin-badge,
  .ono-stage-badge,
  .pd-hero-folio-bar,
  .pc-eyebrow-pill,
  .psg-gantry-top-beam,
  .psg-kicker,
  .sf-kicker,
  .sfu-dossier-kicker,
  .ssl-masthead-kicker,
  .vb-batch-pill {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    font-size: 0.7rem !important;
    line-height: 1.35 !important;
  }

  .on-pin-badge {
    position: static !important;
    margin: 0.5rem !important;
    display: flex !important;
    width: calc(100% - 1rem) !important;
  }

  /* Responsive mobile H1 typography */
  h1,
  .hero-title,
  .cf-hero-h1,
  .on-hero-h1,
  .ono-hero-h1 {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    line-height: 1.2 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }

  /* Full-width stacked CTA buttons on mobile */
  .cf-hero-cta-bar,
  .on-hero-actions,
  .ono-hero-cta-group,
  .pd-hero-ctas,
  .pc-hero-actions,
  .psg-hero-ctas,
  .sf-hero-ctas,
  .sfu-hero-ctas,
  .ssl-hero-actions,
  .vb-hero-ctas {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }

  .cf-hero-cta-bar a,
  .on-hero-actions a,
  .ono-hero-cta-group a,
  .pd-hero-ctas a,
  .pc-hero-actions a,
  .psg-hero-ctas a,
  .sf-hero-ctas a,
  .sfu-hero-ctas a,
  .ssl-hero-actions a,
  .vb-hero-ctas a {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }

  .vb-hero-figure,
  .pc-arched-frame {
    border-radius: 28px !important;
    border-width: 4px !important;
  }

  /* 3. Sleek, non-intrusive mobile Cookie Banner at bottom */
  .cookie-banner,
  #cookieBanner {
    left: 0.5rem !important;
    right: 0.5rem !important;
    bottom: 0.5rem !important;
    width: auto !important;
    max-width: calc(100vw - 1rem) !important;
    padding: 0.75rem 0.9rem !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    z-index: 999 !important;
  }

  .cookie-banner-inner,
  .sfu-cookie-inner,
  .ssl-cookie-inner,
  .vb-cookie-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.55rem !important;
    padding: 0 !important;
  }

  .cookie-banner p,
  #cookieBanner p {
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
    margin: 0 !important;
  }

  .cookie-banner button,
  #cookieBanner button,
  .cookie-actions button,
  .cookie-actions .btn-primary {
    width: 100% !important;
    min-height: 44px !important;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.78rem !important;
  }
}


/* === STRICT 375PX MOBILE VIEWPORT & TABLE/DRAWER SAFETY === */
@media (max-width: 980px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  main, .site-footer, footer {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Tables: always scroll horizontally inside their own container, never expanding body */
  table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-collapse: collapse !important;
  }

  /* Ensure all multi-column grids collapse to 1 column on <= 768px */
  @media (max-width: 768px) {
    [class*="grid"],
    [class*="split"],
    [class*="trio"],
    [class*="row"],
    [class*="strip"],
    [class*="bento"],
    [class*="triptych"],
    [class*="collage"],
    [class*="console"],
    [class*="panel"],
    [class*="board"],
    [class*="stage"] {
      grid-template-columns: 1fr !important;
    }

    /* Keep header inner row horizontal (Logo Left + Burger Right) */
    .cf-header-beam,
    .on-top-deck,
    .ono-header-wings,
    .pd-lectern-bar-inner,
    .pc-capsule-shell,
    .psg-gantry-inner,
    .sf-masthead-inner,
    .sfu-dock-inner,
    .ssl-veranda-inner,
    .vb-bar-inner {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
      justify-content: space-between !important;
      width: 100% !important;
      max-width: 100% !important;
      padding: 0.6rem 0.85rem !important;
    }

    /* Mobile drawer full-width clean overlay */
    #mobileDrawer,
    .mobile-drawer,
    .sfu-mobile-drawer,
    .ssl-mobile-drawer,
    .vb-mobile-drawer {
      max-width: 100vw !important;
      box-sizing: border-box !important;
    }
  }
}


/* === FINAL MOBILE POLISH: COMPACT COOKIE BAR & TOP RIBBON CLEANUP === */
.ono-hero-stage {
  background: #111827 !important;
  border: 1px solid #E11D48 !important;
}
@media (max-width: 980px) {
  .ono-top-ribbon,
  .ono-norm-strip,
  body > div:first-child:not(.drawer-backdrop):not(.cookie-banner) {
    display: none !important;
  }
  .cookie-banner,
  #cookieBanner {
    padding: 0.55rem 0.75rem !important;
  }
  .cookie-title,
  .cookie-banner h3,
  .cookie-banner h4 {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    margin: 0 0 0.2rem 0 !important;
  }
  .cookie-banner p,
  #cookieBanner p {
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
    margin: 0 0 0.4rem 0 !important;
  }
}

