/* =====================================================================
   SHOURYA INTERNATIONAL VENTURE — style.css
   Design tokens + base + components. Mobile overrides live in responsive.css
   ===================================================================== */

:root {
  /* --- Brand palette (from brief) --- */
  --primary: #0B5ED7;
  --primary-dark: #084298;
  --secondary: #198754;
  --secondary-dark: #146c43;
  --accent: #FFC107;
  --accent-dark: #d39e00;

  /* --- Derived neutrals --- */
  --navy: #071C36;         /* deep corporate navy, derived from primary */
  --navy-soft: #0E2A4D;
  --white: #FFFFFF;
  --gray-light: #F4F6F9;
  --gray-mid: #6C7A89;
  --gray-border: #E3E8EF;
  --text-body: #2B3648;

  /* --- Type --- */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* --- Layout --- */
  --section-pad: 6.5rem;
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(7, 28, 54, 0.08);
  --shadow-strong: 0 20px 45px rgba(7, 28, 54, 0.18);
  --transition: 0.35s cubic-bezier(.22,.61,.36,1);
}

/* =============== RESET / BASE =============== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, .brand-text {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--navy); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* =============== PRELOADER =============== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.loader-mark { text-align: center; color: var(--white); }
.loader-crate {
  display: block;
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  border: 3px solid var(--accent);
  border-top-color: transparent;
  border-radius: 6px;
  animation: spin 0.9s linear infinite;
}
.loader-mark p {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  margin: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============== NAVBAR =============== */
#mainNavbar {
  padding: 1.1rem 0;
  background: transparent;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
  z-index: 1030;
}
#mainNavbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  padding: 0.6rem 0;
  box-shadow: var(--shadow-soft);
}
.navbar-brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-family: var(--font-display); font-weight: 800;
  border-radius: 9px; font-size: 0.95rem;
}
.brand-text {
  font-size: 1.02rem; font-weight: 700; color: var(--navy);
}
#mainNavbar:not(.scrolled) .brand-text { color: var(--white); }
.brand-text em { color: var(--accent); font-style: normal; }

.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  padding: 0.5rem 1rem !important;
  position: relative;
}
#mainNavbar:not(.scrolled) .nav-link { color: var(--white); }
.navbar-nav .nav-link::after {
  content: "";
  position: absolute; left: 1rem; right: 1rem; bottom: 0.15rem; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.btn-lang {
  border: 1.5px solid var(--gray-border);
  background: transparent;
  color: var(--navy);
  font-weight: 600; font-size: 0.85rem;
  padding: 0.4rem 0.9rem; border-radius: 30px;
}
#mainNavbar:not(.scrolled) .btn-lang { color: var(--white); border-color: rgba(255,255,255,0.5); }

.btn-primary-brand {
  background: var(--primary); border: 1.5px solid var(--primary);
  color: #fff; font-weight: 700; border-radius: 30px;
  padding: 0.65rem 1.6rem; transition: var(--transition);
}
.btn-primary-brand:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); }

.btn-accent-brand {
  background: var(--accent); border: 1.5px solid var(--accent);
  color: var(--navy); font-weight: 700; border-radius: 30px;
  padding: 0.65rem 1.6rem; transition: var(--transition);
}
.btn-accent-brand:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }

.btn-whatsapp {
  background: var(--secondary); border: 1.5px solid var(--secondary);
  color: #fff; font-weight: 700; border-radius: 30px;
  padding: 0.65rem 1.6rem; transition: var(--transition);
}
.btn-whatsapp:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); color: #fff; transform: translateY(-2px); }

