/*
Theme Name: APEX Stainless
Theme URI: https://stainless.industryapex.com/
Author: Codex
Author URI: https://openai.com/
Description: Premium B2B WordPress theme for custom stainless steel cabinets, recessed wall niches, and storage systems.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: apex-stainless
*/

:root {
  --apex-ink: #0b0d10;
  --apex-ink-2: #161a20;
  --apex-steel: #d4d8dd;
  --apex-muted: #6f7782;
  --apex-line: #dfe3e6;
  --apex-soft: #f5f5f2;
  --apex-white: #ffffff;
  --apex-gold: #c69d5f;
  --apex-gold-dark: #94713f;
  --apex-max: 1180px;
  --apex-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--apex-white);
  color: var(--apex-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(11, 13, 16, 0.08);
  backdrop-filter: blur(14px);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  width: min(100% - 32px, var(--apex-max));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 220px;
}

.brand img {
  width: 236px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #2e343b;
  font-size: 14px;
  font-weight: 650;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  padding: 24px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--apex-ink);
  border-color: var(--apex-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--apex-line);
  border-radius: 6px;
  background: var(--apex-white);
  color: var(--apex-ink);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 760;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--apex-gold);
  color: #101216;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #d8b171;
}

.btn-dark {
  background: var(--apex-ink);
  color: var(--apex-white);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--apex-white);
}

.btn-outline-dark {
  border-color: rgba(11, 13, 16, 0.18);
  color: var(--apex-ink);
  background: transparent;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--apex-ink);
  color: var(--apex-white);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.86) 0%, rgba(7, 9, 12, 0.74) 36%, rgba(7, 9, 12, 0.24) 76%, rgba(7, 9, 12, 0.1) 100%),
    linear-gradient(0deg, rgba(7, 9, 12, 0.72) 0%, rgba(7, 9, 12, 0.08) 42%);
  content: "";
}

.hero-inner,
.section-inner {
  width: min(100% - 32px, var(--apex-max));
  margin: 0 auto;
}

.hero-copy {
  max-width: 720px;
  padding: 92px 0 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--apex-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 36px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(44px, 8vw, 82px);
}

h2 {
  max-width: 780px;
  font-size: clamp(32px, 5vw, 54px);
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin-top: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
}

.proof-item {
  min-height: 96px;
  padding: 18px;
  background: rgba(12, 14, 18, 0.58);
}

.proof-item strong {
  display: block;
  color: var(--apex-white);
  font-size: 20px;
  line-height: 1.2;
}

.proof-item span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.section {
  padding: 92px 0;
}

.section-compact {
  padding: 64px 0;
}

.section-dark {
  background: var(--apex-ink);
  color: var(--apex-white);
}

.section-soft {
  background: var(--apex-soft);
}

.section-kicker {
  color: var(--apex-gold-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--apex-muted);
}

.section-dark .section-heading p,
.section-dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

.muted {
  color: var(--apex-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  min-height: 360px;
  grid-template-rows: 220px 1fr;
  overflow: hidden;
  border: 1px solid var(--apex-line);
  border-radius: var(--apex-radius);
  background: var(--apex-white);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.product-card:focus {
  transform: translateY(-3px);
  border-color: rgba(198, 157, 95, 0.6);
  box-shadow: 0 20px 45px rgba(11, 13, 16, 0.1);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card-body {
  padding: 22px;
}

.product-card small {
  color: var(--apex-gold-dark);
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h3 {
  margin-top: 10px;
}

.product-card p {
  margin: 12px 0 0;
  color: var(--apex-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--apex-radius);
  background: #dcdedc;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
}

.feature-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
}

.feature-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(198, 157, 95, 0.42);
  color: var(--apex-gold-dark);
  font-weight: 850;
}

.feature-item p {
  margin: 5px 0 0;
  color: var(--apex-muted);
}

.capability-grid,
.spec-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.capability,
.spec,
.project-card {
  border: 1px solid rgba(11, 13, 16, 0.1);
  border-radius: var(--apex-radius);
  background: rgba(255, 255, 255, 0.74);
  padding: 22px;
}

.section-dark .capability {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.capability strong,
.spec strong {
  display: block;
  font-size: 18px;
}

.capability span,
.spec span {
  display: block;
  margin-top: 8px;
  color: var(--apex-muted);
  font-size: 14px;
}

.section-dark .capability span {
  color: rgba(255, 255, 255, 0.68);
}

.process {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.process-step {
  min-height: 156px;
  padding: 20px;
  background: #11151b;
}

.process-step span {
  color: var(--apex-gold);
  font-weight: 850;
}

.process-step strong {
  display: block;
  margin-top: 18px;
  font-size: 18px;
}

.process-step p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.page-hero {
  background: var(--apex-ink);
  color: var(--apex-white);
}

.page-hero-inner {
  width: min(100% - 32px, var(--apex-max));
  min-height: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
  padding: 72px 0;
}

.page-hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.76);
}

.page-hero .media-frame img {
  aspect-ratio: 16 / 11;
}

.breadcrumbs {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.84);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 40px;
  align-items: start;
}

.copy-block {
  max-width: 760px;
}

.copy-block p {
  color: var(--apex-muted);
}

.option-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--apex-line);
  border-radius: var(--apex-radius);
}

