/* Base Styles */
:root {
  --cavari-red: #990000;
  --cavari-black: #111111;
  --cavari-gray-light: #f5f5f5;
  --cavari-gray-medium: #e0e0e0;
  --cavari-gray-dark: #666666;
  --white: #ffffff;
  --black: #111111;
  --transition-slow: 500ms;
  --transition-medium: 300ms;
  --transition-fast: 150ms;
  --primary-color: #c92c2c;
  --primary-color-dark: #a32323;
  --primary-color-light: #e33434;
  --primary-color-bg: rgba(201, 44, 44, 0.1);
  --primary-color-border: rgba(201, 44, 44, 0.3);
  --text-color: #333333;
  --text-color-light: #666666;
  --background-color: #ffffff;
  --border-color: #e5e7eb;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-color-dark: rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--cavari-black);
  overflow-x: hidden;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-medium) ease;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all var(--transition-medium) ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  gap: 0.5rem;
}

.btn-icon {
  transition: transform var(--transition-fast) ease;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

.btn-primary {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(153, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(153, 0, 0, 0.15);
}

.btn-primary:active {
  background-color: var(--primary-color-light);
  transform: translateY(0);
  box-shadow: 0 4px 6px rgba(153, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--cavari-black);
  color: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  backdrop-filter: blur(4px);
}

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

.btn-block {
  display: block;
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all 0.6s ease;
  background-color: transparent;
}

.header-scrolled {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  position: relative;
  padding: 0 1rem;
}

.header-scrolled .header-content {
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 0;
  height: auto;
  overflow: visible;
  position: relative;
  left: -15px; /* Move logo to the extreme left */
}

.logo-image {
  height: 160px;
  width: auto;
  object-fit: contain;
  margin-top: -55px;
  margin-bottom: -55px;
  margin-left: -20px; /* Move even further left */
}

.header-scrolled .logo-image {
  height: 160px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  margin-top: -55px;
  margin-bottom: -55px;
  margin-left: 0;
}

/* Contact info styles */
.desktop-contact {
  display: none;
}

.header .contact-info {
  display: none;
}

.header-scrolled .contact-info {
  display: none;
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  background-color: rgba(153, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cavari-red);
}

.contact-label {
  font-size: 0.75rem;
  color: inherit;
  opacity: 0.8;
}

.contact-number {
  font-size: 0.875rem;
  font-weight: 600;
  color: inherit;
}

/* Mobile contact icon */
.mobile-contact-icon {
  display: flex;
  margin-right: 1rem;
}

.mobile-contact-icon a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--cavari-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.header-scrolled .mobile-contact-icon {
  display: none;
}

.mobile-contact-icon a:hover {
  background-color: #800000;
  transform: translateY(-2px);
}

/* Mobile menu button - positioned to far right */
.mobile-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  position: absolute;
  right: 0;
  margin-right: 1rem;
}

.mobile-menu-button svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
}

.header-scrolled .mobile-menu-button {
  color: #333333;
}

/* Navigation */
.nav-list {
  display: none;
  gap: 2rem;
  align-items: center;
  margin-left: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--white);
  position: relative;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.4s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-scrolled .nav-link {
  color: #333333;
  text-shadow: none;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-medium) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-list .btn-primary {
  background-color: var(--cavari-red);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  white-space: nowrap;
}

.header-scrolled .nav-list .btn-primary {
  background-color: var(--cavari-red);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(153, 0, 0, 0.2);
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}

.dropdown {
  position: relative;
}

.dropdown-icon {
  color: inherit;
  transition: transform var(--transition-fast) ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  width: 16px;
  height: 16px;
  display: inline-block;
}

.header-scrolled .dropdown-icon {
  color: #111111;
  filter: none;
  width: 16px;
  height: 16px;
  display: inline-block;
}

.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 10;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

.header-scrolled .dropdown-menu {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-scrolled .dropdown-item {
  color: #333333;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-scrolled .dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background-color: rgba(25, 25, 25, 0.98);
  z-index: 1001;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  transition: right 0.4s ease;
  overflow-y: auto;
  backdrop-filter: blur(8px);
  color: var(--white);
}

.mobile-menu-open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  height: 70px;
  overflow: visible;
}

