/* ============================================================
   afghanagent.ca — Fahim Safi, Broker of Record, CITYGATE Realty
   Premium navy + gold, mobile-first, SEO/perf-friendly
   ============================================================ */
:root {
  --navy: #102a43;
  --navy-d: #0a1c2e;
  --navy-2: #1c3a5e;
  --gold: #c19a4b;
  --gold-d: #a8843a;
  --red: #b3122a;
  --green: #0a7d4d;
  --cream: #faf8f4;
  --cream-2: #f3eee4;
  --ink: #1f2933;
  --ink-2: #3b4a5a;
  --ink-3: #6b7785;
  --line: #e7e0d3;
  --white: #fff;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(16,42,67,.07);
  --shadow-md: 0 12px 30px -12px rgba(16,42,67,.22);
  --shadow-lg: 0 28px 60px -24px rgba(16,42,67,.34);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --rtl: "Vazirmatn", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); }
.muted { color: var(--ink-3); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--sans); font-weight: 700; font-size: 15.5px; padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-d)); color: #fff; box-shadow: var(--shadow-md); }
.btn-gold:hover { box-shadow: var(--shadow-lg); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-d); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); }
.btn-lg { font-size: 16.5px; padding: 15px 30px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,248,244,.92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 18px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--navy); }
.brand-sub { font-size: 11px; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--gold-d); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 40px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 22px 22px; background: var(--cream); border-bottom: 1px solid var(--line); }
.mobile-menu a { padding: 12px 4px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 12px; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(120% 120% at 80% 0%, #143352 0%, var(--navy) 45%, var(--navy-d) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='none' stroke='%23ffffff' stroke-opacity='.03'/%3E%3C/svg%3E"); opacity: .6; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 70px 0 64px; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 16px 0 18px; }
.hero h1 .gold { color: var(--gold); }
.hero-lede { font-size: 18.5px; color: #dbe4ef; max-width: 560px; margin-bottom: 16px; }
.hero .eyebrow { color: var(--gold); }
.hero-langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.hero-langs span { font-size: 13.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: #c6d2e0; }
.hero-trust b { color: var(--gold); font-weight: 800; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; max-width: 420px; margin: 0 auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,.1); }
.hero-badge { position: absolute; left: 50%; transform: translateX(-50%); bottom: -22px; background: #fff; color: var(--navy); border-radius: 14px; padding: 12px 20px; box-shadow: var(--shadow-md); text-align: center; min-width: 230px; }
.hero-badge b { display: block; font-family: var(--serif); font-size: 17px; }
.hero-badge span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- sections ---------- */
.section { padding: 74px 0; }
.section--cream2 { background: var(--cream-2); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(27px, 3.4vw, 39px); margin: 12px 0 12px; }
.section-head p { color: var(--ink-2); font-size: 18px; }
.section--navy .section-head p { color: #cdd9e6; }

/* ---------- intro language boxes ---------- */
.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.intro-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.intro-card h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.intro-card .lang-tag { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-d); background: var(--cream-2); padding: 3px 9px; border-radius: 999px; }
.intro-card p { color: var(--ink-2); font-size: 16px; }
.intro-card.rtl { direction: rtl; text-align: right; }
.intro-card.rtl h3 { justify-content: flex-start; }
.intro-card.rtl p { font-family: var(--rtl); font-size: 18px; line-height: 2; color: var(--ink); }
.intro-card.rtl .lang-name { font-family: var(--rtl); }

/* ---------- feature/value cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold); margin-bottom: 15px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- about / split ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.split--reverse { grid-template-columns: 1.15fr .85fr; }
.split-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; max-width: 420px; }
.split h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 16px; }
.split p { color: var(--ink-2); margin-bottom: 14px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 30px; margin: 22px 0; }
.stat b { font-family: var(--serif); font-size: 34px; color: var(--gold-d); display: block; line-height: 1; }
.stat span { font-size: 14px; color: var(--ink-3); }
.checklist { list-style: none; display: grid; gap: 10px; margin: 18px 0; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--white); background: var(--green); width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 700; display: grid; place-items: center; }

/* ---------- areas grid ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-weight: 700; color: var(--navy); box-shadow: var(--shadow-sm); transition: .18s; }
.area-card:hover { border-color: var(--gold); color: var(--gold-d); transform: translateY(-2px); }
.area-card svg { color: var(--gold); flex: 0 0 auto; }

/* ---------- hiring band ---------- */
.hire { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius-lg); padding: 44px 40px; display: grid; grid-template-columns: 1.4fr .6fr; gap: 30px; align-items: center; box-shadow: var(--shadow-lg); }
.hire h2 { color: #fff; font-size: clamp(24px, 3vw, 33px); margin-bottom: 12px; }
.hire p { color: #d4deea; }
.hire .hire-cta { text-align: right; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ci-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; background: var(--cream-2); color: var(--gold-d); display: grid; place-items: center; }
.contact-item b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
.contact-item a, .contact-item span { font-size: 17px; color: var(--ink); font-weight: 600; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink-2); }
.field { margin-bottom: 16px; }
.form input, .form select, .form textarea { width: 100%; font-family: var(--sans); font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); transition: border .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-note { font-size: 13px; color: var(--ink-3); margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-d); color: #c6d2e0; padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 34px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer a { color: #c6d2e0; font-size: 15px; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; display: grid; gap: 9px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14.5px; color: #9fb0c2; margin-top: 12px; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-size: 13.5px; color: #8ea0b4; }
.footer-flags { display: flex; align-items: center; gap: 9px; }
.footer-flags img { width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.footer-flags span { font-size: 12.5px; color: #8ea0b4; }
.footer-powered { width: 100%; text-align: center; font-size: 12.5px; color: #7e90a4; padding-top: 14px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-powered .agentgo-wm { font-weight: 800; letter-spacing: -.01em; color: #eef2f6; text-decoration: none; }
.footer-powered .agentgo-wm .go { color: #13a06a; }
.footer-powered .agentgo-wm .tm { font-size: 8px; font-weight: 700; color: rgba(255,255,255,.45); vertical-align: super; margin-left: 1px; }
.footer-powered .agentgo-wm:hover .go { color: #19b878; }

/* ---------- WhatsApp ---------- */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; padding: 13px 18px 13px 15px; border-radius: 999px; box-shadow: 0 10px 26px rgba(7,94,84,.34); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.wa-fab:hover { background: #20bd5a; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(7,94,84,.42); }
.wa-fab .wa-glyph { flex: 0 0 auto; }
.wa-fab .wa-fab-label { white-space: nowrap; }
.contact-item .ci-wa { background: #e7f8ee; color: #1ebe57; }
@media (max-width: 540px) {
  .wa-fab { right: 16px; bottom: 16px; padding: 13px; gap: 0; }
  .wa-fab .wa-fab-label { display: none; }
}

/* ---------- breadcrumb (city pages) ---------- */
.crumb { font-size: 13.5px; color: #b9c6d6; padding: 18px 0 0; position: relative; z-index: 1; }
.crumb a { color: var(--gold); }

/* ---------- page hero (interior) ---------- */
.page-hero { background: radial-gradient(120% 130% at 85% 0%, #143352, var(--navy) 55%, var(--navy-d)); color: #fff; padding: 30px 0 56px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); margin: 14px 0 14px; max-width: 820px; }
.page-hero p { color: #d4deea; font-size: 18px; max-width: 680px; }
.page-hero .hero-actions { margin-top: 22px; }

/* ---------- prose ---------- */
.prose p { color: var(--ink-2); margin-bottom: 16px; }
.prose h2 { font-size: 28px; margin: 30px 0 12px; }
.prose h3 { font-size: 21px; margin: 22px 0 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag-row span { font-size: 13px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; }
.rtl-note { background: #fff; border: 1px solid var(--line); border-right: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; direction: rtl; text-align: right; font-family: var(--rtl); font-size: 17.5px; line-height: 2; color: var(--ink); margin: 8px 0; }
.hood-list { columns: 2; column-gap: 30px; list-style: none; margin: 8px 0; }
.hood-list li { padding: 7px 0 7px 26px; position: relative; break-inside: avoid; color: var(--ink-2); }
.hood-list li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; padding: 50px 0 60px; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero .eyebrow, .hero-langs, .hero-actions, .hero-trust { justify-content: center; }
  .hero-photo { order: -1; }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 30px; }
  .split-photo { order: -1; }
  .split-photo img { margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .hire { grid-template-columns: 1fr; text-align: center; }
  .hire .hire-cta { text-align: center; }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .intro-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .hood-list { columns: 1; }
  .section { padding: 56px 0; }
}
@media (max-width: 460px) {
  body { font-size: 16px; }
  .areas-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 20px; }
}
