/* ==========================================================================
   johnlalezari.com — "Warm editorial" design system
   Ivory / charcoal / deep teal / brass · Fraunces + Inter
   ========================================================================== */

:root {
  --ivory: #F6F2EA;
  --ivory-2: #EFE8DB;
  --ivory-3: #E6DDCB;
  --paper: #FFFFFF;
  --char: #1C1C1A;
  --ink: #2E2C28;
  --muted: #6B6760;
  --line: rgba(28, 28, 26, 0.12);
  --line-soft: rgba(28, 28, 26, 0.07);
  --teal: #0F4C5C;
  --teal-2: #0B3A47;
  --teal-soft: #E3EEF0;
  --brass: #B9873C;
  --brass-soft: #F3E6CF;
  --ok: #2E6B4F;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --shadow-1: 0 10px 30px -18px rgba(28, 28, 26, 0.35);
  --shadow-2: 0 30px 60px -30px rgba(15, 76, 92, 0.35);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --wrap: 1200px; --wrap-narrow: 780px;
  --gutter: clamp(16px, 4vw, 48px);

  --fs-xs: 0.78rem; --fs-sm: 0.875rem; --fs-base: 1.0625rem; --fs-md: 1.1875rem;
  --fs-lg: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --fs-xl: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  --fs-2xl: clamp(2.3rem, 1.6rem + 3vw, 3.6rem);
  --fs-3xl: clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.6;
  color: var(--ink); background: var(--ivory);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-2); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--char); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 var(--s-4); }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); line-height: 1.15; }
h4 { font-size: var(--fs-lg); font-weight: 500; }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; color: var(--char); }
em.hl { font-style: italic; color: var(--teal); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
small, .small { font-size: var(--fs-sm); }
.muted { color: var(--muted); }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 8px; top: -200px; background: var(--char); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), var(--wrap-narrow)); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 var(--s-4); display: block;
}
.lead { font-size: var(--fs-md); line-height: 1.6; color: #3B3934; max-width: 62ch; }
.lede-wide { max-width: 72ch; }

/* ---------- Pattern (girih-inspired) ---------- */
.pattern { position: relative; isolation: isolate; }
.pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.07; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%230F4C5C' stroke-width='1.1'><path d='M60 0 L120 60 L60 120 L0 60 Z'/><path d='M60 20 L100 60 L60 100 L20 60 Z'/><path d='M0 0 L120 120 M120 0 L0 120'/><circle cx='60' cy='60' r='18'/></svg>");
}
.pattern-brass::before { opacity: 0.09; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23B9873C' stroke-width='1.1'><path d='M60 0 L120 60 L60 120 L0 60 Z'/><path d='M60 20 L100 60 L60 100 L20 60 Z'/><path d='M0 0 L120 120 M120 0 L0 120'/><circle cx='60' cy='60' r='18'/></svg>"); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease; cursor: pointer;
  font-family: var(--font-body); line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); color: #fff; }