.mobile-logo-img {
  height: 140px;
  width: auto;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  margin-top: -35px;
  margin-bottom: -35px;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

/* Mobile Navigation Improvements */
.mobile-nav {
  padding: 1rem;
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-list li {
  position: relative;
}

.mobile-menu-list a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-menu-list a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

.mobile-dropdown {
  position: relative;
}

.mobile-dropdown-toggle {
  background: none;
  border: none;
  width: 100%;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 1rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

.mobile-dropdown-toggle svg {
  transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle svg {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  display: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  display: block;
  animation: slideDown 0.3s ease forwards;
}

.mobile-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.95rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

.mobile-dropdown-item.active {
  background-color: rgba(153, 0, 0, 0.2);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Apply Button */
.mobile-apply {
  padding: 1rem;
  margin-top: 1rem;
}

.mobile-apply-button {
  display: block;
  width: 100%;
  padding: 1rem;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mobile-apply-button:hover {
  background-color: #800000;
  transform: translateY(-2px);
}

/* Mobile Contact Info */
.mobile-contact {
  padding: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--white);
}

.mobile-contact-item svg {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--cavari-black);
  background-image: url('https://images.unsplash.com/photo-1560520653-9e0e4c89eb11?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2073&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 7rem 0 6rem;
  margin-bottom: 1rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(17, 17, 17, 0.98) 0%,
    rgba(17, 17, 17, 0.95) 15%,
    rgba(17, 17, 17, 0.85) 30%,
    rgba(17, 17, 17, 0.75) 50%,
    rgba(17, 17, 17, 0.65) 70%,
    rgba(17, 17, 17, 0.6) 85%,
    rgba(17, 17, 17, 0.55) 100%
  );
  backdrop-filter: blur(3px);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  width: 100%;
}

.tag-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  background-color: var(--primary-color-bg);
  border: 1px solid var(--primary-color-border);
  border-radius: 2rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero-title span {
  position: relative;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 0;
  width: 100%;
  height: 0.25rem;
  background-color: rgba(153, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  width: 100%;
}

.hero-buttons .btn {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.customer-proof {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.customer-avatars {
  display: flex;
}

.customer-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--white);
  object-fit: cover;
  margin-right: -0.75rem;
}

.customer-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
  display: none;
}

.scroll-mouse {
  width: 2rem;
  height: 3rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0.5rem;
}

.scroll-dot {
  width: 0.375rem;
  height: 0.75rem;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 0.25rem;
  animation: pulse 2s infinite;
}

.hero-bottom-fade {
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  right: 0;
  height: 10rem;
  background: linear-gradient(
    to top, 
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.98) 5%,
    rgba(255, 255, 255, 0.95) 10%,
    rgba(255, 255, 255, 0.9) 15%,
    rgba(255, 255, 255, 0.85) 20%,
    rgba(255, 255, 255, 0.8) 25%,
    rgba(255, 255, 255, 0.75) 30%,
    rgba(255, 255, 255, 0.7) 35%,
    rgba(255, 255, 255, 0.65) 40%,
    rgba(255, 255, 255, 0.6) 45%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.5) 55%,
    rgba(255, 255, 255, 0.45) 60%,
    rgba(255, 255, 255, 0.4) 65%,
    rgba(255, 255, 255, 0.35) 70%,
    rgba(255, 255, 255, 0.3) 75%,
    rgba(255, 255, 255, 0.2) 80%,
    rgba(255, 255, 255, 0.15) 85%,
    rgba(255, 255, 255, 0.1) 90%,
    rgba(255, 255, 255, 0.05) 95%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 5;
  pointer-events: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Section Styles */
section {
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.section-bg-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
}

.circle-1 {
  top: -16rem;
  right: -16rem;
  width: 40rem;
  height: 40rem;
  background-color: var(--cavari-red);
}

.circle-2 {
  bottom: -8rem;
  left: -8rem;
  width: 30rem;
  height: 30rem;
  background-color: var(--cavari-black);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  opacity: 0;
  transform: translateY(2rem);
  transition: all var(--transition-slow) ease;
}

.section-header.animated {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--cavari-gray-dark);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Why Choose Us Section */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid var(--cavari-gray-light);
  transition: all var(--transition-medium) ease;
  opacity: 0;
  transform: translateY(2rem);
  transition-delay: calc(var(--delay, 0) * 100ms);
}

.feature-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary-color-bg);
  border: 1px solid var(--primary-color-border);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  transition: all var(--transition-medium) ease;
}

.feature-card:hover .feature-icon {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-text {
  color: var(--cavari-gray-dark);
}

/* Services Section */
.services {
  background-color: var(--cavari-gray-light);
}

.circle-3 {
  top: -6rem;
  right: -6rem;
  width: 24rem;
  height: 24rem;
  background-color: var(--cavari-red);
  opacity: 0.05;
}

.circle-4 {
  bottom: -6rem;
  left: -6rem;
  width: 24rem;
  height: 24rem;
  background-color: var(--cavari-black);
  opacity: 0.05;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: this;
}

.service-card {
  background-color: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  transition: all var(--transition-medium) ease;
  opacity: 0;
  transform: translateY(2rem);
}

.service-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
}

.service-image-container {
  position: relative;
  height: 14rem;
  overflow: hidden;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow) ease;
}

.service-card:hover .service-image {
  transform: scale(1.1);
}

.service-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
}

.service-content-top {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
}

.service-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-color-bg);
  border: 1px solid var(--primary-color-border);
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cavari-gray-light);
  margin-bottom: 0.5rem;
}

.service-title {
  color: var(--white);
  font-size: 1.25rem;
}

.service-content {
  padding: 1.5rem;
}

.service-description {
  color: var(--cavari-gray-dark);
  margin-bottom: 1.5rem;
}

.service-features {
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.check-icon {
  color: var(--cavari-red);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  gap: 0.375rem;
}

.service-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.service-link-icon {
  transition: transform var(--transition-fast) ease;
}

.service-link:hover .service-link-icon {
  transform: translateX(0.25rem);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 6rem;
}

.stat-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(2rem);
  transition: all var(--transition-slow) ease;
}

