/* Aerochem Corporation — corporate single-page site */

:root {
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --navy-soft: #334155;
  --accent: #1e3a8f;
  --accent-hover: #1d4ed8;
  --bg-page: #f1f5f9;
  --bg-white: #ffffff;
  --bg-muted: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink: #0f172a;
  --muted: #475569;
  --muted-light: #64748b;
  --radius: 6px;
  --radius-lg: 8px;
  --font: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --topbar-h: 38px;
  --nav-h: 104px;
  --header-total: calc(var(--topbar-h) + var(--nav-h));
  --max: 72rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Top institutional bar */
.corp-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: var(--topbar-h);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.corp-topbar-inner {
  max-width: var(--max);
  width: 100%;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.corp-topbar span {
  opacity: 0.95;
}

/* Subtle page backdrop (replaces neon ambient) */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg-page);
}

/* Header */
header.site-head {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.head-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

.brand-logo {
  height: 88px;
  aspect-ratio: 452 / 198;
  width: auto;
  max-width: min(600px, 92vw);
  object-fit: contain;
  display: block;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  align-items: center;
}

nav a {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

nav a:hover,
nav a.is-active {
  color: var(--navy);
}

.menu-btn {
  display: none;
  background: var(--bg-white);
  border: 1px solid var(--line-strong);
  color: var(--navy);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 520px) {
  .brand-logo {
    height: 66px;
    max-width: 94vw;
  }
}

@media (max-width: 860px) {
  .menu-btn {
    display: block;
  }

  nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
    box-shadow: var(--shadow-md);
  }

  nav.is-open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

main {
  position: relative;
  z-index: 1;
}

section {
  scroll-margin-top: calc(var(--header-total) + 12px);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  position: relative;
  padding-top: var(--header-total);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.35) 0%,
    rgba(15, 23, 42, 0.65) 50%,
    rgba(15, 23, 42, 0.92) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 3rem 1.25rem 4rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

/* Hero line only */
.hero .kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

.section-head .kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--line-strong);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  max-width: 18ch;
  color: #fff;
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(226, 232, 240, 0.95);
  max-width: 44ch;
  margin: 0 0 1.75rem;
  font-weight: 400;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.btn-primary {
  background: #fff;
  color: var(--navy);
  border: 1px solid #fff;
}

.btn-primary:hover {
  background: var(--bg-muted);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.65);
}

/* Sections */
.section-pad {
  padding: 4.5rem 0;
}

.section-light {
  background: var(--bg-muted);
}

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

.section-head {
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 600;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 54ch;
  font-size: 1.0625rem;
}

/* Cards */
.bento {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Split panels */
.panel {
  display: grid;
  gap: 2.25rem;
  align-items: center;
  margin: 3.5rem 0;
  padding: 2.25rem;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

  .panel.rev .panel-copy {
    order: 2;
  }

  .panel.rev .panel-visual {
    order: 1;
  }
}

.panel-visual img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.panel-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin: 0 0 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.panel-copy p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.panel-copy .btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.panel-copy .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.panel-copy .btn-ghost {
  color: var(--accent);
  border-color: var(--line-strong);
  background: var(--bg-white);
}

.panel-copy .btn-ghost:hover {
  background: var(--bg-muted);
  color: var(--navy);
}

/* Vendor strip */
.vendor {
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.vendor h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--navy);
}

.vendor p {
  margin: 0 auto 1.35rem;
  color: var(--muted);
  max-width: 44ch;
}

.vendor img {
  margin: 0 auto;
  max-height: 210px;
  width: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-card {
  padding: 1.65rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-card .role {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-card a {
  word-break: break-word;
}

.contact-form-block {
  margin-top: 2.25rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.contact-form-block h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

.req {
  color: var(--accent);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.5em;
}

.form-status.ok {
  color: #15803d;
}

.form-status.err {
  color: #b45309;
}

/* Form */
.form-wrap {
  max-width: 40rem;
}

.form-grid label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(30, 58, 143, 0.15);
}

.form-row2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 500px) {
  .form-row2 {
    grid-template-columns: 1fr;
  }
}

.hint {
  font-size: 0.875rem;
  color: var(--muted);
  margin: -0.5rem 0 1rem;
}

.info-bar {
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 1.35rem;
  background: var(--bg-muted);
}

.info-bar strong {
  color: var(--navy);
}

/* Footer */
footer {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--navy);
  text-align: center;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.8125rem;
  line-height: 1.65;
}

footer strong {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

footer .footer-tag {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.85;
  letter-spacing: 0.04em;
}

/* Primary actions on light backgrounds (contact + order forms) */
.contact-form-block .btn-primary,
#order .btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.contact-form-block .btn-primary:hover,
#order .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.text-muted {
  color: var(--muted);
  font-size: 0.98rem;
}
