/* =========================================================
   KASHTI LOANS LLC — style.css
   Editorial dark theme · warm gold accent
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg:        #0b0b0c;
  --bg-elev:   #111113;
  --panel:    #141416;
  --panel-2:  #1a1a1d;
  --line:     #24242a;
  --line-2:   #2e2e35;

  --ink:       #ece8df;
  --ink-soft:  #b9b4a8;
  --ink-mute:  #7a766c;
  --ink-faint: #4a4740;

  --gold:     #c9a274;
  --gold-2:   #d9b787;
  --gold-dim: #8a6f4d;

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: 0.005em;
}

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

.container-xl { max-width: var(--maxw); padding-inline: clamp(20px, 4vw, 40px); }

.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0.01em; }

/* ---------- Atmosphere layers ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.85 0 0 0 0 0.75 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.glow {
  position: fixed; pointer-events: none; z-index: 0;
  width: 60vw; height: 60vw; border-radius: 50%;
  filter: blur(120px); opacity: 0.35;
}
.glow--a { top: -20vw; left: -20vw; background: radial-gradient(circle, rgba(201,162,116,0.18), transparent 60%); }
.glow--b { bottom: -25vw; right: -20vw; background: radial-gradient(circle, rgba(100,80,50,0.14), transparent 60%); }

body > *:not(.grain):not(.glow) { position: relative; z-index: 2; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-variation-settings: "opsz" 144;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}
.display .accent {
  color: var(--gold);
  font-style: italic;
  font-feature-settings: "ss01";
}

.display-sm {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 0.3em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.display-sm em { font-style: italic; color: var(--gold); font-weight: 400; }

.lede {
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 42ch;
}

.muted { color: var(--ink-mute); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 2.25rem;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.015);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(0.85); }
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost, .btn-text {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: none;
  background: none;
}
.btn-primary {
  color: var(--bg);
  background: var(--gold);
  padding: 14px 22px;
  border-radius: 999px;
}
.btn-primary:hover {
  background: var(--gold-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(201,162,116,0.5);
}
.btn-primary i { width: 16px; height: 16px; }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-ghost i { width: 14px; height: 14px; }

.btn-text {
  color: var(--ink-soft);
  padding: 14px 4px;
  position: relative;
}
.btn-text::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 10px;
  height: 1px; background: var(--ink-faint);
  transition: background 0.3s var(--ease);
}
.btn-text:hover { color: var(--gold); }
.btn-text:hover::after { background: var(--gold); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 12, 0.75);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 11, 12, 0.92);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 18px;
  gap: 24px;
}

.logo {
  display: flex; align-items: center; gap: 12px;
}
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  background: rgba(201,162,116,0.05);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-primary {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-secondary {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}

.main-nav ul {
  display: flex; gap: 34px;
  list-style: none; margin: 0; padding: 0;
}
.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-elev); border-top: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 16px 24px; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 16px 0; }
  .header-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    width: 36px; height: 36px; padding: 9px 8px;
    background: none; border: 1px solid var(--line-2); border-radius: 4px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block; height: 1px; width: 100%; background: var(--ink);
    transition: all 0.3s var(--ease);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: min(72vh, 720px);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; min-height: auto; padding-bottom: 48px; }
}

.hero-copy { max-width: 720px; }

.hero-actions {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 2.5rem;
}

.hero-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005));
  padding: 40px 36px;
  border-radius: 4px;
  overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.hero-card__line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.hero-card__line:last-of-type { border-bottom: none; }
.hero-card__line .label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-card__line .value {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  text-align: right;
}
.hero-card__line .value.mono {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--gold);
}

.hero-card__seal {
  position: absolute; top: 24px; right: 24px;
  color: var(--gold-dim);
  opacity: 0.55;
  animation: rotate 44s linear infinite;
  transform-origin: center;
}
@media (max-width: 700px) { .hero-card__seal { display: none; } }
@keyframes rotate { to { transform: rotate(360deg); } }

/* Marquee */
.marquee {
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.01);
}
.marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-mute);
}
.marquee-track .sep { color: var(--gold); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   SECTIONS — shared
   ========================================================= */
.section {
  padding-block: clamp(80px, 11vw, 160px);
  position: relative;
}
.section--dense { padding-bottom: clamp(100px, 13vw, 180px); }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: clamp(48px, 6vw, 80px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-index {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.15em;
}
.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- About ---------- */
.about-copy p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 58ch;
}
.about-copy p + p { margin-top: 1rem; }

.pillar-list {
  list-style: none; padding: 0; margin: 3rem 0 0;
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.pillar-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.4rem;
}
.pillar-list h4 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--ink);
}
.pillar-list p {
  color: var(--ink-mute);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.55;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.services-head .muted {
  font-size: 1rem;
  max-width: 44ch;
  line-height: 1.65;
}
@media (max-width: 900px) {
  .services-head { grid-template-columns: 1fr; gap: 24px; }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  padding: 40px 36px 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  position: relative;
  transition: background 0.4s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(201,162,116,0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.service-card:hover { background: rgba(255,255,255,0.015); }
.service-card:hover::before { opacity: 1; }
.service-card:hover h3 { color: var(--gold); }

.service-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 40px;
}
.service-head i {
  width: 22px; height: 22px;
  color: var(--gold);
  stroke-width: 1.25;
}
.service-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}
.service-card p {
  color: var(--ink-mute);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  max-width: 32ch;
}

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* =========================================================
   INDUSTRIES
   ========================================================= */
.industries-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.industries-list li {
  display: grid;
  grid-template-columns: 50px 1fr 1.4fr;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease);
}
.industries-list li:hover { padding-left: 12px; }
.industries-list li:hover .ind-name { color: var(--gold); }

