/*
Theme Name: Emaraat Associates
Theme URI: https://emaraatassociates.com
Author: Emaraat Associates & Builders
Author URI: https://emaraatassociates.com
Description: Premium boutique real estate developer theme — Build. Invest. Transform.
Version: 1.0.0
License: Commercial
Text Domain: emaraat
*/

/* ================================================================
   CSS VARIABLES — EMARAAT BRAND SYSTEM
================================================================ */
:root {
  /* Core palette */
  --white:       #F8F6F3;
  --concrete:    #2D2D2D;
  --copper:      #B87333;
  --copper-dark: #5C4033;
  --copper-lite: #D4956A;
  --stone:       #E8E4DF;
  --stone-dark:  #C8C2BA;
  --muted:       #7A7670;
  --border:      rgba(184,115,51,.15);
  --border-hard: rgba(184,115,51,.30);

  /* Typography */
  --fh: 'Playfair Display', Georgia, serif;
  --fb: 'Inter', 'Segoe UI', Arial, sans-serif;

  /* Spacing */
  --section-pad: 100px 60px;
  --section-pad-sm: 60px 24px;
  --max-w: 1200px;
  --radius: 12px;
  --radius-sm: 8px;

  /* Transitions */
  --ease: all .25s ease;
}

/* ================================================================
   RESET & BASE
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--fb);
  background: var(--white);
  color: var(--concrete);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: 80px;
}
body.admin-bar { padding-top: 112px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--fb); }

/* ================================================================
   TYPOGRAPHY
================================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--fh);
  font-weight: 700;
  line-height: 1.2;
  color: var(--concrete);
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(20px, 3vw, 28px); }
h4 { font-size: 20px; }
p { color: var(--muted); line-height: 1.8; }

.em-eyebrow {
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.em-eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--copper);
  display: block;
}
.em-section-title { margin-bottom: 16px; }
.em-section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* ================================================================
   LAYOUT UTILITIES
================================================================ */
.em-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 60px;
}
@media (max-width: 768px) { .em-container { padding: 0 24px; } }

.em-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.em-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.em-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .em-grid-3 { grid-template-columns: 1fr 1fr; } .em-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .em-grid-2, .em-grid-3, .em-grid-4 { grid-template-columns: 1fr; } }

/* ================================================================
   BUTTONS
================================================================ */
.em-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--fb);
  transition: var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.em-btn-primary {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}
.em-btn-primary:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  transform: translateY(-2px);
}
.em-btn-outline {
  background: transparent;
  color: var(--concrete);
  border-color: var(--concrete);
}
.em-btn-outline:hover {
  background: var(--concrete);
  color: var(--white);
}
.em-btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.em-btn-outline-white:hover {
  background: var(--white);
  color: var(--concrete);
}
.em-btn-lg { padding: 16px 36px; font-size: 15px; }
.em-btn-sm { padding: 10px 20px; font-size: 13px; }

/* ================================================================
   HEADER / NAVIGATION
================================================================ */
#em-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(248,246,243,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--ease);
}
#em-header.scrolled {
  box-shadow: 0 4px 30px rgba(45,45,45,.08);
}
.em-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 80px;
}
@media (max-width: 768px) { .em-nav-inner { padding: 0 24px; } }

/* Logo */
.em-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.em-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--copper);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.em-logo-text { display: flex; flex-direction: column; }
.em-logo-name {
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
  color: var(--concrete);
  line-height: 1;
}
.em-logo-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: 2px;
}

/* Desktop nav links */
.em-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.em-nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--ease);
}
.em-nav-links a:hover, .em-nav-links a.active {
  color: var(--concrete);
  background: var(--stone);
}
.em-nav-links a.em-nav-highlight {
  color: var(--copper) !important;
  border: 1px solid var(--border-hard);
  border-radius: 50px;
  padding: 7px 16px;
}
.em-nav-links a.em-nav-highlight:hover {
  background: var(--copper);
  color: var(--white) !important;
  border-color: var(--copper);
}

/* Nav CTA */
.em-nav-cta { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.em-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.em-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--concrete);
  border-radius: 2px;
  transition: var(--ease);
}
@media (max-width: 1024px) {
  .em-nav-links { display: none; }
  .em-nav-cta .em-btn-outline { display: none; }
  .em-hamburger { display: flex; }
}

