/* =========================================================
   Royal Estate Agency – Landing Page Styles
   ========================================================= */

:root {
  --navy: #000944;
  --navy-2: #0a1868;
  --navy-3: #17298c;
  --gold: #f5b914;
  --gold-2: #ffd43b;
  --gold-soft: #fff6d6;
  --gold-dark: #a87800;
  --text: #2c3440;
  --muted: #6b7380;
  --bg: #ffffff;
  --bg-alt: #f5f6fb;
  --border: #e3e5f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 9, 68, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 9, 68, 0.16);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --header-h: 78px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15.5px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .3s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(245, 185, 20, .4); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); transform: translateY(-2px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cdd1ee; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 12px; }
.topbar-left { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar a:hover { color: var(--gold-2); }
.topbar i { color: var(--gold); margin-right: 6px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s ease;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0, 9, 68, .1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: var(--gold);
  font-size: 20px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-family: var(--font-head); font-size: 22px; color: var(--navy); }
.logo-text small { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.logo-light .logo-text strong { color: #fff; }
.logo-img { height: 64px; width: auto; display: block; border-radius: 8px; }
.logo-img-footer { height: 90px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-link { font-weight: 500; font-size: 15px; color: var(--navy); position: relative; padding: 6px 0; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold); transition: width .3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-cta { padding: 10px 22px; font-size: 14px; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 26px; position: relative; }
.menu-toggle span {
  position: absolute; left: 0; width: 100%; height: 3px;
  background: var(--navy); border-radius: 3px; transition: all .3s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 22px; }
.menu-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 36px);
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--navy) url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  padding: 80px 0 100px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,9,68,.95) 0%, rgba(0,9,68,.8) 45%, rgba(0,9,68,.45) 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 50px;
  background: rgba(245, 185, 20, .15);
  border: 1px solid rgba(245, 185, 20, .5);
  color: var(--gold-2); font-size: 14px; font-weight: 500;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 5.5vw, 62px);
  line-height: 1.15;
  max-width: 760px;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p { font-size: 17px; max-width: 600px; color: #d7dde8; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }


/* ---------- Stats ---------- */
.stats { background: var(--gold); position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding-top: 36px; padding-bottom: 36px; }
.stat h3 { font-family: var(--font-head); font-size: 44px; color: var(--navy); line-height: 1.1; }
.stat p { color: var(--navy-2); font-weight: 500; font-size: 14px; }
.stat + .stat { border-left: 1px solid rgba(0, 9, 68, .2); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-tag {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 10px;
}
.section-title { font-family: var(--font-head); font-size: clamp(28px, 4vw, 42px); color: var(--navy); line-height: 1.2; margin-bottom: 16px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); }
.section-head.light .section-tag,
.motto .section-tag { color: var(--gold); }
.section-head.light .section-title { color: #fff; }
.section-head.light p { color: #bcc1e3; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; height: 520px; }
.about-img { position: absolute; border-radius: var(--radius); background-color: var(--navy-2); background-size: cover; background-position: center; box-shadow: var(--shadow-lg); }
.about-img-main {
  inset: 0 18% 18% 0;
  background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=900&q=80');
}
.about-img-sub {
  right: 0; bottom: 0; width: 52%; height: 50%;
  border: 8px solid #fff;
  background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=700&q=80');
}
.about-exp {
  position: absolute; left: 24px; bottom: 24px;
  background: var(--gold); color: var(--navy);
  padding: 18px 24px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
}
.about-exp strong { font-family: var(--font-head); font-size: 42px; line-height: 1; }
.about-exp span { font-size: 13px; font-weight: 600; line-height: 1.3; }

.about-text .lead { font-size: 18px; color: var(--gold-dark); font-weight: 500; margin-bottom: 16px; }
.about-text p { margin-bottom: 14px; color: var(--muted); }
.about-text p strong { color: var(--navy); }
.specialization {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0 30px;
}
.specialization h4 { color: var(--navy); margin-bottom: 6px; }
.specialization h4 i { color: var(--gold); margin-right: 6px; }
.specialization p { margin: 0; color: var(--text); }

/* ---------- Core services ---------- */
.core-services { background: var(--bg-alt); }
.core-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.core-card {
  background: #fff;
  padding: 36px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-bottom: 3px solid transparent;
  transition: all .35s ease;
}
.core-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: var(--shadow-lg); }
.core-icon {
  width: 66px; height: 66px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--navy);
  color: var(--gold);
  font-size: 26px;
  margin-bottom: 22px;
  transition: all .35s ease;
}
.core-card:hover .core-icon { background: var(--gold); color: var(--navy); transform: rotate(-6deg); }
.core-card h3 { font-family: var(--font-head); font-size: 22px; color: var(--navy); margin-bottom: 10px; }
.core-card p { color: var(--muted); }

/* ---------- Real Estate Services ---------- */
.services {
  background:
    linear-gradient(rgba(0,9,68,.94), rgba(0,9,68,.94)),
    var(--navy) url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center/cover fixed;
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative;
  padding: 36px 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  overflow: hidden;
  transition: all .35s ease;
}
.service-card:hover { background: rgba(245, 185, 20, .1); border-color: var(--gold); transform: translateY(-6px); }
.service-num {
  position: absolute; top: 18px; right: 24px;
  font-family: var(--font-head); font-size: 54px; font-weight: 800;
  color: rgba(255, 255, 255, .06);
  line-height: 1;
}
.service-card > i { font-size: 34px; color: var(--gold); margin-bottom: 20px; }
.service-card h3 { font-family: var(--font-head); font-size: 22px; margin-bottom: 10px; }
.service-card p { color: #bcc1e3; }

/* ---------- Areas ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.area-card {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500; color: var(--navy);
  background: #fff;
  transition: all .3s ease;
}
.area-card i {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-soft); color: var(--gold-dark);
  transition: all .3s ease;
}
.area-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-4px); }
.area-card:hover i { background: var(--gold); color: #fff; }
.area-card-alt { background: var(--navy); color: #fff; border-color: var(--navy); }
.area-card-alt i { background: rgba(255,255,255,.1); }

/* ---------- Insurance ---------- */
.insurance { background: var(--gold-soft); }
.insurance-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.insurance-text p { color: var(--muted); margin-bottom: 28px; }
.insurance-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.insurance-list li {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  padding: 18px 20px;
  border-radius: 12px;
  font-weight: 500; color: var(--navy);
  box-shadow: 0 4px 14px rgba(0, 9, 68, .05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.insurance-list li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.insurance-list li i { color: var(--gold-dark); font-size: 20px; width: 24px; text-align: center; }
.insurance-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all .35s ease;
}
.why-card i {
  width: 74px; height: 74px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  color: var(--navy);
  font-size: 28px;
  margin-bottom: 20px;
  transition: all .35s ease;
}
.why-card h4 { font-family: var(--font-head); font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 14.5px; }
.why-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-6px); }
.why-card:hover i { background: var(--navy); color: var(--gold); border-style: solid; border-color: var(--navy); }

/* ---------- Motto ---------- */
.motto {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  text-align: center;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.motto::before,
.motto::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 1px solid rgba(245, 185, 20, .2);
}
.motto::before { width: 400px; height: 400px; top: -200px; left: -120px; }
.motto::after { width: 300px; height: 300px; bottom: -150px; right: -80px; }
.motto-inner { position: relative; z-index: 1; }
.motto-inner > i { font-size: 40px; color: var(--gold); margin-bottom: 14px; display: block; }
.motto h2 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 44px); line-height: 1.35; }
.motto h2 span { color: var(--gold); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-item {
  display: flex; gap: 18px;
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--navy); color: var(--gold);
  font-size: 19px;
}
.info-item h4 { color: var(--navy); margin-bottom: 4px; }
.info-item p { color: var(--muted); font-size: 14.5px; }
.info-item a:hover { color: var(--gold); }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.map-wrap {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  background: var(--border);
}
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-link {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 50px;
  background: var(--navy); color: #fff;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow);
  transition: background .3s ease, color .3s ease;
}
.map-link:hover { background: var(--gold); color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: #00052e; color: #aeb3d8; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 70px; padding-bottom: 50px; }
.footer-col .logo { margin-bottom: 18px; }
.footer-col h4 { color: #fff; font-family: var(--font-head); font-size: 19px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--gold); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a:hover { color: var(--gold); }
.footer-motto { margin-top: 14px; color: var(--gold-2); font-style: italic; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact i { color: var(--gold); margin-top: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center; font-size: 13.5px; }

/* ---------- Floating buttons ---------- */
.float-call {
  position: fixed; right: 22px; bottom: 92px; z-index: 90;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-size: 24px;
  box-shadow: 0 8px 22px rgba(245, 185, 20, .45);
  animation: pulseCall 2.2s infinite;
  transition: transform .3s ease;
}
.float-call i { animation: ring 1.8s ease-in-out infinite; }
.float-call:hover { transform: scale(1.08); }
@keyframes pulseCall {
  0% { box-shadow: 0 0 0 0 rgba(245, 185, 20, .55); }
  70% { box-shadow: 0 0 0 16px rgba(245, 185, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 185, 20, 0); }
}
@keyframes ring {
  0%, 50%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  transition: transform .3s ease;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25d366; color: #fff;
  font-size: 30px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .45);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.back-to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-size: 18px; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy); color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-whatsapp,
  .float-call,
  .float-call i { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h); right: 0;
    width: min(320px, 85vw);
    height: calc(100vh - var(--header-h));
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 30px 28px;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 9, 68, .12);
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--gold); }
  .nav-cta { margin-top: 16px; }

  .about-grid,
  .insurance-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 50px; }
  .about-media { height: 440px; }

  .core-grid,
  .services-grid,
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stat:nth-child(3) { border-left: 0; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 15px; }
  .section { padding: 70px 0; }
  .container { padding: 0 16px; }

  .topbar-right { display: none; }
  .topbar-left { gap: 14px; font-size: 12px; }

  .logo-icon { width: 40px; height: 40px; font-size: 17px; }
  .logo-text strong { font-size: 19px; }
  .logo-img { height: 52px; }
  .logo-img-footer { height: 76px; }

  .hero { padding: 60px 0 70px; min-height: auto; }
  .hero p { font-size: 15.5px; }

  .stat h3 { font-size: 36px; }

  .about-media { height: 340px; }
  .about-exp { left: 12px; bottom: 12px; padding: 12px 16px; }
  .about-exp strong { font-size: 32px; }

  .core-grid,
  .services-grid,
  .why-grid,
  .insurance-list { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .area-card { padding: 16px; gap: 10px; font-size: 14px; }
  .area-card i { width: 34px; height: 34px; font-size: 14px; }
  .area-card-alt { grid-column: 1 / -1; }

  .contact-actions .btn { flex: 1; justify-content: center; }
  .map-wrap { min-height: 340px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 50px; }

  .services { background-attachment: scroll; }
}