.stat-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cavari-red);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--cavari-black);
  font-weight: 500;
}

/* Testimonials Section */
.testimonials {
  position: relative;
}

.testimonials-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: var(--cavari-red);
  opacity: 0.05;
  transform: skewX(-12deg);
  transform-origin: top right;
}

.testimonials-circle {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24rem;
  height: 24rem;
  background-color: var(--cavari-red);
  opacity: 0.1;
  border-radius: 50%;
  transform: translate(-50%, 50%);
  filter: blur(100px);
}

.testimonial-carousel {
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  position: relative;
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
  padding: 2rem 3rem;
  opacity: 0;
  transform: translateY(2rem);
  transition: all var(--transition-slow) ease;
}

.testimonial-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.quote-icon {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  color: var(--cavari-red);
  opacity: 0.2;
}

.testimonial-profile {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.testimonial-image {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  overflow: hidden;
  border: 0.25rem solid rgba(153, 0, 0, 0.1);
  flex-shrink: 0;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-text {
  flex: 1;
}

.testimonial-text p {
  font-size: 1.125rem;
  color: var(--cavari-gray-dark);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author h4 {
  font-size: 1.25rem;
  color: var(--cavari-black);
  margin-bottom: 0.25rem;
}

.testimonial-author p {
  color: var(--cavari-red);
  font-style: normal;
  margin: 0;
}

.testimonial-controls {
  position: absolute;
  bottom: -1.25rem;
  right: 2.5rem;
  display: flex;
  gap: 0.5rem;
}

.testimonial-button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--white);
  border: none;
  color: var(--cavari-black);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-medium) ease;
}

.testimonial-button:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.testimonial-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--cavari-gray-medium);
  border: none;
  cursor: pointer;
  transition: all var(--transition-medium) ease;
}

.indicator.active {
  background-color: var(--primary-color);
  width: 1.5rem;
  border-radius: 0.5rem;
}

