/* =============================================
   K-MARIS Energy & Solutions — Stylesheet v2
   Multi-page, nkcf.com-inspired UI/UX
   ============================================= */

/* ── 1. VARIABLES & RESET ── */
:root {
  --navy:   #0B1D3A;
  --navy2:  #0A2A5A;
  --blue:   #0055A8;
  --sky:    #3BA6E0;
  --light:  #F6F8FB;
  --text:   #1F2937;
  --muted:  #6B7280;
  --line:   #D7E2EE;
  --white:  #ffffff;

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  --sh-card: 0 4px 20px rgba(11,29,58,.07);
  --sh-hover: 0 10px 36px rgba(11,29,58,.14);
  --sh-hero:  0 24px 64px rgba(11,29,58,.18);

  --header-h: 80px;
  --max-w:   1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── 2. LAYOUT ── */
.container { width: min(var(--max-w), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 80px 0; }
.section.light { background: var(--light); }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head .sub { font-size: 17px; color: var(--muted); margin-top: 12px; line-height: 1.7; }

/* ── 3. TYPOGRAPHY ── */
h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -.03em; color: var(--navy); margin-bottom: 20px; }
h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.14; letter-spacing: -.025em; color: var(--navy); margin-bottom: 14px; }
h3 { font-size: 19px; line-height: 1.3; color: var(--navy); margin-bottom: 8px; }
h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
p { line-height: 1.65; }

.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.eyebrow-light { color: var(--sky); }
.lead { font-size: 18px; color: #344054; line-height: 1.72; margin-bottom: 32px; }
.body-lg { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

/* ── 4. BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 15px; border-radius: var(--r-md);
  padding: 14px 26px; min-height: 48px; white-space: nowrap;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--blue); color: var(--white); box-shadow: 0 4px 16px rgba(0,85,168,.28); }
.btn.primary:hover { background: #004899; box-shadow: 0 6px 24px rgba(0,85,168,.4); }
.btn.secondary { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.btn.secondary:hover { background: #EBF4FF; }
.btn.ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.65); }
.btn.ghost:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn.white { background: var(--white); color: var(--blue); }
.btn.white:hover { background: #EBF4FF; }

/* ── 5. HEADER & DROPDOWN NAV ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(11,29,58,.1); }

.nav-wrap {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img { height: 56px; width: auto; max-width: none; display: block; }

#primary-nav { display: flex; align-items: center; gap: 2px; }

/* Nav items */
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  font-weight: 700; font-size: 14.5px; color: var(--navy);
  padding: 8px 13px; border-radius: var(--r-sm);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--light); }
.nav-caret {
  width: 12px; height: 12px; color: var(--muted);
  transition: transform .2s;
}
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); }

.nav-link.nav-cta {
  background: var(--blue); color: var(--white); padding: 10px 20px;
  border-radius: var(--r-pill); box-shadow: 0 2px 10px rgba(0,85,168,.25);
  margin-left: 8px;
}
.nav-link.nav-cta:hover { background: #004899; box-shadow: 0 4px 18px rgba(0,85,168,.4); color: var(--white); }

/* Dropdown */
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 210px; background: var(--white);
  border-radius: var(--r-md); border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(11,29,58,.14);
  padding: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 300;
}
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 10px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--text); border-radius: var(--r-sm);
  transition: background .13s, color .13s;
}
.dropdown-menu a:hover { background: var(--light); color: var(--blue); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px; padding: 8px;
  border-radius: var(--r-sm);
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile sub-items */
.mobile-sub { display: none; }

/* ── 6. HERO SLIDER ── */
.hero-slider {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 520px;
  max-height: 820px;
  overflow: hidden;
  background: var(--navy);
}
.slider-track { position: relative; width: 100%; height: 100%; }

.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--navy);
  opacity: 0; transition: opacity .9s ease;
  display: flex; align-items: center;
}
.slide.active { opacity: 1; z-index: 1; }

