/* =========================================================
   Cashflow Hacking Management LLC
   Dark-amber theme · overrides Bootstrap base
   ========================================================= */

:root {
  /* Palette — dark yellow / amber on warm near-black */
  --ink:        #0e0b05;
  --ink-2:      #16110a;
  --ink-3:      #1d1810;
  --ink-card:   #1a150d;

  --gold:       #e7b53c;
  --gold-bright:#f6cb50;
  --gold-deep:  #a87b1e;
  --gold-muted: #8a6a2a;

  --cream:      #ece3ce;
  --cream-dim:  #b6a884;

  --line:       rgba(231, 181, 60, 0.16);
  --line-soft:  rgba(231, 181, 60, 0.09);

  --maxw: 1180px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "DM Sans", system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, monospace;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient warm glow on the page background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(231,181,60,0.10), transparent 60%),
    radial-gradient(760px 600px at -6% 18%, rgba(168,123,30,0.08), transparent 55%);
  pointer-events: none;
}

.container { max-width: var(--maxw); }

a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--ink); }

/* ---------- Shared type pieces ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  position: relative;
}

.section-head { max-width: 720px; margin-bottom: 3.2rem; }

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1305;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.7rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 26px -12px rgba(231,181,60,0.6);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(231,181,60,0.75);
  color: #1a1305;
}

.btn-ghost {
  display: inline-block;
  color: var(--cream);
  font-weight: 500;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(231,181,60,0.05);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(14, 11, 5, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  background: rgba(14, 11, 5, 0.92);
  border-bottom-color: var(--line);
}

.site-header .navbar { padding: 0; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }

.brand-mark {
  width: 30px; height: 30px;
  border: 1px solid var(--gold-muted);
  border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-flow {
  width: 16px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  position: relative;
}
.brand-flow::before,
.brand-flow::after {
  content: "";
  position: absolute;
  width: 5px; height: 2px;
  background: var(--gold-bright);
  border-radius: 2px;
  top: -5px; left: 3px;
}
.brand-flow::after { top: 5px; left: 6px; width: 7px; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cream-dim);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--gold-bright); }

.nav-cta {
  color: var(--gold) !important;
  border: 1px solid var(--line);
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { border-color: var(--gold); background: rgba(231,181,60,0.06); }

/* Hamburger */
.navbar-toggler {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.45rem 0.55rem;
  background: transparent;
}
.navbar-toggler:focus { box-shadow: none; outline: 2px solid var(--gold); }
.navbar-toggler .bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--gold);
  margin: 4px 0;
  border-radius: 2px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4.5rem, 10vw, 7.5rem);
  overflow: hidden;
}

.hero-flow {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.flow-svg { width: 100%; height: 100%; }
.flow-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 14 360;
  filter: drop-shadow(0 0 6px rgba(231,181,60,0.45));
  animation: flow 7s linear infinite;
}
.flow-2 { stroke: var(--gold-deep); animation-duration: 9s; animation-delay: -2s; opacity: 0.7; }
.flow-3 { stroke: var(--gold-bright); animation-duration: 11s; animation-delay: -4s; opacity: 0.5; }

@keyframes flow {
  from { stroke-dashoffset: 374; }
  to   { stroke-dashoffset: 0; }
}

.hero-inner { position: relative; z-index: 1; max-width: 880px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 0 0 1.6rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  position: relative;
}

.hero-lead {
  max-width: 620px;
  font-size: 1.12rem;
  color: var(--cream-dim);
  margin: 0 0 2.4rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { border-top: 1px solid var(--line-soft); }
.about-copy p { color: var(--cream-dim); margin-bottom: 1.3rem; }
.about-copy p:first-child {
  color: var(--cream);
  font-size: 1.22rem;
  line-height: 1.5;
}
.about-copy p:last-child { margin-bottom: 0; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--ink-2); border-top: 1px solid var(--line-soft); }

