/* ===== Fine Properties – Clean Modern Styles ===== */
:root {
  --purple: #6B2D8B;
  --purple-dark: #4A1C6B;
  --blue: #1E3A8A;
  --blue-light: #3B82F6;
  --gradient: linear-gradient(135deg, #6B2D8B 0%, #1E3A8A 100%);
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

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

a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--purple-dark);
}

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

/* ===== Header ===== */
.header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

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

.nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--purple);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.95;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: #fff;
  color: var(--purple);
}
.btn-primary:hover {
  background: #f3e8ff;
  color: var(--purple-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--purple);
  color: var(--purple);
}
.btn-outline:hover {
  background: var(--purple);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--purple);
}

.btn-full {
  width: 100%;
}

/* ===== Sections ===== */
.section {
  padding: 70px 0;
}
.section-alt {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--purple-dark);
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }

/* ===== Property Cards ===== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.property-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(107,45,139,0.15);
}

.property-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.property-badge.sale {
  background: #dbeafe;
  color: #1e40af;
}
.property-badge.rent {
  background: #f3e8ff;
  color: #6b21a8;
}

.property-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 8px;
}

.property-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.property-location,
.property-details {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.feature-card {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--purple-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

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

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.25s;
}
.service-card:hover {
  box-shadow: var(--shadow);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--purple-dark);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.service-link {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== CTA ===== */
.cta {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.cta p {
  max-width: 560px;
  margin: 0 auto 32px;
  opacity: 0.95;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ===== Page Hero ===== */
.page-hero {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 8px;
}
.page-hero p {
  opacity: 0.9;
  font-size: 1.1rem;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2,
.contact-form-wrapper h2 {
  font-size: 1.5rem;
  color: var(--purple-dark);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text);
}

.contact-item p,
.contact-item a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.whatsapp-btn {
  display: inline-block;
  background: #25D366;
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  margin-left: 8px;
}
.whatsapp-btn:hover {
  background: #1da851;
  color: #fff !important;
}

.contact-note {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
}

.contact-form {
  background: var(--bg-alt);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107,45,139,0.15);
}

/* ===== Footer ===== */
.footer {
  background: #1a1025;
  color: #e5e7eb;
  padding-top: 50px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  height: 60px;
  margin-bottom: 12px;
  filter: brightness(1.1);
}

.footer-brand p {
  color: #9ca3af;
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #fff;
}

.footer-links a {
  display: block;
  color: #9ca3af;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: #c4b5fd;
}

.footer-contact p {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid #2d1f3d;
  padding: 18px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: #6b7280;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 16px;
  }
  .nav.open {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  .logo {
    height: 55px;
  }
  .hero {
    padding: 60px 20px;
  }
  .section {
    padding: 50px 0;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
  background: #1da851;
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
.whatsapp-float .wa-tooltip {
  position: absolute;
  right: 70px;
  background: #1a1025;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
}
.whatsapp-float .wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1a1025;
}

@media (max-width: 768px) {
  .header-inner {
    position: relative;
  }
  .nav-link {
    padding: 12px 8px;
    font-size: 1.05rem;
  }
  .nav-link.active::after {
    display: none;
  }
  .nav-link.active {
    color: var(--purple);
    background: #f3e8ff;
    border-radius: 8px;
  }
  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 18px;
    right: 18px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  .whatsapp-float .wa-tooltip {
    display: none;
  }
}

/* ===== Hero with background image ===== */
.hero-image {
  position: relative;
  background: url('images/hero.jpg') center/cover no-repeat;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107,45,139,0.82) 0%, rgba(30,58,138,0.78) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero-content p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 28px;
  opacity: 0.95;
}

/* ===== Service cards with images ===== */
.services-grid-images {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.service-card-img {
  display: block;
  padding: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(107,45,139,0.18);
  color: inherit;
}
.service-card-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.service-card-body {
  padding: 20px 22px 24px;
}
.service-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--purple-dark);
}
.service-card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== Service detail rows ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}
.service-detail.reverse {
  direction: rtl;
}
.service-detail.reverse > * {
  direction: ltr;
}
.service-detail-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-detail-text h2 {
  font-size: 1.5rem;
  color: var(--purple-dark);
  margin-bottom: 14px;
}
.service-detail-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ===== Split section ===== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-content h2 {
  font-size: 1.6rem;
  color: var(--purple-dark);
  margin-bottom: 14px;
}
.split-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .service-detail,
  .service-detail.reverse,
  .split-section {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .service-detail-img img,
  .split-image img {
    height: 220px;
  }
  .hero-image {
    min-height: 360px;
    padding: 60px 20px;
  }
}