/* =============== HERO =============== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(7,28,54,0.92) 10%, rgba(7,28,54,0.72) 55%, rgba(11,94,215,0.55) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 5rem; }
.hero-eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.78rem; color: var(--accent);
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  color: #fff; font-weight: 800; margin-bottom: 1.3rem;
}
.hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,0.85);
  max-width: 640px; margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--accent); display: inline; }
.stat-plus { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.75); letter-spacing: 0.03em; }

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.8); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.scroll-mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.6); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-dot { width: 4px; height: 8px; background: var(--accent); border-radius: 2px; animation: scrollDot 1.6s ease infinite; }
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0);} 100% { opacity: 0; transform: translateY(10px);} }

/* Trade-route divider (signature element) */
.route-divider { width: 100%; height: 40px; background: var(--white); }
.route-divider svg { width: 100%; height: 40px; display: block; }
.route-line { stroke: var(--gray-border); stroke-width: 2; stroke-dasharray: 8 8; }
.route-dot { fill: var(--secondary); animation: routeMove 6s linear infinite; }
@keyframes routeMove {
  0% { cx: 0; } 100% { cx: 1200; }
}

/* =============== SECTIONS (generic) =============== */
.section { padding: var(--section-pad) 0; }
.section-eyebrow {
  font-family: var(--font-mono);
  color: var(--secondary);
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem;
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem;
}
.section-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 1.1rem; }
.section-text { color: var(--gray-mid); font-size: 1.03rem; }

/* =============== ABOUT =============== */
.about-section { background: var(--white); }
.about-img-wrap { position: relative; }
.about-img { border-radius: var(--radius); box-shadow: var(--shadow-strong); }
.about-badge {
  position: absolute; bottom: -1.5rem; right: -1rem;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-strong);
  padding: 1rem 1.3rem; display: flex; align-items: center; gap: 0.8rem;
  border-left: 4px solid var(--accent);
}
.about-badge i { font-size: 1.6rem; color: var(--primary); }
.about-badge strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); }
.about-badge span { font-size: 0.78rem; color: var(--gray-mid); }

.mvv-box {
  background: var(--gray-light); border-radius: var(--radius);
  padding: 1.5rem 1.2rem; height: 100%;
  border-top: 3px solid var(--primary);
  transition: transform var(--transition), box-shadow var(--transition);
}
.mvv-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.mvv-box i { font-size: 1.5rem; color: var(--secondary); margin-bottom: 0.7rem; }
.mvv-box h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.mvv-box p { font-size: 0.88rem; color: var(--gray-mid); margin: 0; }

/* =============== PRODUCTS =============== */
.products-section { background: var(--gray-light); }
.product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.1rem 1.6rem 1.6rem;
  height: 100%;
  border: 1px solid var(--gray-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(11,94,215,0.05), transparent 55%);
  opacity: 0; transition: opacity var(--transition);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
  border-color: transparent;
}
.product-card:hover::before { opacity: 1; }

/* Manifest / customs-stamp style code badge */
.product-code {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.05em;
  color: var(--secondary);
  border: 1px dashed var(--secondary);
  border-radius: 4px;
  padding: 2px 8px;
  transform: rotate(3deg);
}

.product-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11,94,215,0.12), rgba(25,135,84,0.12));
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  transition: var(--transition);
}
.product-card:hover .product-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}
.product-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.product-card p { font-size: 0.9rem; color: var(--gray-mid); margin-bottom: 0.6rem; }
.sub-list {
  list-style: none; padding: 0; margin: 0.6rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.sub-list li {
  font-size: 0.72rem; font-family: var(--font-mono);
  background: var(--gray-light); color: var(--navy);
  padding: 3px 9px; border-radius: 20px;
  border: 1px solid var(--gray-border);
}

/* =============== WHY CHOOSE US =============== */
.why-section {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  position: relative;
}
.why-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: left;
  transition: var(--transition);
}
.why-box:hover { background: rgba(255,255,255,0.08); transform: translateY(-6px); border-color: var(--accent); }
.why-box i { font-size: 1.9rem; color: var(--accent); margin-bottom: 1rem; }
.why-box h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.5rem; }
.why-box p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; }

/* =============== CTA =============== */
.cta-section { position: relative; padding: 7rem 0; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(7,28,54,0.9), rgba(11,94,215,0.75)); }
.cta-content { position: relative; z-index: 2; color: #fff; }
.cta-content h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.8rem; }
.cta-content p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 2rem; }

