/* ============================================================
   WEBSTER & BENNETT USA — Design System
   Navy + Orange industrial theme
   ============================================================ */

:root {
  --navy:      #0F2044;
  --navy-mid:  #1a2e5a;
  --navy-lt:   #253d6e;
  --orange:    #E8620A;
  --orange-lt: #F97316;
  --orange-pale: #FEF0E6;
  --gray-dark: #1E2330;
  --gray-mid:  #4A5568;
  --gray-lt:   #F7F8FA;
  --border:    #E2E8F0;
  --white:     #FFFFFF;
  --success:   #2E7D52;
  --shadow-sm: 0 1px 4px rgba(15,32,68,0.10);
  --shadow-md: 0 4px 18px rgba(15,32,68,0.14);
  --shadow-lg: 0 8px 36px rgba(15,32,68,0.20);
  --radius:    8px;
  --radius-lg: 14px;
  --transition: all 0.2s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--white);
  color: var(--gray-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange-lt); }

/* ── Typography ── */
h1, h2, h3, h4, h5 { color: var(--navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.95rem; }
p  { color: var(--gray-mid); line-height: 1.75; }
.lead { font-size: 1.1rem; color: var(--gray-mid); line-height: 1.8; }

/* ── Layout ── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section    { padding: 80px 0; }
.section-sm { padding: 52px 0; }
.section-lg { padding: 100px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.02em;
  border: 2px solid transparent; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
  text-decoration: none; text-transform: uppercase;
}
.btn-primary {
  background: var(--orange); color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-lt); border-color: var(--orange-lt);
  color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent; color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy); color: var(--white);
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12); color: var(--white);
  border-color: var(--white);
}
.btn-white {
  background: var(--white); color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--orange-pale); color: var(--navy);
}
.btn-lg { padding: 16px 34px; font-size: 0.95rem; }
.btn-sm { padding: 8px 16px; font-size: 0.78rem; }

/* ── Sticky Site Header ── */
#site-nav { position: sticky; top: 0; z-index: 200; }

/* ── Top Bar ── */
.top-bar {
  background: var(--gray-lt);
  border-bottom: 1px solid var(--border);
  color: var(--gray-mid);
  font-size: 0.8rem;
  padding: 9px 0;
}
.top-bar .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 6px;
}
.top-bar a { color: var(--gray-mid); font-weight: 500; }
.top-bar a:hover { color: var(--orange); }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 22px; }
.top-bar-item { display: flex; align-items: center; gap: 6px; }
.top-bar-right { font-weight: 600; color: var(--navy); text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.72rem; }

/* ── Navigation ── */
.navbar {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.nav-brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.nav-logo {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-brand-text { line-height: 1.2; }
.nav-brand-name {
  font-size: 1.08rem; font-weight: 800; color: var(--navy);
  display: block; text-transform: uppercase; letter-spacing: 0.04em;
}
.nav-brand-sub {
  font-size: 0.74rem; color: var(--gray-mid); display: block; margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 7px 13px; border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 600;
  color: var(--gray-dark); text-transform: uppercase;
  letter-spacing: 0.05em; transition: var(--transition);
}
.nav-links a:hover { color: var(--orange); background: var(--orange-pale); }
.nav-links a.active { color: var(--orange); }
.nav-cta { margin-left: 10px; }
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); margin: 5px 0;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 580px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,20,45,0.92) 0%,
    rgba(10,20,45,0.80) 40%,
    rgba(10,20,45,0.20) 70%,
    rgba(10,20,45,0.0) 100%
  );
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1400px; margin-left: auto; margin-right: auto; padding: 80px 40px; }
.hero-content { max-width: 520px; text-align: left; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--white);
  font-size: 0.72rem; font-weight: 800; padding: 5px 14px;
  border-radius: 3px; margin-bottom: 24px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero .lead { color: rgba(255,255,255,0.85); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }

/* ── Trust Bar ── */
.trust-bar {
  background: var(--navy);
  padding: 20px 0;
  border-bottom: 3px solid var(--orange);
}
.trust-items {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 0;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.9);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 6px 28px;
}
.trust-item + .trust-item {
  border-left: 1px solid rgba(255,255,255,0.15);
}
.trust-icon { color: var(--orange); font-size: 1rem; }

