/* ============================================================
   demir.loans: luxury minimalist design (test site)
   Shared by every page. Instrument Serif for display, Figtree for
   everything else. Square corners, hairline rules, no shadows.
   ============================================================ */

/* Wordmark only: a subset holding just the letters of "demir.loans" */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@14,600&text=demir.loans&display=swap');

:root {
  --ink: #16120F;
  --cream: #FAF7F2;
  --parch: #F3EDE3;
  --clay: #C56A4A;
  --clay-soft: #d3866a;
  --rust: #8B3D22;
  --mustard: #D9A441;
  --butter: #F6E3B8;
  --gold: #E8C37E;
  --line: #c8bba8;
  --text: #463c34;
  --muted: #5e5147;
  --faint: #6b5d4c;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Figtree', system-ui, sans-serif;
  --gutter: 40px;
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--rust); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.lx-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.lx-eyebrow {
  margin: 0 0 16px;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--faint);
}
.lx-h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.01em;
}
.lx-h2 em { font-style: italic; color: var(--rust); }
.lx-lead { margin: 24px 0 0; max-width: 56ch; font-size: 18px; line-height: 1.6; color: var(--text); font-weight: 300; }
.lx-link {
  font-size: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 4px;
}

/* ---------- buttons (square) ---------- */
.lx-btn {
  display: inline-block;
  background: var(--clay); color: var(--cream);
  padding: 18px 32px;
  font: 500 15px/1 var(--sans);
  border: 1px solid var(--clay);
  cursor: pointer;
  transition: background 150ms, color 150ms, border-color 150ms;
}
.lx-btn:hover { background: var(--rust); border-color: var(--rust); color: var(--cream); }
.lx-btn.ghost { background: transparent; color: var(--cream); border-color: rgba(250, 247, 242, 0.6); }
.lx-btn.ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.lx-btn.ghost-ink { background: transparent; color: var(--ink); border-color: var(--ink); }
.lx-btn.ghost-ink:hover { background: var(--ink); color: var(--cream); }

/* ---------- header ---------- */
.lx-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 200ms, border-color 200ms, padding 200ms;
}
.lx-header .lx-wrap {
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
  padding-top: 28px; padding-bottom: 28px;
  transition: padding 200ms;
}
.lx-logo {
  font-family: 'Bricolage Grotesque', var(--sans); font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: -0.03em;
  color: var(--cream);
  transition: color 200ms;
}
.lx-logo span { font-weight: 600; font-size: 0.63em; letter-spacing: 0; color: var(--clay); }
.lx-logo:hover { color: var(--cream); }
.lx-nav { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; font-size: 14px; letter-spacing: 0.02em; }
.lx-nav a { color: var(--cream); transition: color 200ms; }
.lx-nav a:hover { color: var(--butter); }
.lx-nav .lx-nav-cta { background: var(--cream); color: var(--ink); padding: 13px 24px; font-weight: 500; transition: background 200ms, color 200ms; }
.lx-nav .lx-nav-cta:hover { background: var(--clay); color: var(--cream); }

/* solid state: after scrolling, and always on pages without a photo hero */
.lx-header.is-solid { background: var(--cream); border-bottom-color: var(--line); }
.lx-header.is-solid .lx-wrap { padding-top: 16px; padding-bottom: 16px; }
.lx-header.is-solid .lx-logo { color: var(--ink); }
.lx-header.is-solid .lx-nav a { color: var(--ink); }
.lx-header.is-solid .lx-nav a:hover { color: var(--rust); }
.lx-header.is-solid .lx-nav .lx-nav-cta { background: var(--ink); color: var(--cream); }
.lx-header.is-solid .lx-nav .lx-nav-cta:hover { background: var(--clay); }
body.lx-plain { padding-top: 72px; }

