/* ==========================================================================
   Apex Veda Global - Theme (layered on top of Bootstrap 5.3)
   ========================================================================== */

:root {
  --navy-900: #0b1a2e;
  --navy-800: #10243f;
  --navy-700: #163257;
  --steel-600: #3d5a80;
  --steel-400: #8aa1bd;
  --steel-200: #d5dee9;
  --steel-100: #eef2f7;
  --orange-500: #f28c28;
  --orange-600: #d9741a;
  --white: #ffffff;
  --text: #1f2a37;
  --text-muted: #5b6b7f;
  --brand-navy: #1b2a5e;
  --brand-gold: #c58f2c;
  --success: #1e9e5a;
  --danger: #d64545;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 6px rgba(11, 26, 46, .08);
  --shadow: 0 10px 30px rgba(11, 26, 46, .12);
  --header-h: 76px;
  --transition: .25s ease;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--text);
  --bs-body-line-height: 1.65;
  --bs-link-color: var(--steel-600);
  --bs-link-color-rgb: 61, 90, 128;
  --bs-link-hover-color: var(--orange-600);
  --bs-link-hover-color-rgb: 217, 116, 26;
  --bs-secondary-color: var(--text-muted);
  --bs-danger: var(--danger);
  --bs-form-invalid-color: var(--danger);
  --bs-form-invalid-border-color: var(--danger);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { text-decoration: none; transition: color var(--transition); }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
.text-muted { color: var(--text-muted) !important; }
.req { color: var(--danger); }

@media (min-width: 1200px) {
  .container { max-width: 1200px; }
}

.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange-500); color: #fff; padding: 8px 14px; z-index: 1100; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* ---------- Buttons (Bootstrap variants re-themed) ---------- */
.btn { font-weight: 600; border-radius: 6px; padding: .75em 1.5em; border-width: 2px; }
.btn-lg { font-size: 1rem; padding: .85em 1.6em; }
.btn-primary {
  --bs-btn-bg: var(--orange-500); --bs-btn-border-color: var(--orange-500); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--orange-600); --bs-btn-hover-border-color: var(--orange-600); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--orange-600); --bs-btn-active-border-color: var(--orange-600);
  --bs-btn-focus-shadow-rgb: 242, 140, 40;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-dark {
  --bs-btn-bg: var(--navy-800); --bs-btn-border-color: var(--navy-800);
  --bs-btn-hover-bg: var(--navy-700); --bs-btn-hover-border-color: var(--navy-700);
  --bs-btn-active-bg: var(--navy-700); --bs-btn-active-border-color: var(--navy-700);
}
.btn-outline-light { --bs-btn-hover-color: var(--navy-900); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: var(--steel-200); font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: var(--steel-200); }
.topbar a:hover { color: var(--orange-500); }
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Header / Navbar ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--white); box-shadow: var(--shadow-sm); transition: box-shadow var(--transition); }
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header .navbar { min-height: var(--header-h); padding: 8px 0; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--navy-900); padding: 0; margin: 0; }
.logo img { width: auto; height: 50px; }
.logo-text { display: flex; flex-direction: column; align-items: stretch; line-height: 1; }
.logo-name { font-family: Montserrat, var(--font); font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; }
.logo-name .apex { color: var(--brand-navy); }
.logo-name .veda { color: var(--brand-gold); }
.logo-text small {
  display: flex; align-items: center; gap: 6px; margin-top: 5px;
  font-size: .72rem; font-weight: 700; color: var(--brand-navy); letter-spacing: 5px; text-transform: uppercase;
}
.logo-text small::before, .logo-text small::after { content: ""; flex: 1; height: 2px; background: var(--brand-gold); }
.logo-text small::after { margin-left: -5px; }
.logo:hover { color: var(--navy-900); }

.main-nav .nav-link { padding: 10px 14px !important; color: var(--navy-800); font-weight: 600; font-size: .95rem; border-radius: 6px; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--orange-600); background: var(--steel-100); }
.main-nav .nav-cta .nav-link { background: var(--orange-500); color: var(--white); margin-left: 8px; }
.main-nav .nav-cta .nav-link:hover { background: var(--orange-600); color: var(--white); }
.navbar-toggler { border: 0; padding: 8px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(61, 90, 128, .25); }

@media (max-width: 991.98px) {
  .main-nav .navbar-nav { padding: 10px 0 16px; gap: 2px; }
  .main-nav .nav-cta .nav-link { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background:
    linear-gradient(115deg, rgba(11,26,46,.96) 0%, rgba(22,50,87,.9) 55%, rgba(61,90,128,.75) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 22px),
    var(--navy-800);
  padding: 110px 0 120px;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -80px; width: 560px; height: 560px;
  background: url("../images/gear.svg") no-repeat center / contain; opacity: .12;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--orange-500); }
