/* ============================================
   Mahmood Real Estate — Full Design System
   Primary: #162d4a  Gold: #c9a84c
   ============================================ */

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

:root {
  --primary:      #162d4a;
  --primary-dark: #0d1e33;
  --primary-mid:  #1e3d63;
  --gold:         #c9a84c;
  --gold-light:   #e8c96a;
  --black:        #111827;
  --dark-gray:    #374151;
  --mid-gray:     #6b7280;
  --light-gray:   #f3f4f6;
  --border:       #e5e7eb;
  --white:        #ffffff;
  --green:        #16a34a;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:    0 10px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl:    0 20px 60px rgba(0,0,0,0.18);
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --font-body:    'Rubik', 'Lato', Arial, sans-serif;
  --font-script:  'Dancing Script', cursive;
  /* legacy aliases so old class names still resolve */
  --red:          #162d4a;
  --dark-red:     #0d1e33;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--black); background: var(--white); line-height: 1.6; font-size: 16px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; }

/* ============================================
   HEADER BANNER
   ============================================ */
.site-header-banner {
  background-size: cover; background-position: center; background-repeat: no-repeat;
  width: 100%; overflow: hidden; max-height: 300px;
}
.header-banner-inner {
  display: flex; align-items: stretch; justify-content: space-between;
  max-width: 100%; max-height: 300px;
}
.header-col-logo  { flex: 0 0 38%; display: block; overflow: hidden; }
.header-col-logo img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: left center; }
.header-col-middle { flex: 0 0 10%; }
.header-col-agent { flex: 0 0 44%; display: block; overflow: hidden; }
.header-col-agent img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: right center; }

/* ============================================
   STICKY NAV
   ============================================ */
header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-md);
}
header .container { display: flex; align-items: center; justify-content: flex-end; padding: 0 20px; min-height: 54px; }

nav ul { list-style: none; display: flex; gap: 0; align-items: center; }
nav ul li { position: relative; }
nav ul li > a {
  display: block; padding: 14px 16px;
  font-size: 0.9rem; font-weight: 600; color: var(--dark-gray);
  transition: background 0.18s, color 0.18s; white-space: nowrap; letter-spacing: 0.2px;
}
nav ul li > a:hover,
nav ul li > a.active { background: var(--primary); color: #fff; }

nav ul li .dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border-top: 3px solid var(--primary);
  min-width: 215px; box-shadow: var(--shadow-lg); z-index: 999;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
nav ul li:hover .dropdown { display: block; }
nav ul li .dropdown li a {
  display: block; padding: 11px 18px; font-size: 0.87rem; font-weight: 500;
  border-bottom: 1px solid var(--border); color: var(--dark-gray);
  transition: background 0.15s, color 0.15s;
}
nav ul li .dropdown li:last-child a { border-bottom: none; }
nav ul li .dropdown li a:hover { background: var(--light-gray); color: var(--primary); padding-left: 24px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--dark-gray); transition: 0.3s; border-radius: 2px; }

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.script-heading { font-family: var(--font-script); font-size: 5rem; font-weight: 600; line-height: 1.15; color: var(--white); }
.script-heading.dark  { color: var(--black); }
.script-heading.light { color: var(--white); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header .label {
  display: inline-block; color: var(--primary); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px;
  background: rgba(22,45,74,0.07); padding: 4px 14px; border-radius: 20px;
}
.section-header h2 { font-size: 2.1rem; font-weight: 800; color: var(--black); }
.section-header p { color: var(--mid-gray); margin-top: 10px; font-size: 1.05rem; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: var(--white);
  padding: 15px 36px; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; border-radius: var(--radius-sm);
  border: 2px solid var(--primary); cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(22,45,74,0.3);
}
.btn-cta:hover {
  background: var(--primary-mid); border-color: var(--primary-mid);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,45,74,0.35);
}
.btn-cta:active { transform: translateY(0); }

