/* =============================================
   MADDY'S MASALA — MAIN STYLESHEET
   Day/Night theme support
   ============================================= */

/* ---------- CSS VARIABLES (DARK / NIGHT MODE — Default) ---------- */
:root {
  --bg:              #1c1410;
  --bg-alt:          #231a14;
  --card-bg:         #2a1f17;
  --card-border:     #3d2e22;
  --foreground:      #f5f0ea;
  --muted:           #a09080;
  --primary:         #e05c2a;
  --primary-hover:   #c74e20;
  --primary-soft:    rgba(224,92,42,0.12);
  --secondary:       #d4a64a;
  --nav-bg:          rgba(28,20,16,0.82);
  --contact-bg:      linear-gradient(135deg, rgba(224,92,42,0.15) 0%, #2a1f17 60%, #231a14 100%);
  --shadow-primary:  rgba(224,92,42,0.3);
  --font-display:    'Playfair Display', Georgia, serif;
  --font-body:       'Inter', system-ui, sans-serif;
  --radius:          0.625rem;
  --transition:      0.2s ease;
}

/* ---------- LIGHT / DAY MODE ---------- */
body.day {
  --bg:              #fdf8f3;
  --bg-alt:          #f5ede3;
  --card-bg:         #ffffff;
  --card-border:     #e8d5c0;
  --foreground:      #1c1410;
  --muted:           #6b5344;
  --primary:         #c94c1a;
  --primary-hover:   #a83c12;
  --primary-soft:    rgba(201,76,26,0.1);
  --secondary:       #b8842a;
  --nav-bg:          rgba(253,248,243,0.9);
  --contact-bg:      linear-gradient(135deg, rgba(201,76,26,0.08) 0%, #ffffff 60%, #f5ede3 100%);
  --shadow-primary:  rgba(201,76,26,0.25);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--foreground);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

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

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  cursor: pointer;
}

.toggle-track {
  position: relative;
  width: 64px;
  height: 32px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: background 0.4s, border-color 0.4s;
}

.toggle-icon {
  font-size: 14px;
  z-index: 1;
  line-height: 1;
  user-select: none;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), background 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

body.day .toggle-thumb {
  transform: translateX(32px);
}

/* ---------- LAYOUT ---------- */
.site-wrapper { min-height: 100vh; }
.container { max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem; }
.text-center { text-align: center; }

/* ---------- NAVIGATION ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
}

.nav-inner {
  max-width: 80rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}

.nav-logo { display: flex; align-items: center; }

.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: filter 0.3s;
}

body.day .logo-img {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.nav-links {
  display: none;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(var(--foreground-rgb, 245,240,234), 0.8);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  color: var(--foreground);
  opacity: 0.8;
  transition: opacity var(--transition), color var(--transition);
}
.nav-links a:hover { opacity: 1; color: var(--secondary); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(245,240,234,0.25);
  color: var(--foreground);
}
body.day .btn-outline {
  border-color: rgba(28,20,16,0.25);
}
.btn-outline:hover {
  background: rgba(245,240,234,0.07);
}
body.day .btn-outline:hover {
  background: rgba(28,20,16,0.06);
}

.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(28,20,16,0.85) 50%, rgba(28,20,16,0.25) 100%);
  transition: background 0.4s;
}

body.day .hero-overlay {
  background: linear-gradient(to right, rgba(253,248,243,0.92) 0%, rgba(245,237,227,0.82) 50%, rgba(245,237,227,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding: 8rem 1.5rem 4rem;
}

.hero-inner { max-width: 40rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(212,166,74,0.4);
  background: rgba(212,166,74,0.1);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.text-primary { color: var(--primary); }

.hero-desc {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.625;
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-actions .btn-primary {
  box-shadow: 0 8px 24px var(--shadow-primary);
}

.hero-certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.cert-item svg { color: var(--secondary); flex-shrink: 0; }

/* ---------- SECTIONS ---------- */
.section { padding-block: 6rem; }

.section-alt {
  background-color: var(--bg-alt);
  transition: background-color 0.4s;
}

.section-header { margin-bottom: 4rem; }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
  margin-top: 0.25rem;
}

.section-about .section-desc {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.625;
  max-width: 48rem;
  margin: 1.5rem auto 0;
}

/* ---------- PRODUCTS ---------- */
.products-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
}

.product-card {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: border-color var(--transition), transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  border-color: rgba(224,92,42,0.5);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.product-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-body { padding: 1.75rem; }

.product-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.product-desc {
  color: var(--muted);
  line-height: 1.625;
  margin-bottom: 1.25rem;
}

.product-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- STEPS ---------- */
.steps-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 1.5rem;
  transition: border-color var(--transition);
}

.step-card:hover { border-color: rgba(224,92,42,0.5); }

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.step-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.625; }

/* ---------- FEATURES ---------- */
.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  border-radius: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.75rem;
  transition: border-color var(--transition);
}

.feature-card:hover { border-color: rgba(224,92,42,0.4); }

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.feature-desc { color: var(--muted); line-height: 1.625; }

/* ---------- CONTACT ---------- */
.contact-card {
  max-width: 56rem;
  margin-inline: auto;
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  background: var(--contact-bg);
  padding: 2.5rem;
  transition: background 0.4s, border-color 0.4s;
}

@media (min-width: 768px) { .contact-card { padding: 3.5rem; } }

.contact-mfg {
  color: var(--muted);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.contact-company {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 0.5rem;
}

.contact-reg {
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
}

.contact-info { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-row svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.contact-row a:hover { color: var(--secondary); }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding-block: 2.5rem;
  padding-inline: 1.5rem;
  transition: border-color 0.4s;
}

.footer-inner {
  max-width: 80rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) { .footer-inner { flex-direction: row; } }

.logo-img--footer { height: 48px; }

.footer-copy { font-size: 0.875rem; color: var(--muted); }

/* ---------- SMOOTH TRANSITIONS ---------- */
.site-header,
.hero-overlay,
.section,
.section-alt,
.product-card,
.step-card,
.feature-card,
.contact-card,
.site-footer,
.card-bg,
.nav-inner,
.badge {
  transition: background 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, color 0.3s ease;
}
