/* ============================================================
   SWAD Developments — Main CSS
   Dark Luxury Theme
   ============================================================ */

:root {
  --ink:        #111111;
  --panel:      #FFFDFB;
  --panel2:     #F5ECE8;
  --gold:       #B45A4E;
  --gold-deep:  #9C4B40;
  --gold-dim:   rgba(180,90,78,0.14);
  --gold-mid:   rgba(180,90,78,0.30);
  --strong:     #252525;
  --muted:      #66605A;
  --border:     rgba(180,90,78,0.13);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: 0.22s ease;
  --shadow:     0 6px 26px rgba(0,0,0,0.10);
}

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

html { scroll-behavior: smooth; }

/* Stop accidental sideways scrolling from animated/decorative layers */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: #ECE9E4;
  color: var(--strong);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--strong); }

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

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #ECE9E4; }
::-webkit-scrollbar-thumb { background: var(--panel2); border-radius: 99px; }

/* ============================================================
   LAYOUT
   ============================================================ */

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

.section { padding: 72px 0; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--strong);
  margin-bottom: 20px;
  line-height: 1.25;
}

.section-desc {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 32px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
  width: 44px; height: 44px;
  border: 1px solid var(--gold-mid);
  border-radius: var(--radius);
  object-fit: contain;
  padding: 4px;
  background: var(--panel);
}
.brand-name { font-size: 1.05rem; font-weight: 700; color: var(--gold); letter-spacing: 1px; }
.brand-tagline { font-size: 0.7rem; color: var(--muted); }

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--strong);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.nav-links a:hover { background: var(--panel); color: var(--gold); }
.nav-links a.active { background: var(--gold); color: var(--ink); font-weight: 700; }
.nav-links a.admin-link {
  border-color: var(--gold-mid);
  color: var(--gold);
}
.nav-links a.admin-link:hover { background: var(--gold); color: var(--ink); }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--gold);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--panel);
  border-top: 1px solid var(--border);
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 14px 24px;
  color: var(--strong);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); padding-left: 32px; }

/* ============================================================
   HERO CAROUSEL
   ============================================================ */

.hero {
  position: relative;
  height: 580px;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  transition: opacity 0.7s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active { opacity: 1; z-index: 1; }

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0.78) 0%, rgba(242,198,194,0.52) 55%, rgba(218,218,218,0.22) 100%);
}

.hero-bg-1 { background: linear-gradient(135deg, #ffffff 0%, #f2c6c2 50%, #dadada 100%); }
.hero-bg-2 { background: linear-gradient(135deg, #fdf7f6 0%, #f2c6c2 50%, #dadada 100%); }
.hero-bg-3 { background: linear-gradient(135deg, #ffffff 0%, #eec3c6 50%, #dadada 100%); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 60px;
}

.hero-content .section-label { font-size: 12px; margin-bottom: 14px; }

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--strong);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(17,17,17,0.72);
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(17,17,17,0.25);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.hero-dot.active { width: 26px; border-radius: 4px; background: var(--gold); }

.hero-arrows {
  position: absolute;
  bottom: 20px;
  right: 40px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-mid);
  background: rgba(255,255,255,0.8);
  color: var(--gold);
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.hero-arrow:hover { background: var(--gold); color: var(--ink); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-deep); color: #ffffff; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(156,75,64,0.28); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-mid);
}
.btn-outline:hover { background: var(--gold); color: var(--ink); transform: translateY(-1px); }

.btn-panel {
  background: var(--panel);
  color: var(--strong);
  border: 1px solid var(--border);
}
.btn-panel:hover { background: var(--panel2); color: var(--gold); }

.btn-danger {
  background: rgba(220,38,38,0.15);
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.25);
}
.btn-danger:hover { background: rgba(220,38,38,0.3); }

.btn-sm { padding: 7px 16px; font-size: 0.78rem; }
.btn-lg { padding: 15px 36px; font-size: 1rem; }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--gold-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Property cards */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.property-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  border-color: var(--gold-mid);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.property-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--panel2);
}

.property-img-placeholder {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, var(--panel2), var(--panel));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gold-mid);
}

.property-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }

.property-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.property-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--strong);
  margin-bottom: 6px;
}

