/* =========================================================
   Abaco Innovation LLC — abaco.css
   Design system: enterprise / utility-first
   Palette: white base, navy #14275E, blue #1C3F94, red #E63329
   ========================================================= */

:root {
  --navy: #14275e;
  --blue: #1c3f94;
  --blue-bright: #2a55c4;
  --red: #e63329;
  --ink: #1a1a1a;
  --ink-soft: #4b5563;
  --line: #e3e6ec;
  --bg-gray: #f4f5f8;
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 64, 0.08);
  --shadow-md: 0 6px 24px rgba(16, 24, 64, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--ink); }

h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow-light { color: #ff8a80; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #c72519; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.text-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue);
  position: relative;
}
.text-link::after { content: " \2192"; }

/* =========================================================
   UTILITY BAR
   ========================================================= */
.utility-bar {
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
}
.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 16px;
}
.utility-tag { color: #aebadf; font-weight: 500; }
.utility-links { display: flex; gap: 22px; align-items: center; }
.utility-links a { color: #fff; font-weight: 500; }
.lang-btn {
  background: none;
  border: none;
  color: #aebadf;
  font: inherit;
  cursor: pointer;
}
.lang-btn:hover { color: #fff; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 46px; width: auto; }
.brand-wordmark { height: 27px; width: auto; }

.search-form {
  flex: 1;
  display: flex;
  max-width: 560px;
  margin-left: auto;
  border: 1.5px solid #c6ccd9;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.search-form:focus-within { border-color: var(--blue); }
.search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 16px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
}
.search-form button {
  border: none;
  background: var(--blue);
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.search-form button:hover { background: var(--navy); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Primary nav ---------- */
.primary-nav { border-top: 1px solid var(--line); }
.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}
a.nav-link { text-decoration: none; }
.nav-item:hover > .nav-link,
.nav-item.open > .nav-link {
  color: var(--blue);
  border-bottom-color: var(--red);
}
.caret { transition: transform 0.18s; }
.nav-item.open .caret { transform: rotate(180deg); }

/* ---------- Mega menu ---------- */
.mega {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 3px solid var(--red);
  box-shadow: var(--shadow-md);
}
.nav-item.open .mega { display: block; }
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 260px;
  gap: 36px;
  padding-top: 32px;
  padding-bottom: 36px;
}
.mega-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
.mega-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--ink);
}
.mega-col a:hover { color: var(--blue); }
.mega-feature {
  background: var(--bg-gray);
  border-radius: var(--radius);
  overflow: hidden;
}
.mega-feature img { width: 100%; height: 140px; object-fit: cover; }
.mega-feature-title {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 16px 4px;
}
.mega-feature .text-link { display: block; padding: 0 16px 16px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: linear-gradient(118deg, var(--navy) 0%, var(--blue) 62%, #2a55c4 100%);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(65deg, transparent 55%, rgba(255,255,255,0.045) 55%),
    linear-gradient(115deg, transparent 78%, rgba(230,51,41,0.16) 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding-top: 84px;
  padding-bottom: 108px;
}
.hero-copy h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: #ccd6f2;
  max-width: 54ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero product rotator ---------- */
.hero-rotator {
  position: relative;
  background: #fff;
  border-radius: 10px;
  height: 380px;
  max-width: 470px;
  margin-left: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
  overflow: hidden;
}
.hero-rotator::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0 34%, var(--navy) 34% 100%);
}
.hero-rotator img {
  position: absolute;
  inset: 34px;
  width: calc(100% - 68px);
  height: calc(100% - 68px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-rotator img.active { opacity: 1; }
.hero-rotator-label {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 20px 9px 24px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.hero-cut {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 78%);
}

/* =========================================================
   ROLE STRIP
   ========================================================= */
.role-strip { padding: 44px 0 8px; }
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.role {
  border-top: 4px solid var(--red);
  padding-top: 20px;
}
.role-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
}
.role h3 { font-size: 1.15rem; margin: 8px 0 10px; }
.role p { color: var(--ink-soft); font-size: 0.95rem; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 72px 0; }
.section-gray { background: var(--bg-gray); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

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

/* ---------- Product category cards ---------- */
.prod-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
}
.prod-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.prod-img {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray);
  padding: 18px;
}
.prod-img img { max-height: 100%; width: auto; object-fit: contain; }
.prod-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-body h3 { font-size: 1.08rem; }
.prod-body p { color: var(--ink-soft); font-size: 0.9rem; flex: 1; }

/* ---------- SKU cards ---------- */
.sku-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s;
}
.sku-card:hover { box-shadow: var(--shadow-md); }
.sku-card > img {
  height: 180px;
  width: 100%;
  object-fit: contain;
  background: #fff;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.sku-body { padding: 18px 20px 22px; }
.sku-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--blue);
  margin-bottom: 8px;
}
.sku-body h3 { font-size: 1rem; margin-bottom: 6px; }
.sku-body p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Market cards ---------- */
.market-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 28px;
}
.market-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.market-card p { color: var(--ink-soft); font-size: 0.94rem; }