.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,29,58,.82) 0%, rgba(11,29,58,.55) 55%, rgba(11,29,58,.28) 100%);
}
.slide .container { position: relative; z-index: 2; }
.slide-content { max-width: 640px; color: var(--white); padding: 40px 0; }
.slide-content h1 { color: var(--white); margin-bottom: 20px; }
.slide-lead { font-size: 18px; color: rgba(255,255,255,.86); line-height: 1.72; margin-bottom: 34px; }
.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Slider controls */
.slider-controls {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px;
  z-index: 10;
}
.slider-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.slider-arrow:hover { background: rgba(255,255,255,.28); }
.slider-arrow svg { width: 18px; height: 18px; }

.slider-dots { display: flex; gap: 8px; align-items: center; }
.dot {
  width: 8px; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.4); border: none;
  transition: background .25s, width .25s;
  cursor: pointer;
}
.dot.active { background: var(--white); width: 26px; }

/* ── 7. HOME: QUICK-SERVICES BAR ── */
.services-bar { background: var(--navy); padding: 0; border-top: 1px solid rgba(255,255,255,.08); }
.services-bar-inner {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-left: 1px solid rgba(255,255,255,.08);
}
.sbar-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 20px 12px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 3px solid transparent;
  color: #8899BB;
  transition: color .18s, background .18s, border-color .18s;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase;
}
.sbar-item:hover { color: var(--white); background: rgba(255,255,255,.06); border-bottom-color: var(--sky); }
.sbar-item svg { width: 22px; height: 22px; }

/* ── 8. HOME: FEATURED SERVICES ── */
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.six   { grid-template-columns: repeat(3, 1fr); }
.cards.four  { grid-template-columns: repeat(4, 1fr); }
.cards.two   { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--sh-card);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-hover); border-color: #b8d0ea; }
.card-icon {
  width: 46px; height: 46px; background: #EBF4FF; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); margin-bottom: 16px; flex-shrink: 0;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p  { font-size: 14px; color: var(--muted); line-height: 1.65; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--blue);
  margin-top: 16px;
  transition: gap .15s;
}
.card-link:hover { gap: 10px; }
.card-link svg { width: 14px; height: 14px; }

.section-more { margin-top: 36px; text-align: center; }
.section-more a {
  font-size: 15px; font-weight: 700; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, gap .15s;
}
.section-more a:hover { border-bottom-color: var(--blue); gap: 10px; }

/* ── 9. HOME: STATS STRIP ── */
.stats-strip { background: var(--blue); padding: 44px 0; }
.stats-inner {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; text-align: center;
}
.stat-item { padding: 8px 24px; }
.stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,.25); }
.stat-num {
  font-size: 40px; font-weight: 800; color: var(--white);
  letter-spacing: -.03em; line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,.75); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ── 10. HOME: NEWS SECTION ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-card);
  transition: transform .22s, box-shadow .22s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--sh-hover); }
.news-thumb {
  height: 160px; background: var(--light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
}
.news-thumb-placeholder svg { width: 40px; height: 40px; color: rgba(255,255,255,.3); }
.news-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.news-category {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue); background: #EBF4FF; padding: 3px 8px; border-radius: var(--r-pill);
}
.news-date { font-size: 12px; color: var(--muted); font-weight: 600; }
.news-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.news-excerpt { font-size: 13.5px; color: var(--muted); line-height: 1.6; flex: 1; }
.news-read-more {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--blue);
  margin-top: 14px;
  transition: gap .15s;
}
.news-read-more:hover { gap: 8px; }

/* ── 11. HOME: CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #003d8c 100%);
  padding: 72px 0;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { font-size: 18px; color: rgba(255,255,255,.82); margin-bottom: 36px; max-width: 580px; margin-inline: auto; margin-bottom: 36px; }
.cta-banner .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── 12. PAGE HEADER BANNER (inner pages) ── */
.page-header {
  position: relative;
  padding: 60px 0 52px;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,29,58,.82) 0%, rgba(10,42,90,.65) 60%, rgba(11,29,58,.5) 100%);
  z-index: 1;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: var(--white); font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 12px; }
