/* Vista Scaffoldings — Corporate Industrial Stylesheet */
:root {
  --navy-950: #061326;
  --navy-900: #0b1f3a;
  --navy-800: #122d52;
  --navy-700: #1c3f6e;
  --steel-900: #0f172a;
  --steel-700: #334155;
  --steel-600: #475569;
  --steel-500: #64748b;
  --steel-400: #94a3b8;
  --steel-300: #cbd5e1;
  --steel-200: #e2e8f0;
  --steel-100: #f1f5f9;
  --steel-50: #f8fafc;
  --blueprint-bg: #f4f6f9;
  --white: #ffffff;
  --danger: #b91c1c;
  --success: #047857;
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

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

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  color: var(--steel-900);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  background-color: var(--white);
  color: var(--steel-900);
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--navy-900);
  line-height: 1.2;
}

p {
  margin: 0;
}

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

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

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.text-balance {
  text-wrap: balance;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header & Navigation (3-Zone Top Bar) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--steel-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 4.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--steel-600);
}

.desktop-nav a {
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.desktop-nav a:hover {
  color: var(--navy-900);
}

.desktop-nav a.active {
  color: var(--navy-900);
  font-weight: 600;
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--navy-900);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--navy-900);
  color: var(--white);
  border: 1px solid var(--navy-900);
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.header-call-btn:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--white);
  border: 1px solid var(--steel-200);
  color: var(--steel-700);
  cursor: pointer;
}

@media (min-width: 768px) {
  .header-inner {
    height: 5rem;
  }
  .desktop-nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--steel-200);
  background: var(--white);
  padding: 1rem;
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}

.mobile-nav-links a {
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--steel-700);
  border-bottom: 1px solid var(--steel-100);
}

.mobile-nav-links a.active {
  color: var(--navy-900);
  font-weight: 600;
  background: var(--steel-50);
}

.mobile-drawer-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.mobile-drawer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-lg {
  padding: 0.875rem 1.5rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-primary {
  background: var(--navy-900);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-800);
}

.btn-white {
  background: var(--white);
  color: var(--navy-900);
}

.btn-white:hover {
  background: var(--steel-100);
}

.btn-outline {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--steel-300);
}

.btn-outline:hover {
  background: var(--steel-50);
  border-color: var(--steel-500);
}

.btn-outline-dark {
  background: transparent;
  color: var(--white);
  border-color: var(--steel-400);
}

.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--navy-700);
  outline-offset: 2px;
}

/* Sections & Surfaces */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.section-sm {
  padding: 3rem 0;
}

.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--steel-50); }
.bg-navy { background-color: var(--navy-900); color: var(--white); }
.bg-navy-deep { background-color: var(--navy-950); color: var(--white); }
.border-b { border-bottom: 1px solid var(--steel-200); }
.border-t { border-top: 1px solid var(--steel-200); }

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel-500);
  margin-bottom: 0.625rem;
}

.kicker-light {
  color: var(--steel-300);
}

.section-title {
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

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

.section-lead {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--steel-600);
  max-width: 42rem;
  line-height: 1.65;
}

