@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #E11D48;
  --primary-dark: #BE123C;
  --secondary: #7C3AED;
  --accent-gradient: linear-gradient(135deg, #E11D48 0%, #7C3AED 100%);
  --foreground: #0F172A;
  --muted: #64748B;
  --background: #FFFFFF;
  --surface: #F8FAFC;
  --border: #E2E8F0;

  --font-main: 'Outfit', sans-serif;
  --font-heading: 'Montserrat', sans-serif;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

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

.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(225, 29, 72, 0.39);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 48px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.2rem 0.4rem;
}

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

.lang-btn.active {
  color: var(--primary);
  font-weight: 700;
}

.lang-divider {
  color: var(--border);
  font-weight: 300;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.9375rem;
  margin-left: 0.5rem;
}

.nav-phone:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--accent-gradient);
  color: white !important;
  border-radius: var(--radius-lg);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2);
  margin-left: 0.5rem;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(225, 29, 72, 0.4);
  filter: brightness(1.1);
}

/* Ensure Navbar fits on tablets and small laptops */
@media (max-width: 1100px) {
  .nav-links {
    gap: 1.25rem;
  }
}

/* Hero */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
  color: white;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
}

/* Properties Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  color: var(--muted);
  font-size: 1.25rem;
  border: 1px dashed var(--border);
}

.property-card {
  background: white;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.view-all-card {
  background: var(--accent-gradient);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  text-decoration: none;
  min-height: 400px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2.5rem;
}

.view-all-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  filter: brightness(1.1);
}

.view-all-icon {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.view-all-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.view-all-card {
  background: var(--accent-gradient);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  text-decoration: none;
  min-height: 400px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2.5rem;
}

.view-all-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  filter: brightness(1.1);
}

.view-all-icon {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.view-all-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent-gradient);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.property-content {
  padding: 1.5rem;
}

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

.property-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.property-features {
  display: flex;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  overflow: hidden;
  white-space: nowrap;
}

.feature-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80px;
  /* Limit width to ensure 3 items fit on one line */
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.service-card {
  text-align: center;
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
  background: var(--surface);
  transition: all 0.3s ease;
}

.service-card:hover {
  background: white;
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  z-index: 2;
}

.service-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  z-index: 1;
}

.service-card:hover .service-icon {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.icon-blue {
  color: #2563EB;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.icon-amber {
  color: #D97706;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.icon-teal {
  color: #0D9488;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.icon-indigo {
  color: #4F46E5;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

/* Contact */
.contact-section {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: 4rem;
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-content p {
  margin-bottom: 2rem;
  color: var(--muted);
}

/* Footer */
footer {
  background: var(--foreground);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-logo {
  display: block;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 48px;
  max-width: 100%;
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1.5rem;
}

/* Mobile Navigation Fixes */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    align-items: flex-start;
  }

  .nav-links.active {
    right: 0;
  }

  /* Overlay behind mobile menu */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-phone, .nav-cta {
    margin-left: 0 !important;
    width: 100%;
    justify-content: flex-start;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: flex; /* Override display:none from older queries if any */
  }

  .nav-actions {
    margin-left: auto;
  }
}

@media (min-width: 992px) {
  .nav-links {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

/* Blog Styles */
.blog-header {
  padding: 120px 0 60px;
  background: var(--surface);
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.blog-card {
  background: white;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.blog-image {
  height: 220px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.blog-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Post Content Styles */
.post-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.post-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.post-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
  z-index: -1;
}

.post-header-content {
  max-width: 800px;
  padding: 0 2rem;
}

.post-article {
  max-width: 800px;
  margin: -80px auto 8rem;
  background: white;
  padding: 4rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 10;
}

.post-body {
  line-height: 1.8;
  font-size: 1.125rem;
  color: #334155;
}

.post-body h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-share {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .post-article {
    margin-top: 0;
    padding: 2rem 1.5rem;
    border-radius: 0;
    box-shadow: none;
  }
  .post-main-title {
    font-size: 2.5rem;
  }
  .blog-header h1 {
    font-size: 2.5rem;
  }
}