.hero .lead { font-size: 1.15rem; color: var(--steel-200); max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange-500); margin-bottom: 14px;
}
.hero-visual { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(4px); }
.hero-visual img { display: block; margin: 0 auto; }

/* Page hero (inner pages) */
.page-hero {
  background:
    linear-gradient(115deg, rgba(11,26,46,.95), rgba(22,50,87,.85)),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 20px),
    var(--navy-800);
  color: var(--white); padding: 70px 0 60px;
}
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { color: var(--steel-200); max-width: 700px; font-size: 1.08rem; margin: 0; }
.page-hero .breadcrumb {
  --bs-breadcrumb-divider-color: var(--steel-400); --bs-breadcrumb-item-active-color: var(--steel-400);
  font-size: .88rem; margin-bottom: 12px;
}
.page-hero .breadcrumb a { color: var(--steel-200); }
.page-hero .breadcrumb a:hover { color: var(--orange-500); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--steel-100); }
.section-dark { background: var(--navy-900); color: var(--steel-200); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head p { color: var(--text-muted); }
.section-dark .section-head p { color: var(--steel-400); }

/* ---------- Stats ---------- */
.stats { margin-top: -60px; position: relative; z-index: 2; }
.stats.stats-flat { margin-top: 0; padding-top: 50px; }
.stats-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; margin: 0; }
.stat { text-align: center; padding: 14px 10px; }
.stat strong { display: block; font-size: 2.3rem; color: var(--orange-500); line-height: 1.1; }
.stat span { color: var(--text-muted); font-weight: 600; font-size: .92rem; }
@media (min-width: 992px) {
  .stat + .stat { border-left: 1px solid var(--steel-200); }
}
@media (max-width: 991.98px) {
  .stat:nth-child(odd) { border-right: 1px solid var(--steel-200); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--steel-200); }
}

/* ---------- Cards ---------- */
.product-card {
  border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--steel-200);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media {
  height: 190px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--steel-600));
}
.card-media img { width: 110px; height: 110px; }
.product-card .card-body { padding: 24px; display: flex; flex-direction: column; }
.product-card .card-body p { color: var(--text-muted); font-size: .96rem; }
.product-card .link-more { margin-top: auto; font-weight: 700; color: var(--orange-600); }
.card-tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--steel-600); background: var(--steel-100); padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; align-self: flex-start; }
.spec-list { list-style: none; padding: 0; margin: 0 0 16px; font-size: .9rem; }
.spec-list li { padding: 6px 0; border-bottom: 1px dashed var(--steel-200); display: flex; justify-content: space-between; gap: 10px; }
.spec-list li span:first-child { color: var(--text-muted); }
.spec-list li span:last-child { font-weight: 600; text-align: right; }

.feature { padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--steel-200); transition: var(--transition); }
.feature:hover { border-color: var(--orange-500); box-shadow: var(--shadow-sm); }
.feature p { color: var(--text-muted); margin: 0; }
.icon-box {
  width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(242,140,40,.12); color: var(--orange-600);
}
.icon-box svg { width: 30px; height: 30px; }
.icon-box-whatsapp { background: rgba(37,211,102,.12); color: #1a9e4b; }
.section-dark .feature { background: var(--navy-800); border-color: var(--navy-700); }
.section-dark .feature p { color: var(--steel-400); }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange-500) 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'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") no-repeat center / 12px;
}

/* ---------- Image placeholder panel ---------- */
.visual-panel {
  border-radius: var(--radius-lg); min-height: 380px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--steel-600));
  box-shadow: var(--shadow);
}
.visual-panel img { width: 60%; opacity: .9; }
.panel-badge {
  position: absolute; left: 24px; bottom: 24px; background: var(--orange-500); color: #fff; padding: 14px 20px; border-radius: var(--radius);
  font-weight: 700; line-height: 1.2;
}
.panel-badge strong { display: block; font-size: 1.8rem; }

