/* ==========================================================================
   Shubh Dry Fruits - Indian Shop
   Design System: Warm food palette + Lora/Raleway typography
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  /* Colors - Warm Indian food palette */
  --color-primary: #9B2335;        /* Deep Indian Red / Maroon */
  --color-primary-dark: #7A1B2A;
  --color-primary-light: #FDF2F4;
  --color-accent: #15803D;          /* Natural Green */
  --color-accent-light: #F0FDF4;
  --color-warm: #92400E;            /* Warm Brown (dates/figs) */
  --color-warm-light: #FFF7ED;
  --color-cta: #D97706;             /* Saffron Gold */
  --color-cta-dark: #B45309;
  --color-cta-light: #FFFBEB;

  --color-bg: #FFFAF5;              /* Warm off-white */
  --color-bg-alt: #FFF5EB;          /* Warm cream */
  --color-surface: #FFFFFF;
  --color-text: #1C1917;            /* Stone 900 */
  --color-text-muted: #57534E;      /* Stone 600 */
  --color-text-light: #A8A29E;      /* Stone 400 */
  --color-border: #E7E5E4;          /* Stone 200 */
  --color-border-light: #F5F5F4;

  /* Typography */
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Raleway', 'Segoe UI', system-ui, sans-serif;

  /* Spacing (8dp system) */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 6rem;      /* 96px */

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 8px 30px rgba(28, 25, 23, 0.1);
  --shadow-xl: 0 16px 50px rgba(28, 25, 23, 0.12);

  /* Transitions */
  --transition-speed: 200ms;
  --transition-base: var(--transition-speed) ease-out;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

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

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-sm);
  outline: 3px solid var(--color-cta);
  outline-offset: 2px;
}

/* Focus States */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 44px;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary-light); }

.btn-cta {
  background: var(--color-cta);
  color: #fff;
}
.btn-cta:hover { background: var(--color-cta-dark); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.btn-full { width: 100%; }

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 250, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.header-scrolled {
  background: rgba(255, 250, 245, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.logo-icon { color: var(--color-primary); }

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.logo-accent { color: var(--color-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-text);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-base);
  cursor: pointer;
}

.nav-links a:hover { color: var(--color-primary); }

.nav-cta {
  background: var(--color-cta) !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
  padding: var(--space-sm) var(--space-lg) !important;
}

.nav-cta:hover {
  background: var(--color-cta-dark) !important;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 50%, var(--color-primary-light) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 600px at 85% 20%, rgba(155, 35, 53, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 15% 80%, rgba(217, 119, 6, 0.05) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section-tag--light { color: var(--color-cta); }

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Products --- */
.products {
  padding: var(--space-4xl) 0;
  background: var(--color-surface);
}

.product-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-border-light);
}

.product-card--featured {
  background: linear-gradient(135deg, var(--color-cta-light) 0%, var(--color-warm-light) 100%);
  border-color: var(--color-cta);
}

.product-icon { margin-bottom: var(--space-lg); }

.product-image {
  margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-xl)) var(--space-lg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 400 / 260;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

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

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.product-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.product-tags li {
  padding: 0.25rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* --- About --- */
.about {
  padding: var(--space-4xl) 0;
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.about-pattern {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pattern-ring {
  position: absolute;
  border: 1px dashed var(--color-border);
  border-radius: 50%;
}

.pattern-ring:nth-child(1) { width: 300px; height: 300px; }
.pattern-ring:nth-child(2) { width: 250px; height: 250px; }
.pattern-ring:nth-child(3) { width: 200px; height: 200px; }

.about-image-placeholder { position: relative; z-index: 1; }

.about-content .section-tag { display: block; margin-bottom: var(--space-sm); }

.about-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: var(--space-lg);
}

.about-lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.about-content > p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.value-item svg { flex-shrink: 0; margin-top: 2px; }

.value-item strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.value-item span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* --- Why Choose Us --- */
.why-us {
  padding: var(--space-4xl) 0;
  background: var(--color-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.feature-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Bestsellers --- */
.bestsellers {
  padding: var(--space-2xl) 0;
  background: var(--color-primary);
  color: #fff;
}

.bestseller-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.bestseller-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bestseller-item strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.bestseller-price {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.bestseller-icon svg {
  flex-shrink: 0;
}

/* --- Testimonials --- */
.testimonials {
  padding: var(--space-4xl) 0;
  background: var(--color-bg);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card footer {
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-md);
}

.testimonial-card footer strong {
  display: block;
  font-size: 0.9375rem;
}

.testimonial-card footer span {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  padding: 8rem 0 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 50%, var(--color-primary-light) 100%);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.page-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Map Section --- */
.map-section {
  background: var(--color-surface);
}

.map-embed {
  width: 100%;
  line-height: 0;
}

.map-embed iframe {
  width: 100%;
  min-height: 400px;
}

/* --- Contact --- */
.contact {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #fff;
  margin-bottom: var(--space-md);
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-base);
  cursor: pointer;
  font-weight: 500;
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.15);
}

.contact-method svg { flex-shrink: 0; }

/* Contact Form */
.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: var(--color-text);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-base);
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(155, 35, 53, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

.form-group textarea { resize: vertical; }

.form-note {
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* --- Footer --- */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo { margin-bottom: var(--space-md); }
.footer-brand .logo-icon { color: rgba(255, 255, 255, 0.8); }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-accent { color: rgba(255, 255, 255, 0.6); }

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links h3 {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-links ul { display: flex; flex-direction: column; gap: var(--space-sm); }

.footer-links a {
  font-size: 0.875rem;
  transition: color var(--transition-base);
  cursor: pointer;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 250px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--color-bg);
    padding: var(--space-xl);
    gap: var(--space-sm);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 99;
  }

  .nav-links.nav-open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.125rem;
    padding: var(--space-md);
  }

  .hero { padding: 8rem 0 3rem; }

  .hero-stats {
    gap: var(--space-lg);
  }

  .stat-number { font-size: 1.5rem; }

  .product-categories {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .bestseller-scroll {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
  .hero-stats { flex-direction: column; gap: var(--space-md); }
  .footer-grid { grid-template-columns: 1fr; }
}