.page-header-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); margin-bottom: 10px; }

/* ── 13. BREADCRUMB ── */
.breadcrumb {
  background: var(--light); border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.breadcrumb-inner {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.breadcrumb-inner a { color: var(--muted); font-weight: 600; transition: color .15s; }
.breadcrumb-inner a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--line); font-size: 10px; }
.breadcrumb-inner span { color: var(--navy); font-weight: 700; }

/* ── 14. INNER PAGE LAYOUT ── */
.inner-layout {
  display: grid; grid-template-columns: 224px 1fr;
  gap: 40px; align-items: start;
  padding-top: 52px; padding-bottom: 88px;
}

/* ── 15. SIDEBAR NAV ── */
.sidebar { }
.sidebar-nav {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.sidebar-nav-title {
  background: var(--navy); color: var(--white);
  padding: 14px 18px; font-weight: 800; font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em;
}
.sidebar-nav a {
  display: block; padding: 12px 18px; font-size: 14px; font-weight: 600;
  color: var(--text); border-bottom: 1px solid var(--line);
  transition: background .13s, color .13s, padding-left .13s;
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover { background: var(--light); color: var(--blue); }
.sidebar-nav a.active {
  background: #EBF4FF; color: var(--blue);
  border-left: 3px solid var(--blue); padding-left: 15px;
}

/* ── PAGE CONTENT ── */
.page-content section { padding-top: 56px; border-top: 1px solid var(--line); margin-top: 0; }
.page-content section:first-child { padding-top: 0; border-top: none; }
.page-content h2 { margin-bottom: 18px; }
.page-content p + p { margin-top: 14px; }
.page-content p { font-size: 16px; color: var(--text); line-height: 1.7; }

/* ── 16. TIMELINE ── */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 8px; bottom: 0;
  width: 2px; background: var(--line);
}
.tl-item {
  position: relative; margin-bottom: 40px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: -36px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
}
.tl-year {
  font-size: 12px; font-weight: 800; color: var(--sky);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px;
}
.tl-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.tl-desc { font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* ── 17. TEAM CARDS ── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.team-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px; text-align: center;
  box-shadow: var(--sh-card);
}
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: var(--white); font-size: 26px; font-weight: 800;
}
.team-name { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.team-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ── 18. CONTACT FORM ── */
.contact-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 52px; align-items: start; }
.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 36px 40px;
  box-shadow: var(--sh-card);
}
.form-title { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--navy); margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; font-size: 14.5px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
  appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,85,168,.1);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-submit { width: 100%; margin-top: 4px; font-size: 16px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ── FILE UPLOAD ── */
#rfq-file { display: none; }
.file-upload-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; border: 2px dashed var(--line); border-radius: var(--r-sm);
  padding: 22px 16px; cursor: pointer; text-align: center;
  background: var(--light); transition: border-color .2s, background .2s;
  color: var(--muted);
}
.file-upload-zone:hover, .file-upload-zone.drag-over {
  border-color: var(--blue); background: rgba(0,85,168,.04); color: var(--navy);
}
.fuz-main { font-size: 13.5px; color: var(--navy); }
.fuz-hint { font-size: 12px; color: var(--muted); }
.file-selected-row {
  display: none; align-items: center; gap: 10px;
  margin-top: 10px; padding: 10px 14px;
  background: rgba(0,85,168,.06); border: 1px solid rgba(0,85,168,.15);
  border-radius: var(--r-sm);
}
.file-selected-row.visible { display: flex; }
.fsr-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fsr-name { font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.fsr-size { font-size: 11px; color: var(--muted); }
.fsr-remove {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--muted); padding: 0 2px;
}
.fsr-remove:hover { color: var(--navy); }
.rfq-file-toast {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 10px;
  font-size: 13.5px; z-index: 9999; box-shadow: 0 4px 20px rgba(0,0,0,.25);
  max-width: 420px; width: 90%; text-align: center; line-height: 1.55;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.rfq-file-toast.show { opacity: 1; pointer-events: auto; }

.contact-info-col h3 { margin-bottom: 20px; }
.contact-info-card {
  background: var(--navy); border-radius: var(--r-xl); padding: 28px 32px;
  color: var(--white); margin-bottom: 20px;
}
.ci-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 12px;
  align-items: center; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ci-row:last-child { border-bottom: none; padding-bottom: 0; }
.ci-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--sky);
}
.ci-row a { color: var(--white); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.ci-row a:hover { color: var(--sky); }
.ci-row span { color: #C5D5E8; font-size: 14.5px; }

/* ── SUPPLY PAGE SPECIFICS ── */
.supply-img { border-radius: var(--r-xl); box-shadow: var(--sh-hover); width: 100%; margin-bottom: 36px; }

/* Supply icon cards (leaflet icons) */
.supply-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.supply-icon-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 20px 24px;
  text-align: center;
  box-shadow: var(--sh-card);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.supply-icon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
  border-color: #b8d0ea;
}
.supply-icon-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
  background: transparent;
}
.supply-icon-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}
.supply-icon-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 900px) { .supply-icon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .supply-icon-grid { grid-template-columns: 1fr; } }
.supply-categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.supply-cat-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--sh-card); transition: transform .2s, box-shadow .2s;
}
.supply-cat-item:hover { transform: translateY(-2px); box-shadow: var(--sh-hover); }
.supply-cat-num {
  width: 32px; height: 32px; border-radius: 50%; background: #EBF4FF;
  color: var(--blue); font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.supply-cat-item p { font-size: 14px; font-weight: 600; color: var(--text); margin: 0; }

/* ── SERVICES: CHECK LIST ── */
.check-list { margin-top: 20px; }
.check-list li {
  position: relative; padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line); font-weight: 600;
  font-size: 15px; color: #344054;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '';  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* ── POSITIONING CARD ── */
.positioning-card {
  background: var(--navy); color: var(--white);
  border-radius: var(--r-xl); padding: 32px 34px;
  box-shadow: 0 24px 60px rgba(11,29,58,.2);
}
.positioning-card h3 { color: var(--white); font-size: 21px; margin-bottom: 4px; }
.positioning-item { border-top: 1px solid rgba(255,255,255,.15); padding: 16px 0; display: grid; gap: 4px; }
.positioning-item:last-child { padding-bottom: 0; }
.pos-label { font-weight: 800; font-size: 15px; color: var(--sky); }
.pos-desc  { font-size: 14px; color: #D7E2EE; line-height: 1.6; }

/* ── PROCESS STEPS ── */
.process-steps-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  counter-reset: step;
}
.process-step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 18px;
  text-align: center; box-shadow: var(--sh-card);
  position: relative;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; box-shadow: 0 4px 14px rgba(0,85,168,.28);
}
.process-step h4 { font-size: 13.5px; color: var(--navy); margin-bottom: 6px; }
.process-step p  { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* ── 19. FOOTER (3-tier) ── */
footer { background: var(--navy); }

.footer-top {
  padding: 52px 0 40px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo-text {
  margin-bottom: 14px;
  font-size: 22px; font-weight: 800; letter-spacing: .02em;
  color: #C3D1E0; line-height: 1.15;
}
.footer-logo-text span {
  display: block;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: #A9BACE; margin-top: 2px;
}
.footer-brand p { font-size: 13.5px; color: #7A8FA8; line-height: 1.7; }
.footer-col-title {
  font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--sky); margin-bottom: 16px;
}
.footer-col a, .footer-col address {
  display: block; font-size: 13px; color: #7A8FA8; font-style: normal;
  margin-bottom: 9px; line-height: 1.55;
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); }

.footer-mid {
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: #7A8FA8; transition: all .18s;
}
.social-link:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.social-link svg { width: 15px; height: 15px; }
.footer-legal-links { display: flex; gap: 18px; }
.footer-legal-links a { font-size: 12.5px; color: #4A5A6A; transition: color .15s; }
.footer-legal-links a:hover { color: var(--muted); }

.footer-bottom { padding: 18px 0; }
.footer-copy { font-size: 12.5px; color: #3A4A5A; }

/* ── 20. BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,85,168,.35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 50;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #004899; }
.back-to-top svg { width: 18px; height: 18px; }

/* ── 21. ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-delay-1 { transition-delay: .1s; }
.fade-delay-2 { transition-delay: .2s; }
.fade-delay-3 { transition-delay: .3s; }

/* ── 22. RESPONSIVE ── */
@media (max-width: 1040px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .services-bar-inner { grid-template-columns: repeat(3, 1fr); }
  .cards.six, .cards.four { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .supply-categories { grid-template-columns: 1fr; }
  .process-steps-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 840px) {
  :root { --header-h: 68px; }

  .brand img { height: 52px; }

  /* Nav mobile */
  .nav-toggle { display: flex; }
  #primary-nav {
    display: none; position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 8px 16px 20px; gap: 2px;
    box-shadow: 0 8px 32px rgba(11,29,58,.1);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  #primary-nav.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { padding: 11px 14px; width: 100%; border-radius: var(--r-sm); }
  .nav-link.nav-cta { text-align: center; margin: 8px 0 4px; border-radius: var(--r-sm); }
  /* Mobile dropdown: always visible as indented list */
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 2px solid var(--line);
    border-radius: 0; padding: 4px 0 4px 14px; margin-left: 14px;
    display: none;
  }
  .nav-item.mob-open .dropdown-menu { display: block; }
  .dropdown-menu a { font-size: 13px; padding: 8px 10px; color: var(--muted); }
  .nav-caret { transition: none; }
  .nav-item.mob-open .nav-caret { transform: rotate(180deg); }

  /* Hero slider */
  .hero-slider { height: 78vh; min-height: 460px; }
  .slide-content h1 { font-size: 30px; }
  .slide-lead { font-size: 16px; margin-bottom: 24px; }

  /* Services bar */
  .services-bar-inner { grid-template-columns: repeat(3, 1fr); }

  /* Inner layout */
  .inner-layout { grid-template-columns: 1fr; padding-top: 32px; }
  .sidebar { display: none; }

  /* Stats */
  .stats-inner { grid-template-columns: 1fr; gap: 16px; }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-mid { flex-direction: column; gap: 16px; }
}

@media (max-width: 600px) {
  .cards.six, .cards.four, .cards.three, .news-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .process-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-actions { flex-direction: column; align-items: flex-start; }
  .cta-banner .btn-group { flex-direction: column; align-items: center; }
  .services-bar-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ── 23. TRACKING PAGE ── */
.track-section { padding: 56px 0 80px; background: var(--light); }
.track-box { max-width: 800px; margin: 0 auto; }

/* Tabs */
.track-tabs {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
  margin-bottom: 20px;
  box-shadow: var(--sh-card);
}
.track-tab {
  flex: 1; padding: 14px 20px;
  font-size: 14px; font-weight: 700;
  color: var(--muted); background: transparent;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, color .15s;
}
.track-tab + .track-tab { border-left: 1.5px solid var(--line); }
.track-tab.active { background: var(--blue); color: var(--white); }
.track-tab:hover:not(.active) { background: var(--light); color: var(--navy); }
.track-tab svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Search row */
.track-search-row {
  display: flex; gap: 8px; align-items: stretch;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px;
  box-shadow: var(--sh-card);
  margin-bottom: 28px;
}
.track-input {
  flex: 1; padding: 10px 14px;
  font-size: 15px; font-family: inherit;
  border: none; outline: none;
  color: var(--text); background: transparent;
  min-width: 0;
}
.track-input::placeholder { color: var(--muted); }
.track-search-btn {
  background: var(--blue); color: var(--white);
  border: none; border-radius: var(--r-sm);
  padding: 12px 28px; font-size: 14.5px; font-weight: 800;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  transition: background .15s, transform .15s;
}
.track-search-btn:hover { background: #004899; transform: translateY(-1px); }
.track-search-btn:active { transform: translateY(0); }
.track-search-btn svg { width: 16px; height: 16px; }

/* Result */
.track-result { display: none; }
.track-result.visible { display: block; }
.track-result-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-hover);
  overflow: hidden;
}

/* Result header */
.trr-head {
  background: var(--navy); padding: 24px 32px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.trr-head-left { flex: 1; min-width: 0; }
.trr-type {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 4px;
}
.trr-number { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 6px; letter-spacing: -.01em; }
.trr-item { font-size: 14px; color: #C5D5E8; line-height: 1.5; }

/* Status badge */
.trr-badge {
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0; align-self: flex-start;
}
.trr-badge.received    { background: rgba(59,166,224,.2);  color: #7FD1F5; }
.trr-badge.preparing   { background: rgba(255,189,46,.2);  color: #FFCA6B; }
.trr-badge.submitted   { background: rgba(72,199,131,.2);  color: #6EE7A4; }
.trr-badge.quoting     { background: rgba(255,189,46,.2);  color: #FFCA6B; }
.trr-badge.quoted      { background: rgba(72,199,131,.2);  color: #6EE7A4; }
.trr-badge.confirmed   { background: rgba(99,179,237,.2);  color: #90CAFE; }
.trr-badge.production  { background: rgba(255,189,46,.2);  color: #FFCA6B; }
.trr-badge.procurement { background: rgba(255,189,46,.2);  color: #FFCA6B; }
.trr-badge.shipped     { background: rgba(72,199,131,.2);  color: #6EE7A4; }
.trr-badge.transit     { background: rgba(59,166,224,.25); color: #7FD1F5; }
.trr-badge.delivered   { background: rgba(72,199,131,.85); color: #fff; }
.trr-badge.completed   { background: rgba(72,199,131,.85); color: #fff; }

/* Stepbar */
.trr-steps { padding: 28px 32px 22px; }
.trr-steps-label {
  font-size: 11px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 18px;
}
.sts-track { display: flex; align-items: flex-start; }
.sts-step { flex: 1; display: flex; flex-direction: column; align-items: center; }
.sts-dot-wrap { display: flex; align-items: center; width: 100%; }
.sts-dot {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--white); border: 2.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.sts-dot svg { width: 13px; height: 13px; opacity: 0; transition: opacity .2s; }
.sts-half-line { flex: 1; height: 2.5px; background: var(--line); transition: background .25s; }
.sts-step:first-child .sts-half-line.before { visibility: hidden; }
.sts-step:last-child  .sts-half-line.after  { visibility: hidden; }

.sts-step.done .sts-dot { background: var(--blue); border-color: var(--blue); }
.sts-step.done .sts-dot svg { opacity: 1; color: var(--white); }
.sts-step.done .sts-half-line { background: var(--blue); }
.sts-step.current .sts-dot {
  background: var(--white); border-color: var(--blue); border-width: 3px;
  box-shadow: 0 0 0 5px rgba(0,85,168,.14);
}
.sts-step.current .sts-half-line.before { background: var(--blue); }

.sts-name {
  font-size: 11px; font-weight: 700; text-align: center;
  color: var(--muted); margin-top: 8px; line-height: 1.3;
  padding: 0 2px;
}
.sts-step.done .sts-name    { color: var(--blue); }
.sts-step.current .sts-name { color: var(--blue); font-weight: 800; }

/* Detail section */
.trr-details { padding: 20px 32px 28px; border-top: 1px solid var(--line); }
.trr-details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
.trrd-item { display: flex; flex-direction: column; gap: 3px; }
.trrd-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.trrd-value { font-size: 14px; font-weight: 600; color: var(--navy); }
.trr-note {
  margin-top: 18px; padding: 14px 18px;
  background: var(--light); border-radius: var(--r-sm);
  border-left: 3px solid var(--sky);
  font-size: 13.5px; color: var(--text); line-height: 1.65;
}
.trr-note-label {
  font-size: 10.5px; font-weight: 800; color: var(--sky);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px;
}

/* Message to PIC */
.trr-contact {
  padding: 20px 32px 28px;
  border-top: 1px solid var(--line);
}
.trr-contact-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--navy); border-radius: var(--r-sm);
  background: transparent; color: var(--navy);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s;
}
.trr-contact-btn:hover { background: var(--navy); color: #fff; }
.trr-msg-form {
  display: none; margin-top: 16px;
}
.trr-msg-form.open { display: block; }
.trr-msg-textarea {
  width: 100%; min-height: 100px; box-sizing: border-box;
  padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 14px; font-family: inherit; line-height: 1.6;
  color: var(--text); resize: vertical;
  transition: border-color .15s;
}
.trr-msg-textarea:focus { outline: none; border-color: var(--navy); }
.trr-msg-actions { display: flex; gap: 10px; margin-top: 10px; }
.trr-msg-send {
  padding: 9px 22px;
  background: var(--navy); color: #fff;
  border: none; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.trr-msg-send:hover { background: var(--blue); }
.trr-msg-cancel {
  padding: 9px 16px;
  background: transparent; color: var(--muted);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 13.5px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.trr-msg-cancel:hover { border-color: #999; color: var(--text); }
.trr-msg-success {
  display: flex; align-items: center;
  padding: 14px 18px;
  background: #f0fdf4; border: 1.5px solid #86efac;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: #166534;
}
@media (max-width: 640px) {
  .trr-contact { padding: 16px 20px 22px; }
}

/* Not found */
.track-not-found {
  display: none; text-align: center; padding: 48px 24px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--sh-card);
}
.track-not-found.visible { display: block; }
.track-not-found svg { width: 48px; height: 48px; color: var(--line); margin: 0 auto 16px; display: block; }
.track-not-found h3 { margin-bottom: 8px; }
.track-not-found p { font-size: 14.5px; color: var(--muted); line-height: 1.65; max-width: 420px; margin: 0 auto; }

/* Demo note */
.track-demo-note {
  max-width: 800px; margin: 20px auto 0;
  padding: 11px 16px;
  background: rgba(59,166,224,.08); border: 1px solid rgba(59,166,224,.22);
  border-radius: var(--r-sm);
  font-size: 12.5px; color: var(--muted);
  display: flex; align-items: flex-start; gap: 9px;
}
.track-demo-note svg { width: 14px; height: 14px; color: var(--sky); flex-shrink: 0; margin-top: 1px; }

/* Track page info cards */
.track-info-section { padding: 64px 0; }
.track-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Responsive */
@media (max-width: 640px) {
  .track-search-row { flex-direction: column; }
  .track-search-btn { width: 100%; justify-content: center; }
  .trr-head { padding: 20px; }
  .trr-number { font-size: 17px; }
  .trr-steps { padding: 20px; }
  .trr-details { padding: 16px 20px 22px; }
  .trr-details-grid { grid-template-columns: 1fr; }
  .sts-name { font-size: 9.5px; }
  .sts-dot { width: 22px; height: 22px; }
  .sts-dot svg { width: 10px; height: 10px; }
  .track-info-grid { grid-template-columns: 1fr; }
}