/* ── Section Headers ── */
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header .eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--orange); margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { max-width: 580px; }
.section-header.center p { margin: 0 auto; }
.orange-rule {
  width: 48px; height: 3px; background: var(--orange);
  margin: 12px 0 0; border-radius: 2px;
}
.section-header.center .orange-rule { margin: 12px auto 0; }

/* ── Part Cards ── */
.parts-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1100px) { .parts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .parts-grid { grid-template-columns: repeat(2, 1fr); } }
.part-card {
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; background: var(--white);
  transition: var(--transition); position: relative;
  display: flex; flex-direction: column;
}
.part-card:hover {
  border-color: var(--orange); box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.part-card.featured { border-color: var(--orange); }
.part-badge {
  position: absolute; top: 0; right: 20px;
  background: var(--orange); color: var(--white);
  font-size: 0.65rem; font-weight: 800; padding: 4px 12px;
  border-radius: 0 0 6px 6px; text-transform: uppercase; letter-spacing: 0.08em;
}
.part-category {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--orange); margin-bottom: 8px;
}
.part-card h3 { font-size: 1rem; margin-bottom: 8px; }
.part-card p { font-size: 0.84rem; line-height: 1.65; flex: 1; margin-bottom: 20px; }
.part-card .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ── Category Cards ── */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 44px; }
.category-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 20px 16px; background: var(--white); cursor: pointer;
  transition: var(--transition); text-align: center;
}
.category-card:hover, .category-card.active {
  border-color: var(--orange); background: var(--orange-pale);
  box-shadow: var(--shadow-sm);
}
.category-icon { font-size: 1.8rem; margin-bottom: 8px; }
.category-card h4 { font-size: 0.84rem; color: var(--navy); margin-bottom: 4px; }
.category-card p { font-size: 0.75rem; color: var(--gray-mid); }

/* ── Feature Grid ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.feature {
  padding: 30px 26px; border-radius: var(--radius-lg);
  background: var(--gray-lt); border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
}
.feature-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature h3 { font-size: 0.97rem; margin-bottom: 8px; }
.feature p { font-size: 0.84rem; }

/* ── Forms ── */
.form-section { background: var(--gray-lt); border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--border); }
.form-section h3 { margin-bottom: 6px; }
.form-section > p { margin-bottom: 28px; font-size: 0.88rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.78rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.88rem; font-family: inherit; color: var(--gray-dark);
  background: var(--white); transition: var(--transition); width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,98,10,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { margin-top: 10px; }
.form-note { font-size: 0.76rem; color: var(--gray-mid); margin-top: 10px; }

/* ── Manual Cards ── */
.manuals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.manual-card {
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; background: var(--white);
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.manual-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.manual-icon { font-size: 2.2rem; margin-bottom: 14px; }
.manual-card h3 { font-size: 0.97rem; margin-bottom: 8px; }
.manual-card p { font-size: 0.82rem; color: var(--gray-mid); line-height: 1.65; flex: 1; }
.manual-price {
  margin: 16px 0; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 1.5rem; font-weight: 800; color: var(--navy);
}
.manual-price span { font-size: 0.78rem; font-weight: 400; color: var(--gray-mid); }

/* ── FAQ ── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; font-weight: 700;
  color: var(--navy); font-size: 0.95rem; gap: 16px;
}
.faq-question:hover { color: var(--orange); }
.faq-arrow { font-size: 0.65rem; color: var(--orange); transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.faq-answer-inner { padding-bottom: 20px; font-size: 0.9rem; color: var(--gray-mid); line-height: 1.75; }

/* ── CTA Banner ── */
.cta-banner {
  background: var(--navy);
  color: var(--white); padding: 72px 0; text-align: center;
  border-top: 4px solid var(--orange);
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 36px; font-size: 1.05rem; max-width: 580px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Page Header ── */
.page-header {
  background: var(--navy); color: var(--white); padding: 56px 0;
  border-bottom: 4px solid var(--orange);
  position: relative; overflow: hidden;
}
.page-header-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.12;
}
.page-header .container { position: relative; z-index: 1; }
.page-header .eyebrow {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--orange); margin-bottom: 10px; display: block;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.78); max-width: 620px; }

