/* ===================================
   EcoEnclose Custom Styles
   Design System: Nature-Inspired Earth Tones
   =================================== */

/* Color Variables */
:root {
  /* Primary Colors */
  --forest-green: #2D5F3F;
  --earth-brown: #8B6F47;
  --sky-blue: #4A90A4;

  /* Secondary Colors */
  --moss-green: #7A9E7E;
  --sand-beige: #E8DCC4;
  --ocean-teal: #5C9EAD;

  /* Utility Colors */
  --success-green: #4CAF50;
  --warning-amber: #FF9800;
  --error-red: #E57373;
  --neutral-gray: #F5F5F5;

  /* Bootstrap Override */
  --bs-primary: #5C9EAD;
  --bs-primary-rgb: 92, 158, 173;
  --bs-success: #4CAF50;
  --bs-warning: #FF9800;

  /* Typography */
  --heading-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 5rem 0;
  --card-border-radius: 12px;
  --button-border-radius: 50px;
}

/* Typography */
body {
  font-family: var(--body-font);
  color: #333;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--forest-green);
  line-height: 1.3;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
}

/* Links */
a {
  color: var(--ocean-teal);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--forest-green);
}

/* Buttons */
.btn {
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--ocean-teal);
  border-color: var(--ocean-teal);
  color: white;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--forest-green);
  border-color: var(--forest-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92, 158, 173, 0.4);
}

.btn-outline-primary {
  border-color: var(--ocean-teal);
  color: var(--ocean-teal);
}

.btn-outline-primary:hover {
  background-color: var(--ocean-teal);
  border-color: var(--ocean-teal);
  color: white;
}

.btn-success {
  background-color: var(--success-green);
  border-color: var(--success-green);
}

.btn-success:hover {
  background-color: var(--forest-green);
  border-color: var(--forest-green);
}

.rounded-pill {
  border-radius: var(--button-border-radius) !important;
}

/* Promo Bar */
.promo-bar {
  background: linear-gradient(135deg, var(--ocean-teal) 0%, var(--sky-blue) 100%);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.promo-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

/* Top Bar */
.top-bar {
  background-color: var(--forest-green);
  font-size: 0.875rem;
}

.top-bar a {
  color: white;
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--sand-beige);
}

/* Navigation */
.navbar {
  padding: 0.75rem 0;
  background-color: white !important;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--forest-green);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--forest-green);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-light .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--ocean-teal);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
  width: 60%;
}

.navbar-light .navbar-nav .nav-link.active {
  color: var(--ocean-teal);
}

/* Hero Section */
.hero-section {
  position: relative;
  margin-bottom: 0;
}

.hero-slide {
  position: relative;
  min-height: 500px;
}

.carousel-caption-custom {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 95, 63, 0.7) 0%, rgba(92, 158, 173, 0.5) 100%);
  z-index: 1;
}

.carousel-caption-custom > div {
  position: relative;
  z-index: 2;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(45, 95, 63, 0.7);
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: white;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-card .card-img-top,
.solution-card .card-img-top {
  transition: transform 0.4s ease;
}

.product-card:hover .card-img-top,
.solution-card:hover .card-img-top {
  transform: scale(1.05);
}

.card-title {
  color: var(--forest-green);
  font-size: 1.1rem;
}

/* Feature Cards */
.feature-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  border-color: var(--ocean-teal);
  transform: translateY(-5px);
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stats Section */
.stats-section {
  background-color: var(--neutral-gray);
}

.stat-card h3 {
  color: var(--ocean-teal);
  font-weight: 700;
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item a {
  color: var(--ocean-teal);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--forest-green);
  font-weight: 500;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--sand-beige) 0%, var(--neutral-gray) 100%);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(92, 158, 173, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* Forms */
.form-control,
.form-select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ocean-teal);
  box-shadow: 0 0 0 0.2rem rgba(92, 158, 173, 0.15);
}

.form-label {
  color: var(--forest-green);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Badge */
.badge {
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 20px;
}

/* Testimonials */
.testimonial-card {
  border-left: 4px solid var(--ocean-teal);
}

/* Floating Buttons */
.floating-buttons .btn {
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.floating-buttons .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

#backToTop {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--forest-green) 0%, #1a3a29 100%);
}

.footer h5 {
  color: white;
}

.footer a:hover {
  color: var(--sand-beige) !important;
}

/* AI Image Placeholders */
ai-img {
  display: block;
  background: linear-gradient(135deg, var(--sand-beige) 0%, var(--neutral-gray) 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
}

ai-img::before {
  content: attr(alt);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--earth-brown);
  font-size: 14px;
  text-align: center;
  padding: 1rem;
  font-weight: 500;
  z-index: 2;
}

ai-img::after {
  content: '🌿';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.3;
  z-index: 1;
}

ai-img.rounded-circle {
  border-radius: 50%;
}

ai-img.card-img-top {
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
}

ai-img[logo="true"]::after {
  content: '🌱';
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
}

/* Modal */
.modal-content {
  border-radius: var(--card-border-radius);
  border: none;
}

.modal-header {
  border-bottom: none;
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
}

.modal-body {
  padding: 2rem;
}

/* Utilities */
.text-primary {
  color: var(--ocean-teal) !important;
}

.bg-primary {
  background-color: var(--ocean-teal) !important;
}

.bg-light {
  background-color: var(--neutral-gray) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

.shadow {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-slide {
    min-height: 400px;
  }

  .carousel-caption-custom h1,
  .carousel-caption-custom h2 {
    font-size: 2rem;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }
}

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

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

/* Print Styles */
@media print {
  .navbar,
  .promo-bar,
  .top-bar,
  .floating-buttons,
  .modal,
  .breadcrumb {
    display: none !important;
  }
}
