/* Root Variables - Design System */
:root {
  /* Light theme with icy blue tones and dark blue headings */
  --color-primary: #0066cc;
  --color-primary-dark: #004a99;
  --color-primary-light: #e6f2ff;
  --color-secondary: #1a2b3c;
  --color-accent: #00a3e0;

  --color-bg: #ffffff;
  --color-bg-light: #f8fafb;
  --color-text: #2c3e50;
  --color-text-muted: #6b7c8c;

  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-danger: #dc3545;

  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  --border-radius: 12px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 102, 204, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 102, 204, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 102, 204, 0.16);
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  transition: all 0.3s ease;
}

/* Utility Classes */
.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.text-balance {
  text-wrap: balance;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-secondary);
}

.brand-primary {
  color: var(--color-primary);
}

.brand-secondary {
  color: var(--color-secondary);
}

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

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.btn {
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
  padding-top: 140px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
}

.hero-section h1 {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  font-size: 1.25rem;
  color: var(--color-text);
  font-weight: 500;
}

.hero-section img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Trust Section */
.trust-section {
  background-color: var(--color-bg-light);
}

.trust-item i {
  color: var(--color-primary);
}

/* Problems Section */
.problem-card {
  padding: 2rem;
  background: var(--color-bg);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 102, 204, 0.1);
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.bg-primary-light {
  background-color: var(--color-primary-light);
}

/* Services Section */
.service-card {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.service-image-wrapper img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

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

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

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.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;
}
.timeline-item:nth-child(5) {
  animation-delay: 0.5s;
}

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

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

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

.timeline-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 8px var(--color-bg-light);
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  padding: 2rem;
  background: var(--color-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin: 0 2rem;
  max-width: calc(50% - 5rem);
}

/* FAQ Section */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  background-color: var(--color-bg);
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.25rem 1.5rem;
  border: none;
}

.accordion-button:not(.collapsed) {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-body {
  padding: 1.5rem;
  background-color: var(--color-bg);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

.cta-section h2 {
  color: white;
}

.cta-section .btn-primary {
  background-color: white;
  color: var(--color-primary);
  border-color: white;
}

.cta-section .btn-primary:hover {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  border-color: var(--color-bg-light);
}

/* Footer */
.footer {
  background-color: var(--color-secondary);
}

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

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-secondary);
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  display: none;
}

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

.cookie-banner .btn-light {
  background-color: white;
  color: var(--color-secondary);
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
}

.cookie-banner .btn-outline-light {
  border-color: white;
  color: white;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
}

.cookie-banner .btn-outline-light:hover {
  background-color: white;
  color: var(--color-secondary);
}

/* Contact Page */
.contact-hero {
  padding-top: 140px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
}

.contact-form-wrapper,
.contact-info-wrapper {
  background: var(--color-bg);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-info-item {
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background: var(--color-bg-light);
}

.form-control,
.form-select {
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 102, 204, 0.2);
  padding: 0.75rem 1rem;
}

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

/* Service Pages */
.service-hero {
  padding-top: 140px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

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

.breadcrumb-item.active {
  color: var(--color-text-muted);
}

.feature-box {
  padding: 1.5rem;
  height: 100%;
  border-radius: var(--border-radius);
  background: var(--color-bg-light);
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.sticky-sidebar {
  position: sticky;
  top: 100px;
}

/* Legal Pages */
.legal-page {
  padding-top: 140px;
  padding-bottom: 80px;
}

.legal-page h2 {
  margin-top: 2rem;
}

.legal-page ul {
  padding-left: 1.5rem;
}

/* Thank You Page */
.thank-you-section {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.success-icon {
  animation: scaleIn 0.5s ease;
}

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

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

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: row !important;
    padding-left: 80px;
  }

  .timeline-content {
    margin: 0 0 0 2rem;
    max-width: 100%;
  }

  .timeline-icon {
    position: absolute;
    left: 0;
  }

  .sticky-sidebar {
    position: static;
    margin-top: 3rem;
  }
}

@media (max-width: 767px) {
  .py-6 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

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

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

  .cookie-banner .container > .row {
    gap: 1rem;
  }

  .cookie-banner .col-lg-4 {
    text-align: center;
  }
}