/* Call to Action Section */
.cta {
  padding: 6rem 0;
  background-color: var(--cavari-black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  inset: 0;
  background-image: url('img/cta.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

.cta-decoration {
  position: absolute;
  top: 5rem;
  right: 5rem;
  width: 16rem;
  height: 16rem;
  background-color: var(--cavari-red);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(5rem);
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(2rem);
  transition: all var(--transition-slow) ease;
}

.cta-content.animated {
  opacity: 1;
  transform: translateY(0);
}

.cta-title {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.cta-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.cta-features {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.cta-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
  border-radius: 0.75rem;
  transition: all var(--transition-medium) ease;
  opacity: 0;
  transform: translateY(2rem);
}

.cta-feature.animated {
  opacity: 1;
  transform: translateY(0);
}

.cta-feature:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
}

.cta-feature-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(153, 0, 0, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-right: 1rem;
  flex-shrink: 0;
  transform: translateY(-2px);
  border: 1px solid rgba(153, 0, 0, 0.2);
}

.cta-feature:hover .cta-feature-icon {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-feature-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.cta-feature-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

/* Footer */
.footer {
  background-color: var(--cavari-black);
  color: var(--white);
  padding: 5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-about {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-medium) ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-heading span {
  position: relative;
  z-index: 1;
}

.footer-heading span::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 100%;
  height: 0.25rem;
  background-color: var(--cavari-red);
}

.footer-links {
  display: grid;
  gap: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast) ease;
}

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

.footer-link-dot {
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--cavari-red);
  border-radius: 50%;
}

.contact-item {
  display: flex;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-icon,
.feather {
  color: var(--cavari-red);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.footer-column .feather {
  margin-top: 0.25rem;
}

.social-link .feather {
  margin-top: 0;
}

.footer-newsletter-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.newsletter-form {
  margin-bottom: 1.5rem;
}

.newsletter-input-group {
  display: flex;
}

.newsletter-input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem 0 0 0.5rem;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-button {
  background-color: var(--cavari-red);
  color: var(--white);
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  cursor: pointer;
  transition: all var(--transition-medium) ease;
}

.newsletter-button:hover {
  background-color: #800000;
}

.footer-map {
  height: 10rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-top: 1.5rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.legal-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  transition: all var(--transition-fast) ease;
}

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

/* Animation */
.animated {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.75rem;
  }
  
  .hero-buttons,
  .cta-buttons {
    flex-direction: row;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .scroll-indicator {
    display: block;
    bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .desktop-contact {
    display: flex;
  }
  
  .mobile-contact-icon {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-features {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  
  .testimonial-profile {
    flex-direction: row;
  }
  
  .header-scrolled .desktop-contact {
    display: flex;
  }

  .hero {
    padding: 8rem 0 8rem;
    margin-bottom: 2rem;
  }

  .hero-bottom-fade {
    bottom: -3rem;
    height: 15rem;
  }
  
  .scroll-indicator {
    bottom: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .mobile-menu-button, 
  .mobile-contact-icon {
    display: none;
  }
  
  .desktop-nav,
  .nav-list {
    display: flex;
    position: relative;
    right: 0;
  }
  
  .header-content {
    justify-content: space-between;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 639px) {
  .container {
    padding: 0 1rem;
  }
  
  .header-content,
  .header-scrolled .header-content {
    height: 60px;
    padding: 0 0;
  }
  
  .logo {
    padding-left: 0;
    height: auto;
    overflow: visible;
    left: -10px; /* Move logo to extreme left on mobile */
  }
  
  .logo-image, 
  .header-scrolled .logo-image {
    height: 130px; /* Slightly smaller than before */
    margin-top: -35px;
    margin-bottom: -35px;
    margin-left: -15px; /* Move further left on mobile */
  }
  
  .mobile-menu-button,
  .header-scrolled .mobile-menu-button {
    width: 36px;
    height: 36px;
    right: 0.75rem;
  }
  
  .mobile-menu-button svg {
    width: 22px;
    height: 22px;
  }
  
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    height: 70px;
    overflow: visible;
  }
  
  .mobile-logo-img {
    height: 140px; /* Slightly smaller than before */
    width: auto;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
    margin-top: -35px;
    margin-bottom: -35px;
    margin-left: 0;
  }
  
  .mobile-menu-close {
    width: 36px;
    height: 36px;
  }
  
  .mobile-menu-close svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 374px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .header-content,
  .header-scrolled .header-content {
    height: 50px;
    padding: 0 0;
  }
  
  .logo {
    padding-left: 0;
    height: auto;
    overflow: visible;
    left: -8px; /* Move logo to extreme left on small mobile */
  }
  
  .logo-image, 
  .header-scrolled .logo-image {
    height: 120px; /* Slightly smaller than before */
    margin-top: -35px;
    margin-bottom: -35px;
    margin-left: -12px; /* Move further left on small mobile */
  }
  
  .mobile-menu-button,
  .header-scrolled .mobile-menu-button {
    width: 32px;
    height: 32px;
    right: 0.5rem;
  }
  
  .mobile-menu-button svg {
    width: 20px;
    height: 20px;
  }
  
  .mobile-menu-header {
    height: 50px;
    padding: 0 0.5rem;
    overflow: visible;
  }
  
  .mobile-logo-img {
    height: 120px; /* Slightly smaller than before */
    margin-top: -35px;
    margin-bottom: -35px;
    margin-left: -5px;
  }
  
  .mobile-menu-close {
    width: 32px;
    height: 32px;
  }
  
  .mobile-menu-close svg {
    width: 20px;
    height: 20px;
  }
}

/* First section after hero should have less top padding */
.why-choose-us {
  padding-top: 4rem;
}

/* Responsive fixes */
@media (min-width: 480px) {
  .customer-proof {
    flex-direction: row;
    align-items: center;
  }
  
  .hero-text {
    font-size: 1.125rem;
  }
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.75rem;
  }
  
  .customer-avatar {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 2rem;
  }
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
    width: auto;
  }
  
  .hero-buttons .btn {
    width: auto;
    padding: 0.75rem 1.5rem;
  }
}

@media (min-width: 640px) {
  .hero-buttons {
    gap: 1rem;
    margin-bottom: 3rem;
  }
  
  .hero-buttons .btn {
    padding: 0.85rem 1.75rem;
    font-size: 1.1rem;
  }
}

/* Go Up Button */
.go-up-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--cavari-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: auto;
}

.go-up-button.visible {
  opacity: 1;
  visibility: visible;
}

.go-up-button:hover {
  background-color: #800000;
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* About Page Styles */
.page-hero {
  position: relative;
  padding: 120px 0 60px;
  background-color: var(--cavari-black);
  overflow: hidden;
  background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.7));
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  width: 100%;
}

.page-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--white);
}

.page-hero-title .text-red {
  color: var(--primary-color);
}

.page-hero-text {
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* About Intro Section */
.about-intro {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about-image-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  height: 400px;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(-2rem);
  transition: all var(--transition-slow) ease;
}

.about-image-container.animated {
  opacity: 1;
  transform: translateX(0);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-decoration {
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 6rem;
  height: 6rem;
  background-color: var(--cavari-red);
  border-radius: 1rem;
  transform: rotate(45deg);
  opacity: 0.2;
}

.about-content {
  opacity: 0;
  transform: translateX(2rem);
  transition: all var(--transition-slow) ease;
}

.about-content.animated {
  opacity: 1;
  transform: translateX(0);
}

.about-text {
  color: var(--cavari-gray-dark);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.about-stat {
  text-align: center;
  background-color: var(--white);
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  border: 1px solid var(--cavari-gray-light);
  transition: all var(--transition-medium) ease;
}

.about-stat:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

/* Mission & Vision Section */
.mission-vision {
  padding: 5rem 0;
  background-color: var(--cavari-gray-light);
  position: relative;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  opacity: 0;
  transform: translateY(2rem);
  transition: all var(--transition-slow) ease;
}

.mission-vision-grid.animated {
  opacity: 1;
  transform: translateY(0);
}

.mission-box,
.vision-box {
  background-color: var(--white);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
  transition: all var(--transition-medium) ease;
  position: relative;
  overflow: hidden;
}

.mission-box:hover,
.vision-box:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.1);
}

.mission-box::before,
.vision-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.25rem;
}

.mission-box::before {
  background-color: var(--cavari-red);
}

.vision-box::before {
  background-color: var(--cavari-black);
}

.mission-icon,
.vision-icon {
  width: 5rem;
  height: 5rem;
  background-color: rgba(153, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--cavari-red);
}

.vision-icon {
  background-color: rgba(17, 17, 17, 0.1);
  color: var(--cavari-black);
}

.mission-title,
.vision-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.mission-text,
.vision-text {
  color: var(--cavari-gray-dark);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Core Values Section */
.core-values {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.value-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid var(--cavari-gray-light);
  transition: all var(--transition-medium) ease;
  opacity: 0;
  transform: translateY(2rem);
  transition-delay: calc(var(--delay, 0) * 100ms);
}

.value-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.value-card:hover {
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
}

.value-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--cavari-gray-light);
  color: var(--cavari-red);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  transition: all var(--transition-medium) ease;
}

.value-card:hover .value-icon {
  background-color: var(--cavari-red);
  color: var(--white);
  transform: scale(1.1);
}

.value-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.value-text {
  color: var(--cavari-gray-dark);
}

/* Media Queries for About Page */
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .mission-vision-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .page-hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .about-stats {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-stat {
    padding: 1rem 0.5rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
}

@media (max-width: 479px) {
  .about-stats {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .about-stat {
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .stat-number {
    font-size: 1.75rem;
    margin-bottom: 0;
    margin-right: 1rem;
  }
  
  .stat-label {
    font-size: 1rem;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .page-hero {
    height: 50vh;
  }
}

/* Loans Page Styles */
.loan-intro {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.loan-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.loan-category-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid var(--cavari-gray-light);
  transition: all var(--transition-medium) ease;
  opacity: 0;
  transform: translateY(2rem);
  transition-delay: calc(var(--delay, 0) * 100ms);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.loan-category-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.loan-category-card:hover {
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
}

.loan-category-icon {
  width: 4rem;
  height: 4rem;
  background-color: rgba(153, 0, 0, 0.1);
  color: var(--cavari-red);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  transition: all var(--transition-medium) ease;
}

.loan-category-card:hover .loan-category-icon {
  background-color: var(--cavari-red);
  color: var(--white);
  transform: scale(1.1);
}

.loan-category-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.loan-category-text {
  color: var(--cavari-gray-dark);
}

/* Loan Options Section */
.loan-options {
  padding: 5rem 0;
  background-color: var(--cavari-gray-light);
  position: relative;
  overflow: hidden;
}

.loan-plans-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.loan-plan-card {
  background-color: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
  transition: all var(--transition-medium) ease;
  position: relative;
  opacity: 0;
  transform: translateY(2rem);
  border: 1px solid var(--cavari-gray-medium);
}

.loan-plan-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.loan-plan-card:hover {
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.12);
  transform: translateY(-0.5rem);
}

.loan-plan-card.featured {
  border: 2px solid var(--cavari-red);
  transform: scale(1.03);
}

.loan-plan-card.featured:hover {
  transform: translateY(-0.5rem) scale(1.03);
}

.loan-plan-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: var(--cavari-red);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 0.25rem 0.5rem rgba(153, 0, 0, 0.2);
}

.loan-plan-header {
  padding: 2rem;
  background-color: var(--cavari-gray-light);
  text-align: center;
  border-bottom: 1px solid var(--cavari-gray-medium);
  position: relative;
}

.loan-plan-icon {
  width: 5rem;
  height: 5rem;
  background-color: var(--white);
  color: var(--cavari-red);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  transition: all var(--transition-medium) ease;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.loan-plan-card:hover .loan-plan-icon {
  background-color: var(--cavari-red);
  color: var(--white);
  transform: scale(1.1);
}

.loan-plan-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.loan-plan-description {
  color: var(--cavari-gray-dark);
  margin-bottom: 0.5rem;
}

.loan-plan-details {
  padding: 2rem;
  border-bottom: 1px solid var(--cavari-gray-medium);
}

.loan-plan-feature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.loan-plan-feature:last-child {
  margin-bottom: 0;
}

.feature-label {
  color: var(--cavari-gray-dark);
  font-size: 0.875rem;
}

.feature-value {
  font-weight: 600;
  color: var(--cavari-black);
}

.loan-plan-benefits {
  padding: 2rem;
  border-bottom: 1px solid var(--cavari-gray-medium);
}

.loan-plan-benefits ul {
  display: grid;
  gap: 1rem;
}

.loan-plan-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.loan-plan-card .btn {
  margin: 2rem;
}

/* Application Process Section */
.application-process {
  padding: 5rem 0;
  position: relative;
}

.process-steps {
  margin-top: 4rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2.5rem;
  width: 2px;
  background-color: var(--cavari-gray-medium);
  transform: translateX(-50%);
}

.process-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(2rem);
  transition: all var(--transition-slow) ease;
  transition-delay: calc(var(--delay, 0) * 200ms);
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step.animated {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  width: 5rem;
  height: 5rem;
  background-color: var(--cavari-red);
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 0.5rem 1rem rgba(153, 0, 0, 0.2);
}

.step-content {
  padding-top: 0.5rem;
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.step-text {
  color: var(--cavari-gray-dark);
  font-size: 1.125rem;
}

/* Media Queries for Loans Page */
@media (min-width: 768px) {
  .loan-categories {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .loan-plans-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps::before {
    left: 3rem;
  }
  
  .step-number {
    width: 6rem;
    height: 6rem;
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .process-steps::before {
    display: none;
  }
  
  .process-step {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
  
  .step-number {
    margin-bottom: 0.5rem;
  }
  
  .loan-plan-card.featured {
    transform: scale(1);
  }
  
  .loan-plan-card.featured:hover {
    transform: translateY(-0.5rem) scale(1);
  }
}

@media (min-width: 1024px) {
  .process-steps::before {
    left: 3.5rem;
  }
  
  .step-number {
    width: 7rem;
    height: 7rem;
    font-size: 2.25rem;
  }
}

/* Membership Page Styles */
/* Benefits Section */
.membership-benefits {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.benefit-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
  height: 100%;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
}

.benefit-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 668px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-icon {
  background-color: var(--primary-color-bg) !important;
  border: 1px solid var(--primary-color-border) !important;
  color: var(--primary-color) !important;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(153, 0, 0, 0.2);
}

.benefit-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.benefit-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-gray);
}

/* Membership Requirements Section */
.membership-requirements {
  padding: 80px 0;
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.requirements-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 48px;
}

@media (min-width: 992px) {
  .requirements-container {
    flex-direction: row;
    align-items: center;
  }
}

.requirements-image {
  flex: 1;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.5s ease-in-out;
}

.requirements-image.animated {
  opacity: 1;
  transform: translateX(0);
}

.requirements-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.requirements-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.5s ease-in-out;
}

.requirements-list.animated {
  opacity: 1;
  transform: translateX(0);
}

.requirement-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.requirement-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.requirement-icon {
  background-color: var(--primary-color-bg) !important;
  border: 1px solid var(--primary-color-border) !important;
  color: var(--primary-color) !important;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.requirement-content {
  flex: 1;
}

.requirement-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.requirement-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-gray);
}

/* How to Join Section */
.how-to-join {
  padding: 80px 0;
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
}

.join-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .join-options {
    flex-direction: row;
    align-items: center;
  }
}

.join-option {
  flex: 1;
  background-color: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.join-option.animated {
  opacity: 1;
  transform: translateY(0);
}

.join-option:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.join-option-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px 0;
}

.join-option-separator span {
  background-color: var(--white);
  border: 2px solid var(--light-bg);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-gray);
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .join-option-separator::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--light-bg);
    transform: translateX(-50%);
  }
}

@media (min-width: 768px) {
  .join-option-separator::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--light-bg);
    transform: translateY(-50%);
  }
}

