/* Custom CSS for Danrex Assimilate */

:root {
  /* Beige-Green Color Palette */
  --primary-color: #4a7c59;
  --primary-dark: #3a6147;
  --primary-light: #6b9c7a;
  --secondary-color: #d4c5b9;
  --accent-color: #8b9d83;
  --bg-beige: #f5f1ed;
  --bg-light-green: #e8ede7;
  --text-dark: #2c3e2f;
  --text-muted: #6b7567;
  --success-color: #5a8f69;
  --warning-color: #c9a962;
  --border-color: #ded9d3;

  /* Typography */
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #fff;
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
}

/* Brand */
.brand-name {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* Navigation */
.navbar {
  transition: all 0.3s ease;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

.btn-outline-secondary {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* Hero Section */
.hero-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, var(--bg-beige) 0%, #ffffff 100%);
}

.hero-section h1 {
  color: var(--text-dark);
}

.badge {
  font-weight: 500;
  font-size: 0.875rem;
}

/* Stats Section */
.stats-section {
  background-color: var(--bg-light-green);
}

.stat-card h3 {
  color: var(--primary-color);
  font-size: 2.5rem;
}

/* Icon Boxes */
.icon-box {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box-sm {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Cards */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

.service-card {
  border-left: 4px solid var(--primary-color);
}

/* Problem Section */
.problem-item {
  padding: 1.5rem;
  border-radius: 12px;
  background-color: var(--bg-beige);
  transition: all 0.3s ease;
}

.problem-item:hover {
  background-color: var(--bg-light-green);
  transform: translateX(8px);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}
.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}
.timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}
.timeline-item:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-number {
  position: absolute;
  left: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
  z-index: 1;
}

.timeline-content {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-color);
}

/* Forms */
.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid var(--border-color);
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(74, 124, 89, 0.15);
}

/* Accordion (FAQ) */
.accordion-item {
  border-radius: 12px !important;
  overflow: hidden;
}

.accordion-button {
  background-color: white;
  color: var(--text-dark);
  font-weight: 600;
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--bg-light-green);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(74, 124, 89, 0.15);
  border-color: var(--primary-color);
}

.accordion-body {
  padding: 1.5rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background-color: #2c3e2f;
}

.footer a {
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-light) !important;
}

.social-links a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner a {
  color: white;
  text-decoration: underline;
}

/* Legal Pages */
.legal-content {
  font-size: 1rem;
  line-height: 1.8;
}

.legal-content h2,
.legal-content h3 {
  margin-top: 2rem;
  color: var(--text-dark);
}

.legal-content ul {
  margin-left: 1.5rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(to right, var(--bg-beige) 0%, var(--bg-light-green) 100%);
}

/* Result Metrics */
.result-metrics {
  background-color: var(--bg-beige);
  padding: 1.5rem;
  border-radius: 12px;
}

.progress {
  background-color: rgba(74, 124, 89, 0.1);
}

.progress-bar {
  background: linear-gradient(90deg, var(--success-color), var(--primary-color));
}

/* Service Feature */
.service-feature {
  padding: 1.5rem;
  background-color: var(--bg-beige);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

/* Responsive */
@media (max-width: 991px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-number {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 2rem 0;
  }

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

  .lead {
    font-size: 1rem;
  }
}

/* Utility Classes */
.bg-primary-subtle {
  background-color: rgba(74, 124, 89, 0.1) !important;
}

.bg-success-subtle {
  background-color: rgba(90, 143, 105, 0.1) !important;
}

.bg-warning-subtle {
  background-color: rgba(201, 169, 98, 0.1) !important;
}

.bg-danger-subtle {
  background-color: rgba(220, 53, 69, 0.1) !important;
}

.text-success {
  color: var(--success-color) !important;
}

.text-warning {
  color: var(--warning-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.border-bottom {
  border-bottom: 1px solid var(--border-color) !important;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background-color: var(--primary-color);
  color: white;
}