.property-location {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.property-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.property-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.property-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  gap: 8px;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card:hover {
  border-color: var(--gold-mid);
  box-shadow: var(--shadow);
}

.news-meta {
  font-size: 0.74rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.news-title {
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--strong);
}

.news-summary {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
}

.news-body {
  font-size: 0.84rem;
  color: var(--strong);
  line-height: 1.65;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--strong);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--gold-mid); color: var(--gold); }
.page-btn.active { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.page-btn:disabled, .page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   KPI GRID
   ============================================================ */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.kpi-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition: all var(--transition);
}

.kpi-card:hover { border-color: var(--gold-mid); transform: translateY(-2px); }

.kpi-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.kpi-value { font-size: 2.2rem; font-weight: 800; color: var(--strong); line-height: 1; }
.kpi-sub { font-size: 0.75rem; color: var(--muted); margin-top: 6px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--strong);
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}

.testimonial-quote::before { content: '\201C'; color: var(--gold); font-size: 2rem; line-height: 0; vertical-align: -0.5em; margin-right: 4px; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--panel2);
  border: 1px solid var(--gold-mid);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name { font-weight: 700; color: var(--strong); font-size: 0.875rem; }
.testimonial-role { font-size: 0.75rem; color: var(--muted); }

/* ============================================================
   ABOUT DIVISIONS
   ============================================================ */

.division-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.division-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.division-card:hover { border-color: var(--gold-mid); transform: translateY(-3px); box-shadow: var(--shadow); }

.division-num { font-size: 1.8rem; font-weight: 800; color: var(--gold); opacity: 0.5; margin-bottom: 12px; }
.division-title { font-size: 1rem; font-weight: 700; color: var(--strong); margin-bottom: 8px; }
.division-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }

.values-list { display: flex; flex-direction: column; gap: 12px; }

.value-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
}

.value-title { font-weight: 700; color: var(--strong); margin-bottom: 4px; }
.value-desc { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 7px; }

.form-control {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--strong);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}