.join-option-icon {
  background-color: var(--primary-color-bg) !important;
  border: 1px solid var(--primary-color-border) !important;
  color: var(--primary-color) !important;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.3s ease;
}

.join-option:hover .join-option-icon {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(153, 0, 0, 0.2);
}

.join-option-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.join-option-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 24px;
}

.join-option-details {
  text-align: left;
  background-color: var(--light-bg);
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-gray);
}

.join-cta {
  background-color: #f8f9fa; /* Light background instead of primary color */
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(153, 0, 0, 0.15);
  margin-top: 60px;
  margin-bottom: 40px;
  position: relative;
  z-index: 3;
  opacity: 1 !important;
  transform: none !important;
  transition: all 0.4s ease-in-out;
}

@media (min-width: 768px) {
  .join-cta {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.join-cta-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.join-cta-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.join-cta-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-gray);
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* Background decorations */
.section-bg-decoration {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.circle-3 {
  top: -100px;
  left: -150px;
  width: 300px;
  height: 300px;
  background: rgba(153, 0, 0, 0.05);
}

.circle-4 {
  bottom: -150px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(153, 0, 0, 0.05);
}

/* Animation delays for staggered effect */
.benefit-card:nth-child(1),
.requirement-item:nth-child(1) {
  transition-delay: 0.1s;
}

.benefit-card:nth-child(2),
.requirement-item:nth-child(2) {
  transition-delay: 0.2s;
}

.benefit-card:nth-child(3),
.requirement-item:nth-child(3) {
  transition-delay: 0.3s;
}

.benefit-card:nth-child(4),
.requirement-item:nth-child(4) {
  transition-delay: 0.4s;
}

.benefit-card:nth-child(5),
.requirement-item:nth-child(5) {
  transition-delay: 0.5s;
}

.benefit-card:nth-child(6) {
  transition-delay: 0.6s;
}

/* Make sure elements are properly initialized for animations in membership page */
.benefit-card, 
.requirements-image, 
.requirements-list, 
.join-option, 
.join-cta {
  opacity: 1;
  transform: none;
}

/* Only apply the initial invisible state when JavaScript is available */
.js-enabled .benefit-card,
.js-enabled .requirements-image,
.js-enabled .requirements-list,
.js-enabled .join-option,
.js-enabled .join-cta {
  opacity: 0;
  transform: translateY(30px);
}

/* Ensure requirements list and images have proper z-index */
.requirements-container {
  position: relative;
  z-index: 2;
}

/* Fix section decorations z-index */
.section-bg-decoration {
  z-index: 0;
}

/* Add better contrast to benefit text */
.benefit-text {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.6;
}

/* Ensure circle decorations don't interfere with content */
.circle-1, .circle-2, .circle-3, .circle-4 {
  pointer-events: none;
}

/* Fix any hero section issues */
.page-hero {
  position: relative;
  z-index: 1;
}

.page-hero-overlay {
  z-index: -1;
}

/* Fix responsive issues in loans page */
@media (max-width: 768px) {
  /* Ensure proper spacing in page header */
  .page-hero {
    padding-top: 80px;
    padding-bottom: 60px;
  }
  
  /* Improve loan category responsiveness */
  .loan-categories {
    margin-top: 2rem;
  }
  
  .loan-category-card {
    margin-bottom: 1.5rem;
  }
  
  /* Ensure proper spacing between sections */
  .loan-intro, 
  .loan-options, 
  .application-process {
    padding: 60px 0;
  }
  
  /* Improve loan plans display on small screens */
  .loan-plan-card {
    margin-bottom: 2rem;
  }
}

/* Fix top header spacing on very small screens */
@media (max-width: 480px) {
  .page-hero {
    padding-top: 70px;
  }
  
  .page-hero-title {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .page-hero-text {
    font-size: 15px;
    line-height: 1.5;
    margin-top: 12px;
  }
  
  .tag-badge {
    margin-bottom: 12px;
  }
  
  /* Adjust header content for better mobile display */
  .header-content {
    padding: 0 10px;
  }
  
  /* Header padding adjustments */
  .header {
    padding-top: 10px;
  }
  
  /* Ensure mobile menu button is properly positioned */
  .mobile-menu-button {
    right: 10px;
  }
}

/* Ensure animations work properly on both pages */
/* Reset animated elements to be visible by default, then hide with JS */
.loan-category-card,
.loan-plan-card,
.process-step,
.benefit-card,
.requirements-image,
.requirements-list,
.join-option,
.join-cta,
.section-header {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* When JS is enabled, set initial state for animation */
.js-enabled .loan-category-card,
.js-enabled .loan-plan-card,
.js-enabled .process-step,
.js-enabled .benefit-card,
.js-enabled .requirements-image,
.js-enabled .requirements-list,
.js-enabled .join-option,
.js-enabled .join-cta,
.js-enabled .section-header {
  opacity: 0;
  transform: translateY(30px);
}

/* Animation class */
.animated {
  opacity: 1 !important;
  transform: none !important;
}

/* Standardize z-index across pages */
.section-bg-decoration {
  z-index: 0;
}

section {
  position: relative;
  z-index: 1;
}

/* Enhance visibility of elements in both pages */
.benefit-text,
.loan-category-text,
.requirement-text,
.join-option-text,
.loan-plan-description {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

/* Increase visibility of icons against backgrounds */
.benefit-icon svg,
.requirement-icon svg,
.loan-category-icon svg,
.loan-plan-icon svg,
.join-option-icon svg {
  color: var(--primary-color);
}

/* Contact Page Styles */
.contact-details {
  padding: 80px 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.contact-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.contact-card-icon {
  background-color: var(--primary-color-bg);
  border: 1px solid var(--primary-color-border);
  color: var(--primary-color);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.contact-card-info {
  font-size: 1.1rem;
  font-weight: 700;
  color: #990000;
  margin-bottom: 15px;
}

.contact-card-text {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-card .btn {
  margin-top: auto;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.social-media-section {
  padding: 80px 0;
  background-color: #f8f9fa;
  position: relative;
}

.social-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.social-media-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border: 2px solid transparent;
}

.social-media-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.social-media-icon {
  background-color: var(--primary-color-bg);
  border: 1px solid var(--primary-color-border);
  color: var(--primary-color);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.social-media-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.social-media-handle {
  font-size: 1rem;
  color: #990000;
  font-weight: 500;
}

.contact-form-section {
  padding: 80px 0;
  position: relative;
}

.contact-form-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-top: 50px;
}

.contact-form-image {
  display: none;
}

.form-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.contact-form {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #990000;
  outline: none;
  box-shadow: 0 0 0 3px rgba(153, 0, 0, 0.1);
}

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

.contact-cta {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa;
}

.contact-cta .cta-background {
  background-color: #990000;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
}

.contact-cta .cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.feature-card {
  border: 2px solid rgba(153, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #990000;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .social-media-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .contact-form-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-form-image {
    display: block;
  }
}

@media (max-width: 639px) {
  .contact-card {
    padding: 20px;
  }
  
  .contact-card-icon {
    width: 60px;
    height: 60px;
  }
  
  .contact-card-title {
    font-size: 1.1rem;
  }
  
  .social-media-card {
    padding: 20px;
  }
  
  .social-media-icon {
    width: 60px;
    height: 60px;
  }
  
  .social-media-name {
    font-size: 1.1rem;
  }
}

.animated.contact-card,
.animated.social-media-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

.contact-card:nth-child(1),
.social-media-card:nth-child(1) {
  animation-delay: 0.1s;
}

.contact-card:nth-child(2),
.social-media-card:nth-child(2) {
  animation-delay: 0.2s;
}

.contact-card:nth-child(3),
.social-media-card:nth-child(3) {
  animation-delay: 0.3s;
}

.contact-card:nth-child(4),
.social-media-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Terms & Privacy Pages Styles */
.terms-content,
.privacy-content {
  padding: 60px 0;
  position: relative;
}

.terms-container,
.privacy-container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.05);
  padding: 40px;
  max-width: 860px;
  margin: 0 auto;
}

.last-updated {
  color: #777;
  font-size: 14px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.terms-section,
.privacy-section {
  margin-bottom: 40px;
}

.terms-section h2,
.privacy-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

.privacy-section h3 {
  font-size: 18px;
  margin: 20px 0 10px;
  color: #444;
  font-weight: 600;
}

.terms-section p,
.privacy-section p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #555;
}

.terms-section ul,
.privacy-section ul,
.privacy-section ol {
  margin: 15px 0;
  padding-left: 20px;
}

.terms-section li,
.privacy-section li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #555;
}

/* FAQ Page Styles */
.faq-content {
  padding: 60px 0;
  position: relative;
}

.faq-categories {
  max-width: 900px;
  margin: 0 auto;
}

.faq-category-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  gap: 10px;
}

.faq-category-btn {
  background-color: #f5f5f5;
  border: none;
  border-radius: 30px;
  color: #040404;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.faq-category-btn.active,
.faq-category-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.faq-category {
  display: none;
  animation: fadeIn 0.5s ease;
}

.faq-category.active {
  display: block;
}

.faq-category-title {
  font-size: 24px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  text-align: center;
  color: #333;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item.active {
  border-color: #ddd;
}

.faq-question {
  background-color: #f9f9f9;
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item.active .faq-question {
  background-color: #f5f5f5;
}

.faq-question h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 500;
  color: #333;
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #990000;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

.faq-answer p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #555;
}

.faq-answer ul,
.faq-answer ol {
  margin: 15px 0;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #555;
}

.still-have-questions {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 12px;
}

.still-have-questions h2 {
  margin-bottom: 15px;
  color: #333;
}

.still-have-questions p {
  margin-bottom: 25px;
  color: #555;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-options {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Responsive styles */
@media (max-width: 768px) {
  .terms-container,
  .privacy-container {
    padding: 25px;
  }
  
  .faq-question h3 {
    font-size: 16px;
  }
  
  .contact-options {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-options .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .faq-category-btn {
    font-size: 14px;
    padding: 10px 16px;
  }
  
  .terms-section h2,
  .privacy-section h2,
  .faq-category-title {
    font-size: 20px;
  }
}

.nav-list .btn-primary:hover {
  background-color: #800000;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Apply Form Modern Styles */
.apply-form-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa;
}

.apply-form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.apply-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-color-light));
}

.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.form-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.form-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--cavari-black);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-section h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--cavari-black);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--cavari-gray-medium);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(153, 0, 0, 0.1);
  outline: none;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--primary-color-light);
}

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

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 2px solid var(--cavari-gray-medium);
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.2rem;
}

