/* === AirvexPro — Light Industrial B2B Theme === */
/* Colors */
:root {
  --bg-page: #F4F6F9;
  --bg-card: #FFFFFF;
  --bg-surface: #F8FAFC;
  --text-primary: #1A1D23;
  --text-secondary: #3D444D;
  --text-muted: #5C6670;
  --accent-blue: #1A6DF5;
  --accent-blue-hover: #1557CC;
  --accent-cyan: #00A3D4;
  --accent-orange: #F47536;
  --accent-orange-hover: #D95F28;
  --border: #D0D5DD;
  --border-light: #E5E8EC;
  --grid-color: rgba(0,0,0,0.04);
  --header-bg: #FFFFFF;
  --header-border: #E5E8EC;
  --footer-bg: #1A1D23;
  --footer-text: #B0B8C5;
  --photo-slot-bg: #F0F2F5;
  --photo-slot-border: #D0D5DD;
  --success-green: #229954;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --content-width: 1100px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Technical grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 600; }

/* === Utility === */
.wrap { max-width: var(--content-width); margin: 0 auto; padding: 0 20px; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: 1.75rem; color: var(--text-primary); margin-bottom: 8px; }
.section-head p { color: var(--text-muted); max-width: 620px; margin: 0 auto; font-size: 1rem; }

/* === Navigation === */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: sticky; top: 0; z-index: 100;
}
.nav {
  max-width: var(--content-width); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 0 20px; height: 56px;
}
.nav .brand {
  font-weight: 700; font-size: 1.1rem;
  color: var(--text-primary); display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.nav .brand img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-links a {
  color: var(--text-secondary); font-size: 0.875rem; font-weight: 500;
  text-decoration: none; padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a:focus { color: var(--accent-blue); border-bottom-color: var(--accent-blue); text-decoration: none; }

/* === Buttons === */
.button, .btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 600;
  padding: 10px 24px; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  border: none; line-height: 1.4;
}
.button:hover, .btn-primary:hover, .btn-secondary:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary, .button.primary {
  background: var(--accent-orange); color: #fff;
  box-shadow: 0 1px 3px rgba(244,117,54,0.3);
}
.btn-primary:hover, .button.primary:hover { background: var(--accent-orange-hover); box-shadow: 0 2px 8px rgba(244,117,54,0.4); }
.btn-secondary, .button.secondary {
  background: transparent; color: var(--accent-blue);
  border: 1.5px solid var(--accent-blue);
}
.btn-secondary:hover, .button.secondary:hover { background: rgba(26,109,245,0.06); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* === Bands === */
.band { padding: 56px 0; }
.band + .band { border-top: 1px solid var(--border-light); }
.cta-band {
  background: var(--accent-blue); color: #fff; padding: 48px 0;
}
.cta-band .section-head h2 { color: #fff; }
.cta-band .section-head p { color: rgba(255,255,255,0.85); }
.cta-band .actions { justify-content: center; }
.cta-band .button.primary {
  background: #fff; color: var(--accent-blue); box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.cta-band .button.primary:hover { background: #f0f0f0; }
.cta-band .button.secondary { border-color: #fff; color: #fff; }
.cta-band .button.secondary:hover { background: rgba(255,255,255,0.1); }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #E8EDF3 0%, #F4F6F9 50%, #EFF1F5 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-light);
}
.hero-inner {
  max-width: var(--content-width); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero-copy .eyebrow {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent-blue); margin-bottom: 8px; display: block;
}
.hero-copy h1 { font-size: 2.25rem; margin-bottom: 12px; color: var(--text-primary); }
.hero-copy .lead { color: var(--text-secondary); font-size: 1rem; margin-bottom: 8px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-visual img { max-width: 100%; height: auto; }

/* === Grid & Cards === */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Photo-ready slot */
.photo-slot {
  aspect-ratio: 4/3; background: var(--photo-slot-bg);
  border: 2px dashed var(--photo-slot-border);
  border-radius: var(--radius-sm); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.photo-slot img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.photo-slot .slot-label {
  font-size: 0.75rem; color: var(--text-muted);
  position: absolute; bottom: 6px; right: 8px;
  background: rgba(255,255,255,0.85); padding: 1px 6px;
  border-radius: 3px;
}

.card h3 { font-size: 1rem; margin-bottom: 6px; }
.card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

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

/* === List === */
.list { list-style: none; padding: 0; }
.list li { padding: 6px 0; position: relative; padding-left: 20px; }
.list li::before { content: '—'; position: absolute; left: 0; color: var(--accent-cyan); }

/* === Process Steps === */
.process { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.step {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 16px 20px;
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.step.is-visible { border-color: var(--accent-blue); background: rgba(26,109,245,0.04); box-shadow: 0 0 0 2px rgba(26,109,245,0.12); }
.visual-panel { text-align: center; }
.visual-panel img { max-width: 100%; margin: 0 auto; }

/* === Page (static pages) === */
.page {
  max-width: 780px; margin: 0 auto; padding: 48px 20px;
}
.page h1 { font-size: 1.75rem; margin-bottom: 20px; }
.page h2 { font-size: 1.25rem; margin-top: 28px; margin-bottom: 12px; }
.page p, .page li { color: var(--text-secondary); margin-bottom: 12px; }

/* === RFQ Form === */
.rfq-form {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 24px; margin-top: 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.rfq-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.rfq-form input, .rfq-form select, .rfq-form textarea {
  padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.9rem; font-family: var(--font);
  background: #fff; color: var(--text-primary);
  transition: border-color 0.15s;
}
.rfq-form input:focus, .rfq-form select:focus, .rfq-form textarea:focus {
  outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 2px rgba(26,109,245,0.12);
}
.rfq-form .wide { grid-column: 1 / -1; }
.rfq-form textarea { min-height: 80px; resize: vertical; }
.rfq-form button[type="submit"] {
  background: var(--accent-orange); color: #fff; border: none;
  padding: 10px 32px; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.rfq-form button[type="submit"]:hover { background: var(--accent-orange-hover); transform: translateY(-1px); }
.rfq-form .honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* === Footer === */
.site-footer {
  background: var(--footer-bg); color: var(--footer-text);
  padding: 32px 0; margin-top: 0;
}
.footer-inner {
  max-width: var(--content-width); margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.footer-inner p { font-size: 0.85rem; line-height: 1.6; }
.footer-inner a { color: #8B95A5; }
.footer-inner a:hover { color: #fff; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 0.85rem; }

/* === Animations === */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.5s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Airflow pulse */
@keyframes airflow-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}
@keyframes airflow-drift {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}
.airflow-path { animation: airflow-drift 3s linear infinite; }
.airflow-pulse { animation: airflow-pulse 2s ease-in-out infinite; }

/* Process step stagger */
.step { transition-delay: calc(var(--step-index, 0) * 0.1s); }

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy h1 { font-size: 1.6rem; }
  .hero-actions, .actions { justify-content: center; }
  .product-grid, .card-grid { grid-template-columns: 1fr; }
  .card-grid.two, .card-grid.three { grid-template-columns: 1fr; }
  .rfq-form { grid-template-columns: 1fr; }
  .process { flex-direction: column; align-items: stretch; }
  .footer-inner { flex-direction: column; text-align: center; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.8rem; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 80%; }
  .section-head h2 { font-size: 1.4rem; }
  .band { padding: 36px 0; }
}
