/* Lelis Realty Services — Professional Design System */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --primary: #1B7A4E;
  --primary-dark: #14613D;
  --primary-light: #23965F;
  --accent: #1A5276;
  --accent-light: #2471A3;
  --gold: #C5A55A;
  --dark: #1A1A2E;
  --dark-text: #1A1A2E;
  --medium-text: #4A4A5A;
  --light-text: #7A7A8A;
  --border: #E8E8EC;
  --light-bg: #F7F9F8;
  --white: #FFFFFF;
  --success: #27AE60;
  --danger: #E74C3C;
  --warning: #F39C12;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; scroll-behavior:smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== UTILITY TOP BAR ===== */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 2rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.8); text-decoration: none; transition: var(--transition); }
.top-bar a:hover { color: var(--gold); }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 1.5rem; }
.top-bar-divider { width:1px; height:14px; background:rgba(255,255,255,0.2); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes slideDown { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }
@keyframes gradientShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes spin { 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} }

.reveal { opacity:0; transform:translateY(30px); transition:opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ===== HEADER & NAVIGATION ===== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
header.scrolled { box-shadow: var(--shadow-md); }

.navbar {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1400px; margin: 0 auto; padding: 0 2rem; height: 70px;
}

.logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; transition: var(--transition);
}
.logo-img { height: 44px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo-tagline { font-size: 0.65rem; color: var(--light-text); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; }

nav ul {
  display: flex; list-style: none; gap: 0; align-items: center;
}
nav ul li a {
  color: var(--medium-text); text-decoration: none; font-weight: 500;
  padding: 0.5rem 0.9rem; transition: var(--transition);
  font-size: 0.9rem; letter-spacing: 0.2px; position: relative;
}
nav ul li a:hover { color: var(--primary); }
nav ul li a.active { color: var(--primary); font-weight: 600; }
nav ul li a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px; background: var(--primary); border-radius: 1px;
}

.nav-buttons { display: flex; gap: 0.75rem; align-items: center; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px; z-index: 1001;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--dark-text);
  border-radius: 1px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== BUTTONS ===== */
.btn {
  padding: 0.65rem 1.5rem; border: none; border-radius: var(--radius);
  cursor: pointer; font-weight: 600; font-family: var(--font-body);
  transition: var(--transition); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; font-size: 0.9rem; letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--primary); color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,122,78,0.25);
}

.btn-accent {
  background: var(--accent); color: var(--white);
}
.btn-accent:hover { background: var(--accent-light); transform: translateY(-1px); }

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

.btn-white {
  background: var(--white); color: var(--primary); font-weight: 600;
}
.btn-white:hover { background: var(--light-bg); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--medium-text); border: none; }
.btn-ghost:hover { background: var(--light-bg); color: var(--primary); }

.btn-small { padding: 0.4rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* ===== HERO SECTION ===== */
.hero {
  position: relative; overflow: hidden; min-height: 600px;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,122,78,0.85) 0%, rgba(26,82,118,0.8) 100%);
  z-index: 1;
}
.hero-content {
  max-width: 1400px; margin: 0 auto; padding: 0 2rem; width: 100%;
  position: relative; z-index: 2; color: var(--white);
}
.hero-inner {
  max-width: 650px;
}
.hero-label {
  display: inline-block; padding: 0.4rem 1rem;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 4px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 1.5rem; color: rgba(255,255,255,0.9);
}
.hero h1 {
  font-family: var(--font-heading); font-size: 3.2rem;
  margin-bottom: 1.25rem; font-weight: 700; line-height: 1.2;
  letter-spacing: -0.5px;
}
.hero p { font-size: 1.05rem; margin-bottom: 2rem; opacity: 0.9; font-weight: 300; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-search {
  background: var(--white); padding: 1.25rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); margin-top: 2.5rem;
  display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end;
}
.hero-search .form-group { flex: 1; min-width: 140px; margin-bottom: 0; }
.hero-search .form-label { font-size: 0.75rem; color: var(--light-text); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

/* ===== SECTIONS ===== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; color: var(--primary); margin-bottom: 0.75rem;
  display: block;
}
.section-title {
  font-family: var(--font-heading); font-size: 2.4rem;
  margin-bottom: 0.75rem; color: var(--dark-text);
  font-weight: 700; line-height: 1.25; letter-spacing: -0.3px;
}
.section-subtitle {
  color: var(--light-text); margin-bottom: 3rem;
  font-size: 1rem; max-width: 600px; line-height: 1.7;
}
.section-subtitle.centered { margin-left: auto; margin-right: auto; text-align: center; }
.text-center { text-align: center; }

/* ===== PAGE HEADER ===== */
.page-header {
  position: relative; overflow: hidden;
  padding: 6rem 2rem 3rem; min-height: 220px;
  display: flex; align-items: flex-end;
}
.page-header-bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-header-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,122,78,0.9), rgba(26,82,118,0.85));
  z-index: 1;
}
.page-header .container { position: relative; z-index: 2; color: white; }
.page-header h1 { font-family: var(--font-heading); color: white; font-size: 2.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.85); font-size: 1rem; }

/* ===== CARDS ===== */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); transition: var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); }

.service-card {
  background: var(--white); padding: 2rem; border-radius: var(--radius);
  transition: var(--transition); display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.service-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: rgba(27,122,78,0.2);
}
.service-card.featured {
  background: var(--primary); color: var(--white); border: none;
}
.service-card.featured:hover { box-shadow: 0 12px 40px rgba(27,122,78,0.3); }
.service-card.featured p { color: rgba(255,255,255,0.9); }
.service-card.featured .service-icon-wrap { background: rgba(255,255,255,0.15); }

