/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding-top: 0;
  /* iOS safe area for devices with notch */
  padding-bottom: env(safe-area-inset-bottom);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.85) 0%, rgba(15, 20, 25, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.hero-text {
  margin-bottom: var(--spacing-3xl);
  padding: 0 var(--spacing-md);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  word-wrap: break-word;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

/* Hero Gallery Carousel */
.hero-gallery {
  width: 100%;
  height: calc(100vh - 80px);
  margin: 0;
  position: relative;
  z-index: 3;
}

.hero-gallery-container {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--dark-bg);
}

.hero-gallery-track {
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  /* GPU acceleration for smooth animations on all devices */
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.gallery-slide {
  flex: 0 0 100%;
  flex-shrink: 0;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  /* Prevent unwanted touch behaviors on mobile */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.gallery-slide-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 80px);
  overflow: hidden;
  background: #1a2332;
  flex-shrink: 0;
  display: block;
}

.gallery-slide-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transition: transform 0.6s ease;
  display: block !important;
  /* Optimize image rendering on all devices */
  image-rendering: -webkit-optimize-contrast;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: #1a2332;
}

.gallery-slide:hover .gallery-slide-image {
  transform: scale(1.05);
}

.gallery-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
  padding: var(--spacing-2xl);
  color: var(--white);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.gallery-slide:hover .gallery-slide-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0.3) 100%);
}

.gallery-slide-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.gallery-slide-subtitle {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.9);
  margin-top: var(--spacing-xs);
}

.gallery-slide-price {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: var(--font-weight-bold);
  color: var(--accent-gold);
  margin-bottom: var(--spacing-sm);
}

.gallery-slide-location {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.95);
}

.gallery-slide-badge {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  padding: 0.625rem 1.25rem;
  background-color: var(--accent-gold);
  color: var(--white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  border-radius: var(--border-radius-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Gallery Navigation */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: var(--primary-navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-nav:hover {
  background: var(--accent-gold);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-prev {
  left: var(--spacing-lg);
}

.gallery-nav-next {
  right: var(--spacing-lg);
}

/* Gallery Dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.gallery-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  /* Larger tap target for mobile */
  padding: 6px;
  margin: -6px;
  -webkit-tap-highlight-color: transparent;
}

.gallery-dot:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.gallery-dot.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: scale(1.4);
  box-shadow: 0 2px 12px rgba(255, 56, 92, 0.5);
}

/* Responsive Hero Gallery */

/* Mobile devices (iOS and Android) - Portrait */
@media (max-width: 640px) and (orientation: portrait) {
  .hero-gallery {
    height: calc(100vh - 60px);
  }
  
  .gallery-slide-image-wrapper {
    height: calc(100vh - 60px);
    min-height: calc(100vh - 60px);
  }
  
  .gallery-slide-image {
    object-fit: cover;
    object-position: center;
  }
  
  .gallery-dots {
    bottom: 24px;
    gap: 8px;
  }
  
  .gallery-dot {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
  }
  
  .gallery-dot.active {
    transform: scale(1.3);
  }
  
  .scroll-indicator {
    bottom: 70px;
    font-size: 12px;
  }
}

/* Mobile devices - Landscape */
@media (max-width: 896px) and (orientation: landscape) {
  .hero-gallery {
    height: 100vh;
  }
  
  .gallery-slide-image-wrapper {
    height: 100vh;
    min-height: 100vh;
  }
  
  .gallery-dots {
    bottom: 20px;
  }
  
  .scroll-indicator {
    bottom: 60px;
  }
}

/* Tablets (iPad, Android tablets) - Portrait */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-gallery {
    height: calc(100vh - 70px);
  }
  
  .gallery-slide-image-wrapper {
    height: calc(100vh - 70px);
    min-height: calc(100vh - 70px);
  }
  
  .gallery-dots {
    bottom: 28px;
    gap: 10px;
  }
  
  .gallery-dot {
    width: 12px;
    height: 12px;
  }
  
  .scroll-indicator {
    bottom: 75px;
  }
}

/* Tablets - Landscape */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: landscape) {
  .hero-gallery {
    height: calc(100vh - 75px);
  }
  
  .gallery-slide-image-wrapper {
    height: calc(100vh - 75px);
    min-height: calc(100vh - 75px);
  }
  
  .gallery-dots {
    bottom: 30px;
  }
  
  .scroll-indicator {
    bottom: 80px;
  }
}

/* Desktop (Windows and macOS) */
@media (min-width: 1025px) {
  .hero-gallery {
    height: calc(100vh - 80px);
  }
  
  .gallery-slide-image-wrapper {
    height: calc(100vh - 80px);
    min-height: calc(100vh - 80px);
  }
  
  .gallery-slide:hover .gallery-slide-image {
    transform: scale(1.05);
  }
  
  .gallery-dots {
    bottom: 32px;
  }
  
  .scroll-indicator {
    bottom: 80px;
  }
}

/* Search Box */
.search-box {
  background-color: var(--white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.search-tabs {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.search-tab {
  flex: 1;
  padding: var(--spacing-md);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 44px;
}

.search-tab.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.search-tab:hover {
  color: var(--accent-gold);
}

.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: var(--spacing-md);
  align-items: end;
}

.search-field {
  display: flex;
  flex-direction: column;
}

.search-field-full {
  min-width: 0; /* Allows fields to shrink properly */
}

.search-input,
.search-select {
  width: 100%;
  padding: 1rem;
  font-size: var(--font-size-base);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: border-color var(--transition-base);
  min-height: 48px;
  height: 48px; /* Fixed height for alignment */
  box-sizing: border-box;
}

.search-input {
  line-height: 1.5;
  vertical-align: middle;
  display: flex;
  align-items: center;
}

.search-select {
  line-height: 48px; /* Match the height for proper vertical centering */
  padding-top: 0;
  padding-bottom: 0;
  appearance: none; /* Remove default browser styling */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem; /* Space for the custom arrow */
}

.search-input::placeholder {
  color: #9ca3af;
  line-height: 1.5;
}

.search-input:focus,
.search-select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  white-space: nowrap;
}

.search-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #9ca3af;
  border-color: #9ca3af;
}

.search-btn:disabled:hover {
  background-color: #9ca3af;
  border-color: #9ca3af;
  transform: none;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--white);
  z-index: 20;
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-arrow {
  color: var(--accent-gold);
}

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

/* Mobile adjustments for hero */
@media (max-width: 767px) {
  .hero {
    min-height: 90vh;
  }

  .search-box {
    padding: var(--spacing-lg);
  }

  .search-fields {
    grid-template-columns: 1fr;
  }

  .scroll-indicator {
    display: none;
  }
}

/* Stats Section */
.stats-section {
  background-color: var(--primary-navy);
  padding: var(--spacing-2xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
}

.stat-card {
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-secondary);
}

.stat-label {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.9);
}