/* =========================================================
   TITANIUM
   ========================================================= */
.titanium {
  background: linear-gradient(100deg, #111319 0%, #23262e 70%, #2c303a 100%);
  color: #fff;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.titanium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(63deg, transparent 68%, rgba(230,51,41,0.12) 68%);
  pointer-events: none;
}
.titanium-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.titanium-logo {
  max-width: 300px;
  margin-bottom: 26px;
  background: #fff;
  padding: 14px 22px;
  border-radius: var(--radius);
  border-left: 5px solid var(--red);
}
.titanium-copy h2 { color: #fff; margin-bottom: 16px; }
.titanium-copy > p { color: #b8bdc9; margin-bottom: 22px; max-width: 56ch; }
.check-list {
  list-style: none;
  margin-bottom: 30px;
  display: grid;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: #dfe2e9;
  font-size: 0.95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}
.titanium-media figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.titanium-media img { width: 100%; }

/* =========================================================
   COMPANY / STATS
   ========================================================= */
.company {
  background: var(--navy);
  color: #fff;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.company::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  background: linear-gradient(45deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.company-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
.company-copy { max-width: 780px; }
.company-copy h2 { color: #fff; margin-bottom: 18px; }
.company-copy p { color: #c3cce8; }
.company-copy .eyebrow { color: #fff; font-weight: 800; }
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
}
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.85rem; color: #aebadf; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  background: var(--red);
  color: #fff;
  padding: 56px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: #ffd9d5; max-width: 60ch; }
.cta .btn-primary { background: #fff; color: var(--red); }
.cta .btn-primary:hover { background: #f3f4f6; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
}
.contact-block { margin-bottom: 30px; }
.contact-block h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.contact-block a { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.contact-block p { color: var(--ink-soft); }

.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.86rem; font-weight: 600; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1.5px solid #c6ccd9;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28,63,148,0.12);
}
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 0.95rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { color: #1e7a3c; }
.form-status.is-error { color: #c62828; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #0e1c46;
  color: #c3cce8;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 48px;
}
.footer-logo {
  height: 60px;
  width: auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 6px 10px;
  margin-bottom: 18px;
}
.footer-brand p { font-size: 0.88rem; max-width: 32ch; }
.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: #c3cce8;
  padding: 4px 0;
}
.footer-col a:hover { color: #fff; }
.footer-addr { margin-top: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #8d9bc7;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #8d9bc7; }
.footer-legal a:hover { color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .mega-feature { display: none; }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 88px; }
  .hero-media { display: none; }
  .company-inner, .titanium-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .utility-tag { display: none; }
  .utility-links { width: 100%; justify-content: space-between; }
  .utility-links a:nth-child(3) { display: none; }

  .header-inner { flex-wrap: wrap; gap: 14px; }
  .brand-mark { height: 38px; }
  .brand-wordmark { height: 20px; }
  .search-form { order: 3; width: 100%; max-width: none; }
  .menu-toggle { display: flex; margin-left: auto; }

  .primary-nav { display: none; }
  .primary-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .mega { position: static; box-shadow: none; border-bottom: none; }
  .mega-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 12px; padding-bottom: 16px; }

  .role-grid, .card-grid.three, .card-grid.four { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 52px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
