/* ==========================================================================
   1. Imports & Global Variables
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/**
 * :root contains global CSS variables for consistent theming.
 */
:root {
  --primary-color: #E85A4F;
  --secondary-color: #E98074;
  --dark-color: #333333;
  --light-color: #f4f4f4;
  --text-color: #555;
  --font-family: 'Poppins', sans-serif;
}

/* ==========================================================================
   2. Global Resets & Base Styles
   ========================================================================== */

/**
 * Universal box-sizing and reset for all elements.
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-family);
  line-height: 1.6;
  background-color: #fff;
  color: var(--text-color);
  overflow-x: hidden; /* Prevent horizontal scroll */
}

main {
  flex-grow: 1; /* Ensures main content takes up available space */
}

/* ==========================================================================
   3. Typography & Basic Elements
   ========================================================================== */

h1, h2, h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-color);
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--dark-color);
}

ul {
  list-style: none;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   4. Layout & Helper Classes
   ========================================================================== */

/**
 * .container sets a max-width and centers content.
 */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

main.container {
    max-width: 100%;
    padding: 20px 10px;
}

/**
 * .btn provides base styling for buttons.
 */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease, color .3s ease;
  will-change: transform, box-shadow;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

/* ==========================================================================
   5. Animations
   ========================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn .9s cubic-bezier(.22, .61, .36, 1) both;
  will-change: transform, opacity;
}

/* ==========================================================================
   6. Component Styles
   ========================================================================== */

/* --- Header & Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 130px;
  height: 70px;
}

.logo h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.logo h1 span {
  color: rgb(0, 0, 221);
}

.nav-links ul {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 600;
  transition: color .3s ease;
}
hero

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width .3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--dark-color);
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  padding: 1.5rem 0;
  background-color: var(--light-color);
  color: var(--text-color);
  text-align: center;
}

/* --- Hero & Page Banners --- */
.hero,
.page-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
}

.hero {
  position: relative;       /* so text & image can stack */
  height: 500px;            /* keep your hero height */
  overflow: hidden;
  display: flex;            /* center text */
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-img {
  position: absolute;       /* places image behind content */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* makes it cover like background-size: cover */
  filter: brightness(60%);  /* darkens image (replaces rgba overlay) */
  z-index: -1;              /* pushes it behind text */
}


.page-hero {
  height: 50vh;
}

.hero-content {
  max-width: 800px;
  position: relative; 
  z-index: 1;
}


.hero-content h2 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

#about-hero {
  position: relative;
  height: 900px;
  overflow: hidden;
}

#about-hero .hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

#about-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

#about-hero .hero-content {
  position: relative;
  z-index: 2;
}

/* --- General Section & Page Headers --- */
.section-header,
.page-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header h2,
.page-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.section-header p {
  position: relative;
  display: inline-block;
  padding-top: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-color);
}

.section-header p::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  transform: translateX(-50%);
}

.page-header p {
  font-size: 1.1rem;
  color: var(--primary-color);
}

/* --- Section-Specific Styles --- */
.partners-section,
.journey-section,
.values-section,
.projects-section,
.services-section,
.property-detail-section,
.contact-section {
  padding: 5rem 0;
}

.partners-section { padding: 4rem 0; }

.partners-container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.partners-content,
.partners-image {
  flex: 1;
  animation: fadeIn .9s cubic-bezier(.22, .61, .36, 1) both;
  will-change: transform, opacity;
}

.partners-image { animation-delay: .25s; }

.partners-content h3 { font-size: 2.5rem; }
.partners-content p { max-width: 500px; margin-bottom: 1.5rem; font-size: 1.1rem; }
.partners-image img { border-radius: 8px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); transform: scale(1.15); }

.journey-single {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 0;
}

.journey-single .journey-image,
.journey-single .journey-text {
  flex: 1;
}

.journey-single .journey-image img { width: 100%; border-radius: 8px; object-fit: cover; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); }
.journey-single .journey-text h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.journey-single .journey-text p { font-size: 1.1rem; line-height: 1.6; }

.values-section { background-color: var(--light-color); }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.value-item {
  padding: 2rem;
  background-color: #fff;
  border-left: 4px solid var(--primary-color);
  transition: box-shadow .3s ease;
  animation: fadeIn .9s cubic-bezier(.22, .61, .36, 1) both;
  will-change: transform, opacity;
}
.value-item:hover { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07); }
.value-item h5 { margin-bottom: 0.5rem; font-size: 1.2rem; color: var(--primary-color); }

/* --- Grids & Cards (Projects, Services, etc.) --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform .3s ease, box-shadow .4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.project-image img,
.project-image video {
  width: 100%;
  object-fit: cover;
}

.project-info {
  padding: 15px;
}

.project-info h4 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.project-info p { font-size: 1rem; margin-bottom: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .4s ease;
  animation: fadeIn .9s cubic-bezier(.22, .61, .36, 1) both;
  will-change: transform, opacity;
}

.service-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1); }
.service-image img { width: 100%; height: 320px; object-fit: cover; }
.service-info { padding: 1.5rem 2rem 2rem; text-align: center; }
.service-info h4 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.service-info p { font-size: 1rem; margin-bottom: 1.5rem; }

/* --- Property Details & Listings --- */
.section-title {
  margin-bottom: 4rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
}

.property-listing {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: fadeIn .9s cubic-bezier(.22, .61, .36, 1) both;
  will-change: transform, opacity;
}

