/* Base styles - Index Page */
:root {
  --brand-50: #fef2f2;
  --brand-600: #dc2626;
  --brand-700: #b91c1c;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f9fafb;
  color: #111827;
}

/* Layout utilities */
.max-w-7xl {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

/* Header styles */
header {
  background-color: var(--brand-50);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
  width: 100%;
}

/* Adjust the spacing in the header container */
header .max-w-7xl {
  max-width: 100%;  /* Use full width instead of 95% */
  margin: 0 auto;   /* Center the container */
  padding: 0 2rem;  /* Add some padding on the sides */
}


.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;        /* Reduced gap from 1.5rem */
  text-decoration: none;
  margin-right: 1rem; /* Reduced from 3rem */
}

.logo-image {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
}

.logo-text h1 {
  color: var(--brand-600);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.logo-text p {
  color: #4b5563;
  font-size: 1rem;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;     /* Reduced from 1.5rem */
}

@media (min-width: 768px) {
  nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}

nav a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  padding: 0.4rem 0.5rem; /* Reduced from 0.5rem 0.75rem */
  font-size: 1.1rem;      /* Reduced from 1.25rem */
  white-space: nowrap;
  font-weight: 600;       /* Changed from bold to 600 */
}

/* Add this to create spacing between logo and nav items */
nav a:first-child {
  margin-left: 1rem; /* Add some space after the logo */
}

/* Make sure the nav items are properly aligned */
.flex.items-center.justify-between {
  display: flex;
  justify-content: space-between;  /* Use space-between to push nav to the right */
  width: 100%;
}

nav a:hover {
  color: var(--brand-600);
  font-size: 1.15rem;     /* Smaller increase from 1.1rem to 1.15rem */
}

nav a.active {
  color: var(--brand-600);
}

/* Property carousel */
.property-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
  background-color: white;
  padding: 3rem 0;
}

.property-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.property-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
}

.location-tag {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  color: #111827;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
  border: 2px solid white;
}

.property-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.property-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.property-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.property-dot.active {
  background-color: white;
  transform: scale(1.2);
}

.property-prev,
.property-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  z-index: 10;
  padding: 0;
}

.property-prev { left: 2rem; }
.property-next { right: 2rem; }

.property-prev:hover,
.property-next:hover {
  background-color: #f9fafb;
  transform: translateY(-50%) scale(1.1);
}

.property-prev:focus,
.property-next:focus,
.property-dot:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.5);
}

/* Stats section */
.stats-section {
  padding: 3rem 0;
  background-color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats-card {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.stats-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: var(--brand-600);
}

.stats-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.stats-card:hover .stats-number {
  color: var(--brand-600);
}

.stats-label {
  color: #6b7280;
}

/* Testimonials section */
.testimonials-section {
  padding: 3rem 0;
  background-color: #f9fafb;
  position: relative;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-container {
  position: relative;
  overflow: hidden;
  margin: 2rem auto;
  width: 100%;
  padding: 0;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease-in-out;
  padding: 0 3rem;
}

.testimonial-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: calc(33.333% - 1.33rem);
  }
}

.prev-button,
.next-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  z-index: 10;
}

.prev-button { left: 0; }
.next-button { right: 0; }

.prev-button:hover,
.next-button:hover {
  background: #f9fafb;
  transform: translateY(-50%) scale(1.1);
}

.testimonial-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-stars [data-lucide="star"] {
  width: 1.25rem;
  height: 1.25rem;
  stroke: #FBBF24;
  fill: #FBBF24;
}

.testimonial-text {
  color: #4b5563;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.625;
}

.testimonial-author {
  color: #111827;
  font-weight: 600;
}

/* Realtor Section */
.realtor-section {
  padding: 4rem 0;
  background-color: #f9fafb;
}

.realtor-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .realtor-content {
    grid-template-columns: 1fr 1fr;
  }
}

.realtor-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.realtor-info h2 {
  font-size: 3.0rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.realtor-info .subtitle {
  font-size: 1.5rem;
  color: #4b5563;
  margin: 0;
}

.realtor-info p {
  color: #6b7280;
  line-height: 1.625;
  margin: 0;
  font-size: 1.0rem;
}

.realtor-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .realtor-actions {
    flex-direction: row;
  }
}

.realtor-image-container {
  position: relative;
  padding-bottom: 2rem;
  padding-right: 2rem;
}

.realtor-image {
  width: 100%;
  max-width: 28rem;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
/*
.realtor-contact-card {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}*/

.realtor-contact-card {
  position: absolute;  /* Change this */
  bottom: -20px;       /* Change this */
  left: 50%;           /* Add this */
  transform: translateX(-50%); /* Add this */
  background-color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 50px;  /* Change this if needed */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Add/modify this */
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 10;  /* Add this */
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background-color: var(--brand-700);
}

.btn-secondary {
  background-color: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background-color: #f9fafb;
}

/* Footer */
footer {
  background-color: #111827;
  color: #d1d5db;
  padding: 3rem 0;
  margin-top: auto;
}

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

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

footer h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trec-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid #374151;
}

footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}

footer a:hover {
  color: white;
}

/* Copyright section */
.copyright {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Icons */
[data-lucide] {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}


/* Add or modify these CSS rules -5/5/2025 */

/* Realtor section - compact version */
.realtor-section {
  padding: 1.5rem 0; /* Reduced padding top and bottom */
  margin: 1rem 0;
}

.realtor-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 100%;
}

.realtor-info {
  flex: 1;
  max-width: 60%;
}

.realtor-info h2 {
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}

.realtor-info .subtitle {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.realtor-info p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

.realtor-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/*
.realtor-image-container {
  flex: 0 0 auto; /* Don't allow this to grow or shrink */
  width: 35%; /* Control the width explicitly 
  position: relative;
}*/


/* Modify existing rule */
.realtor-image-container {
  position: relative; 
  display: flex;      
  flex-direction: column; 
  align-items: center;    
  width: 100%;
}

.realtor-image {
  width: 100%;
  object-fit: contain; /* This ensures the image isn't cut off */
  max-height: 350px; /* Set a max height but don't crop */
  display: block;
}

.realtor-contact-card {
  position: absolute;
  bottom: -20px;
  left: 45%;
  transform: translateX(-50%);
  white-space: nowrap;
  background-color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 1.2rem;
  white-space: nowrap; /* This prevents the text from wrapping */
  min-width: max-content; /* Ensures the container is at least as wide as its content */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .realtor-content {
    flex-direction: column;
  }
  
  .realtor-info, .realtor-image-container {
    max-width: 100%;
    width: 100%;
  }
  
  .realtor-image {
    max-height: 220px;
    margin: 0 auto;
  }
}

/* End of CSS Rules for Realtor Section*/

/* Utility classes */
.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.text-white { color: white; }
.text-gray-600 { color: #4b5563; }
.text-gray-900 { color: #111827; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.p-8 { padding: 2rem; }
.mb-8 { margin-bottom: 2rem; }