.btn-ghost { border-color: var(--char); color: var(--char); background: transparent; }
.btn-ghost:hover { background: var(--char); color: #fff; }
.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { background: var(--ivory-2); color: var(--teal-2); }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #A2762F; color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 0.875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.arrow-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.arrow-link::after { content: "→"; transition: transform .15s; }
.arrow-link:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(246, 242, 234, 0.86);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--char); line-height: 1; }
.brand .name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: 0.005em; }
.brand .name span { color: var(--teal); }
.brand .sub { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 500; }
.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav ul { list-style: none; display: flex; gap: clamp(14px, 2vw, 30px); margin: 0; padding: 0; }
.nav a { color: var(--char); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.nav .fa-link { font-family: "Vazirmatn", var(--font-body); font-weight: 600; }
.nav-toggle { display: none; background: transparent; border: 1.5px solid var(--char); border-radius: var(--r-pill); padding: 10px 14px; font: 600 0.85rem var(--font-body); color: var(--char); cursor: pointer; }
.header-cta { white-space: nowrap; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .header-cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--line); padding: var(--s-5) var(--gutter) var(--s-6); display: none; flex-direction: column; align-items: stretch; box-shadow: var(--shadow-1); }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { display: block; padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); }
  .nav .nav-cta-mobile { display: inline-flex; margin-top: var(--s-4); justify-content: center; }
}
@media (min-width: 981px) { .nav-cta-mobile { display: none !important; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-ivory2 { background: var(--ivory-2); }
.section-paper { background: var(--paper); }
.section-teal { background: var(--teal); color: #EAF2F3; }
.section-teal h2, .section-teal h3 { color: #fff; }
.section-teal .eyebrow { color: #F3D9A6; }
.section-teal a { color: #F3D9A6; }
.section-char { background: var(--char); color: #E9E4DA; }
.section-char h2, .section-char h3 { color: #fff; }
.section-char .eyebrow { color: #E4C77F; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.section-head.split > div { max-width: 760px; }
.section-head.split > .arrow-link { margin-bottom: 6px; }
.section-head p { color: var(--muted); font-size: var(--fs-md); max-width: 62ch; }
.section-teal .section-head p, .section-char .section-head p { color: inherit; opacity: 0.85; }

/* ---------- Home hero ---------- */
.hero-home { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-home .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-home h1 { max-width: 640px; font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.2rem); }
.hero-home .lead { margin: var(--s-5) 0 var(--s-6); }
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px 24px; margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.proof b { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); display: block; letter-spacing: -0.01em; color: var(--char); line-height: 1.1; }
.proof span { font-size: var(--fs-sm); color: var(--muted); }
.portrait { position: relative; }
.portrait .frame { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #d9cfbc, #b7a98d); box-shadow: var(--shadow-2); }
.portrait .frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait .card { position: absolute; left: -28px; bottom: 36px; background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.3); width: min(320px, 85%); }
.portrait .card .t { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.portrait .card .a { font-family: var(--font-display); font-size: 1.2rem; margin: 6px 0 2px; color: var(--char); }
.portrait .card .p { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 900px) {
  .hero-home .wrap { grid-template-columns: 1fr; }
  .hero-home h1 { max-width: none; }
  .portrait { max-width: 520px; }
  .portrait .card { left: 16px; bottom: 16px; }
}

/* ---------- Strip ---------- */
.strip { background: var(--teal); color: #fff; padding: 18px 0; font-size: var(--fs-sm); letter-spacing: 0.01em; }
.strip .wrap { display: flex; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.strip b { color: #F3D9A6; font-weight: 600; }
.strip .fa { font-family: "Vazirmatn", var(--font-body); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px) clamp(22px, 2.6vw, 30px); position: relative; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line-soft); }
.card .n { font-size: var(--fs-xs); letter-spacing: 0.2em; color: var(--brass); font-weight: 600; text-transform: uppercase; }
.card h3 { font-size: var(--fs-lg); margin: 6px 0 2px; font-weight: 500; }
.card p { color: #4A4842; font-size: 0.98rem; margin: 0; }
.card .arrow-link { margin-top: auto; padding-top: 14px; }
.card-link { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); color: inherit; }
.card-teal { background: var(--teal); color: #EAF2F3; border-color: transparent; }
.card-teal h3, .card-teal .n { color: #fff; } .card-teal .n { color: #F3D9A6; } .card-teal p { color: #D7E4E7; } .card-teal a { color: #F3D9A6; }
.card-ivory { background: var(--ivory-2); }
.card img.cover { border-radius: var(--r-md); aspect-ratio: 16/10; object-fit: cover; width: 100%; margin-bottom: 8px; }

/* ---------- Page hero (interior) ---------- */
.hero-page { padding-block: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 56px); }
.hero-page .crumbs { margin-bottom: var(--s-5); }
.hero-page h1 { max-width: 20ch; }
.hero-page .lead { margin-top: var(--s-4); }
.hero-page .btn-row { margin-top: var(--s-6); }
.hero-split .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-split .media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-2); background: var(--ivory-3); }
.hero-split .media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .hero-split .wrap { grid-template-columns: 1fr; } }
.crumbs { font-size: var(--fs-sm); color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }

/* ---------- Prose (long-form) ---------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2em; }
.prose h3 { font-size: var(--fs-lg); margin-top: 1.6em; font-weight: 500; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin: 1.5em 0; padding: 1em 1.25em; border-left: 3px solid var(--brass); background: #fff; border-radius: 0 var(--r-md) var(--r-md) 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--char); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--char); background: var(--ivory-2); }
.prose img { border-radius: var(--r-md); }
.prose .note { font-size: var(--fs-sm); color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* two-column article layout with sticky aside */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: var(--s-5); }
@media (max-width: 980px) { .article { grid-template-columns: 1fr; } .aside { position: static; } }
.aside-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 24px; }
.aside-card h4 { margin-bottom: 8px; }
.aside-card p { font-size: 0.95rem; color: #4A4842; }
.aside-card .person { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.aside-card .person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.aside-card .person b { display: block; font-weight: 600; color: var(--char); }
.aside-card .person span { font-size: var(--fs-sm); color: var(--muted); }
.toc { background: var(--ivory-2); border-radius: var(--r-lg); padding: 20px 24px; }
.toc h4 { font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; color: var(--brass); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 0.93rem; }
.toc a { text-decoration: none; color: var(--char); }
.toc a:hover { color: var(--teal); }

/* ---------- Callouts / quotes / stats ---------- */
.callout { background: #fff; border: 1px solid var(--line-soft); border-left: 4px solid var(--teal); border-radius: var(--r-md); padding: 18px 22px; }
.callout.brass { border-left-color: var(--brass); }
.callout h4 { margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }
.quote-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.quote { background: #fff; border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line-soft); }
.quote p { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.35; color: var(--char); margin-bottom: 14px; }
.quote footer { font-size: var(--fs-sm); color: var(--muted); }
.quote .stars { color: var(--brass); letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 10px; }
.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat { background: #fff; border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--line-soft); }
.stat b { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.4rem); display: block; color: var(--char); letter-spacing: -0.01em; line-height: 1.05; }
.stat span { font-size: var(--fs-sm); color: var(--muted); display: block; margin-top: 6px; }
.stat small { display: block; margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); }
.section-teal .stat, .section-char .stat { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
.section-teal .stat b, .section-char .stat b { color: #fff; }
.section-teal .stat span, .section-teal .stat small { color: #CFE0E3; }
.section-char .stat span, .section-char .stat small { color: #BDB6A8; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: #fff; border-radius: var(--r-lg); padding: 20px 22px; border: 1px solid var(--line-soft); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 1.6rem; color: var(--brass); line-height: 1; padding-top: 2px; }
.steps h4 { margin-bottom: 4px; font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); color: var(--char); }
.steps p { margin: 0; color: #4A4842; font-size: 0.97rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--char); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--brass); flex: none; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 18px; color: #4A4842; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Area / neighborhood grids ---------- */
.area-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.area { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; text-decoration: none; color: #fff; display: flex; align-items: flex-end; background: var(--teal-2); }
.area img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.area:hover img { transform: scale(1.03); }
.area::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(12,30,36,.85) 100%); }
.area .txt { position: relative; z-index: 1; padding: 22px; }
.area .txt h3 { color: #fff; font-size: 1.5rem; margin: 0 0 4px; }
.area .txt span { font-size: var(--fs-sm); color: #D7E4E7; }
.facts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.fact { background: #fff; border-radius: var(--r-md); padding: 16px 18px; border: 1px solid var(--line-soft); }
.fact b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--char); }
.fact span { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Sold grid ---------- */
.sold-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr)); }
.sold { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-soft); }
.sold img { aspect-ratio: 16/11; object-fit: cover; width: 100%; }
.sold .body { padding: 18px 20px 20px; }
.sold .price { font-family: var(--font-display); font-size: 1.5rem; color: var(--char); }
.sold .addr { font-weight: 600; color: var(--char); margin-top: 2px; }
.sold .meta { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; }
.sold .role { display: inline-block; margin-top: 10px; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--teal); background: var(--teal-soft); padding: 4px 10px; border-radius: var(--r-pill); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--char); color: #E9E4DA; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s-6); align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #BDB6A8; margin: 0; max-width: 56ch; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .phone { font-family: var(--font-display); font-size: 1.6rem; color: #fff; text-decoration: none; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: var(--fs-sm); color: var(--char); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 12px; border: 1.5px solid #D8D1C2; background: #fff; color: var(--char); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,76,92,.12); }
.form textarea { min-height: 130px; resize: vertical; }
.form .hint { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.form .consent { font-weight: 400; font-size: var(--fs-sm); color: var(--muted); display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.form .consent input { width: 18px; height: 18px; margin-top: 2px; }
.form-card { background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); }
.hidden { display: none !important; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
@media (max-width: 980px) { .calc { grid-template-columns: 1fr; } }
.calc fieldset { border: 0; padding: 0; margin: 0 0 var(--s-5); }
.calc legend { font-family: var(--font-display); font-size: 1.3rem; color: var(--char); margin-bottom: 12px; }
.calc .grid { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.calc label { display: grid; gap: 4px; font-size: var(--fs-sm); font-weight: 600; color: var(--char); align-content: end; }
.calc .unit { position: relative; display: block; }
.calc .unit[data-unit="yrs"] input { padding-left: 46px; }
.calc .hint { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.calc .unit input { padding-left: 28px; }
.calc .unit[data-unit="%"] input { padding-left: 14px; padding-right: 34px; }
.calc .unit::before { content: attr(data-unit); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 500; font-size: 0.95rem; pointer-events: none; }
.calc .unit[data-unit="%"]::before { left: auto; right: 12px; }
.calc input { font: inherit; padding: 11px 12px; border-radius: 10px; border: 1.5px solid #D8D1C2; background: #fff; width: 100%; color: var(--char); }
.calc input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,76,92,.12); }
.results { position: sticky; top: 100px; background: var(--char); color: #E9E4DA; border-radius: var(--r-xl); padding: clamp(22px, 3vw, 32px); }
.results h3 { color: #fff; font-size: 1.4rem; margin-bottom: 18px; }
.results .big { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.results .big div { background: rgba(255,255,255,.06); border-radius: var(--r-md); padding: 14px 16px; }
.results .big b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: #fff; font-weight: 400; line-height: 1.05; }
.results .big span { font-size: var(--fs-xs); color: #BDB6A8; letter-spacing: .06em; text-transform: uppercase; }
.results table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.results td { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.results td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: #fff; font-weight: 500; }
.results tr.sub td { color: #BDB6A8; }
.results .flag { margin-top: 14px; font-size: var(--fs-sm); color: #F3D9A6; }
.results .ok { color: #9ED8B9; }
.results .warn { color: #F0B49A; }
.results .disclaimer { font-size: var(--fs-xs); color: #9A948A; margin-top: 16px; }
@media (max-width: 980px) { .results { position: static; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--char); color: #BDB6A8; padding: clamp(48px, 6vw, 80px) 0 32px; margin-top: clamp(40px, 6vw, 80px); }
.site-footer a { color: #E9E4DA; text-decoration: none; }
.site-footer a:hover { color: #F3D9A6; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand .name { color: #fff; }
.site-footer .brand .name span { color: #F3D9A6; }
.site-footer .brand .sub { color: #9A948A; }
.site-footer h4 { font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: #F3D9A6; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.95rem; }
.site-footer .about { font-size: 0.95rem; max-width: 46ch; margin: 16px 0; }
.site-footer .contact a { display: block; margin-bottom: 6px; font-size: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px; font-size: var(--fs-xs); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #9A948A; }
.footer-bottom .legal { max-width: 70ch; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho svg { width: 20px; height: 20px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: var(--s-5); } .mt-3 { margin-top: var(--s-6); } .mt-4 { margin-top: var(--s-7); }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: var(--s-5); } .mb-3 { margin-bottom: var(--s-6); }
.grid-2 { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.pill { display: inline-block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-pill); background: var(--teal-soft); color: var(--teal); }
.pill-brass { background: var(--brass-soft); color: #8A6221; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row a, .tag-row span { font-size: var(--fs-sm); padding: 8px 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); color: var(--char); text-decoration: none; }
.tag-row a:hover { border-color: var(--teal); color: var(--teal); }
.img-note { font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }
.placeholder-note { font-size: var(--fs-xs); color: #8A6221; background: var(--brass-soft); display: inline-block; padding: 4px 10px; border-radius: var(--r-pill); }

/* ---------- RTL / Farsi ---------- */
[dir="rtl"] { font-family: "Vazirmatn", var(--font-body); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .brand .name, [dir="rtl"] .quote p, [dir="rtl"] .stat b, [dir="rtl"] .proof b { font-family: "Vazirmatn", var(--font-body); font-weight: 600; letter-spacing: 0; }
[dir="rtl"] .eyebrow, [dir="rtl"] .card .n, [dir="rtl"] .pill, [dir="rtl"] .site-footer h4 { letter-spacing: 0; }
[dir="rtl"] .arrow-link::after { content: "←"; }
[dir="rtl"] .arrow-link:hover::after { transform: translateX(-3px); }
[dir="rtl"] .steps li::before { font-family: "Vazirmatn", var(--font-body); }
[dir="rtl"] .prose blockquote { border-left: 0; border-right: 3px solid var(--brass); border-radius: var(--r-md) 0 0 var(--r-md); }
[dir="rtl"] .callout { border-left: 1px solid var(--line-soft); border-right: 4px solid var(--teal); }
[dir="rtl"] .crumbs li + li::before { content: "/"; margin-right: 0; margin-left: 6px; }
[dir="rtl"] .portrait .card { left: auto; right: -28px; }
@media (max-width: 900px) { [dir="rtl"] .portrait .card { right: 16px; } }
.latin { font-family: var(--font-body); direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .latin-num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
