/* ================================
   UrbanEdge Realty – Global Styles
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --ivory: #f8f6f2;
  --charcoal: #1c1c1c;
  --gold: #b89b5e;
  --gold-light: #d4b87a;
  --beige: #f0ebe1;
  --beige-mid: #e8e0d0;
  --grey-light: #8a8a8a;
  --grey-mid: #555;
  --white: #ffffff;
  --shadow: rgba(28,28,28,0.08);
  --shadow-deep: rgba(28,28,28,0.18);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--ivory);
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s, width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.6;
}
.cursor-ring.hover {
  width: 56px;
  height: 56px;
  opacity: 0.3;
}

/* ── Preloader ── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--ivory);
  letter-spacing: 0.3em;
  font-weight: 300;
}
.preloader-logo span { color: var(--gold); }
.preloader-bar {
  width: 120px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.preloader-bar::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  height: 100%;
  width: 100%;
  background: var(--gold);
  animation: preload 1.6s ease forwards;
}
@keyframes preload {
  to { left: 0; }
}

/* ── Scroll Progress ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 9997;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Header ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s ease, padding 0.4s ease, backdrop-filter 0.5s ease;
}
header.scrolled {
  background: rgba(28, 28, 28, 0.92);
  backdrop-filter: blur(12px);
  padding: 18px 60px;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ivory);
  text-transform: uppercase;
}

.logo img {
  height: 55px;
  width: auto;
}

.logo span {
  color: var(--gold);
  font-style: italic;
}
nav ul {
  display: flex;
  gap: 40px;
  align-items: center;
}
nav a {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,246,242,0.75);
  position: relative;
  transition: color var(--transition-fast);
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
nav a:hover, nav a.active { color: var(--ivory); }
nav a:hover::after, nav a.active::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 10px 24px;
  letter-spacing: 0.15em;
  transition: background var(--transition), color var(--transition) !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--charcoal) !important;
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--ivory);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 40px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--ivory);
  letter-spacing: 0.08em;
  font-weight: 300;
  transition: color var(--transition-fast);
}
.mobile-nav a:hover { color: var(--gold); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid currentColor;
  position: relative;
  overflow: hidden;
  transition: color var(--transition), border-color var(--transition);
  cursor: none;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: translateY(101%);
  transition: transform var(--transition);
  z-index: 0;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--charcoal); }
.btn span { position: relative; z-index: 1; }

.btn-gold {
  color: var(--gold);
  border-color: var(--gold);
}
.btn-gold:hover { color: var(--charcoal); }

.btn-light {
  color: var(--ivory);
  border-color: var(--ivory);
}
.btn-light:hover { color: var(--charcoal); }
.btn-light::before { background: var(--ivory); }

.btn-dark {
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-dark:hover { color: var(--ivory); }
.btn-dark::before { background: var(--charcoal); }

/* ── Section Headings ── */
.section-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title-light { color: var(--ivory); }

/* ── Scroll Reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="left"].revealed, [data-reveal="right"].revealed { transform: translateX(0); }

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 990;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}
.whatsapp-float svg { width: 26px; height: 26px; fill: white; }

/* ── Footer ── */
footer {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 80px 60px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 40px;
}
.footer-brand .logo { font-size: 1.3rem; margin-bottom: 20px; display: block; }
.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(248,246,242,0.5);
  max-width: 240px;
}
.footer-col h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(248,246,242,0.5);
  transition: color var(--transition-fast);
}
.footer-col ul li a:hover { color: var(--ivory); }
.footer-contact p {
  font-size: 0.82rem;
  color: rgba(248,246,242,0.5);
  line-height: 1.7;
  margin-bottom: 8px;
}
.footer-contact a { color: rgba(248,246,242,0.5); transition: color var(--transition-fast); }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(248,246,242,0.3); }
.social-links { display: flex; gap: 20px; }
.social-links a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,246,242,0.3);
  transition: color var(--transition-fast);
}
.social-links a:hover { color: var(--gold); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  height: 55vh;
  min-height: 380px;
  background: var(--charcoal);
  display: flex;
  align-items: flex-end;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,28,28,0.95) 40%, rgba(184,155,94,0.12) 100%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero .section-label { margin-bottom: 12px; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.1;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }

/* ── Divider ── */
.gold-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 24px 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  header { padding: 24px 36px; }
  header.scrolled { padding: 16px 36px; }
  footer { padding: 60px 36px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .page-hero { padding: 80px 36px; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
  header { padding: 20px 24px; }
  header.scrolled { padding: 14px 24px; }
  footer { padding: 50px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero { padding: 80px 24px 48px; min-height: 320px; }
  .whatsapp-float { bottom: 24px; right: 24px; }
}