.ind-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
}
.ind-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.ind-desc {
  color: var(--ink-mute);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .industries-list li {
    grid-template-columns: 40px 1fr;
    gap: 14px;
    row-gap: 6px;
  }
  .ind-desc { grid-column: 2 / -1; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 16px;
  align-items: center;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item:hover summary { color: var(--gold); }

.q-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.q-text {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: inherit;
  line-height: 1.35;
}
.q-icon {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: all 0.4s var(--ease);
}
.q-icon i { width: 14px; height: 14px; stroke-width: 1.25; }
.faq-item[open] .q-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  transform: rotate(135deg);
}

.faq-body {
  padding: 0 40px 28px 76px;
  color: var(--ink-mute);
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.65;
  animation: fadeIn 0.4s var(--ease);
}
.faq-body p { margin: 0; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .faq-item summary { grid-template-columns: 40px 1fr 32px; padding: 20px 0; gap: 12px; }
  .q-text { font-size: 1.05rem; }
  .faq-body { padding: 0 0 22px 52px; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.section--contact {
  background: linear-gradient(180deg, transparent, rgba(201,162,116,0.02));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-headline .muted {
  font-size: 1.05rem; line-height: 1.65; max-width: 40ch;
  margin-top: 1rem;
}

.contact-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  padding: 44px 40px;
  border-radius: 4px;
  position: relative;
}
.contact-panel::before {
  content: ""; position: absolute; inset: 0;
  border-top: 1px solid var(--gold-dim);
  opacity: 0.5;
  pointer-events: none;
  border-left: 0; border-right: 0; border-bottom: 0;
}

.contact-item { padding: 6px 0; }
.contact-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.contact-value {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.3s var(--ease);
  line-height: 1.4;
}
a.contact-value { font-family: var(--mono); font-size: 1.05rem; color: var(--gold); }
a.contact-value:hover { color: var(--gold-2); }
a.contact-value i { width: 16px; height: 16px; }

p.contact-value { margin: 0; }

.contact-divider {
  height: 1px; background: var(--line);
  margin-block: 24px;
}

.contact-cta {
  margin-top: 36px;
  width: 100%;
  justify-content: center;
  padding-block: 16px;
}

@media (max-width: 500px) {
  .contact-panel { padding: 32px 24px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 28px;
  background: var(--bg-elev);
  position: relative;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-brand {
  display: flex; align-items: center; gap: 14px;
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}
.footer-brand-tag {
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.footer-nav {
  display: flex; gap: 26px; flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.footer-nav a:hover { color: var(--gold); }

.footer-divider {
  height: 1px; background: var(--line); margin-bottom: 24px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.copyright, .footer-email {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-mute);
  letter-spacing: 0.03em;
}

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Selection */
::selection { background: var(--gold); color: var(--bg); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
