/* =====================================================
   JVS AUTOMATION & SOLUTION - Main Stylesheet
   Design tokens: Deep Navy + Electric Blue, industrial/engineering
   Fonts: Manrope (display) / Inter (body)
   ===================================================== */

:root {
  --navy-950: #060f1f;
  --navy-900: #0a1a33;
  --navy-800: #0f2547;
  --navy-700: #16335e;
  --blue-500: #1e6fff;
  --blue-400: #4a8bff;
  --blue-300: #8fb8ff;
  --steel-100: #eef2f7;
  --steel-200: #dfe6ee;
  --steel-400: #9aa8bb;
  --steel-600: #5b6b81;
  --white: #ffffff;
  --charcoal: #12181f;
  --success: #1fa96b;
  --warn: #e0a11a;
  --danger: #d64545;

  --font-display: 'Manrope', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow-card: 0 1px 2px rgba(10,26,51,.06), 0 8px 24px rgba(10,26,51,.08);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; color: var(--navy-900); }
p { margin: 0 0 1em; color: var(--steel-600); }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-dark { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); color: var(--steel-200); }
.section-dark p { color: var(--steel-400); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-grey { background: var(--steel-100); }

.eyebrow { color: var(--blue-500); font-weight: 700; font-size: .8rem; letter-spacing: .02em; margin-bottom: 10px; display: inline-block; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm); font-weight: 700; font-family: var(--font-display);
  font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: var(--blue-400); }
