/* Danrex Fairness - Custom Styles */

:root {
  /* Beige-Green Palette */
  --primary-color: #5a7d5f;
  --primary-dark: #4a6d4f;
  --primary-light: #7a9d7f;
  --secondary-color: #e8dcc4;
  --secondary-dark: #d8ccb4;
  --accent-color: #8b956d;
  --background-beige: #f5f1e8;
  --text-dark: #2c3e2f;
  --text-muted: #6b7b6e;
  --white: #ffffff;

  /* Gradients */
  --gradient-calm: linear-gradient(135deg, #f5f1e8 0%, #e8dcc4 100%);
  --gradient-primary: linear-gradient(135deg, #7a9d7f 0%, #5a7d5f 100%);
}

/* Typography */
body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--text-dark);
}

.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: "Playfair Display", serif;
}

.lead {
  font-weight: 400;
  color: var(--text-muted);
}

/* Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

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

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

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: var(--white);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(90, 125, 95, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  background: transparent;
  transition: all 0.3s ease;
}

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

.btn-light {
  background-color: var(--white);
  color: var(--primary-color);
  border: none;
  font-weight: 600;
}

.btn-light:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  background: var(--gradient-calm);
  padding-top: 120px;
}

/* Page Header */
.page-header {
  background: var(--gradient-calm);
  padding: 150px 0 80px;
  margin-top: 70px;
}

/* Backgrounds */
.bg-light-gradient {
  background: var(--gradient-calm);
}

.bg-primary {
  background: var(--gradient-primary) !important;
}

/* Cards */
.card {
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Icon Circles */
.icon-circle {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--white);
}

.icon-circle-sm {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.service-icon,
.feature-icon,
.benefit-icon,
.problem-icon,
.contact-icon {
  color: var(--primary-color);
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  font-size: 1.5rem;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(90, 125, 95, 0.3);
}

.timeline-content {
  width: 45%;
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.6s ease-out;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  margin-left: 5%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 5%;
}

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

/* Mobile Timeline */
@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: column !important;
  }

  .timeline-marker {
    left: 30px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
    margin-right: 0 !important;
  }
}

/* Process Steps */
.process-step {
  text-align: center;
  padding: 2rem 1rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--white);
  font-weight: bold;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(90, 125, 95, 0.3);
}

/* Feature Boxes */
.feature-box {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Problem List */
.problem-list .problem-item {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Benefit List */
.benefit-list .benefit-item {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Accordion */
.accordion-item {
  border: 1px solid rgba(90, 125, 95, 0.1);
  border-radius: 0.75rem !important;
  overflow: hidden;
  background: var(--white);
}

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

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(90, 125, 95, 0.25);
  border-color: var(--primary-color);
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid rgba(90, 125, 95, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(90, 125, 95, 0.15);
}

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

/* Contact Info Items */
.contact-info-item {
  padding: 1.5rem;
  background: var(--background-beige);
  border-radius: 0.75rem;
}

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

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

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(44, 62, 47, 0.98);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 1.5rem 0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-banner a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.cookie-banner a:hover {
  color: var(--white);
}

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

.legal-content h2 {
  color: var(--primary-color);
}

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

.legal-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Success Icon */
.success-icon {
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
  }

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

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

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

  .btn-lg {
    padding: 0.6rem 1.5rem;
  }
}

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

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

.rounded-4 {
  border-radius: 1.5rem !important;
}

/* Shadow Utilities */
.shadow-lg {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

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