/* 
 * AqariGate - Brazilian Real Estate Website
 * Main Stylesheet
 */

/* Base Styles & Reset */
:root {
  --primary-color: #0066b3;
  --secondary-color: #f5a623;
  --accent-color: #2ecc71;
  --text-color: #333333;
  --light-text: #ffffff;
  --dark-text: #222222;
  --light-bg: #f8f9fa;
  --grey-bg: #eeeeee;
  --dark-bg: #333333;
  --border-color: #dddddd;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

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

button, .btn {
  cursor: pointer;
  border: none;
  background: var(--primary-color);
  color: var(--light-text);
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 600;
  text-align: center;
  display: inline-block;
}

button:hover, .btn:hover {
  background: var(--secondary-color);
  color: var(--light-text);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--secondary-color);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-text);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary-color);
}

/* Header Styles */
.header {
  background: var(--light-text);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo-container {
  flex-shrink: 0;
}

.logo {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--dark-text);
  font-weight: 600;
  padding: 8px 0;
  position: relative;
}

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

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

.mobile-menu-toggle {
  display: none;
  background: transparent;
  padding: 0;
  width: 30px;
  height: 25px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--dark-text);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg') center/cover no-repeat;
  height: 600px;
  display: flex;
  align-items: center;
  color: var(--light-text);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

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

.search-box {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-top: 2rem;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.search-col {
  flex: 1;
  min-width: 150px;
}

.search-box select,
.search-box input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.search-btn {
  width: 100%;
  padding: 12px;
  background: var(--secondary-color);
}

/* Featured Properties */
.featured-properties {
  padding: 5rem 0;
  background: var(--light-bg);
}

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

.property-card {
  background: var(--light-text);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.property-image {
  height: 220px;
  background-color: #ddd;
  background-position: center;
  background-size: cover;
}

.property-details {
  padding: 20px;
}

.property-location {
  color: #777;
  margin-bottom: 10px;
}

.property-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.property-features {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.property-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.property-features span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-text);
}

.view-all {
  text-align: center;
  margin-top: 3rem;
}

/* Why Brazil Section */
.why-brazil {
  padding: 5rem 0;
}

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

.benefits-list {
  margin: 2rem 0;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  margin-right: 20px;
  flex-shrink: 0;
}

.why-image {
  height: 500px;
  background-color: #ddd;
  border-radius: var(--border-radius);
}

/* Popular Locations */
.popular-locations {
  padding: 5rem 0;
  background: var(--light-bg);
}

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

.location-card {
  position: relative;
  height: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.location-image {
  width: 100%;
  height: 100%;
  background-color: #ddd;
  transition: var(--transition);
}

.location-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--light-text);
  padding: 20px;
  text-align: center;
}

.location-overlay h3 {
  color: var(--light-text);
}

.location-card:hover .location-image {
  transform: scale(1.05);
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimonial {
  background: var(--light-text);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
  max-width: 350px;
}

.testimonial-content {
  position: relative;
  padding-top: 20px;
}

.testimonial-content:before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 5rem;
  color: rgba(0, 102, 179, 0.1);
  font-family: serif;
}

.testimonial-author {
  margin-top: 20px;
  text-align: right;
}

.author-name {
  font-weight: 700;
}

.author-location {
  font-size: 0.9rem;
  color: #777;
}

/* Gaming & Entertainment Section */
.gaming-entertainment {
  padding: 5rem 0;
  background: var(--light-bg);
}

.section-description {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.entertainment-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--light-text);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.entertainment-links,
.news-links {
  margin: 1.5rem 0;
}

.entertainment-links li,
.news-links li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 20px;
}

.entertainment-links li:before,
.news-links li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

/* Call to Action */
.cta {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg') center/cover no-repeat;
  padding: 5rem 0;
  text-align: center;
  color: var(--light-text);
}

.cta h2 {
  color: var(--light-text);
  margin-bottom: 1rem;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: #aaa;
  padding: 5rem 0 2rem;
}

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

.footer h3 {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--secondary-color);
}

.footer-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer a {
  color: #aaa;
}

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

.footer ul li {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

.social-icon {
  display: block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

address {
  font-style: normal;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .why-content {
    grid-template-columns: 1fr;
  }
  
  .why-image {
    height: 350px;
    order: -1;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    flex-direction: column;
    background: var(--light-text);
    top: 100%;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .hero {
    height: auto;
    padding: 5rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .search-row {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
  }
}

/* CSS to ensure first property card looks better */
.property-card:first-child .property-image {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), #ddd;
}

/* Prefetch background images for performance */
.prefetch-bg {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  z-index: -1;
}
