/*
Theme Name: Shahbazi Homes
Theme URI: https://shahbazihomes.com
Author: Shahbazi Homes
Description: A polished, responsive real estate theme for Manochehr Shahbazi, Real Estate Broker at RE/MAX Excel Realty Inc.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: shahbazi-homes
*/

:root {
  --navy: #102a43;
  --navy-deep: #081b2d;
  --blue: #2f73bd;
  --blue-light: #eaf3fb;
  --gold: #c9a45c;
  --ink: #17202a;
  --muted: #607080;
  --line: #dce5ec;
  --paper: #ffffff;
  --mist: #f4f7f9;
  --shadow: 0 18px 50px rgba(16, 42, 67, 0.12);
  --radius: 22px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto; width: auto; height: auto; margin: 0; padding: 12px 18px;
  top: 8px; left: 8px; z-index: 9999; color: var(--navy); background: white;
}
.site-wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 229, 236, 0.8);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); flex: 0 0 auto; }
.brand:hover { color: var(--navy); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: white; background: linear-gradient(145deg, var(--blue), var(--navy));
  font-weight: 800; letter-spacing: -1px;
}
.brand-copy { display: grid; line-height: 1.14; }
.brand-name { font-weight: 800; letter-spacing: -0.02em; }
.brand-role { color: var(--muted); font-size: 0.74rem; font-weight: 600; }
.custom-logo { max-height: 54px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; }
.site-nav a { color: #344454; font-size: 0.92rem; font-weight: 650; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--blue); }
.header-cta { margin-left: 6px; }
.menu-toggle {
  display: none; margin-left: auto; border: 1px solid var(--line); background: white;
  width: 46px; height: 46px; border-radius: 12px; color: var(--navy); cursor: pointer;
}
.menu-toggle span { display: block; width: 21px; height: 2px; margin: 5px auto; background: currentColor; }

/* Shared */
.section { padding: 96px 0; }
.section-soft { background: var(--mist); }
.section-dark { color: white; background: var(--navy-deep); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px;
  color: var(--blue); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section-dark .eyebrow { color: #9fc8ee; }
h1, h2, h3 { margin: 0 0 18px; color: var(--navy); line-height: 1.12; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.8rem, 5.4vw, 5.15rem); max-width: 760px; }
h2 { font-size: clamp(2rem, 3.7vw, 3.35rem); }
h3 { font-size: 1.3rem; }
.section-dark h2, .section-dark h3 { color: white; }
.section-intro { max-width: 680px; margin-bottom: 46px; color: var(--muted); font-size: 1.08rem; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.section-heading-row .section-intro { margin: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 24px; border: 1px solid transparent; border-radius: 999px;
  font-size: 0.94rem; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 12px 28px rgba(47,115,189,.27); }
.button-primary:hover { color: white; background: #245f9e; }
.button-secondary { color: var(--navy); background: white; border-color: var(--line); }
.button-secondary:hover { color: var(--navy); box-shadow: var(--shadow); }
.button-ghost { color: white; border-color: rgba(255,255,255,.42); }
.button-ghost:hover { color: white; background: rgba(255,255,255,.1); }
.button-small { min-height: 42px; padding: 9px 18px; }
.button svg { width: 18px; height: 18px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 82px 0 68px;
  background:
    radial-gradient(circle at 82% 18%, rgba(72,146,214,.18), transparent 34%),
    linear-gradient(135deg, #f7fafc 0%, #edf5fb 100%);
}
.hero::before {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  right: -180px; bottom: -260px; border: 80px solid rgba(255,255,255,.66);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); gap: 70px; align-items: center; }
.hero-copy p { max-width: 650px; margin: 0 0 30px; color: #526679; font-size: clamp(1.08rem, 1.5vw, 1.26rem); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 24px; margin-top: 34px; color: var(--muted); font-size: .9rem; font-weight: 650; }
.hero-trust span { display: flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: "✓"; color: white; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); font-size: .72rem; }
.hero-visual { position: relative; min-height: 500px; }
.hero-image {
  width: 100%; height: 500px; object-fit: cover; border-radius: 34px 34px 120px 34px;
  background: #dceaf5; box-shadow: 0 30px 80px rgba(16,42,67,.2);
}
.broker-card {
  position: absolute; left: -34px; bottom: 28px; max-width: 310px; padding: 22px 24px;
  border: 1px solid rgba(220,229,236,.9); border-radius: 20px; background: rgba(255,255,255,.95);
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.broker-card strong { display: block; color: var(--navy); font-size: 1.08rem; }
.broker-card span { color: var(--muted); font-size: .86rem; }
.broker-card a { display: inline-flex; margin-top: 10px; color: var(--blue); font-weight: 800; }

/* Value bar */
.value-bar { position: relative; z-index: 3; margin-top: -1px; background: var(--navy); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-item { position: relative; padding: 26px 32px; color: rgba(255,255,255,.75); text-align: center; }
.value-item + .value-item::before { content: ""; position: absolute; left: 0; top: 25%; height: 50%; width: 1px; background: rgba(255,255,255,.16); }
.value-item strong { display: block; color: white; font-size: 1.03rem; }
.value-item span { font-size: .86rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; min-height: 315px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius);
  background: white; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.service-number { color: #b7c3ce; font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.service-icon { width: 54px; height: 54px; margin: 35px 0 24px; display: grid; place-items: center; border-radius: 16px; color: var(--blue); background: var(--blue-light); }
.service-icon svg { width: 28px; height: 28px; }
.service-card p { margin: 0 0 22px; color: var(--muted); font-size: .94rem; }
.text-link { color: var(--navy); font-weight: 800; font-size: .9rem; }
.text-link::after { content: " →"; color: var(--blue); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 76px; align-items: center; }
.about-visual { position: relative; }
.about-image { width: 100%; aspect-ratio: 4/4.5; object-fit: cover; border-radius: 28px; background: #dfeaf2; box-shadow: var(--shadow); }
.about-badge {
  position: absolute; right: -24px; bottom: 34px; width: 170px; height: 170px; border-radius: 50%;
  display: grid; place-items: center; padding: 22px; color: white; text-align: center; background: var(--blue); border: 10px solid white;
  font-size: .85rem; font-weight: 750; line-height: 1.35;
}
.about-copy p { color: var(--muted); }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 28px 0 32px; }
.about-points span { display: flex; gap: 9px; align-items: center; color: var(--navy); font-weight: 700; font-size: .91rem; }
.about-points span::before { content: "✓"; color: var(--blue); }

/* Listings */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 35px rgba(16,42,67,.07); }
.listing-card-image { position: relative; aspect-ratio: 16/10; background: linear-gradient(145deg, #d8e8f4, #b4cadb); overflow: hidden; }
.listing-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.listing-card:hover .listing-card-image img { transform: scale(1.035); }
.listing-status { position: absolute; top: 16px; left: 16px; padding: 7px 11px; border-radius: 999px; color: white; background: var(--blue); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.listing-card-body { padding: 24px; }
.listing-price { color: var(--blue); font-size: 1.2rem; font-weight: 850; }
.listing-card h3 { margin: 8px 0 7px; font-size: 1.2rem; }
.listing-meta { color: var(--muted); font-size: .86rem; }
.listing-empty {
  grid-column: 1 / -1; padding: 48px; border: 1px dashed #b9c9d7; border-radius: var(--radius);
  text-align: center; background: white;
}
.listing-empty h3 { margin-bottom: 8px; }
.listing-empty p { max-width: 620px; margin: 0 auto 22px; color: var(--muted); }

/* Evaluation */
.evaluation-shell {
  position: relative; overflow: hidden; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px;
  padding: 66px; border-radius: 32px; color: white; background: linear-gradient(135deg, var(--navy-deep), #143f68);
}
.evaluation-shell::after { content: ""; position: absolute; width: 380px; height: 380px; right: -180px; top: -180px; border-radius: 50%; border: 70px solid rgba(255,255,255,.05); }
.evaluation-copy, .evaluation-form { position: relative; z-index: 2; }
.evaluation-copy h2 { color: white; }
.evaluation-copy p { color: rgba(255,255,255,.72); }
.evaluation-contact { margin-top: 28px; color: rgba(255,255,255,.75); }
.evaluation-contact a { color: white; font-weight: 800; }
.evaluation-form { padding: 30px; border-radius: 22px; background: white; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { color: #344454; font-size: .78rem; font-weight: 750; }
.form-field input, .form-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px;
  color: var(--ink); background: #fbfcfd; outline: none;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,115,189,.12); }
.form-field textarea { min-height: 92px; resize: vertical; }
.form-submit { width: 100%; margin-top: 4px; border: 0; cursor: pointer; }
.form-note { margin: 11px 0 0; color: #7a8793; font-size: .73rem; text-align: center; }
.form-status { margin-bottom: 18px; padding: 12px 15px; border-radius: 10px; color: #175c3b; background: #e7f7ef; font-weight: 700; font-size: .86rem; }
.hp-field { position: absolute !important; left: -9999px !important; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.contact-card { padding: 36px; border-radius: var(--radius); background: white; color: var(--ink); box-shadow: var(--shadow); }
.contact-list { display: grid; gap: 17px; margin-top: 30px; }
.contact-item { display: grid; grid-template-columns: 46px 1fr; gap: 13px; align-items: center; }
.contact-item-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: white; background: rgba(255,255,255,.1); }
.contact-item strong { display: block; color: white; font-size: .88rem; }
.contact-item a, .contact-item span { color: rgba(255,255,255,.72); font-size: .92rem; }
.contact-card .form-field label { color: var(--navy); }

/* Footer */
.site-footer { padding: 32px 0; color: #687988; background: #061523; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-brand { color: white; font-weight: 800; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #9fb0bf; }

/* Inner pages */
.page-hero { padding: 70px 0; color: white; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.page-hero h1 { color: white; font-size: clamp(2.3rem, 4vw, 4rem); }
.page-hero p { max-width: 670px; color: rgba(255,255,255,.7); }
.content-area { padding: 72px 0 96px; }
.entry-content { max-width: 820px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 42px; font-size: 2rem; }
.entry-content h3 { margin-top: 32px; }
.entry-content p, .entry-content li { color: #4d6071; }
.entry-content img { border-radius: 18px; }
.post-list { display: grid; gap: 28px; }
.post-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }

/* Responsive */
@media (max-width: 1040px) {
  .header-cta { display: none; }
  .site-nav ul { gap: 16px; }
  .hero-grid { grid-template-columns: 1fr .85fr; gap: 38px; }
  .hero-visual { min-height: 430px; }
  .hero-image { height: 430px; }
  .broker-card { left: -15px; }
  .about-grid { gap: 48px; }
  .evaluation-shell { padding: 48px; gap: 40px; }
}
@media (max-width: 820px) {
  .site-wrap { width: min(calc(100% - 28px), var(--wrap)); }
  .header-inner { min-height: 72px; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; margin: 0;
    padding: 18px 20px 24px; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(16,42,67,.12);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 10px 8px; }
  .hero { padding: 64px 0 52px; }
  .hero-grid, .about-grid, .evaluation-shell, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 430px; margin-top: 12px; }
  .hero-image { height: 420px; }
  .broker-card { left: 18px; right: 18px; max-width: none; }
  .services-grid, .listing-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child, .listing-card:last-child { grid-column: 1 / -1; }
  .about-visual { max-width: 580px; }
  .about-badge { right: -8px; }
  .evaluation-shell { padding: 40px 30px; }
  .section { padding: 76px 0; }
}
@media (max-width: 580px) {
  body { font-size: 16px; }
  .brand-role { display: none; }
  .brand-name { font-size: .96rem; }
  .hero { padding-top: 52px; }
  h1 { font-size: clamp(2.45rem, 12.5vw, 3.3rem); }
  .hero-trust { flex-direction: column; gap: 10px; }
  .hero-visual { min-height: 370px; }
  .hero-image { height: 350px; border-radius: 24px 24px 70px 24px; }
  .broker-card { bottom: 2px; padding: 18px; }
  .value-grid, .services-grid, .listing-grid { grid-template-columns: 1fr; }
  .value-item + .value-item::before { top: 0; left: 25%; height: 1px; width: 50%; }
  .service-card:last-child, .listing-card:last-child { grid-column: auto; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .about-points, .form-grid { grid-template-columns: 1fr; }
  .form-field-full { grid-column: auto; }
  .about-badge { width: 140px; height: 140px; font-size: .76rem; }
  .evaluation-shell { padding: 34px 20px; border-radius: 24px; }
  .evaluation-form { padding: 22px 18px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

