/* Leads2loan — article stylesheet (premium editorial — gold theme)
 * Matches site.css palette: warm cream + ink + brand gold (#F0C000 from logo)
 */

:root {
  --bg:          #FAF8F4;
  --bg-elevated: #FFFFFF;
  --bg-dark:     #0E0E10;
  --bg-card:     #FFFFFF;
  --bg-subtle:   #F2EFE9;

  --ink:         #0E0E10;
  --ink-soft:    #3A3A3D;
  --ink-mute:    #6E6E72;
  --ink-faint:   #A8A8AD;
  --on-dark:     #FAF8F4;
  --on-dark-mute:#9C9CA0;

  --gold:        #F0C000;
  --gold-dark:   #C29800;
  --gold-deep:   #8C6E00;
  --gold-soft:   #FDF6DD;
  --gold-bright: #FFDC4A;

  --red:         #E5141D;
  --green:       #1B7F46;

  --line:        #E4DFD5;
  --line-soft:   #EDE9DF;
  --line-dark:   #2A2A2D;

  --display: 'Heebo', 'Rubik', 'Arial', sans-serif;
  --body:    'Heebo', 'Rubik', 'Arial', sans-serif;
  --mono:    'JetBrains Mono', 'Menlo', 'Consolas', monospace;

  --r-sm:  4px; --r-md:  8px; --r-lg:  14px; --r-xl:  24px;
  --shadow-sm: 0 1px 2px rgba(14,14,16,0.04), 0 0 0 1px rgba(14,14,16,0.04);
  --shadow:    0 4px 24px rgba(14,14,16,0.06), 0 0 0 1px rgba(14,14,16,0.04);
  --shadow-lg: 0 24px 48px rgba(14,14,16,0.10), 0 4px 12px rgba(14,14,16,0.05);
}

* { box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; border-radius: 2px; }

html, body {
  min-height: 100%; width: 100%; max-width: 100vw;
  overflow-x: hidden; overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  direction: rtl;
  position: relative;
  transform: translateZ(0);
}
::selection { background: var(--gold); color: var(--ink); }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { overflow-wrap: anywhere; }

/* ─────────── Header (topbar) ─────────── */

.ll-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.ll-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  max-width: 1320px; margin: 0 auto;
  gap: 28px;
}
.ll-logo img { height: 36px; width: auto; }
.ll-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.ll-nav a {
  color: var(--ink-soft); font-size: 15px; font-weight: 500;
  text-decoration: none; transition: color .15s;
}
.ll-nav a:hover { color: var(--gold-dark); }

/* ─────────── Article body — narrower than before ─────────── */

.ll-article {
  max-width: 680px;
  margin: 48px auto 32px;
  padding: 0 20px;
}

.ll-breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ll-breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.ll-breadcrumb a:hover { color: var(--gold-dark); }
.ll-breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

/* Compact hero illust — smaller, more elegant */
.ll-hero-illust {
  width: 100%;
  aspect-ratio: 21 / 7;
  max-height: 220px;
  border-radius: var(--r-lg);
  margin: 12px 0 28px;
  overflow: hidden;
  background: var(--bg-subtle);
  position: relative;
}
.ll-hero-illust svg { width: 100%; height: 100%; display: block; }

@media (max-width: 600px) {
  .ll-hero-illust { aspect-ratio: 16 / 9; max-height: none; }
}

.ll-article h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 18px;
}

.ll-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 26px;
  font-weight: 400;
}

.ll-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: var(--ink-mute);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.ll-meta strong { color: var(--ink); font-weight: 600; }

.ll-article h2 {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
  margin: 48px 0 14px;
}

.ll-article h3 {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 10px;
}

.ll-article p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}
.ll-article p strong, .ll-article li strong { color: var(--ink); font-weight: 700; }

.ll-article ul, .ll-article ol {
  padding-right: 24px;
  margin: 0 0 20px;
}
.ll-article li {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.ll-article a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(194,152,0,0.4);
  transition: text-decoration-color .15s, color .15s;
}
.ll-article a:hover { text-decoration-color: var(--gold-dark); color: var(--gold-deep); }

/* TOC */
.ll-toc {
  background: var(--gold-soft);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin: 24px 0 32px;
  border: 1px solid var(--line-soft);
}
.ll-toc h2 {
  font-size: 13px !important;
  font-family: var(--mono);
  margin: 0 0 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  font-weight: 500;
}
.ll-toc ol { padding-right: 20px; margin: 0; }
.ll-toc li { margin-bottom: 6px; font-size: 15px; }
.ll-toc a { color: var(--ink); text-decoration: none; }
.ll-toc a:hover { color: var(--gold-dark); text-decoration: underline; }

/* Callout */
.ll-callout {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-right: 4px solid var(--gold);
  padding: 22px 24px;
  border-radius: var(--r-md);
  margin: 26px 0;
  font-size: 17px;
  color: var(--ink-soft);
}
.ll-callout strong { color: var(--gold-deep); }

/* Inline stats */
.ll-stat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 26px 0;
}
.ll-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  text-align: center;
}
.ll-stat-card .num {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-dark);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
.ll-stat-card .label {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 8px;
}

/* Tables */
.ll-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
table { width: 100%; border-collapse: collapse; background: var(--bg-card); }
th, td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
th { background: var(--bg-subtle); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: var(--gold-soft); }