/* Mobile menu */
.em-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--stone);
  padding: 16px 24px 20px;
}
.em-mobile-menu.open { display: flex; }
.em-mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--concrete);
  padding: 12px 0;
  border-bottom: 1px solid var(--stone);
}
.em-mobile-menu a:last-child { border: none; color: var(--copper); font-weight: 700; }

/* ================================================================
   HERO SECTION
================================================================ */
.em-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--concrete);
}
.em-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: .35;
}
.em-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 60px;
  width: 100%;
}
@media (max-width: 768px) { .em-hero-content { padding: 0 24px; } }
.em-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.em-hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--copper);
}
.em-hero h1 {
  color: var(--white);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 700px;
}
.em-hero h1 em {
  font-style: italic;
  color: var(--copper);
}
.em-hero-sub {
  font-size: 18px;
  color: rgba(248,246,243,.65);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.em-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.em-hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}
.em-hero-stat-val {
  font-family: var(--fh);
  font-size: 36px;
  font-weight: 700;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 4px;
}
.em-hero-stat-lbl {
  font-size: 12px;
  color: rgba(248,246,243,.55);
  font-weight: 500;
  letter-spacing: .5px;
}
.em-hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(248,246,243,.45);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.em-hero-scroll::after {
  content: '';
  width: 40px;
  height: 1px;
  background: rgba(248,246,243,.3);
}

/* ================================================================
   THREE PILLARS SECTION
================================================================ */
.em-pillars {
  padding: var(--section-pad);
  background: var(--white);
}
.em-pillar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}
.em-pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--copper);
  transform: scaleX(0);
  transition: transform .3s ease;
  transform-origin: left;
}
.em-pillar-card:hover { border-color: var(--border-hard); transform: translateY(-4px); }
.em-pillar-card:hover::before { transform: scaleX(1); }
.em-pillar-icon {
  width: 52px;
  height: 52px;
  background: rgba(184,115,51,.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 22px;
}
.em-pillar-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--concrete);
}
.em-pillar-card p { font-size: 14px; margin-bottom: 24px; }
.em-pillar-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--ease);
}
.em-pillar-link:hover { gap: 10px; }

/* ================================================================
   PROJECT CARD
================================================================ */
.em-projects { padding: var(--section-pad); background: var(--stone); }
.em-proj-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--ease);
}
.em-proj-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(45,45,45,.1); }
.em-proj-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--stone);
}
.em-proj-body { padding: 28px; }
.em-proj-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(184,115,51,.1);
  color: var(--copper-dark);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.em-proj-name {
  font-family: var(--fh);
  font-size: 22px;
  color: var(--concrete);
  margin-bottom: 6px;
}
.em-proj-loc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.em-proj-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--stone);
  border-radius: var(--radius-sm);
}
.em-proj-spec-label { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.em-proj-spec-val { font-size: 14px; font-weight: 600; color: var(--concrete); font-family: var(--fh); }

/* ================================================================
   INVEST PLATFORM SECTION
================================================================ */
.em-invest {
  padding: var(--section-pad);
  background: var(--concrete);
  color: var(--white);
}
.em-invest h2 { color: var(--white); }
.em-invest .em-eyebrow { color: var(--copper); }
.em-invest .em-section-sub { color: rgba(248,246,243,.6); }
.em-invest-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .em-invest-steps { grid-template-columns: 1fr 1fr; } }
.em-invest-step {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: rgba(255,255,255,.04);
}
.em-invest-step-num {
  font-family: var(--fh);
  font-size: 40px;
  font-weight: 700;
  color: var(--copper);
  opacity: .4;
  line-height: 1;
  margin-bottom: 12px;
}
.em-invest-step h4 { color: var(--white); font-size: 16px; margin-bottom: 8px; }
.em-invest-step p { font-size: 13px; color: rgba(248,246,243,.5); }
.em-waitlist-box {
  background: rgba(184,115,51,.12);
  border: 1px solid rgba(184,115,51,.25);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.em-waitlist-box h3 { color: var(--white); margin-bottom: 10px; }
.em-waitlist-box p { color: rgba(248,246,243,.6); margin-bottom: 28px; }
.em-waitlist-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.em-waitlist-form input {
  flex: 1;
  padding: 13px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-family: var(--fb);
  font-size: 14px;
  outline: none;
}
.em-waitlist-form input::placeholder { color: rgba(248,246,243,.35); }
.em-waitlist-form input:focus { border-color: var(--copper); }
@media (max-width: 600px) { .em-waitlist-form { flex-direction: column; } }

/* ================================================================
   AGENCY / SERVICES SECTION
================================================================ */
.em-agency { padding: var(--section-pad); background: var(--white); }
.em-service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--ease);
}
.em-service-card:hover {
  border-color: var(--copper);
  background: rgba(184,115,51,.02);
}
.em-service-icon { font-size: 28px; margin-bottom: 18px; }
.em-service-card h4 { font-size: 18px; margin-bottom: 10px; color: var(--concrete); }
.em-service-card p { font-size: 13px; line-height: 1.75; }

