@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #1f2937;
  background: #fff;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #4b5563;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #111827;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 500;
}

.lang-btn:hover {
  color: #111827;
}

.menu-toggle {
  display: block;
  padding: 0.5rem;
  color: #111827;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem 1rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a,
.mobile-menu .lang-btn-mobile {
  display: block;
  width: 100%;
  padding: 0.75rem 0;
  color: #4b5563;
  text-align: left;
}

.mobile-menu .lang-btn-mobile {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  margin-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 4rem 0;
}

.hero-inner {
  max-width: 56rem;
  padding-left: 1.5rem;
}

@media (min-width: 640px) {
  .hero-inner { padding-left: 2rem; }
}

@media (min-width: 1024px) {
  .hero-inner { padding-left: 2.75rem; }
}

.hero h1 {
  font-size: clamp(2rem, 4.25vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.hero h1 .accent {
  color: #60a5fa;
}

.hero-desc {
  font-size: 1.0625rem;
  color: #e5e7eb;
  max-width: 48rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}

.hero .btn {
  padding: 0.8125rem 1.625rem;
  font-size: 0.9375rem;
}

.hero .btn svg {
  width: 18px;
  height: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-white {
  background: #fff;
  color: #111827;
}

.btn-white:hover {
  background: #f3f4f6;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline-white:hover {
  background: #fff;
  color: #111827;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-stats .stat-value {
  font-size: 1.375rem;
}

.hero-stats .stat-label {
  font-size: 0.8125rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.875rem;
  color: #d1d5db;
}

.stat-divider {
  width: 1px;
  height: 3rem;
  background: #6b7280;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.section-header p {
  font-size: 1.25rem;
  color: #4b5563;
}

/* Features */
.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  padding: 2rem;
  border: 2px solid #e5e7eb;
  background: #fff;
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #fff;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #4b5563;
  line-height: 1.7;
}

.integrations {
  margin-top: 5rem;
  background: #374151;
  padding: 3rem 2rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .integrations { padding: 4rem; }
}

.integrations h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.integrations p {
  color: #d1d5db;
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.integration-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0.75;
}

.integration-logos span {
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
}

/* Listings */
.listings {
  background: linear-gradient(to bottom, #fff, #f9fafb);
}

.listings-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .listings-grid { grid-template-columns: repeat(3, 1fr); }
}

.property-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.property-image {
  position: relative;
  height: 16rem;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-type {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
}

.property-body {
  padding: 1.5rem;
}

.property-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-location {
  color: #4b5563;
  margin-bottom: 1rem;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.property-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.property-actions a,
.property-actions button {
  flex: 1;
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-details {
  background: #f3f4f6;
  color: #374151;
}

.btn-details:hover {
  background: #e5e7eb;
}

.btn-deal {
  background: #1f2937;
  color: #fff;
}

.btn-deal:hover {
  background: #111827;
}

/* Sweepstake */
.sweepstake {
  background: linear-gradient(to right, #1f2937, #111827);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  margin: 4rem 0;
}

.sweepstake h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.sweepstake p {
  font-size: 1.25rem;
  color: #d1d5db;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.sweepstake-form {
  max-width: 28rem;
  margin: 0 auto;
}

.sweepstake-form-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .sweepstake-form-inner { flex-direction: row; }
}

.sweepstake input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 1.125rem;
  color: #111827;
}

.sweepstake .btn-submit {
  padding: 1rem 2rem;
  background: #fff;
  color: #111827;
  font-weight: 700;
  border-radius: 0.5rem;
}

.sweepstake .btn-submit:hover {
  background: #f3f4f6;
}

.sweepstake .btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  font-weight: 500;
}

.form-message.success { color: #4ade80; }
.form-message.error { color: #f87171; }

/* Custom solutions */
.custom-solutions {
  background: #f9fafb;
}

.custom-solutions .section-header {
  max-width: 56rem;
}

.custom-solutions p {
  font-size: 1.25rem;
  color: #4b5563;
  line-height: 1.8;
}

/* Community */
.community {
  background: #374151;
  color: #fff;
}

.community-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .community-grid { grid-template-columns: 1fr 1fr; }
}

.community h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.community-desc {
  font-size: 1.25rem;
  color: #d1d5db;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #d1d5db;
}

.benefit-check {
  width: 1.5rem;
  height: 1.5rem;
  background: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 0.875rem;
}

.community-card {
  background: #fff;
  padding: 2rem;
  border: 2px solid #fff;
}

.community-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.community-card p {
  color: #4b5563;
  margin-bottom: 2rem;
}

.btn-whatsapp {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #4b5563;
  color: #fff;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #374151;
}

/* Footer */
.footer {
  background: #fff;
  color: #4b5563;
  border-top: 2px solid #4b5563;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.footer h4 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.footer-desc {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  background: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s;
}

.social-links a:hover {
  background: #374151;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer ul a:hover {
  color: #111827;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 2px solid #4b5563;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a:hover {
  color: #111827;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.modal-close {
  padding: 0.5rem;
  border-radius: 9999px;
  color: #4b5563;
}

.modal-close:hover {
  background: #f3f4f6;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body > p {
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.modal-property-info {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.modal-property-info p {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.modal-property-info .label {
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.modal-property-info .value {
  color: #111827;
  font-weight: 500;
}

.modal-property-info .id-value {
  font-family: ui-monospace, monospace;
  font-weight: 700;
}

.modal input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.modal input[type="email"]:focus {
  outline: none;
  ring: 2px solid #1f2937;
  border-color: transparent;
  box-shadow: 0 0 0 2px #1f2937;
}

.modal-submit {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: #1f2937;
  color: #fff;
  font-weight: 700;
  border-radius: 0.5rem;
}

.modal-submit:hover {
  background: #111827;
}

.modal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-message {
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
}

.modal-message.success { color: #16a34a; }
.modal-message.error { color: #dc2626; }

.hidden { display: none !important; }
