/* ==============================================
   DESIGN TOKENS
   ============================================== */
:root {
  --navy:    #0d2137;
  --blue:    #1a4faa;
  --blue-h:  #1e5ec7;
  --ink:     #0d1f2d;
  --muted:   #5a6a7e;
  --border:  #dde3ed;
  --bg:      #ffffff;
  --bg-soft: #f5f7fa;
  --shadow-sm: 0 1px 4px rgba(13,33,55,0.07);
  --shadow:    0 6px 24px rgba(13,33,55,0.10);
  --shadow-lg: 0 20px 60px rgba(13,33,55,0.14);
  --r:    10px;
  --r-lg: 18px;
  --px: clamp(1.25rem, 5vw, 5rem);
  --py: clamp(3.5rem, 8vw, 6.5rem);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ==============================================
   RESET & BASE
   ============================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ==============================================
   TYPOGRAPHY
   ============================================== */
h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 700;
}
p { margin-top: 0; }

/* Overline (homepage) */
.overline {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
/* Eyebrow alias (product pages) */
.eyebrow {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  max-width: 52rem;
}

/* ==============================================
   LAYOUT HELPERS
   ============================================== */
.section  { padding: var(--py) var(--px); }
.bg-soft  { background: var(--bg-soft); }
.bg-dark  { background: var(--navy); color: #fff; }
.bg-dark .overline { color: rgba(255,255,255,0.45); }
.bg-dark h2 { color: #fff; }
.bg-dark p  { color: rgba(255,255,255,0.68); }

/* ==============================================
   HEADER
   ============================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem var(--px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}
.brand img { height: 2.4rem; width: auto; }
.brand-sep {
  width: 1px;
  height: 1.4rem;
  background: var(--border);
}
.brand-rep {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.main-nav a {
  padding: 0.5rem 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover,
.main-nav [aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav-cta {
  margin-left: 0.4rem;
  padding: 0.55rem 1rem !important;
  color: #fff !important;
  background: var(--blue) !important;
  border-radius: 6px !important;
}
.nav-cta:hover { background: var(--blue-h) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.55rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { color: #fff; background: var(--blue); }
.btn-primary:hover { background: var(--blue-h); }
.btn-outline {
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* Legacy .button for product pages */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { color: #fff; background: var(--blue); }
.button.secondary { color: var(--ink); background: var(--bg-soft); border: 1px solid var(--border); }

/* ==============================================
   HERO
   ============================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 4rem);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--py) var(--px);
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
}
.hero-text .overline { margin-bottom: 1.25rem; }
.hero-text h1 { margin-bottom: 1.1rem; }
.hero-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  max-width: 44rem;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-img {
  overflow: hidden;
  min-height: 28rem;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==============================================
   STATS BAR
   ============================================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy);
  color: #fff;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.4rem var(--px);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat:last-child { border-right: none; }
.stat strong { font-size: 1.05rem; font-weight: 800; }
.stat span { color: rgba(255,255,255,0.55); font-size: 0.82rem; }

/* ==============================================
   ABOUT
   ============================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
}
.about-left h2 { margin-top: 0.4rem; }
.about-text { color: var(--muted); font-size: 1rem; line-height: 1.75; }

/* ==============================================
   SECTION HEADING
   ============================================== */
.section-head {
  max-width: 50rem;
  margin-bottom: 2.5rem;
}
.section-head h2 { margin: 0.4rem 0 0.65rem; }
.section-head p  { color: var(--muted); font-size: 0.97rem; margin: 0; }
.bg-dark .section-head h2 { color: #fff; }
.bg-dark .section-head p  { color: rgba(255,255,255,0.65); }

/* ==============================================
   PRODUCT GRID
   ============================================== */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.prod-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.2s, transform 0.2s;
}
.prod-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.prod-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.prod-card:hover .prod-img img { transform: scale(1.05); }

.prod-body {
  padding: 1.1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.prod-tag {
  display: inline-block;
  width: max-content;
  padding: 0.2rem 0.5rem;
  background: #e8effe;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 4px;
}
.prod-body h3 { font-size: 0.97rem; margin: 0; }
.prod-body p  { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ==============================================
   SOLUTIONS
   ============================================== */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.sol-item {
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
}
.sol-num {
  display: block;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.2);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}
.sol-item h3 { color: #fff; margin-bottom: 0.45rem; }
.sol-item p  { color: rgba(255,255,255,0.62); font-size: 0.9rem; margin: 0; }

/* ==============================================
   QUALITY SPLIT
   ============================================== */
.quality-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.quality-img img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.quality-text h2 { margin: 0.4rem 0 0.85rem; }
.quality-text > p { color: var(--muted); margin-bottom: 1.5rem; }

.check-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.47rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--blue);
  border-radius: 50%;
}

/* ==============================================
   STEPS
   ============================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.step {
  padding: 1.5rem 1.25rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 50%;
}
.step h3 { margin-bottom: 0.35rem; }
.step p  { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ==============================================
   CONTACT
   ============================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin: 0.4rem 0 0.85rem; }
.contact-info > p { color: var(--muted); margin-bottom: 2rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 700;
}
.contact-details a { color: var(--blue); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }
.contact-details span { color: var(--muted); font-weight: 400; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
input, select, textarea {
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,79,170,0.1);
}
textarea { resize: vertical; }
.form-note { color: var(--muted); font-size: 0.78rem; margin: 0; }

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem var(--px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-brand img {
  filter: brightness(0) invert(1);
  opacity: 0.82;
  height: 2rem;
  width: auto;
}
.footer-brand p { font-size: 0.82rem; margin: 0; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.footer-nav a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  padding: 1.1rem var(--px);
  font-size: 0.78rem;
}

/* Product page footer (simple HTML structure) */
.site-footer > div:not(.footer-inner):not(.footer-bottom),
.site-footer > nav,
.site-footer > small {
  display: block;
  padding: 1.1rem var(--px);
}
.site-footer > div:not(.footer-inner):not(.footer-bottom) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.site-footer strong { color: rgba(255,255,255,0.9); }
.site-footer > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 0;
}
.site-footer > nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.site-footer > nav a:hover { color: #fff; }
.site-footer > small {
  font-size: 0.78rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* ==============================================
   REVEAL ANIMATION
   ============================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==============================================
   PRODUCT PAGES
   ============================================== */

/* Page hero (category pages) */
.page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: var(--py) var(--px);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.page-hero.compact {
  grid-template-columns: 1fr;
  max-width: 66rem;
}
.page-hero h1 { max-width: 13ch; }
.page-hero p { color: var(--muted); }
.page-hero img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Product layout: sidebar + content */
.product-layout {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 2rem;
  align-items: start;
}

.sticky-aside {
  position: sticky;
  top: 5.5rem;
  padding: 1.2rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.sticky-aside h2 { font-size: 1rem; margin-bottom: 0.85rem; }

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.aside-links a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.aside-links a:hover { background: var(--border); color: var(--ink); }
.aside-links [aria-current="page"] { background: #dde9fb; color: var(--blue); }

/* Content cards */
.content-card {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 1rem;
}
.content-card h2 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.content-card > p { color: var(--muted); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.spec-grid > div {
  padding: 0.9rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 7px;
}
.spec-grid strong, .spec-grid span { display: block; }
.spec-grid strong { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.2rem; }
.spec-grid span   { color: var(--muted); font-size: 0.82rem; }

.product-example-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.product-example {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg);
}
.product-example img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  background: var(--bg-soft);
}
.product-example > div { padding: 1rem; }
.product-example h3 { font-size: 0.97rem; margin-bottom: 0.3rem; }
.product-example p  { color: var(--muted); font-size: 0.87rem; margin: 0; }

/* CTA band */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-lg);
}
.cta-band div h2 { font-size: 1.45rem; color: #fff; margin-bottom: 0.4rem; }
.cta-band div p  { color: rgba(255,255,255,0.65); font-size: 0.92rem; margin: 0; max-width: 42rem; }
.cta-band .button {
  flex-shrink: 0;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* Legacy section-head for product pages overview */
.section-heading {
  max-width: 50rem;
  margin-bottom: 2rem;
}
.section-heading p { color: var(--muted); font-size: 0.97rem; }

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1100px) {
  .prod-grid   { grid-template-columns: repeat(2, 1fr); }
  .sol-grid    { grid-template-columns: repeat(2, 1fr); }
  .steps-grid  { grid-template-columns: repeat(2, 1fr); }
  .spec-grid   { grid-template-columns: repeat(2, 1fr); }
  .quality-split { gap: 3rem; }
}

@media (max-width: 860px) {
  .brand-rep, .brand-sep { display: none; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 4.3rem;
    left: 1rem; right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 0.75rem 1rem; }
  .nav-cta { margin-left: 0; text-align: center; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-img { min-height: 20rem; aspect-ratio: 16/9; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }

  .about-grid   { grid-template-columns: 1fr; gap: 1.5rem; }
  .quality-split { grid-template-columns: 1fr; gap: 2rem; }
  .quality-img img { height: 22rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }

  .page-hero { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .sticky-aside { position: static; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .prod-grid  { grid-template-columns: 1fr; }
  .sol-grid   { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .spec-grid  { grid-template-columns: 1fr; }
  .product-example-grid { grid-template-columns: 1fr; }
  .stats-bar  { grid-template-columns: 1fr; }
  .cta-band   { padding: 1.5rem; }
  .hero-text  { padding-left: 1.25rem; padding-right: 1.25rem; }
}