.btn-cta-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--primary);
  padding: 15px 36px; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; border-radius: var(--radius-sm);
  border: 2px solid var(--gold); cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(201,168,76,0.35);
}
.btn-cta-gold:hover {
  background: var(--gold-light); border-color: var(--gold-light);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.4);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--primary);
  padding: 13px 34px; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; border-radius: var(--radius-sm);
  border: 2px solid var(--primary); cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

.btn-cta-light {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,0.85); color: var(--white);
  padding: 14px 32px; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; border-radius: var(--radius-sm);
  transition: background 0.2s, border-color 0.2s;
}
.btn-cta-light:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider { position: relative; height: 650px; overflow: hidden; }
.slider-track { width: 100%; height: 100%; position: relative; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.9s ease;
}
.slide.active { opacity: 1; }
.slider-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.12) 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.slider-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
  transition: background 0.25s, transform 0.25s; border: none;
}
.dot.active { background: var(--white); transform: scale(1.3); }

/* ============================================
   LOOKING TO
   ============================================ */
.looking-to { background: var(--primary); padding: 70px 20px; text-align: center; }
.action-btns { display: flex; justify-content: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.action-btn {
  background: transparent; border: 2px solid rgba(255,255,255,0.7); color: var(--white);
  padding: 16px 64px; font-size: 1rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; transition: background 0.2s, border-color 0.2s, transform 0.15s;
  border-radius: var(--radius-sm);
}
.action-btn:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-2px); }

/* ============================================
   AGENT BIO
   ============================================ */
.agent-bio-section { padding: 100px 0; background: var(--white); }
.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.bio-divider { border: none; border-top: 3px solid var(--gold); width: 60px; margin: 18px 0 26px; }
.bio-content p { font-size: 1.05rem; color: var(--mid-gray); margin-bottom: 18px; line-height: 1.85; }
.bio-photo { position: relative; }
.bio-photo img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.bio-photo::before {
  content: ''; position: absolute; top: 20px; left: -20px;
  width: 100%; height: 100%;
  border: 3px solid var(--gold); border-radius: var(--radius-lg); z-index: -1; opacity: 0.4;
}

/* ============================================
   LISTINGS
   ============================================ */
.listings-section { padding: 90px 0; background: var(--light-gray); }
.listings-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.listing-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
}
.listing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.listing-img { position: relative; height: 240px; overflow: hidden; }
.listing-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.listing-card:hover .listing-img img { transform: scale(1.06); }
.listing-img.no-img {
  background: linear-gradient(135deg, #dce4ee, #c4cedd);
  display: flex; align-items: center; justify-content: center;
}
.img-placeholder { font-size: 4rem; opacity: 0.2; }
.listing-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}
.badge-active { background: rgba(22,163,74,0.9); color: #fff; }
.badge-sold   { background: rgba(22,45,74,0.9);  color: #fff; }
.listing-body { padding: 24px; }
.listing-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.listing-address { font-size: 1rem; font-weight: 700; color: var(--black); margin-bottom: 3px; }
.listing-area { font-size: 0.83rem; color: var(--mid-gray); margin-bottom: 14px; }
.listing-specs {
  display: flex; gap: 16px; font-size: 0.82rem; color: var(--mid-gray);
  flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 14px;
}
.listing-specs span { display: flex; align-items: center; gap: 4px; }
.listing-mls { font-size: 0.72rem; color: #bbb; margin-top: 10px; }

/* ============================================
   DREAM HOME
   ============================================ */
.dream-home-grid { display: grid; grid-template-columns: 1fr 1fr; }
.dream-home-img { height: 460px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.dream-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,30,51,0.75) 0%, rgba(13,30,51,0.25) 60%, transparent 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 44px; transition: background 0.35s;
}
.dream-home-img:hover .dream-overlay {
  background: linear-gradient(to top, rgba(13,30,51,0.85) 0%, rgba(13,30,51,0.4) 60%, transparent 100%);
}

/* ============================================
   CALCULATORS
   ============================================ */
.calculators-section { padding: 90px 0; background: var(--white); }
.calc-btns-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.calc-btn {
  background: var(--primary); color: var(--white);
  padding: 28px 16px; text-align: center; font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius-md); transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  line-height: 1.45; border: 2px solid var(--primary);
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.calc-btn:hover {
  background: var(--primary-mid); border-color: var(--primary-mid);
  transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.calc-btn-icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }

/* ============================================
   CONTACT HOME SECTION
   ============================================ */
.contact-home-section { padding: 100px 0; background: var(--light-gray); }
.contact-home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.contact-home-img img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }

/* ============================================
   FORMS (shared)
   ============================================ */
.form-controls { margin-bottom: 18px; }
.form-controls label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--dark-gray); }
.form-controls .req { color: #e05252; margin-left: 2px; }
.form-controls input,
.form-controls textarea,
.form-controls select,
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--black);
  background: var(--white); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-controls input:focus,