/* =============== CONTACT =============== */
.contact-section { background: var(--white); }
.contact-info-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.3rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-info-item i {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(11,94,215,0.1); color: var(--primary); font-size: 1.1rem;
}
.contact-info-item strong { display: block; font-size: 0.9rem; color: var(--navy); }
.contact-info-item a, .contact-info-item span { font-size: 0.92rem; color: var(--gray-mid); }
.contact-info-item a:hover { color: var(--primary); }

.enquiry-form {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
}
.enquiry-form .form-label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.enquiry-form .req { color: var(--primary); }
.enquiry-form .form-control, .enquiry-form .form-select {
  border-radius: 8px; border: 1.5px solid var(--gray-border);
  padding: 0.65rem 0.9rem; font-size: 0.92rem;
}
.enquiry-form .form-control:focus, .enquiry-form .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,94,215,0.15);
}
.form-alert { padding: 0.9rem 1.1rem; border-radius: 8px; font-size: 0.9rem; }
.form-alert.success { background: rgba(25,135,84,0.12); color: var(--secondary-dark); border: 1px solid rgba(25,135,84,0.3); }
.form-alert.error { background: rgba(220,53,69,0.1); color: #b02a37; border: 1px solid rgba(220,53,69,0.3); }
.btn-spinner { display: inline-flex; align-items: center; gap: 0.4rem; }

/* =============== FOOTER =============== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 4.5rem 0 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: 1rem; }
.footer-about { font-size: 0.9rem; margin-bottom: 1.3rem; max-width: 320px; }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.site-footer hr { border-color: rgba(255,255,255,0.12); margin: 2.5rem 0 1.5rem; }
.footer-bottom { text-align: center; font-size: 0.85rem; }

/* =============== FLOATING BUTTONS =============== */
.floating-buttons {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 1040;
  display: flex; flex-direction: column; gap: 0.9rem; align-items: center;
}
.fab {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; border: none;
  box-shadow: var(--shadow-strong);
  transition: transform var(--transition), opacity var(--transition);
}
.fab:hover { transform: translateY(-4px) scale(1.05); color: #fff; }
.fab-whatsapp { background: #25D366; }
.fab-ai { background: linear-gradient(135deg, var(--primary), var(--secondary)); font-size: 1.25rem; }
.fab-top { background: var(--navy); font-size: 1.1rem; }

/* AI Chat Panel */
.ai-chat-panel {
  position: fixed; right: 1.5rem; bottom: 6.5rem; z-index: 1050;
  width: 320px; max-width: calc(100vw - 3rem);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-strong);
  overflow: hidden;
}
.ai-chat-panel[hidden] { display: none; }
.ai-chat-header {
  background: var(--navy); color: #fff; padding: 0.9rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 0.95rem;
}
.ai-chat-header button { background: none; border: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.ai-chat-body { padding: 1.3rem; font-size: 0.88rem; color: var(--gray-mid); }
.ai-chat-body p:first-child { color: var(--navy); font-weight: 600; }
.ai-chat-note { font-size: 0.78rem; margin-top: 0.8rem; }
.ai-chat-note code { background: var(--gray-light); padding: 1px 5px; border-radius: 4px; }

/* =============== AOS-LITE ANIMATION CLASSES =============== */
/* Content is visible by default (progressive enhancement). Only once
   js/script.js confirms it's running (html.js-ready, set inline in
   the <head>) do elements start hidden and wait to be revealed on
   scroll. This guarantees the page is never blank if JS fails to
   load or errors out for any reason. */
html.js-ready [data-aos] { opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease; }
html.js-ready [data-aos="fade-up"] { transform: translateY(30px); }
html.js-ready [data-aos="fade-left"] { transform: translateX(30px); }
html.js-ready [data-aos="fade-right"] { transform: translateX(-30px); }
html.js-ready [data-aos="zoom-in"] { transform: scale(0.94); }
[data-aos].aos-animate { opacity: 1 !important; transform: translate(0,0) scale(1) !important; }

/* =============== UTILITY =============== */
.text-white { color: #fff !important; }
