/* Veranda Homes Website Styles */

/* Global Styles */
:root {
  --primary-color: #1e3a5f; /* Navy blue from reference sites */
  --secondary-color: #f5f5f5; /* Off-white */
  --accent-color: #d4b872; /* Gold accent */
  --text-color: #333333;
  --light-text: #ffffff;
  --font-primary: 'Cormorant Garamond', serif;
  --font-secondary: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-secondary);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

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

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

/* Header Styles for Veranda Homes */
.logo-container {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 64px;
}

.header-logo {
    height: auto;
    max-height: 150px;
    width: auto;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 64px;
    height: 160px;
    min-height: 160px;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    justify-content: flex-end;
}

.nav-item {
    margin-left: 30px;
}

.nav-menu .nav-link {
    font-size: 1.3rem;
}

header, .header-container {
    padding: 0;
    margin: 0;
}

.mobile-menu-btn {
  display: block;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  padding: 8px;
  z-index: 100;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
  color: var(--accent-color);
  outline: none;
}

/* Mobile menu styles are defined in the media queries below */

/* Hero Section */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--light-text);
  max-width: 600px;
}

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

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Featured Properties Section */
.featured-properties {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.property-card {
  background-color: var(--light-text);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.property-card:hover {
  transform: translateY(-10px);
}

.property-image {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.property-details {
  padding: 20px;
}

.property-location {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.property-features {
  display: flex;
  margin-top: 15px;
}

.feature {
  margin-right: 15px;
  font-size: 0.9rem;
  color: #666;
}

/* About Section */
.about-section {
  padding: 100px 0;
  background-color: var(--secondary-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  height: 500px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

/* Team Section */
.team-section {
  padding: 100px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  text-align: center;
}

.member-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background-size: cover;
  background-position: center;
}

.member-name {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.member-role {
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background-color: var(--secondary-color);
}

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

.contact-info {
  margin-bottom: 30px;
}

.contact-info h3 {
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-secondary);
}

.contact-form textarea {
  height: 150px;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--light-text);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-right: 10px;
  color: var(--light-text);
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  /* Mobile Header Adjustments */
  header {
    background-color: var(--light-text);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed; /* Make header fixed on mobile */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  /* Add padding to body to account for fixed header */
  body {
    padding-top: 70px;
  }
  
  .header-container {
    padding-left: 20px;
    padding-right: 20px;
    height: 70px;
    min-height: 70px;
  }
  
  .logo-container {
    padding-left: 0;
    gap: 8px;
  }
  
  .header-logo {
    max-height: 50px;
  }
  
  .logo {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }
  
  /* Force hardware acceleration */
  .mobile-menu-btn {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    padding: 8px;
    z-index: 100;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    height: auto;
    max-height: calc(100vh - 70px);
    background-color: var(--light-text);
    transform: translate3d(-100%, 0, 0);
    -webkit-transform: translate3d(-100%, 0, 0);
    transition: transform 0.3s ease;
    -webkit-transition: -webkit-transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
  }
  
  .nav-menu.active {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
    padding: 20px 0;
    margin: 0;
    list-style: none;
  }
  
  .nav-item {
    margin: 0;
    margin-left: 0;
  }
  
  .nav-menu .nav-link {
    font-size: 1.1rem;
    display: block;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
  }
  
  .nav-menu .nav-link:hover {
    background-color: #f8f8f8;
    color: var(--accent-color);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  /* Extra small devices */
  body {
    padding-top: 60px; /* Match the smaller header height */
  }
  
  .header-container {
    padding-left: 15px;
    padding-right: 15px;
    height: 60px;
    min-height: 60px;
  }
  
  .header-logo {
    max-height: 40px;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .mobile-menu-btn {
    right: 15px;
    font-size: 1.5rem;
  }
  
  .nav-menu {
    top: 60px; /* Match the header height */
    max-height: calc(100vh - 60px);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
}


