/**
 * OWG Nepal Customer Frontend Design System
 * Premium, Modern, Mobile-First Styling
 * Version: 1.0
 */

/* ==========================================================================
   CSS Variables - Design Tokens
   ========================================================================== */

:root {
  /* Primary Colors - Matching OWG Logo */
  --owg-green: #2E7D32;
  --owg-green-light: #66BB6A;
  --owg-green-dark: #1B5E20;

  /* Secondary Colors - Logo Brand Colors */
  --owg-blue: #00A0DC;
  --owg-orange: #FF6B35;
  --owg-gold: #FFB300;

  /* Neutrals */
  --owg-ink: #1B1F23;
  --owg-ink-2: #2C3135;
  --owg-slate: #5F6C72;
  --owg-slate-light: #8A949B;
  --owg-surface: #FFFFFF;
  --owg-bg: #F3F7F4;
  --owg-bg-warm: #FFF9F0;

  /* Semantic */
  --owg-success: #2BB673;
  --owg-error: #DC2626;
  --owg-warning: #F59E0B;
  --owg-info: #3B82F6;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-green: 0 10px 24px rgba(46, 125, 50, 0.15);
  --shadow-blue: 0 10px 24px rgba(10, 142, 220, 0.15);

  /* Transitions */
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--owg-ink);
  margin-bottom: var(--space-4);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 3rem; }
  h3 { font-size: 2.25rem; }
  h4 { font-size: 1.875rem; }
}

/* ==========================================================================
   Button Components
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--owg-green), var(--owg-green-dark));
  color: white;
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--owg-orange);
  border: 2px solid var(--owg-orange);
}

.btn-secondary:hover {
  background: var(--owg-orange);
  color: white;
}

.btn-blue {
  background: linear-gradient(135deg, var(--owg-blue), #0080b8);
  color: white;
  box-shadow: var(--shadow-blue);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 160, 220, 0.3);
}

.btn-orange {
  background: linear-gradient(135deg, var(--owg-orange), #E85D22);
  color: white;
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.15);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.3);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.0625rem;
}

/* ==========================================================================
   Product Card Component
   ========================================================================== */

.product-card {
  background: var(--owg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--duration-slow) var(--ease-out);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--owg-bg);
}

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

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

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--owg-gold), var(--owg-orange));
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

.product-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  display: inline-block;
  background: rgba(46, 125, 50, 0.1);
  color: var(--owg-green);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--owg-ink);
  margin-bottom: auto;
  line-height: 1.3;
  transition: color var(--duration-base) var(--ease-out);
}

.product-card:hover .product-title {
  color: var(--owg-green);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--owg-green);
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--owg-bg);
  border: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
}

.btn-icon:hover {
  background: var(--owg-green);
  color: white;
  transform: scale(1.1);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.95) 0%, rgba(27, 94, 32, 0.90) 100%);
  z-index: 1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0px, transparent 1px, transparent 40px, rgba(255, 255, 255, 0.03) 41px), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0px, transparent 1px, transparent 40px, rgba(255, 255, 255, 0.03) 41px);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 700px;
  }

  .hero-title {
    font-size: 3.5rem;
  }
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--owg-ink-2);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--owg-ink);
  background: white;
  transition: all var(--duration-base) var(--ease-out);
  min-height: 44px;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--owg-green);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-input::placeholder {
  color: var(--owg-slate-light);
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section {
  padding: 0.5rem 0;
}

/*@media (min-width: 768px) {*/
/*  .section {*/
/*    padding: 1.8rem 0;*/
/*  }*/
/*}*/

/*@media (min-width: 1024px) {*/
/*  .section {*/
/*    padding: 1.8rem 0;*/
/*  }*/
/*}*/

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--owg-ink);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--owg-slate);
  text-align: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }

  .section-subtitle {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Card Component
   ========================================================================== */

.card {
  background: var(--owg-surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.card-bordered {
  border: 2px solid #E2E8F0;
}

/* ==========================================================================
   Badge Component
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-green {
  background: rgba(46, 125, 50, 0.1);
  color: var(--owg-green);
}

.badge-blue {
  background: rgba(10, 142, 220, 0.1);
  color: var(--owg-blue);
}

.badge-orange {
  background: rgba(245, 124, 0, 0.1);
  color: var(--owg-orange);
}

.badge-gold {
  background: rgba(255, 179, 0, 0.1);
  color: var(--owg-gold);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container-custom {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding: 0 2rem;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

*:focus-visible {
  outline: 2px solid var(--owg-green);
  outline-offset: 2px;
}

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