/* Section Headers */
.section-header {
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-md);
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Featured Properties Carousel */
.properties-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}

.carousel-track {
  display: flex;
  gap: var(--spacing-xl);
  transition: transform var(--transition-slow);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.property-card {
  flex: 0 0 calc(33.333% - var(--spacing-xl));
  min-width: 280px;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  scroll-snap-align: start;
}

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

.property-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

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

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

.property-badge {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  padding: 0.5rem 1rem;
  background-color: var(--accent-gold);
  color: var(--white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-md);
  text-transform: uppercase;
}

.property-badge.badge-featured {
  background-color: var(--accent-orange);
}

.property-favorite {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--gray-600);
}

.property-favorite:hover {
  background-color: var(--accent-gold);
  color: var(--white);
  transform: scale(1.1);
}

.property-content {
  padding: var(--spacing-lg);
}

.property-price {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: var(--spacing-sm);
}

.price-period {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: var(--text-secondary);
}

.property-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.property-location {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.feature svg {
  color: var(--accent-gold);
}

/* Carousel Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: var(--white);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 10;
  color: var(--primary-navy);
}

.carousel-control:hover {
  background-color: var(--accent-gold);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

@media (max-width: 767px) {
  .properties-carousel {
    padding: 0;
  }

  .carousel-control {
    display: none;
  }

  .property-card {
    flex: 0 0 85%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .property-card {
    flex: 0 0 calc(50% - var(--spacing-lg));
  }
}

/* Property Gallery */
.property-gallery-wrapper {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}

.property-gallery {
  display: flex;
  gap: var(--spacing-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) var(--gray-200);
  padding: var(--spacing-md) 0;
  -webkit-overflow-scrolling: touch;
}

.property-gallery::-webkit-scrollbar {
  height: 8px;
}

.property-gallery::-webkit-scrollbar-track {
  background: var(--gray-200);
  border-radius: 4px;
}

.property-gallery::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}

.property-gallery::-webkit-scrollbar-thumb:hover {
  background: var(--primary-navy);
}

.gallery-item {
  flex: 0 0 380px;
  height: 480px;
  scroll-snap-align: start;
  text-decoration: none;
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.gallery-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

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

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
  padding: var(--spacing-xl);
  color: var(--white);
  transform: translateY(0);
  transition: all var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 70%, rgba(0, 0, 0, 0.4) 100%);
}

.gallery-info {
  margin-bottom: var(--spacing-md);
}

.gallery-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.gallery-price {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--accent-gold);
  margin-bottom: var(--spacing-sm);
}

.gallery-location {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9);
}

.gallery-location svg {
  flex-shrink: 0;
}

.gallery-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  padding: 0.5rem 1rem;
  background-color: var(--accent-gold);
  color: var(--white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-md);
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

/* Responsive Gallery */
@media (max-width: 767px) {
  .gallery-item {
    flex: 0 0 300px;
    height: 400px;
  }
  
  .gallery-overlay {
    padding: var(--spacing-lg);
  }
  
  .gallery-title {
    font-size: var(--font-size-lg);
  }
  
  .gallery-price {
    font-size: var(--font-size-xl);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item {
    flex: 0 0 340px;
    height: 440px;
  }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content {
  color: var(--text-light);
}

.about-text {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.85);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-2xl) 0;
}

.about-feature {
  text-align: left;
}

.feature-icon {
  color: var(--accent-gold);
  margin-bottom: var(--spacing-md);
}

.about-feature h4 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
  color: var(--white);
}

.about-feature p {
  color: rgba(255, 255, 255, 0.75);
}

.about-image {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.testimonial-card {
  background-color: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: var(--spacing-md);
}

.star {
  color: var(--accent-gold);
}

.testimonial-text {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-charcoal) 100%);
  color: var(--white);
  text-align: center;
  padding: var(--spacing-4xl) 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.cta-text {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-2xl);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
}

@media (max-width: 767px) {
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    width: 100%;
  }
  
  /* Stack search fields on mobile for better alignment */
  .search-fields {
    grid-template-columns: 1fr;
  }
  
  .search-btn {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* 2 column layout for tablets */
  .search-fields {
    grid-template-columns: 1fr 1fr;
  }
  
  .search-btn {
    grid-column: 1 / -1;
  }
}