/* =========================================================
   VELONIX COMPONENTS — DESIGN SYSTEM
   ========================================================= */
:root {
  /* Core palette */
  --navy-950: #0a1524;
  --navy-900: #0d1e33;
  --navy-800: #142c47;
  --navy-700: #1c3d5f;
  --blue-600: #1e5c96;
  --blue-500: #2874b8;
  --cyan-500: #2ab0c5;
  --cyan-400: #4fc8db;
  --accent: #f0a93a;      /* warm amber accent — used sparingly for emphasis */
  --accent-dark: #d6901f;

  /* Neutrals */
  --grey-50:  #f7f9fb;
  --grey-100: #eef2f6;
  --grey-200: #e2e8f0;
  --grey-400: #94a3b8;
  --grey-600: #4b5768;
  --ink: #1e2733;

  /* Aliases kept for backward compatibility with existing markup */
  --navy: var(--navy-900);
  --navy-dark: var(--navy-950);
  --blue: var(--blue-600);
  --cyan: var(--cyan-500);
  --teal-light: var(--cyan-400);
  --grey-light: var(--grey-50);
  --grey-mid: var(--grey-600);
  --white: #ffffff;

  /* Scales */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(13, 30, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(13, 30, 51, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 30, 51, 0.14);

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { color: var(--grey-600); }

a { color: var(--blue-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cyan-500); }

::selection { background: var(--cyan-500); color: #fff; }

/* ---------- Topbar & Header ---------- */
.topbar {
  background: var(--navy-950);
  color: #a9c1d4;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar a { color: #d7e6ef; }
.topbar a:hover { color: var(--cyan-400); }

.site-header {
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--grey-200);
}
.navbar { padding-top: 0.6rem; padding-bottom: 0.6rem; }
.navbar-brand img { height: 50px; }

.navbar-nav .nav-link {
  color: var(--navy-800);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.65rem 1rem !important;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.35rem;
  height: 2px;
  background: var(--cyan-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.navbar-nav .nav-link:hover { color: var(--blue-600); }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-nav .nav-link.active { color: var(--navy-900); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 600; padding: 0.62rem 1.3rem; transition: all .2s ease; letter-spacing: 0.01em; }
.btn-lg { padding: 0.85rem 1.9rem; border-radius: 10px; }
.btn-sm { padding: 0.4rem 0.9rem; border-radius: 7px; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  border: none;
  box-shadow: 0 6px 16px rgba(30, 92, 150, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  box-shadow: 0 8px 22px rgba(30, 92, 150, 0.32);
  transform: translateY(-1px);
}

.btn-outline-primary { border: 1.5px solid var(--blue-600); color: var(--blue-600); }
.btn-outline-primary:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; transform: translateY(-1px); }

.btn-outline-light-cyan { border: 1.5px solid rgba(255,255,255,0.55); color: var(--white); background: transparent; }
.btn-outline-light-cyan:hover { background: var(--cyan-500); border-color: var(--cyan-500); color: var(--navy-950); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(42,176,197,0.16), transparent 45%),
    linear-gradient(135deg, var(--navy-950) 40%, var(--navy-800) 100%);
  color: var(--white);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 70%);
  pointer-events: none;
}
.hero h1 { color: var(--white); font-size: 2.75rem; line-height: 1.15; }
.hero .lead { color: #c3d6e4; font-size: 1.08rem; }
.hero-shape {
  position: absolute; top: -80px; right: -80px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(42,176,197,0.22), transparent 70%);
  border-radius: 50%;
}
.hero-image-wrap {
  display: flex; align-items: center; justify-content: center;
  max-height: 200px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}
.hero-image { max-height: 200px; max-width: 85%; width: auto; height: auto; object-fit: contain; }

/* ---------- Section Utilities ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--grey-50); }
.section-title { position: relative; margin-bottom: 2.75rem; }
.section-title .eyebrow {
  color: var(--cyan-500); text-transform: uppercase; letter-spacing: 2.2px;
  font-weight: 700; font-size: 0.8rem; display: inline-block; margin-bottom: 0.4rem;
}
.section-title h2 { font-size: 2rem; }

.badge {
  font-weight: 600; letter-spacing: 0.02em; padding: 0.45em 0.9em; border-radius: 999px;
}

/* ---------- Feature / Info Cards ---------- */
.card-feature {
  border: 1px solid var(--grey-200); border-radius: var(--radius-md); padding: 2.1rem 1.7rem;
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color .25s ease;
  height: 100%;
}
.card-feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(42,176,197,0.35); }
.card-feature .icon-wrap {
  width: 54px; height: 54px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  color: #fff; font-size: 1.4rem; margin-bottom: 1.1rem;
  box-shadow: 0 8px 18px rgba(30,92,150,0.22);
}
.card-feature h4, .card-feature h5, .card-feature h6 { margin-bottom: 0.6rem; }

/* ---------- Product Cards ---------- */
.product-card {
  border: 1px solid var(--grey-200); border-radius: var(--radius-md); overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease; height: 100%; background: #fff;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-card img { height: 220px; object-fit: cover; width: 100%; }
.product-card .body { padding: 1.4rem; }
.badge-code { background: var(--grey-100); color: var(--navy-900); font-weight: 700; }

/* ---------- Timeline (Manufacturing) ---------- */
.process-timeline { position: relative; padding-left: 2.6rem; }
.process-timeline::before {
  content: ''; position: absolute; left: 10px; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(180deg, var(--cyan-500), var(--grey-200));
}
.process-step { position: relative; margin-bottom: 2.6rem; }
.process-step::before {
  content: ''; position: absolute; left: -2.6rem; top: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--navy-900); border: 3px solid var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(42,176,197,0.15);
}

/* ---------- Gallery ---------- */
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: pointer; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 230px; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 0.85rem 1rem;
  background: linear-gradient(0deg, rgba(10,21,36,0.9), transparent); color: #fff; font-size: 0.88rem; font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb6c7; position: relative; }
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500), var(--accent));
}
.footer-heading { color: #fff; font-weight: 600; margin-bottom: 1.1rem; font-size: 0.95rem; letter-spacing: 0.02em; }
.footer-links li { margin-bottom: 0.65rem; font-size: 0.93rem; }
.footer-links a { color: #a9c1d4; text-decoration: none; }
.footer-links a:hover { color: var(--cyan-400); }
.footer-bottom { background: var(--navy-950); border-top: 1px solid rgba(255,255,255,0.08); color: #7d94a6; }
.social-icon {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); color: #fff; transition: all .2s ease;
}
.social-icon:hover { background: var(--cyan-500); color: var(--navy-950); transform: translateY(-2px); }
.footer-logo { filter: brightness(0) invert(1); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 1040;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  transition: transform .2s ease;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--navy-800); margin-bottom: 0.4rem; }
.form-control, .form-select {
  border-radius: var(--radius-sm); padding: 0.68rem 0.95rem; border: 1.5px solid var(--grey-200);
  font-size: 0.95rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus, .form-select:focus { border-color: var(--cyan-500); box-shadow: 0 0 0 0.2rem rgba(42,176,197,0.14); }

/* ---------- Tables ---------- */
.table { --bs-table-hover-bg: var(--grey-50); }
.table thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--grey-600); border-bottom-width: 1px; }

/* ---------- Pagination ---------- */
.pagination .page-link { color: var(--navy-800); border-color: var(--grey-200); border-radius: var(--radius-sm); margin: 0 3px; }
.pagination .page-item.active .page-link { background: var(--blue-600); border-color: var(--blue-600); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .section { padding: 70px 0; }
}
@media (max-width: 767px) {
  .hero { padding: 84px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 56px 0; }
  .section-title h2 { font-size: 1.6rem; }
  .hero-image-wrap, .hero-image { max-height: 130px; }
}
