/* ============================
   SHREENATH TRADERS - style.css
   ============================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a3a6b;
  --primary-dark: #112550;
  --primary-light: #2a5298;
  --accent: #e8a020;
  --white: #ffffff;
  --light-grey: #f4f6f9;
  --mid-grey: #dde2ea;
  --dark-grey: #333c4d;
  --text: #1e2533;
  --text-muted: #6b7280;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 32px rgba(26,58,107,0.18);
  --radius: 8px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

img { display: block; max-width: 100%; }

/* ============================
   LOADER
   ============================ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-icon {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255,255,255,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}
.loader-text {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 4px;
  animation: pulse 1.5s ease infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{opacity:0.5} 50%{opacity:1} }

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}
.nav-logo-sub {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 6px;
}
.nav-links a {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.nav-links a.nav-enquiry {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
}
.nav-links a.nav-enquiry:hover {
  background: #f0b030;
  color: var(--primary-dark);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 88vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?w=1600&q=70&fit=crop') center/cover no-repeat;
  opacity: 0.13;
}
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 20px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 40px;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  animation: fadeInUp 0.7s ease 0.4s both;
  flex-wrap: wrap;
}
.hero-stat-num { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-primary:hover { background: #f0b030; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-blue {
  background: var(--primary);
  color: #fff;
}
.btn-blue:hover { background: var(--primary-dark); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ============================
   SECTIONS / LAYOUT
   ============================ */
.section { padding: 80px 24px; }
.section-grey { background: var(--light-grey); }
.section-dark { background: var(--primary-dark); color: #fff; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-dark .section-label { color: var(--accent); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
}
.section-dark .section-title { color: #fff; }
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 50px;
}
.section-dark .section-desc { color: rgba(255,255,255,0.7); }

/* ============================
   FEATURES GRID
   ============================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--mid-grey);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; color: #fff; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ============================
   PRODUCT CARDS
   ============================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--mid-grey);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.product-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--mid-grey);
  position: relative;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }
.product-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dde2ea 0%, #c4cdd9 100%);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.product-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.product-desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 18px; flex: 1; }
.product-actions { display: flex; gap: 10px; }

/* ============================
   PAGE HEADER BANNER
   ============================ */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 60px 24px;
  text-align: center;
}
.page-banner h1 { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.page-banner p { color: rgba(255,255,255,0.75); font-size: 1rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ============================
   PRODUCT DETAIL
   ============================ */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.product-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  height: 420px;
  background: var(--mid-grey);
}
.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-info h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.product-detail-info .product-category { margin-bottom: 16px; }
.product-detail-info p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.8; }
.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.specs-table tr { border-bottom: 1px solid var(--mid-grey); }
.specs-table td { padding: 10px 12px; font-size: 0.9rem; }
.specs-table td:first-child { font-weight: 600; color: var(--primary); width: 40%; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #d1fae5;
  color: #065f46;
  margin-bottom: 16px;
}

/* ============================
   FORM
   ============================ */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--mid-grey);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
}
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--mid-grey);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--light-grey);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}
.form-control.error { border-color: #dc2626; }
.form-error { font-size: 0.8rem; color: #dc2626; margin-top: 4px; display: none; }
.form-error.show { display: block; }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-success {
  background: #d1fae5;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-weight: 600;
  margin-top: 20px;
  display: none;
}
.form-success.show { display: block; }

/* ============================
   ABOUT
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  height: 440px;
  box-shadow: var(--shadow-hover);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.about-info p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.values-list { list-style: none; margin: 24px 0; }
.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.check-icon {
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-icon::after {
  content: '';
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-2px);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.trust-card {
  background: var(--light-grey);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--mid-grey);
}
.trust-num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.trust-label { font-size: 0.85rem; color: var(--text-muted); }

/* ============================
   CONTACT
   ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info-card {
  background: var(--primary-dark);
  border-radius: var(--radius);
  padding: 40px 32px;
  color: #fff;
}
.contact-info-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-item-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); letter-spacing: 1px; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.contact-item-value { font-size: 0.95rem; color: #fff; line-height: 1.5; }

/* ============================
   FOOTER
   ============================ */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 24px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-name { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.footer-brand-sub { font-size: 0.7rem; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.footer-brand-desc { font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: #fff; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 0.875rem; }
.footer-contact-item svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate.in-view { opacity: 1; transform: translateY(0); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .product-detail-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 28px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--primary-dark); padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .navbar { position: sticky; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: 70vh; }
  .hero-btns { flex-direction: column; }
  .form-card { padding: 24px 18px; }
  .contact-grid { grid-template-columns: 1fr; }
}
