:root {
  --navy: #0f2438;
  --navy-dark: #0a1826;
  --blue: #1f5ea8;
  --blue-light: #eaf2fb;
  --orange: #e26a1f;
  --orange-dark: #c1570f;
  --gray: #f4f6f8;
  --gray-mid: #e3e8ec;
  --text: #222b33;
  --text-light: #5b6b78;
  --border: #dde3e8;
  --white: #ffffff;
  --radius: 4px;
  --shadow: 0 2px 14px rgba(15,36,56,0.06);
  --shadow-md: 0 8px 28px rgba(15,36,56,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Top bar */
.top-bar {
  background: var(--navy-dark);
  color: #c7d4de;
  font-size: 0.85rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { transition: color 0.15s ease; }
.top-bar a:hover { color: var(--white); }
.top-bar-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1200px; margin: 0 auto; gap: 16px;
}

.brand {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
  white-space: nowrap;
}
.brand span { color: var(--orange); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0;
}

.main-nav { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 18px; list-style: none; flex-wrap: nowrap; white-space: nowrap; }
.nav-links a {
  font-weight: 600; font-size: 0.88rem; color: var(--text-light);
  padding: 8px 2px; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover, .nav-links a:focus { color: var(--navy); border-bottom-color: var(--orange); }

/* Buttons */
.btn {
  display: inline-block; font-weight: 700; font-size: 0.95rem;
  padding: 13px 28px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  text-align: center;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--gray); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  position: relative; z-index: 1;
}

.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  font-weight: 700; color: var(--orange); margin-bottom: 16px;
}

.hero h1 { font-size: 2.7rem; line-height: 1.18; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.01em; }

.hero p { font-size: 1.1rem; color: #c4d2dd; max-width: 540px; margin-bottom: 32px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  aspect-ratio: 4/3; overflow: hidden;
}
.hero-visual svg { width: 100%; height: 100%; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.featured-grid .category-thumb { aspect-ratio: 16/10; }
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* Section generic */
.section { padding: 84px 0; }
.section-alt { background: var(--gray); }

.section-header { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-header.left { margin: 0 0 40px; text-align: left; max-width: 760px; }

.section-eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  font-weight: 700; color: var(--orange); margin-bottom: 10px;
}

.section-header h2 { font-size: 2.1rem; font-weight: 800; color: var(--navy); margin-bottom: 14px; letter-spacing: -0.01em; }
.section-header p { color: var(--text-light); font-size: 1.05rem; }

/* Category grid */
.category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column;
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue); }

.category-thumb {
  aspect-ratio: 4/3;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.category-thumb svg { width: 56%; height: 56%; color: var(--blue); }
.category-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; }

.category-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.category-body h3 { font-size: 1.08rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.category-body p { color: var(--text-light); font-size: 0.93rem; flex: 1; margin-bottom: 14px; }
.category-link { font-weight: 700; font-size: 0.88rem; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.category-card:hover .category-link { color: var(--orange); }
.category-link svg { width: 14px; height: 14px; }

/* Feature split sections */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.split.reverse .split-visual { order: 2; }

.split-visual {
  background: var(--blue-light);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.split-visual svg { width: 60%; height: 60%; color: var(--blue); }

.split-content h2 { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 18px; letter-spacing: -0.01em; }

.feature-list { list-style: none; margin: 22px 0 28px; display: grid; gap: 12px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; color: var(--text);
}
.feature-list svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }

.note-box {
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 28px;
}

/* Company / About */
.about-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about-portrait img { border-radius: var(--radius); width: 100%; object-fit: cover; box-shadow: var(--shadow-md); }
.about-portrait-caption { margin-top: 16px; text-align: center; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.about-portrait-caption span { display: block; font-weight: 400; color: var(--text-light); font-size: 0.85rem; margin-top: 4px; }
.about-content h2 { font-size: 2.1rem; font-weight: 800; color: var(--navy); margin-bottom: 20px; letter-spacing: -0.01em; }
.about-content p { color: var(--text-light); margin-bottom: 16px; font-size: 1.02rem; }
.about-stats { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.about-stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.about-stat span { font-size: 0.85rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 48px; }
.contact-info h2 { font-size: 2.1rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; letter-spacing: -0.01em; }
.contact-info > p { color: var(--text-light); margin-bottom: 28px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.contact-list strong { display: block; color: var(--navy); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-list a, .contact-list span.value { color: var(--text); font-size: 1.02rem; }

.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  display: block; font-weight: 700; font-size: 0.85rem; color: var(--navy);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; font-family: inherit; background: var(--gray); color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,94,168,0.12);
}
.form-group input[type="file"] { padding: 10px; background: var(--white); }

.form-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: 0.85rem; color: var(--text-light); margin-top: 14px; }

#form-confirmation {
  display: none; background: #e8f3ec; border: 1px solid #b9dcc6; color: #2c5e3f;
  padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600;
}
#form-confirmation.visible { display: block; }

/* CTA band */
.cta-band {
  background: var(--blue);
  color: var(--white);
  padding: 48px 0;
}
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.cta-band h2 { font-size: 1.5rem; font-weight: 800; }
.cta-band p { color: #d6e6f7; margin-top: 6px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #b7c2cc; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.footer-brand span { color: var(--orange); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem;
}

/* Dropdown nav */
.nav-links { position: relative; }
.has-dropdown { position: relative; }
.has-dropdown > a { display: flex; align-items: center; gap: 6px; }
.has-dropdown > a svg { width: 12px; height: 12px; transition: transform 0.15s ease; }
.has-dropdown:hover > a svg, .has-dropdown:focus-within > a svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); min-width: 240px; padding: 10px;
  list-style: none; opacity: 0; visibility: hidden; transform-origin: top center;
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  margin-top: 12px; z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: block; padding: 10px 14px; border-radius: var(--radius); border-bottom: none;
  font-size: 0.9rem; color: var(--text); font-weight: 500;
}
.dropdown li a:hover { background: var(--blue-light); color: var(--blue); }

