/* ============================================================
   AVATA HOMES — Global Stylesheet
   Aesthetic: Refined Luxury · Gold & Black · Premium Nigerian RE
   ============================================================ */

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

:root {
  --gold: #C9A84C;
  --gold-light: #E2C36E;
  --gold-dark: #9C7A2E;
  --black: #080808;
  --dark: #111111;
  --dark2: #1a1a1a;
  --dark3: #222222;
  --white: #FAFAF8;
  --gray: #888888;
  --gray-light: #CCCCCC;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', sans-serif;
  --nav-h: 100px;
}

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

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 768px) { body { cursor: auto; } }

/* ── Custom Cursor ── */
.cursor, .cursor-ring {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: opacity .3s;
}
.cursor { width: 7px; height: 7px; background: var(--gold); top: 0; left: 0; }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(201,168,76,.5);
  top: 0; left: 0;
  transition: width .2s, height .2s, border-color .2s, transform .12s linear;
}
.cursor-ring.hovered { width: 52px; height: 52px; border-color: var(--gold); background: rgba(201,168,76,.08); }
@media (max-width: 768px) { .cursor, .cursor-ring { display: none; } }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
p { font-family: var(--font-body); font-size: .95rem; color: rgba(250,250,248,.7); }

.gold { color: var(--gold); }
.gold-text {
  background: linear-gradient(130deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 5vw;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,8,.95);
  backdrop-filter: blur(14px);
  border-color: rgba(201,168,76,.15);
}
.nav-logo { display:flex; align-items:center; /* */ 
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 600;
  letter-spacing: .04em; text-decoration: none;
  color: var(--white);
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; margin-left: auto; align-items: center; }
.nav-links a {
  font-family: var(--font-body); font-size: .78rem;
  font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none;
  color: rgba(250,250,248,.65);
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: transparent; border: 1px solid var(--gold);
  color: var(--gold) !important; padding: .5rem 1.4rem;
  border-radius: 2px;
  transition: background .25s, color .25s !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--black) !important; }
.nav-cta::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: all .3s; }

.mobile-nav {
  position: fixed; top: var(--nav-h); left: 0; width: 100%;
  background: rgba(8,8,8,.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,.15);
  padding: 2rem 5vw; z-index: 99;
  transform: translateY(-110%); opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-nav a {
  font-size: .9rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  color: rgba(250,250,248,.75);
  transition: color .25s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); }

@media (max-width: 900px) { .nav-links { display: none; } .hamburger { display: flex; margin-left: auto; } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-size: .8rem;
  font-weight: 500; letter-spacing: .13em;
  text-transform: uppercase; text-decoration: none;
  padding: .9rem 2.2rem; border-radius: 2px;
  transition: all .3s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201,168,76,.25); }
.btn-outline { background: transparent; border: 1px solid rgba(201,168,76,.5); color: var(--gold); }
.btn-outline:hover { background: rgba(201,168,76,.08); border-color: var(--gold); transform: translateY(-2px); }
.btn-ghost { background: transparent; border: 1px solid rgba(250,250,248,.2); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(250,250,248,.05); }

/* ── Section ── */
.section { padding: 7rem 5vw; }
.section-sm { padding: 4rem 5vw; }
.container { max-width: 1280px; margin: 0 auto; }

.section-label {
  font-family: var(--font-body); font-size: .72rem;
  font-weight: 500; letter-spacing: .25em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem;
}
.section-label::before {
  content: ''; width: 32px; height: 1px; background: var(--gold);
}

.divider { width: 48px; height: 1px; background: var(--gold); margin: 1.5rem 0; }
.divider-center { margin: 1.5rem auto; }

/* ── Fade-up animation ── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Gold line accent ── */
.line-accent {
  display: inline-block; position: relative;
}
.line-accent::after {
  content: ''; position: absolute; bottom: 6px; left: 0;
  width: 100%; height: 6px;
  background: linear-gradient(90deg, rgba(201,168,76,.4), rgba(201,168,76,.1));
  z-index: -1;
}

/* ── Cards ── */
.card-glass {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 4px;
  transition: all .4s ease;
}
.card-glass:hover {
  border-color: rgba(201,168,76,.4);
  background: rgba(255,255,255,.05);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
}

/* ── Page Hero ── */
.page-hero {
  min-height: 55vh; display: flex; align-items: flex-end;
  padding-bottom: 5rem; padding-left: 5vw; padding-right: 5vw;
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
  margin-top: var(--nav-h);
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,1) 0%, rgba(8,8,8,.5) 50%, rgba(8,8,8,.2) 100%);
}
.page-hero-content { position: relative; z-index: 2; max-width: 800px; }

/* ── Footer ── */
.footer { background: var(--dark); border-top: 1px solid rgba(201,168,76,.12); padding: 5rem 5vw 2.5rem; }
.footer-logo { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; color: var(--white); margin-bottom: .5rem; }
.footer-logo span { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 4rem; }
.footer-col h4 { font-family: var(--font-body); font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { font-size: .88rem; color: rgba(250,250,248,.5); text-decoration: none; transition: color .25s; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: .88rem; }
.footer-socials { display: flex; gap: .8rem; margin-top: 1.5rem; }
.footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(250,250,248,.5); text-decoration: none;
  font-size: .85rem;
  transition: all .25s;
}
.footer-social:hover { border-color: var(--gold); background: rgba(201,168,76,.1); color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .8rem; color: rgba(250,250,248,.35); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .section { padding: 5rem 6vw; }
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Image ── */
img { display: block; max-width: 100%; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

/* ── Logo image adjustments ── */
.nav-logo img { display: block; height: 90px; width: auto; }
.footer-logo img { display: block; }
@media (max-width: 768px) { .nav-logo img { height: 72px; } }

/* ── Nav Login & Get Started buttons ── */
.nav-login {
  background: transparent;
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold) !important;
  padding: .42rem 1.1rem;
  border-radius: 2px;
  font-size: .75rem !important;
  transition: background .25s, color .25s !important;
}
.nav-login:hover { background: rgba(201,168,76,.08) !important; border-color: var(--gold) !important; }
.nav-login::after { display: none !important; }
.nav-getstarted {
  background: var(--gold);
  color: var(--black) !important;
  padding: .42rem 1.1rem;
  border-radius: 2px;
  font-size: .75rem !important;
  transition: background .25s, color .25s !important;
}
.nav-getstarted:hover { background: var(--gold-light) !important; color: var(--black) !important; }
.nav-getstarted::after { display: none !important; }
