/* 
   LuxEstate Real Estate Website
   Main Stylesheet
*/

/* ========== Variables and Reset ========== */
:root {
  --primary-white: #f8f8f8;
  --charcoal: #333333;
  --gold-accent: #d4af37;
  --navy: #1a2a56;
  --accent-red: #9e2b25;
  --beige: #e8e4d9;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  --transition-fast: all 0.3s ease;
  --transition-normal: all 0.5s ease;
  
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  --header-height: 76px; /* Added header height variable */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--primary-white);
  padding-top: var(--header-height); /* Add padding to account for fixed header */
}

h1, h2, h3, h4, h5 {
 /* font-family: 'Playfair Display', serif;*/
 font-family: 'Lato', 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--navy);
}

h1 {
  font-size: 2.0rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--gold-accent);
}

ul, ol {
  list-style-type: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, .btn {
  cursor: pointer;
  display: inline-block;
  background: var(--navy);
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  font-family: 'Lato', 'Roboto', sans-serif;
}

button:hover, .btn:hover {
  background: var(--gold-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: white;
}

.btn-gold {
  background: var(--gold-accent);
  color: white;
}

.btn-gold:hover {
  background: var(--charcoal);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 5rem 0;
}

section_team {
    padding: 5rem 0;
    background-color: #d5b58f;
	text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--gold-accent);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* ========== Header ========== */
header {
  background-color: white;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  z-index: 9999; /* Increased z-index to ensure it's above all content */
  top: 0 !important;
  left: 0;
  margin: 0 !important;
}

.header-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 0;
  position: absolute;
  left: 20px;
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.logo span {
  color: var(--gold-accent);
}

.logo .site-name {
    font-size: 14px;
    margin-top: 5px;
    color: #333;
    text-align: left;
}

nav {
  margin-left: 150px;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  font-weight: 600;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--gold-accent);
  transition: var(--transition-fast);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.nav-contact {
  display: flex;
  align-items: center;
  margin-left: auto;
  position: absolute;
  right: 20px;
}

.nav-contact i {
  color: var(--gold-accent);
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== Hero Section ========== */
.hero {
  height: 85vh;
  background-size: cover;
  background-position: center;
  background-image: url('../assets/images/hero-banner.png');
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  margin-top: 0;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  /*background-color: rgba(0, 0, 0, 0.4);*/
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(5px);
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #231616;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: rgb(62 59 59 / 90%);
}

.search-container {
  margin-top: 2.5rem;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.search-bar {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.search-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  width: 100%;
}

.search-bar select,
.search-bar input {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius-sm);
  font-family: 'Lato', 'Roboto', sans-serif;
  background-color: white;
  color: var(--charcoal);
  font-size: 1rem;
}

.search-bar select:focus,
.search-bar input:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.search-button {
  padding: 15px 25px;
  border-radius: var(--border-radius-sm);
  background-color: var(--gold-accent);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  width: 100%;
  margin-top: 10px;
}

.search-button:hover {
  background-color: var(--navy);
  transform: translateY(-2px);
}

/* ========== Featured Properties ========== */
.property-card {
  background: white;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  transition: var(--transition-normal);
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.property-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.property-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-red);
  color: white;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
}

.property-content {
  padding: 1.5rem;
}

.property-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.property-location {
  color: #666;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.property-location i {
  color: var(--gold-accent);
  margin-right: 5px;
}

.property-price {
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.property-features {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.property-features span {
  display: flex;
  align-items: center;
}

.property-features i {
  color: var(--gold-accent);
  margin-right: 5px;
}

.property-content p {
  color: #666;
  line-height: 1.5;
  margin-top: 0.8rem;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ========== Services Section ========== */
.services {
  background-color: var(--beige);
}

.service-card {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ========== Testimonial Section ========== */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  margin-top: 40px;
}

.testimonial-card::before {
  content: '\201C';
  font-family: serif;
  position: absolute;
  top: -40px;
  left: 20px;
  font-size: 6rem;
  color: var(--gold-accent);
  opacity: 0.2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.author-name {
  font-weight: 700;
  margin-bottom: 0;
}

.author-title {
  color: #666;
  font-size: 0.9rem;
}

.testimonial-rating {
  color: #f8ce0b;
  margin-bottom: 1rem;
}

.testimonials-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* ========== Why Choose Us Section ========== */
.why-choose-us {
  background-color: var(--beige);
  padding: 5rem 0;
}

.choose-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 3rem;
}

.choose-us-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-normal);
}

.choose-us-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.choose-us-icon {
  width: 80px;
  height: 80px;
  background-color: var(--gold-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.choose-us-card h3 {
  margin-bottom: 1rem;
  color: var(--navy);
}

.choose-us-contact {
  background-color: var(--navy);
  color: white;
  padding: 2.5rem;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.choose-us-contact h3 {
  color: var(--gold-accent);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-info-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info-item i {
  color: var(--gold-accent);
  font-size: 1.2rem;
}

.contact-info-item p {
  margin-bottom: 0;
}

.contact-info-item a {
  color: var(--gold-accent);
}

.contact-info-item a:hover {
  text-decoration: underline;
}

/* ========== Call to Action ========== */
.cta {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.cta h2 {
  color: white;
}

.cta p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

/* ========== Footer ========== */
footer {
  background: var(--charcoal);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: #ddd;
}

.footer-col ul li a:hover {
  color: var(--gold-accent);
}

.footer-col p {
  color: #ddd;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: blue;
  transition: var(--transition-fast);
}

.social-icons a:hover {
  background: var(--gold-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* ========== Contact Page ========== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gold-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  margin-right: 1rem;
}

.contact-details h4 {
  margin-bottom: 0.3rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  font-family: 'Lato', 'Roboto', sans-serif;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(26, 42, 86, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.map-container {
  height: 400px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: 3rem;
}

/* ========== About Page ========== */
.about-hero {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  background-color: var(--navy);
  color: white;
  margin-top: 0;
}

.about-hero h1 {
  color: white;
}

.about-content {
  padding: 5rem 0;
}

.about-image {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-text {
  padding: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-grid-core {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.team-member {
  text-align: center;
  margin-bottom: 2rem;
}

.team-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  margin-bottom: 0.3rem;
}

.team-title {
  color: #666;
  font-style: italic;
  margin-bottom: 1rem;
}

/* ========== Properties Page ========== */
.properties-hero {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  background-color: var(--navy);
  color: white;
  margin-top: 0;
}

.properties-hero h1 {
  color: white;
}

.filter-container {
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
}

/* ========== Responsive CSS ========== */
@media screen and (max-width: 1024px) {
  .properties-grid, 
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .contact-container,
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav ul li {
    margin: 0;
    padding: 0.8rem 2rem;
  }
  
  .search-bar {
    flex-direction: column;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 576px) {
  .properties-grid,
  .services-grid,
  .team-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .property-features {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 3rem 0;
  }
}