/* ── Contact Info Card ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.contact-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
}
.contact-item { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  width: 42px; height: 42px; background: var(--orange-pale);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0;
  border: 1px solid rgba(232,98,10,0.15);
}
.contact-label { font-size: 0.7rem; font-weight: 800; color: var(--orange); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-value { font-size: 0.95rem; font-weight: 700; color: var(--navy); }
.contact-sub { font-size: 0.8rem; color: var(--gray-mid); }

/* ── Image + Text Split ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split.reverse .split-img { order: 2; }
.split.reverse .split-content { order: 1; }

/* ── Blueprint / Drawing Section ── */
.blueprint-section {
  position: relative; overflow: hidden; padding: 80px 0;
  background: var(--navy);
}
.blueprint-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.15;
}
.blueprint-section .container { position: relative; z-index: 1; }

/* ── Alert / Success ── */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 0.88rem; margin-bottom: 16px; display: none; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* ── Footer ── */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); }
.footer-top { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-main { padding: 60px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: contain;
}
.footer-brand-name { font-weight: 800; color: var(--white); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-brand-sub  { font-size: 0.7rem; color: rgba(255,255,255,0.45); }
.footer-desc { font-size: 0.82rem; line-height: 1.75; max-width: 290px; margin-bottom: 20px; }
.footer-phone { font-size: 1.15rem; font-weight: 800; color: var(--white); }
.footer-email { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 4px; }
.footer-col h4 { color: var(--white); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.82rem; color: rgba(255,255,255,0.6); transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-col a::before { content: '→'; font-size: 0.7rem; color: var(--orange); }
.footer-col a:hover { color: var(--white); }
.footer-social::before { content: none !important; }
.footer-social svg { opacity: 0.6; transition: var(--transition); }
.footer-social:hover svg { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 0.76rem; color: rgba(255,255,255,0.4); }

/* ── Utility ── */
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.bg-gray { background: var(--gray-lt); }
.bg-navy { background: var(--navy); }
.mt-8  { margin-top: 8px; }  .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.divider { height: 1px; background: var(--border); margin: 36px 0; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-content { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-img { order: 0; }
  .split.reverse .split-content { order: 0; }

  /* Force inline grid layouts to single column on tablet too */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}
@media (max-width: 700px) {
  /* ── Prevent horizontal scroll globally ── */
  *, *::before, *::after { max-width: 100vw; }
  .container { padding: 0 16px !important; }

  /* ── Mobile header: hide top bar, compact navbar ── */
  .top-bar { display: none !important; }
  .nav-logo { width: 40px; height: 40px; }
  .nav-brand { gap: 10px; }
  .nav-brand-name { font-size: 0.78rem; line-height: 1.3; }
  .nav-brand-sub { display: none; }
  .navbar .container { padding-top: 8px !important; padding-bottom: 8px !important; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--white);
    border-top: 2px solid var(--orange); padding: 12px;
    box-shadow: var(--shadow-md); z-index: 200;
  }
  .navbar { position: relative; }

  /* ── Hero ── */
  .hero { min-height: 400px; }
  .hero-inner { padding: 36px 16px !important; }
  .hero h1 { font-size: 1.6rem; }
  .hero .lead { font-size: 0.92rem; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }

  /* ── Trust bar: compact horizontal scroll instead of tall stack ── */
  .trust-bar { padding: 12px 0; }
  .trust-items { flex-direction: row !important; flex-wrap: wrap; gap: 0; justify-content: center; }
  .trust-item { font-size: 0.62rem; padding: 4px 10px; }
  .trust-item + .trust-item { border-left: 1px solid rgba(255,255,255,0.15); border-top: none; }

  /* ── Sections ── */
  .section { padding: 40px 0; }
  .section-sm { padding: 28px 0; }

  /* ── Force all inline grid layouts to single column on mobile ── */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* ── Forms ── */
  .form-grid { grid-template-columns: 1fr; }
  .form-section { padding: 24px 16px; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-main { padding: 36px 0 24px; }

  /* ── CTA ── */
  .cta-banner { padding: 44px 0; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; text-align: center; justify-content: center; }

  /* ── Parts grid: 1 column on small phones ── */
  .parts-grid { grid-template-columns: 1fr !important; }

  /* ── Page header ── */
  .page-header { padding: 36px 0; }
}
