/* KD3 Financial Solutions — shared styles */
:root {
  --ink: #0f0d14;
  --ink-2: #17141f;
  --ink-3: #221d2e;
  --line: #2f2840;
  --text: #f4f2f8;
  --muted: #b9b3c6;
  --purple: #9b6dff;        /* replaces #79d5a8 */
  --purple-light: #c4a8ff;
  --purple-deep: #5b21b6;   /* replaces #0b7a4b */
  --paper: #ffffff;
  --paper-2: #f6f3fb;
  --paper-text: #1b1724;
  --paper-muted: #5c5470;
  --radius: 14px;
  --max: 1120px;
  --shadow: 0 10px 30px rgba(20, 8, 45, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
}
img { max-width: 100%; display: block; }
a { color: var(--purple-light); }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-family: "Inter", system-ui, sans-serif; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--purple); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 13, 20, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff; font-size: .95rem; font-weight: 800;
}
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); text-decoration: none; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--purple-light); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 12px; font-size: 1rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); }
.btn-outline { border-color: var(--purple); color: var(--text); }
.btn-outline:hover { background: rgba(155, 109, 255, .12); }
.btn-dark { background: var(--ink); color: #fff; }
.nav-links .btn { padding: 9px 18px; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 100px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(155, 109, 255, .28), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(91, 33, 182, .35), transparent 60%),
    var(--ink);
}
.eyebrow { display: inline-block; color: var(--purple-light); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; color: var(--muted); font-size: .95rem; }
.hero-meta span::before { content: "◆"; color: var(--purple); margin-right: 8px; font-size: .7rem; vertical-align: 2px; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-light { background: var(--paper); color: var(--paper-text); }
.section-tint { background: var(--paper-2); color: var(--paper-text); }
.section-light p, .section-tint p { color: var(--paper-muted); }
.section-light a:not(.btn), .section-tint a:not(.btn) { color: var(--purple-deep); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head .eyebrow { color: var(--purple-deep); }
.section-dark .section-head .eyebrow, .hero .eyebrow { color: var(--purple-light); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-card {
  background: var(--ink-2); color: var(--text); border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.about-card dl { margin: 0; display: grid; gap: 18px; }
.about-card dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--purple-light); font-weight: 700; }
.about-card dd { margin: 2px 0 0; font-size: 1.05rem; }
.about-card a { color: var(--text); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border: 1px solid #e7e1f2; border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--purple); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(155, 109, 255, .14); color: var(--purple-deep); margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card p { margin: 0; font-size: .97rem; }

.section-dark { background: var(--ink-2); }
.feature { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-3); }
.feature h3 { color: var(--text); }
.feature p { color: var(--muted); margin: 0; }
.feature .num { font-family: "Playfair Display", serif; color: var(--purple); font-size: 2rem; display: block; margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid #e3dcef; padding: 6px 0; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; padding: 16px 40px 16px 0; position: relative; color: var(--paper-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--purple-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-right: 40px; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--purple-deep), #3b1580);
  text-align: center; padding: 80px 0;
}
.cta p { color: #e6dcff; max-width: 600px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--purple-deep); }
.cta .btn-primary:hover { background: var(--paper-2); }
.cta .btn-outline { border-color: #fff; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: 80px 0 60px; background: radial-gradient(800px 400px at 90% -20%, rgba(155, 109, 255, .25), transparent 60%), var(--ink); }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 640px; }

/* ---------- Jobs ---------- */
.job {
  background: var(--paper); border: 1px solid #e7e1f2; border-left: 5px solid var(--purple);
  border-radius: var(--radius); padding: 34px; box-shadow: 0 6px 20px rgba(20, 8, 45, .06);
}
.job-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.job h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; color: var(--paper-text); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { background: rgba(155, 109, 255, .13); color: var(--purple-deep); font-weight: 600; font-size: .82rem; padding: 5px 12px; border-radius: 999px; }
.job h3 { margin-top: 26px; color: var(--paper-text); }
.job ul.list { margin: 0; padding-left: 20px; color: var(--paper-muted); }
.job ul.list li { margin-bottom: 6px; }
.apply-box { margin-top: 30px; padding: 22px; background: var(--paper-2); border-radius: 12px; }
.apply-box p { margin: 0 0 14px; }
.email-link { font-weight: 700; word-break: break-all; }

/* ---------- Steps (send documents) ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 24px 24px 24px 76px; background: var(--paper); border: 1px solid #e7e1f2; border-radius: var(--radius); }
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 22px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--purple); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.steps h3 { margin-bottom: 6px; color: var(--paper-text); }
.steps p { margin: 0; }
.notice { border: 1px solid #f1c5c5; background: #fff6f6; color: #6b1d1d; border-radius: 12px; padding: 20px 22px; margin-top: 30px; }
.notice strong { color: #8a1c1c; }
.notice p { color: #6b1d1d; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0910; border-top: 1px solid var(--line); padding: 56px 0 30px; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: var(--text); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--purple-light); }
.copyright { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .footer-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 4px; }
  .nav-links .btn { text-align: center; margin-top: 8px; }
  .job { padding: 24px; }
  .steps li { padding: 70px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Contrast fixes ---------- */
.section-light .eyebrow, .section-tint .eyebrow { color: var(--purple-deep); }
.section-light .about-card a { color: var(--purple-light); }
@media (max-width: 760px) { .hero h1 br { display: none; } }

/* ---------- Dallas skyline photo in hero backgrounds ----------
   Photo: Max Fray on Unsplash (see img/CREDITS.txt). The overlay keeps the
   left-side text readable while the lit skyline shows through on the right. */
.hero, .page-hero {
  background:
    linear-gradient(180deg, rgba(12, 10, 18, .90) 0%, rgba(12, 10, 18, .70) 45%, rgba(20, 10, 40, .15) 78%, rgba(12, 10, 18, .35) 100%),
    linear-gradient(90deg, rgba(12, 10, 18, .55) 0%, transparent 60%),
    url("../img/dallas-hero.jpg?v=202610161307") center bottom / cover no-repeat,
    var(--ink);
}
.hero { padding: 80px 0 90px; }
.page-hero { padding: 64px 0 80px; }
.hero h1, .hero p.lead, .page-hero h1, .page-hero p { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
@media (max-width: 760px) {
  .hero, .page-hero {
    background:
      linear-gradient(180deg, rgba(12, 10, 18, .92) 0%, rgba(12, 10, 18, .78) 55%, rgba(20, 10, 40, .20) 85%, rgba(12, 10, 18, .35) 100%),
      url("../img/dallas-hero-sm.jpg?v=202610161307") 30% bottom / cover no-repeat,
      var(--ink);
  }
  .hero { padding: 56px 0 110px; }
  .page-hero { padding: 48px 0 90px; }
}

/* ---------- Logo ---------- */
.nav { height: 84px; }
.brand img { height: 65px; width: auto; }
.site-footer .brand img { height: 120px; }
@media (max-width: 760px) {
  .nav-links { top: 84px; }
  .brand img { height: 58px; }
}

/* ---------- Services section: black to dark purple blend ---------- */
#services {
  background:
    radial-gradient(900px 500px at 85% 100%, rgba(91, 33, 182, .45), transparent 70%),
    linear-gradient(160deg, #0b0a10 0%, #150f24 45%, #2a1257 100%);
  color: var(--text);
}
#services .section-head h2 { color: var(--text); }
#services .section-head p { color: var(--muted); }
#services .section-head .eyebrow { color: var(--purple-light); }
#services .card { border-color: transparent; }
#services .card:hover { border-color: var(--purple); }
#services .card h3 { color: var(--paper-text); }
#services .card p { color: var(--paper-muted); }

/* ---------- 4-column grid (Our Services) ---------- */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Scrolling "Contact Us Now" banner ---------- */
.ticker {
  display: block; overflow: hidden; text-decoration: none;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple), var(--purple-deep));
  color: #fff; padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  border-bottom: 1px solid rgba(0, 0, 0, .25);
}
.ticker-track { display: flex; width: max-content; animation: ticker 50s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-visible .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; flex-shrink: 0; }
.ticker-group span {
  font-weight: 800; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; padding: 0 22px;
}
.ticker-group .sep { color: rgba(255, 255, 255, .55); font-size: .7rem; padding: 0; align-self: center; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