.card-svc {
  height: 100%;
  background: var(--ink-card);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 2rem 1.8rem 1.9rem;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  position: relative;
  overflow: hidden;
}
.card-svc::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card-svc:hover {
  transform: translateY(-5px);
  border-color: var(--line);
  background: var(--ink-3);
}
.card-svc:hover::after { transform: scaleX(1); }

.card-no {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-muted);
  letter-spacing: 0.1em;
}
.card-svc h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--cream);
  margin: 0.9rem 0 0.7rem;
}
.card-svc p { color: var(--cream-dim); font-size: 0.97rem; margin: 0; }

/* =========================================================
   INDUSTRIES
   ========================================================= */
.industries { border-top: 1px solid var(--line-soft); }
.industries-lead { color: var(--cream-dim); margin-top: 1.4rem; max-width: 420px; }

.industry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.industry-list li {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--cream);
  padding: 1.05rem 0.4rem 1.05rem 1.7rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.industry-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem; top: 50%;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: box-shadow 0.2s ease;
}
.industry-list li:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 1.4rem; }
.industry-list li:hover { color: var(--gold-bright); padding-left: 2rem; }
.industry-list li:hover::before { box-shadow: 0 0 10px var(--gold); }

/* =========================================================
   FAQ  (Bootstrap accordion overrides)
   ========================================================= */
.faq { background: var(--ink-2); border-top: 1px solid var(--line-soft); }
.faq-accordion { max-width: 860px; }

.faq .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
}
.faq .accordion-item:first-child { border-top: 1px solid var(--line); }

.faq .accordion-button {
  background: transparent;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  padding: 1.5rem 0.3rem;
  box-shadow: none;
}
.faq .accordion-button:not(.collapsed) { color: var(--gold-bright); background: transparent; }
.faq .accordion-button:focus { box-shadow: none; outline: none; }
.faq .accordion-button::after {
  width: 1rem; height: 1rem;
  background-size: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23e7b53c' stroke-width='1.6' d='M8 1v14M1 8h14'/%3E%3C/svg%3E");
  transition: transform 0.25s ease;
}
.faq .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23f6cb50' stroke-width='1.6' d='M1 8h14'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}
.faq .accordion-body {
  color: var(--cream-dim);
  padding: 0 0.3rem 1.6rem;
  max-width: 720px;
  font-size: 1.02rem;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { border-top: 1px solid var(--line-soft); }
.contact-lead { color: var(--cream-dim); margin: 1.4rem 0 2.4rem; max-width: 420px; }

.contact-details { display: flex; flex-direction: column; gap: 1.6rem; }
.detail-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 0.5rem;
}
.detail-value {
  font-style: normal;
  color: var(--cream);
  font-size: 1.05rem;
  line-height: 1.6;
}
.detail-value.link { color: var(--gold); transition: color 0.2s ease; }
.detail-value.link:hover { color: var(--gold-bright); }

/* Form */
.contact-form {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.55rem;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(182,168,132,0.5); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(231,181,60,0.12);
}
.field textarea { resize: vertical; }

.form-submit { margin-top: 0.4rem; }
.form-note {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold-bright);
  min-height: 1.2rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.footer-name {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.8rem;
}
.footer-tag { color: var(--cream-dim); max-width: 320px; margin: 0; font-size: 0.95rem; }

.footer-nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav a { color: var(--cream-dim); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--gold-bright); }

.footer-contact { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-contact address { font-style: normal; color: var(--cream-dim); font-size: 0.95rem; margin: 0; }
.footer-contact a { color: var(--gold); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--gold-bright); }

.footer-bottom { padding-top: 1.8rem; }
.footer-bottom p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--gold-muted);
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    margin-top: 0.8rem;
    padding: 1rem 1.2rem;
  }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .nav-cta { display: inline-block; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 575.98px) {
  body { font-size: 16px; }
  .industry-list { grid-template-columns: 1fr; }
  .industry-list li:nth-child(odd) { border-right: none; }
  .hero-actions { gap: 0.8rem; }
  .btn-gold, .btn-ghost { width: 100%; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow-line { animation: none; stroke-dasharray: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