/* ---------- hero (full bleed) ---------- */
.lx-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: var(--ink);
}
.lx-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.lx-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0; transition: opacity 700ms ease; }
.lx-hero-video.is-playing { opacity: 1; }
.lx-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(22, 18, 15, 0.5) 0%, rgba(22, 18, 15, 0) 24%, rgba(22, 18, 15, 0.1) 50%, rgba(22, 18, 15, 0.7) 100%);
}
.lx-hero-body { position: relative; z-index: 1; width: 100%; padding-bottom: 96px; }
.lx-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lx-credit a:hover { color: var(--cream); }
.lx-hero .lx-eyebrow { color: var(--cream); }
.lx-hero h1 {
  margin: 0; max-width: 900px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 7.4vw, 112px); line-height: 0.98; letter-spacing: -0.02em;
  color: var(--cream);
}
.lx-hero h1 em { font-style: italic; color: var(--gold); }
.lx-hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }
.lx-credit {
  position: absolute; right: var(--gutter); bottom: 16px; z-index: 1; margin: 0;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250, 247, 242, 0.7);
}

/* ---------- intro + facts ---------- */
.lx-intro { max-width: 820px; margin: 0 auto; padding: 140px var(--gutter) 120px; text-align: center; }
.lx-intro .lx-lead { margin-left: auto; margin-right: auto; max-width: 520px; }
.lx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); margin-bottom: 140px; }
.lx-fact { padding: 40px 32px 0 0; }
.lx-fact p:first-child { margin: 0; font-family: var(--serif); font-size: 44px; line-height: 1; }
.lx-fact p:last-child { margin: 14px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- sections ---------- */
.lx-band { background: var(--parch); }
.lx-section { padding-top: 120px; padding-bottom: 120px; }
.lx-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }

/* service rows */
.lx-rows { border-top: 1px solid var(--line); }
.lx-row {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline;
  padding: 36px 0; border-bottom: 1px solid var(--line);
  transition: padding-left 200ms;
}
.lx-row:hover { padding-left: 12px; color: var(--ink); }
.lx-row .n { flex: 0 0 56px; font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--clay); }
.lx-row .t { flex: 1 1 260px; font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.lx-row .d { flex: 1.4 1 320px; font-size: 15px; line-height: 1.6; color: var(--text); }
.lx-row .a { font-size: 20px; color: var(--clay); }

/* why */
.lx-why { display: flex; flex-wrap: wrap; gap: 64px; }
.lx-why > div:first-child { flex: 1 1 420px; }
.lx-why > div:last-child { flex: 1 1 480px; display: flex; flex-direction: column; gap: 40px; padding-top: 8px; }
.lx-why h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; }
.lx-why h2 em { font-style: italic; color: var(--rust); }
.lx-point { display: flex; gap: 24px; }
.lx-point i { flex: none; width: 8px; height: 8px; margin-top: 10px; background: var(--mustard); border-radius: 50%; }
.lx-point h3 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.lx-point p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text); }

/* steps */
.lx-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 1100px) { .lx-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.lx-step { padding: 32px 28px 8px 0; }
.lx-step .n { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--clay); }
.lx-step h3 { margin: 16px 0 8px; font-size: 18px; font-weight: 500; }
.lx-step p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text); }

/* reviews (filled by reviews-widget.js) */
.lx-rv-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.rv-score { font-family: var(--serif); font-size: 44px; line-height: 1; font-weight: 400; }
.rv-stars { color: var(--mustard); font-size: 18px; letter-spacing: 0.15em; }
.rv-count { font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--faint); }
.lx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 48px; }
.lx-review, .rv-card {
  background: var(--cream); border: 0; border-top: 2px solid var(--clay); box-shadow: none; transform: none;
  padding: 36px; display: flex; flex-direction: column; gap: 20px;
}
.lx-review:nth-child(n), .rv-card:nth-child(n) { background: var(--cream); transform: none; }
.lx-review p, .rv-card p { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.rv-cardstars { color: var(--mustard); font-size: 14px; letter-spacing: 0.2em; }
.rv-who { margin-top: auto; padding-top: 0; border-top: 0; display: flex; align-items: center; gap: 12px; }
.rv-avatar { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; object-fit: cover; background: var(--butter); }
.rv-initials { display: flex; align-items: center; justify-content: center; font: 500 14px var(--sans); color: var(--rust); }
.rv-name { font-weight: 500; font-size: 14px; }
.rv-when { font-family: var(--sans); font-size: 12px; color: var(--faint); margin-top: 2px; }
.rv-more { display: inline-block; margin-top: 24px; }
.rv-sample-flag { display: inline-block; margin: 0 0 10px; padding: 4px 10px; background: var(--ink); color: var(--butter); font: 500 12px var(--sans); }
.rv-cards { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* learn cards */
.lx-learn { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.lx-learn a { display: flex; flex-direction: column; gap: 14px; }
.lx-learn img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 8px; background: var(--parch); transition: opacity 200ms; }
.lx-learn a:hover img { opacity: 0.88; }
.lx-learn a:hover .t { color: var(--rust); }
.lx-learn .k { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rust); }
.lx-learn .t { font-family: var(--serif); font-size: 30px; line-height: 1.15; transition: color 150ms; }
.lx-learn .m { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* faq */
.lx-faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.lx-faq details { border-bottom: 1px solid var(--line); }
.lx-faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; font-family: var(--serif); font-size: 26px; line-height: 1.2;
}
.lx-faq summary::-webkit-details-marker { display: none; }
.lx-faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 28px; color: var(--clay); flex: none; }
.lx-faq details[open] summary::after { content: "\2212"; }
.lx-faq .a { padding: 0 0 28px; max-width: 68ch; font-size: 15px; line-height: 1.75; color: var(--text); }
.lx-faq .a a { border-bottom: 1px solid var(--ink); }