/* ================================================================
   TRUST / ABOUT STRIP
================================================================ */
.em-trust {
  padding: 60px;
  background: var(--stone);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.em-trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.em-trust-stat { text-align: center; }
.em-trust-val {
  font-family: var(--fh);
  font-size: 36px;
  font-weight: 700;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 4px;
}
.em-trust-lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.em-trust-divider { width: 1px; height: 48px; background: var(--border-hard); }
@media (max-width: 768px) { .em-trust { padding: var(--section-pad-sm); } .em-trust-divider { display: none; } .em-trust-inner { justify-content: center; gap: 32px; } }

/* ================================================================
   CTA SECTION
================================================================ */
.em-cta-section {
  padding: var(--section-pad);
  background: var(--copper);
  text-align: center;
}
.em-cta-section h2 { color: var(--white); margin-bottom: 16px; }
.em-cta-section p { color: rgba(255,255,255,.75); max-width: 500px; margin: 0 auto 36px; font-size: 17px; }
.em-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   FOOTER
================================================================ */
#em-footer {
  background: #1A1A1A;
  color: rgba(248,246,243,.6);
  padding: 64px 60px 28px;
}
@media (max-width: 768px) { #em-footer { padding: 48px 24px 24px; } }
.em-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto 48px;
}
@media (max-width: 1024px) { .em-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .em-footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.em-footer-brand-name {
  font-family: var(--fh);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.em-footer-brand-tag {
  font-size: 9px;
  color: var(--copper);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}
.em-footer-brand p { font-size: 13.5px; line-height: 1.75; margin-bottom: 20px; }
.em-footer-secp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(184,115,51,.8);
  border: 1px solid rgba(184,115,51,.2);
  border-radius: 20px;
  padding: 5px 12px;
}
.em-footer-col h4 {
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--copper);
  margin-bottom: 18px;
}
.em-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.em-footer-col ul li a {
  font-size: 13.5px;
  color: rgba(248,246,243,.5);
  transition: var(--ease);
}
.em-footer-col ul li a:hover { color: var(--copper); padding-left: 4px; }
.em-footer-contact { font-size: 13px; line-height: 2; }
.em-footer-contact a { color: rgba(248,246,243,.5); transition: var(--ease); }
.em-footer-contact a:hover { color: var(--copper); }
.em-footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.em-footer-bottom a { color: var(--copper); }

/* ================================================================
   UTILITY CLASSES
================================================================ */
.em-text-center { text-align: center; }
.em-text-copper { color: var(--copper); }
.em-bg-stone { background: var(--stone); }
.em-bg-concrete { background: var(--concrete); }
.em-italic { font-style: italic; }
.em-hidden { display: none; }

/* ================================================================
   ANIMATIONS
================================================================ */
@keyframes em-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.em-animate { animation: em-fade-up .6s ease forwards; }
.em-animate-delay-1 { animation-delay: .1s; opacity: 0; }
.em-animate-delay-2 { animation-delay: .2s; opacity: 0; }
.em-animate-delay-3 { animation-delay: .3s; opacity: 0; }

/* ================================================================
   RESPONSIVE — SECTION PADDING
================================================================ */
@media (max-width: 768px) {
  :root { --section-pad: 60px 24px; }
  .em-hero-stats { gap: 28px; }
  .em-hero-scroll { display: none; }
  .em-invest-steps { grid-template-columns: 1fr 1fr; }
  .em-waitlist-box { padding: 28px 20px; }
}