.service-icon-wrap {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--light-bg); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon-wrap img { width: 28px; height: 28px; }

.service-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; font-weight: 600; }
.service-card p { line-height: 1.7; color: var(--medium-text); font-size: 0.92rem; }

/* ===== GRID ===== */
.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); }

/* ===== PROPERTY CARDS ===== */
.property-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition); cursor: pointer;
  display: flex; flex-direction: column;
}
.property-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: rgba(27,122,78,0.15);
}
.property-card .img-wrap { position: relative; overflow: hidden; }
.property-card .img-wrap img {
  width: 100%; height: 240px; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.property-card:hover .img-wrap img { transform: scale(1.05); }

.property-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--primary); color: var(--white);
  padding: 0.3rem 0.75rem; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.property-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.property-location { color: var(--light-text); font-size: 0.82rem; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.4rem; }
.property-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--dark-text); }
.property-price { font-size: 1.4rem; color: var(--primary); font-weight: 700; margin-bottom: 1rem; }
.property-specs {
  display: flex; gap: 1.25rem; padding: 0.75rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 1rem; color: var(--light-text); font-size: 0.82rem;
}
.spec-item { display: flex; align-items: center; gap: 0.35rem; }
.spec-item img { width: 16px; height: 16px; opacity: 0.5; }
.property-actions { display: flex; gap: 0.5rem; margin-top: auto; }
.property-actions .btn { flex: 1; }

/* ===== STATS ===== */
.stat-block { text-align: center; padding: 2rem; }
.stat-number {
  font-family: var(--font-heading); font-size: 2.8rem; font-weight: 700;
  color: var(--primary); line-height: 1;
}
.stat-label-text { color: var(--light-text); font-size: 0.9rem; margin-top: 0.5rem; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.4rem; font-weight: 500; color: var(--dark-text); font-size: 0.88rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.7rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 0.92rem; font-family: var(--font-body);
  transition: var(--transition); background: var(--white); color: var(--dark-text);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,122,78,0.08);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1.5rem; }

/* ===== TABLES ===== */
.table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.table thead { background: var(--light-bg); border-bottom: 2px solid var(--border); }
.table th {
  padding: 0.85rem 1rem; text-align: left; font-weight: 600;
  color: var(--medium-text); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px;
}
.table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: var(--light-bg); }
.table img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }

/* ===== STATUS BADGES ===== */
.badge-status { font-size: 0.72rem; padding: 0.3rem 0.7rem; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-available { background: #E8F8EF; color: #1B7A4E; }
.badge-pending { background: #FEF3E2; color: #B7791F; }
.badge-sold { background: #F0F0F0; color: #555; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark); color: rgba(255,255,255,0.8);
  padding: 4rem 2rem 1.5rem;
}
.footer-top {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: 3rem; flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-brand-name { font-family: var(--font-heading); font-size: 1.4rem; color: white; margin-bottom: 0.75rem; font-weight: 700; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.6); }

.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.85rem; font-weight: 600; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.88rem; transition: var(--transition); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1400px; margin: 0 auto;
  padding-top: 1.5rem; display: flex; justify-content: space-between;
  align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.4);
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ===== MODAL ===== */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(26,26,46,0.5); backdrop-filter: blur(4px);
  z-index: 2000; justify-content: center; align-items: center; padding: 2rem;
}
.modal.active { display: flex; }
.modal-content {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 500px; width: 100%; padding: 2.5rem; position: relative;
  box-shadow: var(--shadow-lg); animation: fadeInUp 0.3s ease;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--light-bg); border: none; width: 36px; height: 36px;
  border-radius: 50%; font-size: 1.2rem; cursor: pointer; color: var(--light-text);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.modal-close:hover { background: var(--danger); color: white; }

/* ===== ALERTS ===== */
.alert { padding: 1rem 1.5rem; border-radius: var(--radius); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.alert-success { background: #E8F8EF; color: #14613D; border: 1px solid #A7DFC0; }
.alert-error { background: #FDE8E8; color: #991B1B; border: 1px solid #FDAAAA; }
.alert-warning { background: #FEF3E2; color: #92400E; border: 1px solid #FDE68A; }

/* ===== SPINNER ===== */
.spinner { border: 3px solid var(--border); border-top: 3px solid var(--primary); border-radius: 50%; width: 36px; height: 36px; animation: spin 0.8s linear infinite; }

/* ===== MESSENGER BTN ===== */
.messenger-btn {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(27,122,78,0.35); transition: var(--transition);
  text-decoration: none; font-size: 0;
}
.messenger-btn img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.messenger-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(27,122,78,0.45); }

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
  nav ul li a { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
}
@media(max-width:768px) {
  .top-bar { display: none; }
  .navbar { padding: 0 1rem; height: 60px; }
  .hamburger { display: flex; }
  nav ul {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: var(--white); flex-direction: column; padding: 5rem 2rem 2rem;
    gap: 0.25rem; box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transition: right 0.4s ease; z-index: 1000;
  }
  nav ul.active { right: 0; }
  nav ul li a { padding: 0.75rem 1rem; width: 100%; }
  .hero { min-height: auto; }
  .hero h1 { font-size: 2rem; }
  .hero-inner { max-width: 100%; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.8rem; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .page-header { padding: 5rem 1rem 2rem; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media(max-width:480px) {
  html { font-size: 14px; }
  .hero h1 { font-size: 1.8rem; }
  .container { padding: 0 1rem; }
  .btn { padding: 0.55rem 1rem; font-size: 0.85rem; }
}