/* Page hero (sub-pages) */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 56px 0;
}
.page-hero .breadcrumb {
  font-size: 0.85rem; color: #9fb3c4; margin-bottom: 14px;
}
.page-hero .breadcrumb a { color: #cddbe7; }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero h1 { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 12px; }
.page-hero p { color: #c4d2dd; max-width: 640px; font-size: 1.05rem; }

/* Product hero (fork pages) */
.product-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.product-visual {
  background: var(--blue-light); border-radius: var(--radius); aspect-ratio: 5/4;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-visual svg { width: 62%; height: 62%; color: var(--blue); }
.product-visual img { width: 100%; height: 100%; object-fit: cover; }

.product-gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery-thumbs { display: flex; gap: 12px; }
.gallery-thumb {
  width: 72px; height: 56px; padding: 0; border: 2px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; background: var(--blue-light); transition: border-color 0.15s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--blue); }

/* Full-product (uncropped) images shown on white with padding */
.category-thumb img.contain,
.related-thumb img.contain,
.product-visual img.contain,
.gallery-thumb img.contain {
  object-fit: contain;
  background: var(--white);
  padding: 14px;
}
.product-intro h2 { font-size: 1.9rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; letter-spacing: -0.01em; }
.product-intro p { color: var(--text-light); margin-bottom: 16px; font-size: 1.02rem; }
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* Two-column lists (applications/features) */
.two-col-lists {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.two-col-lists h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; }

/* Specs table */
.specs-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.specs-table th, .specs-table td {
  text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.95rem;
}
.specs-table th {
  width: 38%; background: var(--gray); color: var(--navy); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem;
}
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }
.specs-note { margin-top: 14px; font-size: 0.88rem; color: var(--text-light); }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 760px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px; font-weight: 700; color: var(--navy); font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-question svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; color: var(--orange); }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.25s ease, padding 0.25s ease; color: var(--text-light); font-size: 0.96rem; }
.faq-item.open .faq-answer { padding: 0 22px 20px; max-height: 320px; }

/* Related products */
.related-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.related-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column;
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue); }
.related-thumb { aspect-ratio: 4/3; background: var(--blue-light); display: flex; align-items: center; justify-content: center; }
.related-thumb svg { width: 50%; height: 50%; color: var(--blue); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card-body { padding: 16px 18px; }
.related-card-body h4 { font-size: 0.98rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.related-card-body span { font-size: 0.85rem; font-weight: 700; color: var(--blue); }
.related-card:hover .related-card-body span { color: var(--orange); }

/* Video placeholder */
.video-placeholder {
  background: var(--navy-dark); color: #9fb3c4; border-radius: var(--radius);
  aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; border: 1px solid rgba(255,255,255,0.08);
}
.video-placeholder svg { width: 56px; height: 56px; color: var(--orange); }
.video-placeholder span { font-weight: 700; font-size: 1rem; }

/* Mini contact form (product/training pages) */
.mini-form {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.mini-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Footer CTA */
.footer-cta {
  text-align: center; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 36px;
}
.footer-cta p:first-child { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.footer-cta a { color: var(--orange); font-weight: 700; font-size: 1.05rem; }
.footer-cta a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 980px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner, .about-inner, .contact-inner, .split, .split.reverse,
  .product-hero, .two-col-lists, .mini-form .form-row { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/9; }
  .split-visual { order: -1 !important; aspect-ratio: 16/9; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .main-nav {
    position: fixed; top: 96px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; padding: 16px 24px;
    border-bottom: 1px solid var(--border); display: none; gap: 16px; z-index: 99;
  }
  .main-nav.open { display: flex; }
  .nav-links { flex-direction: column; gap: 12px; white-space: normal; }
  .nav-toggle { display: block; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; margin: 4px 0 0 12px; padding: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.2s ease;
  }
  .has-dropdown.open-dropdown .dropdown { max-height: 400px; }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { transform: none; }
}

@media (max-width: 640px) {
  .top-bar .container { flex-direction: column; align-items: flex-start; }
  .main-nav {
    position: fixed; top: 64px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; padding: 16px 24px;
    border-bottom: 1px solid var(--border); display: none; gap: 16px; z-index: 99;
  }
  .main-nav.open { display: flex; }
  .nav-links { flex-direction: column; gap: 12px; }
  .nav-toggle { display: block; }
  .brand { font-size: 1.25rem; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 1.9rem; }
  .section { padding: 56px 0; }
  .category-grid, .form-row, .footer-inner, .related-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.8rem; }
  .section-header h2 { font-size: 1.6rem; }
  .cta-band .container { flex-direction: column; align-items: flex-start; text-align: left; }
}


.form-confirmation {
  background: #e8f3ec; border: 1px solid #b9dcc6; color: #2c5e3f;
  padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600;
}
.form-confirmation.visible { display: block !important; }