.btn-outline { border-color: var(--steel-200); color: var(--navy-900); background: transparent; }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-500); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500; background: rgba(6,15,31,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06); transition: background .25s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.15rem; }
.brand img { height: 42px; width: auto; }
.brand-text small { display: block; font-weight: 500; font-size: .68rem; color: var(--blue-300); letter-spacing: .03em; }
.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu a { color: var(--steel-200); font-weight: 600; font-size: .93rem; padding: 10px 16px; border-radius: var(--radius-sm); position: relative; transition: color .2s; }
.nav-menu a:hover, .nav-menu a.active { color: #fff; }
.nav-menu a.active::after { content:''; position:absolute; left:16px; right:16px; bottom:5px; height:2px; background: var(--blue-500); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { padding: 10px 20px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: #fff; display: block; }

@media (max-width: 960px) {
  .nav-menu { position: fixed; top: 78px; left: 0; right: 0; bottom: 0; background: var(--navy-950); flex-direction: column; align-items: stretch; padding: 20px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { padding: 16px 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .hamburger { display: flex; }
  .header-actions .btn-text-label { display: none; }
}

/* ---------- Hero Slider ---------- */
.hero-slider { position: relative; height: min(86vh, 720px); min-height: 480px; overflow: hidden; background: var(--navy-950); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide .bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.08); transition: transform 8s ease;
}
.hero-slide.active .bg { transform: scale(1); }
.hero-slide .overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,15,31,.92) 20%, rgba(6,15,31,.55) 55%, rgba(6,15,31,.35) 100%); }
.hero-content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 620px; padding: 0 24px; margin: 0 auto; }
.hero-content .eyebrow { color: var(--blue-300); }
.hero-content h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); opacity:0; transform: translateY(18px); }
.hero-content p { color: var(--steel-300, #b9c6d8); font-size: 1.1rem; max-width: 480px; opacity:0; transform: translateY(18px); }
.hero-content .hero-cta { opacity:0; transform: translateY(18px); }
.hero-slide.active .hero-content h1 { animation: heroUp .8s ease .25s forwards; }
.hero-slide.active .hero-content p { animation: heroUp .8s ease .4s forwards; }
.hero-slide.active .hero-content .hero-cta { animation: heroUp .8s ease .55s forwards; }
@keyframes heroUp { to { opacity: 1; transform: translateY(0); } }

.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; }
.hero-nav:hover { background: var(--blue-500); border-color: var(--blue-500); }
.hero-prev { left: 24px; } .hero-next { right: 24px; }
.hero-dots { position: absolute; bottom: 28px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 30px; height: 4px; border: none; background: rgba(255,255,255,.35); cursor: pointer; padding:0; }
.hero-dots button.active { background: var(--blue-500); }
@media (max-width: 720px) { .hero-nav { display: none; } }

/* ---------- Intro / stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem,3vw,2.6rem); color: var(--blue-400); }
.stat-label { color: var(--steel-400); font-size: .88rem; font-weight: 600; }
@media (max-width: 720px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.service-card { background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius-md); padding: 32px 26px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.service-card:hover { border-color: var(--blue-400); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.service-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--navy-900); color: var(--blue-300); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.1rem; }
.service-card .btn { margin-top: 12px; }

.product-card { background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--steel-100); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 18px 20px; }
.product-card .tag { font-size: .72rem; font-weight: 700; color: var(--blue-500); }
.product-card h3 { font-size: 1rem; margin: 6px 0; }

/* ---------- Marquee ---------- */
.brand-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-track { display: flex; gap: 64px; width: max-content; animation: scrollX 28s linear infinite; align-items: center; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
.brand-track img { height: 34px; width: auto; opacity: .75; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.brand-track img:hover { opacity: 1; filter: grayscale(0); }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Process steps ---------- */
.process-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.process-step { text-align: left; padding-top: 14px; border-top: 2px solid var(--steel-200); }
.process-step .num { font-family: var(--font-display); font-weight: 800; color: var(--blue-500); font-size: 1.1rem; }
@media (max-width: 900px) { .process-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-row { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); border-radius: 8px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: var(--steel-400); margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--steel-400); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--blue-300); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 38px; }
.footer-brand span { font-family: var(--font-display); font-weight: 800; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
.footer-bottom a { color: var(--steel-400); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating buttons ---------- */
.float-actions { position: fixed; right: 20px; bottom: 20px; z-index: 400; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.35rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s; }
.float-btn:hover { transform: scale(1.06); }
.float-whatsapp { background: #25D366; }
.float-call { background: var(--blue-500); display: none; }
.float-top { background: var(--navy-800); width: 42px; height: 42px; font-size: 1rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.float-top.show { opacity: 1; pointer-events: auto; }
@media (max-width: 720px) { .float-call { display: flex; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); padding: 64px 0 56px; color: #fff; position: relative; overflow:hidden; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.breadcrumb { color: var(--blue-300); font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.breadcrumb a { color: var(--steel-400); }

/* ---------- Forms ---------- */
.form-control { width: 100%; padding: 13px 16px; border: 1px solid var(--steel-200); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .95rem; background: #fff; transition: border-color .2s; }
.form-control:focus { border-color: var(--blue-500); outline: none; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--navy-900); }
textarea.form-control { resize: vertical; min-height: 120px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .92rem; font-weight: 600; }
.alert-success { background: #e5f7ee; color: var(--success); border: 1px solid #bfe9d3; }
.alert-error { background: #fbeaea; color: var(--danger); border: 1px solid #f3c8c8; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.gallery-filters button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--steel-200); background: #fff; font-weight: 600; font-size: .85rem; cursor: pointer; transition: all .2s; }
.gallery-filters button.active, .gallery-filters button:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.gallery-grid { columns: 3 260px; column-gap: 18px; }
.gallery-item { break-inside: avoid; margin-bottom: 18px; position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .play-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(6,15,31,.35); color: #fff; font-size: 2rem; }

/* ---------- Detail pages ---------- */
.detail-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--steel-200); font-size: .92rem; }
.spec-table td:first-child { font-weight: 700; color: var(--navy-900); width: 40%; }
.tick-list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--navy-900); font-weight: 500; }
.tick-list li::before { content: '✓'; position: absolute; left: 0; color: var(--blue-500); font-weight: 800; }

/* ---------- Filters (products page) ---------- */
.filter-bar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 32px; background: var(--steel-100); padding: 18px 20px; border-radius: var(--radius-md); }
.filter-bar select, .filter-bar input[type=text] { padding: 10px 14px; border: 1px solid var(--steel-200); border-radius: var(--radius-sm); font-size: .9rem; background: #fff; }
.filter-bar input[type=text] { flex: 1; min-width: 180px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--steel-200); font-weight: 600; font-size: .88rem; }
.pagination a:hover { border-color: var(--blue-500); color: var(--blue-500); }
.pagination .current { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* fade in on scroll (single orchestrated reveal, applied lightly) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Reusable badge */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge-new { background: #e5f7ee; color: var(--success); }