.form-controls textarea:focus,
.form-controls select:focus,
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,45,74,0.1); }
.form-controls textarea,
.contact-form textarea { resize: vertical; min-height: 130px; }
.w4r-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Contact info card */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info-card { background: var(--primary); border-radius: var(--radius-lg); padding: 36px; color: #fff; }
.contact-info-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 28px; color: #fff; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.ci-icon {
  width: 44px; height: 44px; background: rgba(255,255,255,0.15); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
  font-size: 1.1rem; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1);
}
.ci-text strong { display: block; font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.ci-text span { font-size: 0.95rem; color: rgba(255,255,255,0.9); display: block; }

/* ============================================
   INNER PAGE HERO
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-mid) 100%);
  color: #fff; padding: 64px 20px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { font-family: var(--font-script); font-size: 3.2rem; font-weight: 600; margin-bottom: 10px; position: relative; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.05rem; position: relative; }
.page-hero .gold-bar { display: inline-block; width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin: 14px auto 0; display: block; }

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section { padding: 70px 0; }
.content-section h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 16px; color: var(--black); }
.content-section h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.content-section p { color: var(--mid-gray); margin-bottom: 18px; line-height: 1.8; font-size: 1rem; }
.content-section ul { padding-left: 0; margin-bottom: 20px; list-style: none; }
.content-section ul li {
  margin-bottom: 10px; line-height: 1.7; color: var(--mid-gray);
  padding-left: 22px; position: relative; font-size: 1rem;
}
.content-section ul li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}

.info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 32px; }
.info-card {
  background: var(--white); border-radius: var(--radius-md); padding: 28px;
  border: 1px solid var(--border); border-top: 4px solid var(--primary);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s;
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.info-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1rem; }
.info-card p { color: var(--mid-gray); font-size: 0.93rem; line-height: 1.7; margin: 0; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-photo { width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); background: #fff; }
.about-photo img { width: 100%; height: auto; object-fit: contain; display: block; }

/* ============================================
   CALCULATORS (inner page)
   ============================================ */
.calc-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.calc-box h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; color: var(--black); display: flex; align-items: center; gap: 10px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calc-field { margin-bottom: 4px; }
.calc-field label { display: block; font-size: 0.83rem; font-weight: 600; margin-bottom: 6px; color: var(--dark-gray); }
.calc-field input,
.calc-field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.93rem; font-family: var(--font-body);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s; color: var(--black);
}
.calc-field input:focus,
.calc-field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,45,74,0.1); }
.calc-field .checkbox-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.calc-field .checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.calc-result-box {
  background: var(--light-gray); border-left: 4px solid var(--primary);
  border-radius: var(--radius-md); padding: 24px; margin-top: 20px;
  color: var(--primary);
}
.calc-result-box p { margin-bottom: 10px; font-size: 0.95rem; color: var(--dark-gray); }
.calc-result-box strong { color: var(--primary); font-weight: 700; }
.calc-result-box .big-num { font-size: 1.6rem; font-weight: 800; color: var(--primary); display: block; margin-top: 4px; }