.checkbox-label input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-label span {
  font-size: 0.95rem;
  color: var(--cavari-gray-dark);
}

.checkbox-label a {
  color: var(--primary-color);
  text-decoration: underline;
}

.form-submit {
  margin-top: 2rem;
}

.form-submit .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.form-submit .btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.form-submit .btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Form Progress Indicator */
.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.form-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--cavari-gray-medium);
  transform: translateY(-50%);
  z-index: 0;
}

.progress-step {
  position: relative;
  z-index: 1;
  background-color: #fff;
  padding: 0 1rem;
}

.progress-step.active .step-number {
  background-color: var(--primary-color);
  color: #fff;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--cavari-gray-medium);
  color: var(--cavari-gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.875rem;
  color: var(--cavari-gray-dark);
  text-align: center;
}

/* Notification Styles */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transform: translateX(150%);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1100;
  max-width: 400px;
  border-left: 4px solid var(--primary-color);
}

.notification.show {
  transform: translateX(0);
}

.notification-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--primary-color);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--cavari-black);
}

.notification-message {
  font-size: 0.875rem;
  color: var(--cavari-gray-dark);
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--cavari-gray-dark);
  transition: color 0.3s ease;
}

.notification-close:hover {
  color: var(--cavari-black);
}

/* Loading Indicator */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--cavari-gray-medium);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .apply-form-container {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .form-section h2 {
    font-size: 1.25rem;
  }
  
  .notification {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

.success-message {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background-color: var(--primary-color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  color: var(--primary-color);
}

.success-message h2 {
  color: var(--cavari-black);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.success-message p {
  color: var(--cavari-gray-dark);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.success-message .btn {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .success-message {
    padding: 2rem 1rem;
  }
  
  .success-message h2 {
    font-size: 1.5rem;
  }
  
  .success-message p {
    font-size: 1rem;
  }
}