.form-control:focus { border-color: var(--gold-mid); }
.form-control::placeholder { color: var(--muted); opacity: 0.7; }
.form-control.is-invalid { border-color: #f87171; }

textarea.form-control { resize: vertical; min-height: 130px; }

select.form-control { cursor: pointer; }

.form-error { font-size: 0.78rem; color: #f87171; margin-top: 5px; }

.office-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.office-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.office-icon { font-size: 1.1rem; color: var(--gold); margin-top: 2px; }
.office-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 2px; }
.office-value { font-size: 0.9rem; color: var(--strong); }

/* ============================================================
   ALERTS / FLASH
   ============================================================ */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.alert-error   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.alert-info    { background: rgba(193,18,31,0.12);   border: 1px solid var(--gold-mid);       color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 60px;
}

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

.footer-brand-name { font-size: 1.2rem; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.footer-brand-tag  { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.footer-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }

.footer-heading { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 0.85rem; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 0.8rem; color: var(--muted); }

/* ============================================================
   ADMIN STYLES
   ============================================================ */

.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-brand-name { font-size: 0.95rem; font-weight: 700; color: var(--gold); }
.sidebar-brand-sub  { font-size: 0.72rem; color: var(--muted); }

.sidebar-nav { list-style: none; padding: 0 12px; flex: 1; }
.sidebar-nav li { margin-bottom: 4px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--muted);
  transition: all var(--transition);
  text-decoration: none;
}

.sidebar-nav a:hover { background: var(--panel2); color: var(--strong); }
.sidebar-nav a.active { background: var(--gold-dim); color: var(--gold); font-weight: 600; }

.sidebar-nav .nav-icon { font-size: 1rem; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 16px 12px 0;
  border-top: 1px solid var(--border);
  margin: 0 0 0;
}

.admin-main { flex: 1; padding: 32px; overflow-y: auto; min-width: 0; }

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-page-title { font-size: 1.4rem; font-weight: 700; color: var(--strong); }
.admin-page-sub   { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* Table */
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-table { width: 100%; border-collapse: collapse; }

.data-table th {
  background: rgba(214,180,90,0.07);
  padding: 13px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(214,180,90,0.05);
  font-size: 0.85rem;
  color: var(--strong);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(214,180,90,0.03); }

.thumb {
  width: 50px; height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel2);
}

.thumb-placeholder {
  width: 50px; height: 50px;
  border-radius: 8px;
  background: var(--panel2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-green  { background: rgba(34,197,94,0.15);  color: #86efac; border: 1px solid rgba(34,197,94,0.25); }
.badge-amber  { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }
.badge-blue   { background: rgba(59,130,246,0.15);  color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); }
.badge-purple { background: rgba(168,85,247,0.15);  color: #d8b4fe; border: 1px solid rgba(168,85,247,0.25); }

/* Filter row */
.filter-row {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-group { display: flex; flex-direction: column; gap: 5px; min-width: 160px; }
.filter-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }

/* ============================================================
   ADMIN LOGIN
   ============================================================ */

.login-wrapper {
  min-height: 100vh;
  background: radial-gradient(ellipse at top left, rgba(214,180,90,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(28,33,38,0.8) 0%, transparent 60%),
              var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border: 1px solid var(--gold-mid);
  border-radius: 16px;
  background: var(--panel2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--gold);
}

.login-title { font-size: 1.3rem; font-weight: 700; color: var(--strong); margin-bottom: 4px; }
.login-sub   { font-size: 0.8rem; color: var(--muted); }

/* ============================================================
   UTILITY
   ============================================================ */

.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }
.text-strong { color: var(--strong); }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap  { flex-wrap: wrap; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

.mt-0  { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.overflow-hidden { overflow: hidden; }

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-title { font-size: 1.1rem; font-weight: 700; color: var(--strong); margin-bottom: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .admin-sidebar { width: 200px; }
}

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; align-items: center; }
  .hero       { height: 440px; }
  .hero-content { padding: 0 24px; }
  .hero-title { font-size: 1.6rem; }
  .section    { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-main { padding: 20px; }
  .property-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { height: 380px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   FINAL LIGHT THEME OVERRIDES
   ============================================================ */

:root {
  --ink: #111111;
  --panel: #FFFDFB;
  --panel2: #F5ECE8;
  --gold: #B45A4E;
  --gold-deep: #9C4B40;
  --gold-dim: rgba(180,90,78,0.14);
  --gold-mid: rgba(180,90,78,0.30);
  --strong: #252525;
  --muted: #66605A;
  --border: rgba(180,90,78,0.13);
  --shadow: 0 6px 26px rgba(0,0,0,0.10);
}

body { background: #ECE9E4; color: var(--strong); }
::-webkit-scrollbar-track { background: #ECE9E4; }

.navbar { background: rgba(255,255,255,0.94); }

.hero-slide::after {
  background: linear-gradient(100deg, rgba(255,255,255,0.78) 0%, rgba(242,198,194,0.52) 55%, rgba(218,218,218,0.22) 100%);
}

.hero-bg-1 { background: linear-gradient(135deg, #ffffff 0%, #f2c6c2 50%, #dadada 100%); }
.hero-bg-2 { background: linear-gradient(135deg, #fdf7f6 0%, #f2c6c2 50%, #dadada 100%); }
.hero-bg-3 { background: linear-gradient(135deg, #ffffff 0%, #eec3c6 50%, #dadada 100%); }

.hero-subtitle { color: rgba(17,17,17,0.72); }
.hero-dot { background: rgba(17,17,17,0.25); }
.hero-arrow { background: rgba(255,255,255,0.8); }

/* ============================================================
   PREMIUM VISUAL ENHANCEMENTS
   ============================================================ */

body::before {
  content: '';
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 520px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 35%, rgba(180,90,78,0.14), transparent 42%),
    radial-gradient(circle at 78% 18%, rgba(156,75,64,0.12), transparent 40%),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,0.6), transparent 44%);
  filter: blur(4px);
  z-index: -1;
}

.navbar {
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.navbar.scrolled {
  box-shadow: 0 8px 30px rgba(35, 27, 26, 0.08);
  background: rgba(255, 253, 251, 0.95);
}

.cinematic-hero {
  border: 1px solid rgba(180,90,78,0.18);
  box-shadow: 0 16px 50px rgba(62, 46, 44, 0.12);
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.ambient-ring,
.ambient-glow {
  position: absolute;
  border-radius: 999px;
}

.ambient-ring {
  border: 1px solid rgba(180,90,78,0.2);
  opacity: 0.55;
}

.ring-a {
  width: 420px;
  height: 420px;
  right: -100px;
  top: -120px;
  animation: spinSlow 20s linear infinite;
}

.ring-b {
  width: 300px;
  height: 300px;
  right: 110px;
  bottom: -120px;
  animation: spinSlowReverse 22s linear infinite;
}

.ambient-glow {
  filter: blur(2px);
}

.glow-a {
  width: 180px;
  height: 180px;
  left: 40%;
  top: 16%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.92), rgba(180,90,78,0.06) 72%);
  animation: floatGlow 8s ease-in-out infinite;
}

.glow-b {
  width: 120px;
  height: 120px;
  right: 28%;
  bottom: 18%;
  background: radial-gradient(circle at 35% 35%, rgba(180,90,78,0.3), rgba(180,90,78,0.02) 72%);
  animation: floatGlow 10s ease-in-out infinite reverse;
}

.hero-content {
  animation: heroRise 0.9s ease both;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.hero-chip {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(180,90,78,0.26);
  color: #4f3b39;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.impact-strip {
  margin-top: -28px;
  position: relative;
  z-index: 5;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,253,251,0.92), rgba(245,236,232,0.88));
  border: 1px solid rgba(180,90,78,0.2);
  box-shadow: 0 10px 30px rgba(48, 34, 32, 0.08);
}

.impact-item {
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(180,90,78,0.18);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
}

.impact-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 6px;
}

.impact-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6a5854;
}

.property-card,
.testimonial-card,
.division-card,
.card,
.kpi-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.property-card:hover,
.testimonial-card:hover,
.division-card:hover,
.card:hover,
.kpi-card:hover {
  box-shadow: 0 12px 28px rgba(50, 35, 33, 0.11);
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatGlow {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-14px) translateX(7px); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinSlowReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@media (max-width: 900px) {
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ring-a,
  .ring-b {
    opacity: 0.35;
  }
}

@media (max-width: 600px) {
  .hero-chips {
    gap: 8px;
  }

  .hero-chip {
    font-size: 0.68rem;
    padding: 7px 10px;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .impact-strip {
    margin-top: -14px;
  }
}

/* ============================================================
   BEAUTY PASS 2 — CINEMATIC POLISH
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  z-index: 2000;
  background: linear-gradient(90deg, #ffd6cf, var(--gold), var(--gold-deep));
  box-shadow: 0 0 12px rgba(180, 90, 78, 0.45);
}

.brand-logo {
  box-shadow: 0 8px 16px rgba(180, 90, 78, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.brand:hover .brand-logo {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 22px rgba(180, 90, 78, 0.2);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero-title {
  background: linear-gradient(110deg, #201b1a 12%, #6e3e38 52%, #201b1a 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 18px rgba(180, 90, 78, 0.08);
  animation: titleShimmer 7s linear infinite;
  background-size: 210% 100%;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: -120%;
  left: -15%;
  width: 36%;
  height: 340%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transition: left 0.45s ease;
}

.btn:hover::before {
  left: 120%;
}

.property-card {
  position: relative;
  isolation: isolate;
}

.property-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: linear-gradient(130deg, rgba(180,90,78,0.35), transparent 40%, rgba(255,255,255,0.45)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.property-card:hover::after {
  opacity: 1;
}

.property-img {
  transition: transform 0.6s ease, filter 0.6s ease;
}

.property-card:hover .property-img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.03);
}

.impact-item {
  position: relative;
  overflow: hidden;
}

.impact-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.38), transparent 48%);
  opacity: 0.55;
  pointer-events: none;
}

@keyframes titleShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -120% 0; }
}

body.page-ready {
  animation: pageFadeIn 0.55s ease both;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: -40% -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 34%, rgba(255,255,255,0.18), transparent 34%),
    radial-gradient(circle at 68% 70%, rgba(180,90,78,0.12), transparent 36%),
    repeating-linear-gradient(115deg, rgba(180,90,78,0.03) 0 2px, transparent 2px 18px);
  animation: heroTextureShift 18s linear infinite;
}

@keyframes heroTextureShift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-60px, 25px, 0); }
}

.impact-value {
  position: relative;
}

.impact-value.counter-on::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 12px);
  border-radius: 10px;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: counterFlash 0.9s ease;
  pointer-events: none;
}

@keyframes counterFlash {
  from { opacity: 0; transform: translateX(-18px); }
  45% { opacity: 1; }
  to { opacity: 0; transform: translateX(18px); }
}

.section-divider {
  width: 100%;
  line-height: 0;
  margin-top: -6px;
  overflow: hidden;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 68px;
}

.section-divider path {
  fill: rgba(180,90,78,0.14);
}

@media (max-width: 600px) {
  .section-divider svg {
    height: 42px;
  }
}

/* ============================================================
   HIGH VISIBILITY ANIMATION OVERRIDES
   ============================================================ */

body::before {
  background:
    radial-gradient(circle at 15% 28%, rgba(180,90,78,0.24), transparent 38%),
    radial-gradient(circle at 82% 12%, rgba(156,75,64,0.2), transparent 36%),
    radial-gradient(circle at 58% 72%, rgba(255,255,255,0.72), transparent 42%);
}

.cinematic-hero {
  box-shadow: 0 20px 60px rgba(62, 46, 44, 0.18);
}

.ambient-ring {
  border: 2px solid rgba(180,90,78,0.32);
  opacity: 0.85;
}

.ring-a {
  animation-duration: 14s;
}

.ring-b {
  animation-duration: 16s;
}

.glow-a {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(180,90,78,0.18) 72%);
}

.glow-b {
  width: 170px;
  height: 170px;
  background: radial-gradient(circle at 35% 35%, rgba(180,90,78,0.45), rgba(180,90,78,0.04) 72%);
}

.hero-chip {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(180,90,78,0.4);
  box-shadow: 0 6px 18px rgba(180,90,78,0.16);
  animation: chipPulse 2.8s ease-in-out infinite;
}

.hero-chip:nth-child(2) {
  animation-delay: 0.45s;
}

.btn-gold {
  box-shadow: 0 10px 24px rgba(156,75,64,0.24);
  animation: ctaGlow 2.8s ease-in-out infinite;
}

.impact-grid {
  background: linear-gradient(135deg, rgba(255,253,251,0.98), rgba(245,236,232,0.95));
  box-shadow: 0 14px 40px rgba(48, 34, 32, 0.14);
}

.impact-item {
  animation: liftIn 0.65s ease both;
}

.impact-item:nth-child(2) { animation-delay: 0.09s; }
.impact-item:nth-child(3) { animation-delay: 0.18s; }
.impact-item:nth-child(4) { animation-delay: 0.27s; }

.section-divider path {
  fill: rgba(180,90,78,0.2);
}

/* Fallback visible by default */
.reveal-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* JS-enabled pages get staged reveal animation */
.js-reveal .reveal-up {
  opacity: 0;
  transform: translateY(26px);
}

.js-reveal .reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes chipPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 10px 24px rgba(156,75,64,0.24); }
  50% { box-shadow: 0 14px 28px rgba(156,75,64,0.34); }
}

@keyframes liftIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ULTRA VISIBLE MOTION OVERRIDES
   ============================================================ */

.scroll-progress {
  height: 5px;
  box-shadow: 0 0 18px rgba(180, 90, 78, 0.6);
}

.hero-slide {
  transform: scale(1.08);
  transition: opacity 0.85s ease, transform 1.1s ease;
}

.hero-slide.active {
  transform: scale(1);
  animation: heroActivePop 1.1s ease both;
}

.hero-content {
  animation: heroRiseStrong 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-chip {
  box-shadow: 0 10px 24px rgba(180,90,78,0.26);
}

.hero-chip:nth-child(1) { animation-duration: 2.2s; }
.hero-chip:nth-child(2) { animation-duration: 2.2s; }

.btn-gold {
  animation-duration: 2s;
}

.reveal-up {
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
}

.js-reveal .reveal-up {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(8px);
}

.js-reveal .reveal-up.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.property-card {
  animation: cardFloat 5s ease-in-out infinite;
}

.property-card:nth-child(2n) {
  animation-delay: 0.6s;
}

.property-card:nth-child(3n) {
  animation-delay: 1.2s;
}

@keyframes heroActivePop {
  0% { filter: saturate(1.2); }
  100% { filter: saturate(1); }
}

@keyframes heroRiseStrong {
  0% { opacity: 0; transform: translateY(36px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 768px) {
  .property-card {
    animation: none;
  }

  .js-reveal .reveal-up {
    transform: translateY(24px);
    filter: none;
  }
}