/* ============================================
   TABLES
   ============================================ */
table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.9rem; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
th { background: var(--primary); color: #fff; padding: 13px 18px; text-align: left; font-size: 0.83rem; text-transform: uppercase; letter-spacing: 0.5px; }
td { padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--dark-gray); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--light-gray); }

/* ============================================
   BLOG
   ============================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.blog-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
  background: var(--white); transition: box-shadow 0.25s, transform 0.25s; cursor: pointer;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.blog-img {
  height: 190px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.2); position: relative; overflow: hidden;
}
.blog-img-icon { font-size: 3.5rem; opacity: 0.18; }
.blog-body { padding: 22px; }
.blog-category {
  display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--primary); background: rgba(22,45,74,0.08);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.blog-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.45; color: var(--black); }
.blog-excerpt { font-size: 0.85rem; color: var(--mid-gray); line-height: 1.68; margin-bottom: 14px; }
.blog-date { font-size: 0.72rem; color: #aaa; }
.blog-read-more { font-size: 0.82rem; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; transition: gap 0.2s; }
.blog-card:hover .blog-read-more { gap: 8px; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 30px; position: relative;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.testimonial-card::before {
  content: '\201C'; font-size: 5rem; color: var(--primary); opacity: 0.08;
  position: absolute; top: 8px; left: 16px; line-height: 1; font-family: Georgia, serif;
}
.stars { color: var(--gold); font-size: 1.05rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-text { font-size: 0.95rem; color: var(--mid-gray); line-height: 1.78; margin-bottom: 20px; padding-top: 8px; font-style: italic; }
.testimonial-footer { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.testimonial-author { font-weight: 700; font-size: 0.9rem; color: var(--black); }
.testimonial-detail { font-size: 0.78rem; color: var(--mid-gray); margin-top: 1px; }

.no-reviews-state {
  grid-column: 1/-1; text-align: center; padding: 60px 20px;
  background: var(--light-gray); border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}
.no-reviews-state p { color: var(--mid-gray); font-size: 1rem; }

/* Review submission form */
.review-form-section { background: var(--primary); border-radius: var(--radius-lg); padding: 44px; color: #fff; }
.review-form-section h2 { color: #fff; margin-bottom: 6px; }
.review-form-section p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.review-form-section .form-controls label { color: rgba(255,255,255,0.85); }
.review-form-section .form-controls input,
.review-form-section .form-controls textarea,
.review-form-section .form-controls select {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.review-form-section .form-controls input::placeholder,
.review-form-section .form-controls textarea::placeholder { color: rgba(255,255,255,0.4); }
.review-form-section .form-controls input:focus,
.review-form-section .form-controls textarea:focus,
.review-form-section .form-controls select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.2); }
.star-picker { display: flex; gap: 6px; margin-bottom: 18px; }
.star-picker span { font-size: 1.8rem; cursor: pointer; color: rgba(255,255,255,0.3); transition: color 0.15s; line-height: 1; }
.star-picker span.lit { color: var(--gold); }
.form-success-msg { display: none; background: rgba(22,163,74,0.2); border: 1px solid rgba(22,163,74,0.4); border-radius: var(--radius-sm); padding: 14px 18px; color: #6ee7a0; font-weight: 600; margin-top: 16px; }

/* ============================================
   FOOTER
   ============================================ */
footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; gap: 40px; }
.footer-fav-big { width: 260px; height: 260px; object-fit: contain; opacity: 0.92; flex-shrink: 0; }
.footer-right { display: flex; align-items: center; gap: 32px; }
.footer-agent-pic { width: 260px; height: 260px; border-radius: 50%; object-fit: contain; border: 4px solid rgba(255,255,255,0.2); background: #fff; flex-shrink: 0; }
.footer-agent-info { display: flex; flex-direction: column; gap: 11px; }
.footer-agent-info h3 { color: #fff; font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.footer-agent-info > span { color: var(--gold); font-size: 1rem; font-weight: 600; }
.footer-agent-info p { font-size: 1rem; color: rgba(255,255,255,0.78); line-height: 1.4; }
.footer-agent-info a { color: rgba(255,255,255,0.78); transition: color 0.18s; }
.footer-agent-info a:hover { color: var(--gold); }
.footer-icon { display: inline-block; width: 1.4em; font-style: normal; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 10px;
}
/* legacy footer classes used in inner pages */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand h3 { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.footer-brand .brokerage { color: var(--gold); font-size: 0.8rem; display: block; margin-bottom: 14px; }
.footer-contact p { margin-bottom: 5px; font-size: 0.83rem; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-col h4 { color: #fff; font-size: 0.83rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: 0.82rem; color: rgba(255,255,255,0.6); transition: color 0.18s; }
.footer-col ul li a:hover { color: var(--gold); }

/* ============================================
   STEP CARDS (buy/sell process)
   ============================================ */
.steps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 32px; }
.step-card {
  background: var(--white); border-radius: var(--radius-md); padding: 30px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s; display: flex; gap: 20px; align-items: flex-start;
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step-number {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-body h3 { color: var(--primary); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-body p { color: var(--mid-gray); font-size: 0.93rem; line-height: 1.7; margin: 0; }

/* highlight boxes */
.highlight-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius-lg); padding: 44px; color: #fff; text-align: center;
  margin-top: 48px;
}
.highlight-box h2 { color: #fff !important; font-size: 1.7rem; margin-bottom: 12px; }
.highlight-box p { color: #fff !important; margin-bottom: 28px; font-size: 1rem; }

/* home evaluation form card */
.eval-form-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.eval-form-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 22px; color: var(--primary); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .bio-grid           { grid-template-columns: 1fr; gap: 40px; }
  .bio-photo::before  { display: none; }
  .listings-grid      { grid-template-columns: repeat(2,1fr); }
  .calc-btns-grid     { grid-template-columns: repeat(2,1fr); }
  .contact-home-grid  { grid-template-columns: 1fr; }
  .contact-grid       { grid-template-columns: 1fr; }
  .dream-home-grid    { grid-template-columns: 1fr; }
  .info-grid          { grid-template-columns: 1fr; }
  .steps-grid         { grid-template-columns: 1fr; }
  .footer-top         { flex-direction: column; gap: 32px; align-items: flex-start; }
  .footer-right       { flex-direction: column; align-items: flex-start; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .header-col-middle  { display: none; }
  .testimonials-grid  { grid-template-columns: 1fr; }
  .blog-grid          { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .site-header-banner { display: none; }
  nav ul {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 2px solid var(--primary);
    box-shadow: var(--shadow-lg); padding: 8px 0; z-index: 999;
  }
  nav ul.open { display: flex; }
  nav ul li .dropdown { position: static; box-shadow: none; border-top: none; background: var(--light-gray); display: none; border-radius: 0; }
  nav ul li.open-sub .dropdown { display: block; }
  .nav-toggle { display: flex; }
  header .container { justify-content: space-between; padding: 0 16px; }
  header .container::before { content: 'Mahmood Mughal'; font-size: 1.05rem; font-weight: 700; color: var(--black); }
  .hero-slider        { height: 300px; }
  .script-heading     { font-size: 2.8rem; }
  .listings-grid      { grid-template-columns: 1fr; }
  .calc-btns-grid     { grid-template-columns: 1fr 1fr; }
  .blog-grid          { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr; gap: 24px; }
  .footer-agent-pic   { width: 160px; height: 160px; }
  .footer-fav-big     { width: 160px; height: 160px; }
  .footer-agent-info h3 { font-size: 1.4rem; }
  .calc-row           { grid-template-columns: 1fr; }
  .w4r-form .form-row { grid-template-columns: 1fr; }
  .action-btn         { padding: 14px 36px; }
  .page-hero h1       { font-size: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
