/* ============================================================
   YANTRATECH SOLUTIONS — shared.css
   Design tokens, animations, layout utilities shared
   across all pages of the multi-page website.
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Roboto:wght@300;400;500;700;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --primary:   #191A18;
  --secondary: #F3B93E;
  --secondary-hover: #e0a426;
  --grey:      #535556;
  --ink:       #191A18;
  --light:     #F8F9FA;
  --line:      #E5EAF2;
  --shadow:    0 18px 50px rgba(25,26,24,.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before { content:""; position:fixed; inset:0; pointer-events:none; z-index:-1; opacity:.16; background-image:linear-gradient(90deg, transparent 49.8%, rgba(243,185,62,.16) 50%, transparent 50.2%),linear-gradient(0deg, transparent 49.8%, rgba(243,185,62,.12) 50%, transparent 50.2%); background-size:90px 90px; mask-image:linear-gradient(to bottom, #000, transparent 48%); }

/* ---------- Gradient Overlays ---------- */
.transparent-blackish-gradient {
  background: linear-gradient(135deg,
    rgba(25,26,24,0.60) 0%,
    rgba(25,26,24,0.50) 60%,
    rgba(25,26,24,0.40) 100%);
}
.hero-overlay-gradient {
  background: linear-gradient(90deg,
    rgba(25,26,24,0.65) 0%,
    rgba(25,26,24,0.52) 45%,
    rgba(25,26,24,0.38) 80%,
    rgba(25,26,24,0.50) 100%);
}
.hero-parallax { animation:heroDrift 13s ease-in-out infinite alternate; transform:scale(1.04); }
@keyframes heroDrift { to { transform:scale(1.10) translate3d(-.6%, -.5%, 0); } }

/* ---------- Scroll Reveal ---------- */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-item.revealed { opacity: 1; transform: translateY(0); }

/* ---------- Card Hover ---------- */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.25,1,0.5,1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 50px rgba(25,26,24,.18);
  border-color: #F3B93E;
}

/* The industry catalogue uses one responsive card template at every breakpoint. */
@media (min-width: 1024px) {
  .industry-card { min-height: 25rem; }
}

/* ---------- Brand Card ---------- */
.brand-card {
  transition: all 0.35s ease;
  background: #f8fafc;
  border: 1.5px solid #d9e1eb;
}
.brand-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  border-color: #F3B93E;
  box-shadow: 0 16px 35px rgba(25,26,24,0.12);
}
.brand-card img { object-fit:contain; }

/* ---------- Floating Animation ---------- */
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
.float-anim { animation: floatY 4s ease-in-out infinite; }

/* ---------- Pulse Glow ---------- */
@keyframes pulseGlow {
  0%,100% { transform: scale(1);    box-shadow: 0 0 15px rgba(37,211,102,.4); }
  50%     { transform: scale(1.08); box-shadow: 0 0 30px rgba(37,211,102,.7); }
}
.pulse-badge { animation: pulseGlow 3s infinite ease-in-out; }

/* ---------- Button Shimmer ---------- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.btn-shimmer {
  background-size: 200% 100%;
  background-image: linear-gradient(90deg, #F3B93E 0%, #FFF3C8 50%, #F3B93E 100%);
  transition: all 0.3s ease;
}
.btn-shimmer:hover { animation: shimmer 2s infinite; }


/* ---------- Page Hero Banner ---------- */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
}
.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(25,26,24,0.80) 0%,
    rgba(25,26,24,0.55) 60%,
    rgba(25,26,24,0.45) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  color: #fff;
}
.page-hero-content .breadcrumb {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F3B93E;
  margin-bottom: 0.75rem;
}
.page-hero-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  animation: titleLift .8s cubic-bezier(.16,1,.3,1) both;
}
.page-hero-content p {
  margin-top: 0.85rem;
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 600px;
}

/* ---------- Section Title ---------- */
.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--primary);
  margin-top: 0.4rem;
  animation: titleLift .75s cubic-bezier(.16,1,.3,1) both;
}
@keyframes titleLift { from { opacity:0; transform:translateY(18px); } 70% { transform:translateY(-3px); } to { opacity:1; transform:translateY(0); } }
.section-sub {
  color: var(--grey);
  font-size: 1rem;
  margin-top: 0.6rem;
}

/* ---------- Nav Active Link ---------- */
nav a.nav-active {
  color: #F3B93E !important;
}
nav a.nav-active::after {
  width: 100% !important;
}

/* Keep the public navigation in the required product-first sequence. */
nav a[data-page="index.html"] { order:1; }
nav a[data-page="products.html"] { order:2; }
nav a[data-page="brands.html"] { order:3; }
nav a[data-page="industries.html"] { order:4; }
nav a[data-page="why-us.html"] { order:5; }
nav a[data-page="contact.html"] { order:6; }
#mobile-menu:not(.hidden) { display:flex !important; flex-direction:column; }
#mobile-menu a[href="index.html"] { order:1; }
#mobile-menu a[href="products.html"] { order:2; }
#mobile-menu a[href="brands.html"] { order:3; }
#mobile-menu a[href="industries.html"] { order:4; }
#mobile-menu a[href="why-us.html"] { order:5; }
#mobile-menu a[href="contact.html"] { order:6; }
#mobile-menu button { order:7; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #191A18; }
::-webkit-scrollbar-thumb { background: #F3B93E; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #e0a426; }

/* ---------- Form Inputs ---------- */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5EAF2;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-family: 'Outfit', sans-serif;
  background: #f8f9fa;
  color: var(--primary);
  outline: none;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.form-input:focus { border-color: #F3B93E; background: #fff; box-shadow: 0 0 0 4px rgba(243,185,62,.18); transform: translateY(-1px); }
.form-input:invalid:not(:placeholder-shown) { border-color: #d9534f; }
.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.35rem;
  font-family: 'Outfit', sans-serif;
}

/* ---------- Utility ---------- */
.text-gold  { color: #F3B93E; }
.bg-primary { background: var(--primary); }
.font-outfit { font-family: 'Outfit', sans-serif; }

/* A single high-contrast treatment keeps every trust icon recognisably Yantratech. */
.trust-icon { width:4.35rem; height:4.35rem; border-radius:999px; display:flex; align-items:center; justify-content:center; margin-bottom:.9rem; color:var(--secondary); background:var(--primary); border:2px solid var(--secondary); box-shadow:0 7px 18px rgba(25,26,24,.14),inset 0 0 0 4px rgba(255,255,255,.06); transition:transform .3s ease,box-shadow .3s ease,background-color .3s ease; }
.trust-icon svg { width:1.7rem; height:1.7rem; stroke:currentColor; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.trust-icon:hover { transform:translateY(-4px) rotate(-3deg); background:#252723; box-shadow:0 12px 24px rgba(25,26,24,.2),0 0 0 4px rgba(243,185,62,.14); }

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