/* FAQ */
.ll-faq { margin: 26px 0; }
.ll-faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin-bottom: 10px;
  background: var(--bg-card);
  transition: box-shadow .15s, border-color .15s;
}
.ll-faq details[open] { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.ll-faq summary {
  font-weight: 700; font-size: 17px;
  cursor: pointer; list-style: none;
  position: relative; padding-left: 28px;
  color: var(--ink);
}
.ll-faq summary::-webkit-details-marker { display: none; }
.ll-faq summary::after {
  content: ''; position: absolute; left: 0; top: 50%; width: 14px; height: 14px;
  background:
    linear-gradient(var(--gold-dark), var(--gold-dark)) center / 100% 2px no-repeat,
    linear-gradient(var(--gold-dark), var(--gold-dark)) center / 2px 100% no-repeat;
  transform: translateY(-50%); transition: background .2s;
}
.ll-faq details[open] summary::after {
  background: linear-gradient(var(--gold-dark), var(--gold-dark)) center / 100% 2px no-repeat;
}
.ll-faq .ll-faq-answer { margin-top: 14px; color: var(--ink-soft); }
.ll-faq .ll-faq-answer p:last-child { margin-bottom: 0; }

/* CTA */
.ll-cta {
  background: var(--bg-dark);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  margin: 44px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ll-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 50% 0%, rgba(240,192,0,0.25), transparent 70%);
  pointer-events: none;
}
.ll-cta h2 {
  color: var(--on-dark) !important;
  font-family: var(--display);
  font-size: 26px !important;
  margin: 0 0 10px !important;
  letter-spacing: -0.02em;
}
.ll-cta p {
  color: var(--on-dark-mute) !important;
  margin: 0 0 22px;
  font-size: 16px;
}
.ll-cta a.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: background .15s, color .15s;
}
.ll-cta a.btn:hover { background: var(--gold-dark); color: var(--bg); }

/* Related */
.ll-related {
  margin: 44px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.ll-related h2 {
  font-family: var(--display);
  font-size: 22px;
  margin: 0 0 22px;
  font-weight: 800;
}
.ll-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.ll-related-card {
  display: block;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ll-related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); color: var(--ink); }
.ll-related-card .title { font-weight: 700; font-size: 16px; margin-bottom: 6px; line-height: 1.4; color: var(--ink); }
.ll-related-card .desc { font-size: 13.5px; color: var(--ink-mute); line-height: 1.5; }

/* Footer */
.ll-footer {
  background: var(--bg-dark);
  color: var(--on-dark);
  padding: 64px 24px 28px;
  margin-top: 72px;
}
.ll-footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 800px) { .ll-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
@media (max-width: 460px) { .ll-footer-inner { grid-template-columns: 1fr; } }
.ll-footer h3 {
  color: var(--on-dark);
  font-size: 14px;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.ll-footer a {
  color: var(--on-dark-mute);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 15px;
}
.ll-footer a:hover { color: var(--gold); }
.ll-footer p { color: var(--on-dark-mute); }
.ll-footer .ll-footer-bottom {
  max-width: 1320px; margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: var(--on-dark-mute);
  text-align: center;
}

/* Print */
@media print {
  .ll-header, .ll-nav, .ll-cta, .ll-related, .ll-footer { display: none; }
  body { background: #fff; }
}

@media (max-width: 600px) {
  .ll-article { margin: 28px auto 24px; padding: 0 18px; }
  .ll-cta { padding: 28px 20px; }
}

/* ─────────── RTL inputs ─────────── */

input[type="tel"] {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

/* ─────────── Lead form (shared with modal) ─────────── */

.lead-form { display: grid; gap: 12px; }
.lead-form label { font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-bottom: 4px; display: block; }
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--body); font-size: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  direction: rtl;
  text-align: right;
  transition: border-color .15s, box-shadow .15s;
}
.lead-form input:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(240,192,0,0.18);
}
.lead-form input::placeholder { color: var(--ink-faint); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--body); font-size: 16px; font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, background .15s, color .15s;
  line-height: 1;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); color: var(--bg); }
.btn-lg { padding: 17px 32px; font-size: 17px; }
.btn-block { width: 100%; }
.form-fineprint { margin-top: 14px; font-size: 12px; color: var(--ink-mute); text-align: center; line-height: 1.5; }

/* ─────────── Modal (lead form popup) ─────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  direction: rtl;
}
.modal[hidden] { display: none !important; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,14,16,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: ll-modal-overlay-in .2s ease;
}
.modal-card {
  position: relative;
  background: var(--bg-card);
  max-width: 480px;
  width: 100%;
  padding: 36px 32px 28px;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  max-height: 92vh;
  overflow-y: auto;
  animation: ll-modal-card-in .25s cubic-bezier(.16,1,.3,1);
}
.modal-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-bright));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.modal-close {
  position: absolute;
  top: 12px;
  left: 14px;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--bg-subtle); color: var(--ink); }
.modal-card h2 {
  font-size: 24px !important;
  line-height: 1.2;
  margin: 0 0 6px !important;
  padding-left: 40px;
}
.modal-card .sub {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0 0 22px;
}
body.modal-open { overflow: hidden; }

@keyframes ll-modal-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ll-modal-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─────────── Footer Google Maps ─────────── */

.ll-footer-map {
  max-width: 1320px;
  margin: 32px auto 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--bg-tint);
  filter: grayscale(0.2) brightness(0.85);
}
.ll-footer-map iframe {
  width: 100%;
  height: 240px;
  display: block;
  border: 0;
}
.ll-footer-map-address {
  background: var(--bg-tint);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--on-dark-mute);
  border-top: 1px solid var(--line-dark);
}
.ll-footer-map-address svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold); }
.ll-footer-map-address a { color: var(--gold); text-decoration: none; font-weight: 500; padding: 0; }
.ll-footer-map-address a:hover { color: var(--gold-bright); text-decoration: underline; }
