/* DROLMA Gift Box - Main Styles */

:root {
  /* Original DROLMA Color Palette */
  --primary-green: #1a2e1a;       /* Dark forest green */
  --secondary-green: #2c3e30;     /* Secondary green */
  --accent-gold: #d4af37;         /* Luxury gold */
  --light-gold: #f4e8c1;          /* Light gold background */
  --cream: #faf8f3;               /* Cream background */
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-medium: #8a8a8a;
  --text-dark: #1a2e1a;
  --text-medium: #2c3e30;
  --text-light: #8a8a8a;

  /* Legacy support */
  --primary-color: #1a2e1a;
  --secondary-color: #2c3e30;
  --accent-color: #d4af37;
  --warm-white: #faf8f3;
  --soft-gray: #f5f5f5;
  --text-primary: #1a2e1a;
  --text-secondary: #4a4a4a;

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Playfair Display', serif;

  /* Spacing */
  --section-padding: 4rem 0;
  --container-padding: 1.5rem;
  --border-radius: 8px;
  --border-radius-large: 16px;

  /* Shadows */
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

/* Main content padding for fixed header */
main {
  padding-top: 110px; /* Account for fixed header height + some margin */
}

/* Special case for homepage hero - override padding */
.hero {
  padding-top: 140px;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--warm-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-green);
}

h1 {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-green);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--secondary-green);
}

p {
  margin-bottom: 1rem;
  color: var(--text-medium);
}

a {
  color: var(--secondary-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-gold);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

/* Buttons - Original DROLMA Style */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-green);
  color: white;
  font-weight: 600;
  border: 2px solid var(--primary-green);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 160px;
  text-decoration: none;
}

.btn:hover {
  background: transparent;
  color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--accent-gold);
  border: 2px solid var(--accent-gold);
  color: white;
}

.btn-primary:hover {
  background: #b8941f;
  border-color: #b8941f;
  color: white;
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 2rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
  font-family: var(--font-secondary);
}

.card-description {
  color: var(--text-medium);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Grid Systems */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Statistics Section */
.stats-grid {
  gap: 3rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-green);
  font-family: var(--font-secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-medium);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e1e8ed;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
.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;
}

/* Focus styles */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}