.property-listing:not(:last-child) { margin-bottom: 5rem; }
.property-listing-image { flex: 1; max-width: 480px; }
.property-listing-image img { width: 100%; border-radius: 8px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); transition: transform .3s ease; }
.property-listing-image img:hover { transform: scale(1.03); }
.property-listing-content { flex: 1; }
.property-listing-content h3 { font-size: 2.2rem; }
.property-listing-content span { display: block; margin-bottom: 1rem; font-size: 1.1rem; font-weight: 600; color: var(--primary-color); }
.property-listing-content p { max-width: 550px; margin-bottom: 1.5rem; line-height: 1.7; }

.property-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.property-card img,
.property-card video {
    max-width: 300px;
    border-radius: 10px;
}

.property-card .property-info { flex: 1; min-width: 250px; }
.property-card .property-info h3 { margin-top: 0; color: var(--primary-color); }

.table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.property-details-table { width: 100%; min-width: 500px; margin-top: 15px; border-collapse: collapse; font-size: 0.9em; }
.property-details-table th,
.property-details-table td { border: 1px solid #ddd; padding: 8px; text-align: center; white-space: nowrap; }
.property-details-table th { background-color: #f2f2f2; font-weight: bold; }

.financing-info { margin-bottom: 30px; padding: 15px 20px; background-color: #fff4f0; border-left: 4px solid var(--primary-color); border-radius: 8px; font-size: 0.95em; }
.financing-info p { margin: 5px 0; }

/* --- Contact Section --- */
.contact-section .section-header p { color: var(--primary-color); }
.contact-section .section-header p::before { display: none; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; margin-top: 3rem; }

.location-card {
  padding: 1.5rem;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  animation: fadeIn .9s cubic-bezier(.22, .61, .36, 1) both;
  will-change: transform, opacity;
}

.location-card h4 { margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #eee; font-size: 1.3rem; color: var(--primary-color); }
.map-container { margin-bottom: 1.5rem; border-radius: 5px; overflow: hidden; }
.location-details p { margin-bottom: 0.75rem; font-size: 0.95rem; line-height: 1.5; }
.location-details p strong { font-weight: 600; color: var(--dark-color); }
.location-details a { color: #007bff; text-decoration: underline; font-style: italic; font-weight: 600; transition: color 0.3s ease; }
.location-details a:hover { color: #0056b3; }

/* ==========================================================================
   7. Responsive Media Queries
   ========================================================================== */

/* --- Large Desktops --- */
@media (max-width: 2000px) {
  .journey-single {
    flex-direction: column;
    text-align: center;
  }
  .journey-single .journey-text h2 {
    font-size: 2rem;
  }
}

/* --- Laptops & Small Desktops --- */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .property-listing {
    flex-direction: column;
    text-align: center;
  }
  .property-listing-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .property-listing-content h3 {
    font-size: 2rem;
  }
}

/* --- Tablets & Large Phones --- */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .logo h1 { font-size: 1.3rem; }
  .logo img { width: 110px; height: 60px; }

  /* Mobile Navigation */
  .nav-links {
    position: absolute;
    top: 71px;
    left: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-120%);
    transition: transform .5s ease-in-out;
  }
  .nav-links.active { transform: translateY(0); }
  .nav-links ul { flex-direction: column; width: 100%; gap: 0; text-align: center; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 1.5rem 1rem; border-bottom: 1px solid #f0f0f0; }
  .nav-links a::after { display: none; }
  .menu-toggle { display: block; transition: all .3s ease-in-out; }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

  /* General Mobile Adjustments */
  .hero { height: 400px; }
  .hero-content h2 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .page-hero { height: 40vh; }
  .section-header h2 { font-size: 2rem; }
  .partners-container { flex-direction: column; text-align: center; }
  .partners-image { margin-top: 2rem; }
  .partners-content h3 { font-size: 2rem; }
  .partners-content p { margin: 0 auto 1.5rem; }

  /* Grid & Card Layouts on Mobile */
  .values-grid,
  .projects-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .project-info h4 { font-size: 1.2rem; }
  .project-info p { font-size: 0.95rem; }
  .property-card { flex-direction: column; align-items: center; gap: 15px; }
  .property-card img,
  .property-card video { max-width: 100%; }
  .property-info { min-width: 0; width: 100%; }
  .property-details-table { font-size: 0.85em; }
}

/* --- Small Phones --- */
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  /**
   * FIX: Center project images properly on mobile by ensuring they cover
   * the container without distortion.
   */
  .project-image img {
    height: 450px;
    object-fit: cover; /* This is the key fix */
  }

  .service-image img { height: 220px; }
  .property-listing-content h3 { font-size: 1.8rem; }
}

/* ==========================================================================
   8. Accessibility
   ========================================================================== */

/**
 * Reduce motion for users who prefer it.
 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================
   Footer Social Media Icons
   ========================================= */

.footer {
    text-align: center; /* Ensures the copyright and icons are centered */
    padding: 20px 0;
}

.footer .social-media {
    margin-top: 15px; /* Adds some space above the icons */
}

.footer .social-media a {
    color: #333; /* Icon color, change to match your design */
    margin: 0 20px; /* Space between icons */
    font-size: 24px; /* Icon size */
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth color change on hover */
}

.footer .social-media a:hover {
    color: #007bff; /* Icon color on hover, change as desired */
}