.section-header-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .section-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* Hero Section */
.hero {
  background-color: var(--navy-950);
  color: var(--white);
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .hero {
    padding: 6rem 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-headline {
  font-size: clamp(2.125rem, 4vw, 3.375rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--white);
}

.hero-subtitle {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--steel-300);
  max-width: 34rem;
  line-height: 1.6;
}

.hero-cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-facts {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero-fact-label {
  font-size: 0.75rem;
  color: var(--steel-400);
}

.hero-fact-value {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
}

.hero-media {
  position: relative;
  min-height: 280px;
  border: 1px solid var(--steel-700);
  background: #0f172a;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35), transparent);
  font-size: 0.75rem;
  color: var(--steel-200);
}

/* Page Banner */
.page-banner {
  background: var(--navy-900);
  color: var(--white);
  padding: 3.5rem 0 4rem;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(1.875rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 48rem;
}

.page-banner-lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--steel-300);
  max-width: 42rem;
  line-height: 1.65;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.breadcrumbs-dark a { color: var(--steel-300); }
.breadcrumbs-dark a:hover { color: var(--white); }
.breadcrumbs-dark .crumb-current { color: var(--white); font-weight: 600; }

.breadcrumbs-light a { color: var(--steel-600); }
.breadcrumbs-light a:hover { color: var(--navy-900); }
.breadcrumbs-light .crumb-current { color: var(--navy-900); font-weight: 600; }

.crumb-sep {
  color: var(--steel-400);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-split-12 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-split-12 { grid-template-columns: repeat(12, 1fr); gap: 3rem; }
  .col-span-4 { grid-column: span 4; }
  .col-span-5 { grid-column: span 5; }
  .col-span-6 { grid-column: span 6; }
  .col-span-7 { grid-column: span 7; }
  .col-span-8 { grid-column: span 8; }
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.card-interactive:hover {
  border-color: var(--navy-900);
}

.card-media {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--steel-200);
  background: var(--steel-100);
  aspect-ratio: 4 / 3;
}

.card-media-16x10 {
  aspect-ratio: 16 / 10;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-interactive:hover .card-media img {
  transform: scale(1.03);
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--steel-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.card-meta-inline {
  font-size: 0.75rem;
  color: var(--steel-500);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.card-title {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.35;
}

.card-title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card-text {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  color: var(--steel-600);
  line-height: 1.6;
  flex: 1;
}

.card-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--steel-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Schematic & Facility Blueprints */
.blueprint-box {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background-color: var(--blueprint-bg);
  background-image:
    linear-gradient(to right, var(--steel-200) 1px, transparent 1px),
    linear-gradient(to bottom, var(--steel-200) 1px, transparent 1px);
  background-size: 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.blueprint-box svg {
  width: 100%;
  max-width: 240px;
  height: auto;
}

.blueprint-caption {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel-500);
}

.facility-placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--steel-300);
  background-color: var(--blueprint-bg);
  background-image:
    linear-gradient(to right, var(--steel-200) 1px, transparent 1px),
    linear-gradient(to bottom, var(--steel-200) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.facility-top, .facility-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--steel-500);
}

.facility-bottom {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(203, 213, 225, 0.8);
}

.facility-center {
  text-align: center;
  margin: auto 0;
  padding: 1rem 0;
}

.facility-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--white);
  border: 1px solid var(--steel-200);
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

/* Filter Toolbar */
.toolbar {
  background: var(--steel-50);
  border-bottom: 1px solid var(--steel-200);
  padding: 1.125rem 0;
}

.toolbar-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .toolbar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.filter-tab {
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--white);
  color: var(--steel-600);
  border: 1px solid var(--steel-200);
  cursor: pointer;
  white-space: nowrap;
}

.filter-tab:hover {
  border-color: var(--steel-400);
  color: var(--navy-900);
}

.filter-tab.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

@media (min-width: 1024px) {
  .search-input-wrap {
    width: 18rem;
  }
}

.search-input {
  width: 100%;
  padding: 0.5rem 0.875rem 0.5rem 2.25rem;
  border: 1px solid var(--steel-300);
  background: var(--white);
  font-size: 0.875rem;
  color: var(--steel-900);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--steel-400);
  pointer-events: none;
}

/* Spec Table & Lists */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.spec-table th {
  padding: 0.75rem 1rem 0.75rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel-500);
  border-bottom: 1px solid var(--steel-200);
}

.spec-table td {
  padding: 0.875rem 1rem 0.875rem 0;
  border-bottom: 1px solid var(--steel-100);
  color: var(--steel-600);
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--navy-900);
  white-space: nowrap;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--steel-600);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.check-list svg {
  width: 1rem;
  height: 1rem;
  color: var(--navy-900);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-list {
  border: 1px solid var(--steel-200);
  background: var(--white);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--steel-200);
}

.faq-trigger {
  width: 100%;
  padding: 1.125rem 1.5rem;
  background: var(--white);
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
}

.faq-trigger:hover {
  background: var(--steel-50);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--steel-600);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* Forms */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel-700);
  margin-bottom: 0.375rem;
}

.form-control {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--steel-300);
  background: var(--white);
  font-size: 0.875rem;
  color: var(--steel-900);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy-900);
}

.field-error {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--danger);
}

.summary-box {
  margin-top: 2rem;
  border: 1px solid var(--navy-900);
  background: var(--steel-50);
  padding: 1.5rem;
}

.summary-pre {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--steel-200);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel-900);
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Article Prose */
.prose {
  max-width: 68ch;
}

.prose section + section {
  margin-top: 2rem;
}

.prose h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.prose p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--steel-700);
}

.prose p + p {
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: var(--steel-300);
  border-top: 1px solid #1e293b;
  padding: 3.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 4fr 2fr 3fr 3fr;
    gap: 2rem;
  }
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--steel-300);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--steel-400);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

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