.option-table th,
.option-table td {
  padding: 16px;
  border-bottom: 1px solid var(--apex-line);
  text-align: left;
  vertical-align: top;
}

.option-table th {
  width: 30%;
  background: var(--apex-soft);
  font-weight: 850;
}

.option-table tr:last-child th,
.option-table tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--apex-line);
  border-radius: var(--apex-radius);
  background: var(--apex-white);
  padding: 20px;
}

.faq-item h3 {
  font-size: 18px;
}

.faq-item p {
  margin: 8px 0 0;
  color: var(--apex-muted);
}

.quote-panel {
  position: sticky;
  top: 100px;
  border: 1px solid rgba(11, 13, 16, 0.1);
  border-radius: var(--apex-radius);
  background: var(--apex-white);
  padding: 24px;
  box-shadow: 0 18px 44px rgba(11, 13, 16, 0.08);
}

.quote-panel h2 {
  font-size: 28px;
}

.quote-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quote-form label {
  display: grid;
  gap: 6px;
  color: #313841;
  font-size: 13px;
  font-weight: 780;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd5d9;
  border-radius: 6px;
  background: #fff;
  color: var(--apex-ink);
  font: inherit;
  padding: 10px 12px;
}

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

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid rgba(198, 157, 95, 0.3);
  border-color: var(--apex-gold);
}

.form-note,
.success-note {
  margin: 0;
  color: var(--apex-muted);
  font-size: 13px;
}

.success-note {
  border: 1px solid rgba(58, 129, 78, 0.22);
  background: #eff8f1;
  color: #215f35;
  padding: 12px;
  border-radius: 6px;
}

.apex-hidden {
  display: none !important;
}

.cta-band {
  background: #11151b;
  color: var(--apex-white);
}

.cta-band .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: 44px;
  align-items: start;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.74);
}

.cta-band .quote-panel {
  position: static;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.video-placeholder {
  display: grid;
  min-height: 390px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--apex-radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #11151b;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.video-placeholder strong {
  display: block;
  color: var(--apex-white);
  font-size: 24px;
}

.site-footer {
  background: #080a0d;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  width: min(100% - 32px, var(--apex-max));
  margin: 0 auto;
  padding: 58px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand img {
  width: 220px;
  filter: brightness(1.35);
}

.footer-brand p {
  max-width: 360px;
}

.footer-col h3 {
  color: var(--apex-white);
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-col a:hover,
.footer-col a:focus {
  color: var(--apex-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

@media (max-width: 1020px) {
  .main-nav {
    display: none;
    position: absolute;
    inset: 74px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--apex-line);
    border-radius: var(--apex-radius);
    background: var(--apex-white);
    box-shadow: 0 24px 60px rgba(11, 13, 16, 0.14);
  }

  .main-nav ul {
    display: block;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 18px;
    border-bottom: 1px solid var(--apex-line);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions .btn {
    display: none;
  }

  .product-grid,
  .capability-grid,
  .spec-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .page-hero-inner,
  .content-grid,
  .cta-band .section-inner {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .brand img {
    width: 198px;
  }

  .header-inner {
    min-height: 68px;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-copy {
    padding: 74px 0 60px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-proof,
  .form-row,
  .product-grid,
  .capability-grid,
  .spec-grid,
  .project-grid,
  .process,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 14px;
  }

  .page-hero-inner {
    min-height: auto;
    padding: 56px 0;
  }

  .footer-bottom,
  .contact-method {
    display: block;
  }
}