/* ---------- Filter (products) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  border: 2px solid var(--steel-200); background: var(--white); color: var(--navy-800); padding: 8px 18px;
  border-radius: 30px; font-weight: 600; cursor: pointer; font-family: inherit; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.is-hidden { display: none !important; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding: 34px 26px 26px; background: var(--white); border-radius: var(--radius); border-top: 4px solid var(--orange-500); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 14px; right: 20px; font-size: 2.4rem; font-weight: 800; color: var(--steel-200);
}
.step h3 { padding-right: 56px; }
.step p { color: var(--text-muted); margin: 0; }

/* ---------- Cert badges ---------- */
.cert { text-align: center; padding: 30px 20px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--steel-200); }
.cert .seal {
  width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, var(--white) 55%, var(--steel-100) 56%); border: 4px double var(--steel-600);
  font-weight: 800; color: var(--navy-800); font-size: .95rem; line-height: 1.1;
}
.cert p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* ---------- Markets ---------- */
.region { background: var(--white); border-radius: var(--radius); padding: 28px; border-left: 5px solid var(--orange-500); box-shadow: var(--shadow-sm); }
.region ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.region li { background: var(--steel-100); padding: 4px 12px; border-radius: 20px; font-size: .88rem; font-weight: 600; color: var(--navy-700); }

/* ---------- Table ---------- */
.table-responsive { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.data { --bs-table-bg: var(--white); }
table.data th, table.data td { padding: 14px 18px; border-bottom-color: var(--steel-200); }
table.data thead th { background: var(--navy-800); color: var(--white); font-weight: 600; }
table.data tbody tr:last-child td { border-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(110deg, var(--orange-600), var(--orange-500)); color: var(--white); padding: 60px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 .2em; }
.cta-band p { margin: 0; opacity: .95; }
.cta-band .btn-dark { border-color: var(--navy-900); }

/* ---------- Contact ---------- */
.form-card { background: var(--white); padding: 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--steel-200); }
.form-label { font-weight: 600; font-size: .92rem; color: var(--navy-800); }
.form-control, .form-select { padding: 12px 14px; border: 1.5px solid var(--steel-200); border-radius: 8px; font-size: .96rem; }
.form-control:focus, .form-select:focus { border-color: var(--steel-600); box-shadow: 0 0 0 3px rgba(61,90,128,.15); }
.form-check-input:checked { background-color: var(--navy-800); border-color: var(--navy-800); }
.form-check-label { font-size: .9rem; color: var(--text-muted); }

/* jQuery unobtrusive validation -> Bootstrap look */
.input-validation-error { border-color: var(--danger) !important; }
.field-validation-error.invalid-feedback, .invalid-feedback:not(:empty) { display: block; }
.field-validation-valid { display: none; }

.contact-info { display: grid; gap: 18px; }
.info-item { display: flex; gap: 16px; padding: 22px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--steel-200); }
.info-item .icon-box { margin: 0; flex-shrink: 0; width: 50px; height: 50px; }
.info-item h4 { margin: 0 0 4px; font-size: 1rem; }
.info-item p { margin: 0; color: var(--text-muted); font-size: .94rem; }
.map-embed { width: 100%; height: 260px; border: 0; border-radius: var(--radius); }
.map-placeholder {
  height: 260px; border-radius: var(--radius); display: grid; place-items: center; text-align: center; color: var(--steel-200);
  background:
    linear-gradient(rgba(16,36,63,.85), rgba(16,36,63,.85)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.12) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.12) 39px 40px),
    var(--steel-600);
}
.map-placeholder svg { width: 42px; height: 42px; margin: 0 auto 8px; display: block; color: var(--orange-500); }

.prose { max-width: 820px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* ---------- WhatsApp floating / back to top ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 1020; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.whatsapp-float svg { width: 30px; height: 30px; }

.back-to-top {
  position: fixed; right: 26px; bottom: 90px; z-index: 1020; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-800); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: var(--transition); box-shadow: var(--shadow);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--steel-400); padding-top: 70px; font-size: .94rem; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--steel-400); }
.site-footer a:hover { color: var(--orange-500); }
.site-footer .logo { color: var(--white); margin-bottom: 8px; display: inline-flex; }
.site-footer .logo-name .apex, .site-footer .logo-text small { color: var(--white); }
.logo-tagline { font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-gold); margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid var(--navy-700); padding: 20px 0; font-size: .86rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-700); display: grid; place-items: center; color: var(--steel-200); }
.social a:hover { background: var(--orange-500); color: var(--white); }
.social svg { width: 18px; height: 18px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.feature.reveal.visible:hover { border-color: var(--orange-500); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .section { padding: 70px 0; }
}
@media (max-width: 575.98px) {
  .hero { padding: 80px 0 100px; }
  .form-card { padding: 24px; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .logo-name { font-size: 1.25rem; }
  .logo img { height: 42px; }
}

/* Prevent 3rem gutters from overflowing the container on small screens */
@media (max-width: 991.98px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; }
}