/* dark call to action */
.lx-cta { background: var(--ink); color: var(--cream); }
.lx-cta .lx-wrap { padding-top: 140px; padding-bottom: 140px; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.lx-cta h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 76px); line-height: 1.02; }
.lx-cta h2 em { font-style: italic; color: var(--gold); }
.lx-cta .lx-lead { color: #b8ab9c; }
.lx-cta-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.lx-cta .lx-btn.ghost { border-color: #5e5147; }
.lx-contact { margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid #322a24; }
.lx-contact li { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid #322a24; font-size: 14px; color: #b8ab9c; }
.lx-contact b { flex: 0 0 90px; font-weight: 400; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #8d8073; }
.lx-contact a { color: var(--cream); }
.lx-contact a:hover { color: var(--gold); }
.lx-widget { background: var(--cream); }
.lx-widget iframe { display: block; width: 100%; height: 820px; border: 0; }
@media (max-width: 960px) {
  .lx-cta .lx-wrap { grid-template-columns: 1fr; gap: 56px; padding-top: 96px; padding-bottom: 96px; }
  .lx-widget iframe { height: 900px; }
}

/* ---------- footer (existing markup, restyled) ---------- */
footer { background: var(--ink); color: #b8ab9c; border-top: 1px solid #322a24; padding: 64px 0 48px; }
footer .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
footer a { color: #b8ab9c; }
footer a:hover { color: var(--cream); text-decoration: none; }
footer .fine { margin-top: 8px; padding-top: 32px; border-top: 1px solid #322a24; font-family: var(--sans); font-size: 12px; line-height: 1.7; text-align: left; max-width: 980px; margin-left: auto; margin-right: auto; }
.site-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 48px; padding-bottom: 48px; margin-bottom: 0; border-bottom: 0; text-align: left; }
.site-map h4 { margin: 0; font: 400 12px var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: #8d8073; }
.site-map ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-map a { font: 400 14px/1.4 var(--sans); color: #b8ab9c; }
.site-map a:hover { color: var(--cream); text-decoration: none; }
.site-map a.here { color: var(--cream); font-weight: 500; }
.site-map .area-group { margin-top: 16px; }
.site-map .area-group summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font: 400 12px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); }
.site-map .area-group summary::after { content: "+"; font-size: 16px; color: var(--clay-soft); }
.site-map .area-group[open] summary::after { content: "\2212"; }
.site-map .area-group summary:hover { color: var(--gold); }
.site-map ul.inline { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.site-map a.all { font: 400 13px var(--sans); color: var(--clay-soft); letter-spacing: 0.04em; }
.site-social { display: flex; gap: 10px; margin: 20px 0 0; padding: 0; }
.social-tile {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 1px solid #5e5147; box-shadow: none; background: transparent; color: #b8ab9c; flex: none;
  transition: background 150ms, color 150ms, border-color 150ms; transform: none;
}
.social-tile svg { width: 18px; height: 18px; }
.social-tile:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); transform: none; box-shadow: none; }
@media (max-width: 900px) { .site-map { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .site-map { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- phone: comfortable tap targets and readable small text ---------- */
@media (max-width: 640px) {
  .lx-eyebrow { font-size: 13px; }
  .lx-credit { font-size: 11px; }
  .lx-logo { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .lx-link { display: inline-block; padding: 14px 0 8px; }
  .lx-contact a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .lx-contact b, .lx-learn .k { font-size: 13px; }
  .site-map a.all { padding: 13px 0; }
  .site-social { gap: 12px; }
  .social-tile { width: 44px; height: 44px; }
  .site-map h4 { font-size: 13px; }
  .site-map ul { gap: 0; }
  .site-map a { display: inline-block; padding: 11px 0; font-size: 15px; }
  .site-map .area-group summary { padding: 13px 0; font-size: 13px; }
  .site-map ul.inline { gap: 0 20px; margin-top: 0; }
  footer .fine { font-size: 13px; }
  footer .fine a { display: inline-block; padding: 10px 4px; }
}

/* ---------- phone header: logo + menu button, links in a panel ---------- */
.lx-menu-btn { display: none; }
@media (max-width: 720px) {
  .lx-header.has-menu .lx-wrap { flex-wrap: nowrap; justify-content: space-between; gap: 16px; }
  .lx-header.has-menu .lx-menu-btn {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px;
    width: 48px; height: 48px; margin-right: -12px; padding: 0; border: 0; background: none; cursor: pointer;
    color: var(--cream); -webkit-tap-highlight-color: transparent; transition: color 200ms;
  }
  .lx-menu-btn span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform 200ms; }
  .lx-header.is-solid .lx-menu-btn { color: var(--ink); }
  .lx-header.menu-open .lx-menu-btn span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .lx-header.menu-open .lx-menu-btn span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .lx-header.has-menu .lx-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 4px var(--gutter) 28px; font-size: 18px; letter-spacing: 0;
  }
  .lx-header.has-menu.menu-open .lx-nav { display: flex; }
  .lx-header.has-menu .lx-nav a { color: var(--ink); padding: 20px 0; border-bottom: 1px solid var(--line); }
  .lx-header.has-menu .lx-nav a:hover { color: var(--rust); }
  .lx-header.has-menu .lx-nav .lx-nav-cta { margin-top: 24px; padding: 18px 24px; border: 0; text-align: center; background: var(--clay); color: var(--cream); font-weight: 500; }
  .lx-header.has-menu .lx-nav .lx-nav-cta:hover { background: var(--rust); color: var(--cream); }
}

/* ---------- mobile bar ---------- */
.mob-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--cream); border-top: 1px solid var(--line); padding: 10px 14px; gap: 10px; }
.mob-bar a { flex: 1; text-align: center; padding: 14px 8px; font: 500 14px/1 var(--sans); border: 1px solid var(--ink); box-shadow: none; }
.mob-bar .book { background: var(--clay); border-color: var(--clay); color: var(--cream); }
.mob-bar .call { background: transparent; color: var(--ink); }

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .lx-header .lx-wrap { padding-top: 16px; padding-bottom: 16px; }
  .lx-logo { font-size: 24px; }
  .lx-nav { gap: 18px; font-size: 13px; }
  .lx-nav .lx-nav-cta { padding: 10px 16px; }
  .lx-hero-body { padding-bottom: 128px; }
  .lx-hero-cta .lx-btn { padding: 16px 24px; }
  .lx-intro { padding: 96px var(--gutter) 80px; }
  .lx-facts { margin-bottom: 96px; }
  .lx-section { padding-top: 80px; padding-bottom: 80px; }
  .lx-row { padding: 28px 0; }
  .lx-row .t { font-size: 28px; }
  .lx-why { gap: 40px; }
  .lx-faq summary { font-size: 22px; padding: 22px 0; }
  .lx-review, .rv-card { padding: 28px; }
  body { padding-bottom: 74px; }
  .mob-bar { display: flex; }
  .lx-credit { left: var(--gutter); right: auto; bottom: 90px; }
}
.lx-steps.lx-steps-six { grid-template-columns: repeat(3, 1fr); }
.lx-steps-six .lx-step { padding-bottom: 32px; }
@media (max-width: 1100px) { .lx-steps.lx-steps-six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lx-steps.lx-steps-six { grid-template-columns: 1fr; } }
