/* KishansKraft Website Styles */
/* CSS Variables for consistent theming */
:root {
  /* Color Palette */
  --accent: #D97706;
  --accent-2: #F59E0B;
  --accent-light: #FEF3E2;
  --text: #1F2937;
  --text-muted: #6B7280;
  --bg: #FFFBF7;
  --white: #FFFFFF;
  
  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: rgba(31, 41, 55, 0.1);
  
  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Playfair Display', Georgia, serif;
  
  /* Layout */
  --container-max: 1200px;
  --radius: 16px;
  --radius-sm: 8px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(31, 41, 55, 0.37);
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover, a:focus {
  color: var(--accent-2);
  text-decoration: underline;
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent);
  color: var(--white);
  padding: 8px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-size: 0.875rem;
  font-weight: 500;
}

.skip-link:focus {
  top: 6px;
}

/* Glass effect utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .glass {
    background: rgba(255, 255, 255, 0.9);
  }
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md);
}

.logo {
  font-family: var(--font-secondary);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.logo:hover, .logo:focus {
  text-decoration: none;
  color: var(--accent-2);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  margin: 0;
}

.nav-link {
  font-weight: 500;
  color: var(--text);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  background: var(--glass-bg);
  color: var(--accent);
  text-decoration: none;
}

.cta-button {
  background: var(--accent);
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.cta-button:hover,
.cta-button:focus {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--white);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  gap: 4px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .navbar-container {
    padding: var(--spacing-sm);
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--glass-border);
    flex-direction: column;
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .navbar-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-nav {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-sm);
  }
  
  .nav-link {
    padding: var(--spacing-sm);
    text-align: center;
  }
  
  .navbar-cta {
    width: 100%;
  }
  
  .cta-button {
    display: block;
    text-align: center;
    width: 100%;
  }
}

/* Main Content */
main {
  margin-top: 80px; /* Account for fixed header */
  min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg) 100%);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  color: var(--text);
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

.hero-cta {
  display: inline-flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
}

/* Features Section */
.features {
  padding: var(--spacing-xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.feature-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: 2rem;
  color: var(--accent);
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.product-content {
  padding: var(--spacing-md);
}

.product-title {
  color: var(--text);
  margin-bottom: var(--spacing-xs);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--spacing-sm);
}

.product-description {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
}

/* Form Styles */
.form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer Styles */
.site-footer {
  background: var(--text);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-title {
  color: var(--accent-2);
  margin-bottom: var(--spacing-sm);
}

.footer-heading {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

.footer-description {
  color: #D1D5DB;
  font-size: 0.875rem;
}

.footer-contact {
  font-style: normal;
}

.footer-contact p {
  margin-bottom: var(--spacing-xs);
  font-size: 0.875rem;
  color: #D1D5DB;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-link {
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--accent-2);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-link {
  color: #D1D5DB;
  transition: color 0.2s ease;
}

.social-link:hover,
.social-link:focus {
  color: var(--accent-2);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: var(--spacing-md);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #9CA3AF;
  gap: var(--spacing-sm);
}

@media (max-width: 768px) {
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Image lazy loading */
img[loading="lazy"] {
  transition: opacity 0.3s ease;
}

img[loading="lazy"]:not(.loaded) {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Product detail page specific styles */
.product-detail {
  padding: var(--spacing-xl) 0;
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

@media (max-width: 768px) {
  .product-detail-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

.product-gallery {
  background: var(--accent-light);
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.product-info h1 {
  color: var(--text);
  margin-bottom: var(--spacing-sm);
}

.product-price-large {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--spacing-md);
}

.product-features {
  list-style: none;
  margin: var(--spacing-md) 0;
}

.product-features li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.product-features li:before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Print styles */
@media print {
  .site-header,
  .mobile-menu-toggle,
  .cta-button,
  .btn,
  .site-footer {
    display: none;
  }
  
  main {
    margin-top: 0;
  }
  
  body {
    background: white;
    color: black;
  }
}