/* Red Hibiscus Tax Incentives — draft site styles */
:root {
  --burgundy: #3b0914;
  --burgundy-2: #5a1222;
  --burgundy-3: #7a1d31;
  --cream: #f6efe2;
  --gold: #c8a96a;
  --ink: #1f1a1b;
  --muted: #5d5557;
  --line: #e6dccd;
  --bg: #fffdf9;
  --radius: 6px;
  --max: 1140px;
  --serif: "Libre Caslon Text", "Adobe Caslon Pro", Georgia, serif;
  --sans: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--burgundy-3); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.25; color: var(--burgundy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: .8em; display: block; }

/* Draft banner */
.draft-banner { background: var(--cream); color: var(--burgundy); text-align: center; font-size: .78rem; font-weight: 700; padding: 5px 12px; letter-spacing: .04em; border-bottom: 1px solid var(--line); }

/* Client sign-up / sign-in bar */
.client-bar { background: var(--gold); color: var(--burgundy); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.client-bar .wrap { display: flex; justify-content: flex-end; align-items: center; min-height: 36px; gap: 12px; }
.client-links { display: flex; align-items: center; gap: 12px; }
.client-links a { color: var(--burgundy); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.client-links a:hover { text-decoration: underline; }
.client-links span { opacity: .4; }

/* Header */
.site-header { background: var(--burgundy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 24px; }
.logo img { height: 74px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--cream); text-decoration: none; font-size: .86rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 10px 12px; border-radius: var(--radius); }
.nav a:hover, .nav a.active { color: var(--gold); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: var(--cream); border-radius: var(--radius); padding: 8px 12px; font-size: 1rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; background: var(--gold); color: var(--burgundy) !important; font-weight: 700; text-decoration: none; padding: 13px 26px; border-radius: var(--radius); letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; border: 2px solid var(--gold); transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--gold) !important; }
.btn.outline { background: transparent; color: var(--cream) !important; border-color: var(--cream); }
.btn.outline:hover { background: var(--cream); color: var(--burgundy) !important; }
.btn.dark { background: var(--burgundy); border-color: var(--burgundy); color: var(--cream) !important; }
.btn.dark:hover { background: transparent; color: var(--burgundy) !important; }

/* Hero */
.hero { position: relative; color: var(--cream); background: var(--burgundy) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(59,9,20,.96) 0%, rgba(59,9,20,.85) 45%, rgba(59,9,20,.45) 100%); }
.hero .wrap { position: relative; padding: 110px 24px 120px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { font-size: 1.2rem; max-width: 620px; color: var(--cream); opacity: .92; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.page-hero .wrap { padding: 80px 24px 84px; }
.crumbs { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; margin-bottom: 14px; }
.crumbs a { color: var(--gold); text-decoration: none; }

/* Sections */
section { padding: 84px 0; }
.alt { background: var(--cream); }
.dark { background: var(--burgundy); color: var(--cream); }
.dark h2, .dark h3 { color: #fff; }
.center { text-align: center; }
.intro { max-width: 760px; margin: 0 auto 48px; text-align: center; color: var(--muted); font-size: 1.08rem; }
.dark .intro { color: var(--cream); }

.grid { display: grid; gap: 28px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: .9fr 1.1fr; }
.split img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(59,9,20,.18); width: 100%; height: 100%; max-height: 460px; object-fit: cover; }

.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--burgundy); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.card .num { font-family: var(--serif); color: var(--gold); font-size: 1.6rem; }
.dark .card { background: var(--burgundy-2); border-color: var(--burgundy-3); border-top-color: var(--gold); }
.dark .card p { color: var(--cream); opacity: .85; }

.stat { text-align: center; padding: 20px; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1.1; }
.stat span { font-size: .9rem; letter-spacing: .06em; }

ul.check { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.check li { position: relative; padding-left: 30px; margin-bottom: .55em; }
ul.check li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--burgundy-3); border-bottom: 2px solid var(--burgundy-3); transform: rotate(-45deg); }
.dark ul.check li::before { border-color: var(--gold); }

/* Process steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.step { position: relative; padding: 26px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 1.9rem; color: var(--gold); display: block; margin-bottom: 6px; }
.step h3 { font-size: 1.1rem; margin-bottom: .4em; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--burgundy); color: var(--cream); font-weight: 600; letter-spacing: .03em; }
tr:nth-child(even) td { background: #fbf7f0; }

/* Callouts */
.callout { border-left: 4px solid var(--gold); background: #fff; padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.4em; box-shadow: 0 4px 16px rgba(59,9,20,.06); }
.callout h3 { margin-bottom: .3em; }
.callout p:last-child { margin: 0; }
.example { background: var(--burgundy); color: var(--cream); border-radius: var(--radius); padding: 30px; }
.example h3 { color: #fff; }
.example .row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.example .row.total { border-bottom: 0; font-weight: 700; color: var(--gold); font-size: 1.1rem; }
.fine { font-size: .82rem; opacity: .8; margin-top: 12px; }

/* Article layout */
.article { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 110px; border-left: 2px solid var(--line); padding-left: 18px; font-size: .9rem; }
.toc strong { display: block; font-family: var(--serif); color: var(--burgundy); margin-bottom: 8px; font-size: 1rem; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--burgundy-3); }
.prose h2 { margin-top: 1.6em; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-family: var(--serif); color: var(--burgundy); font-size: 1.05rem; list-style: none; position: relative; padding-right: 50px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 1.5rem; color: var(--gold); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 22px 18px; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--burgundy) 0%, var(--burgundy-3) 100%); color: var(--cream); text-align: center; padding: 72px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 620px; margin: 0 auto 26px; }

/* Forms */
form.contact { display: grid; gap: 16px; }
form.contact .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: .85rem; font-weight: 700; letter-spacing: .04em; color: var(--burgundy); display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #d8ccba; border-radius: var(--radius); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-note { font-size: .82rem; color: var(--muted); }

/* Footer */
.site-footer { background: #26060d; color: #cdbfb3; font-size: .92rem; padding: 64px 0 28px; }
.site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .06em; }
.site-footer a { color: #cdbfb3; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--gold); }
.site-footer > .wrap > .grid > div > img { height: 68px; width: auto; margin-bottom: 16px; }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; font-size: .78rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.legal p { margin: 0; max-width: 780px; }

/* Payments accepted */
.payments { margin-top: 18px; }
.payments span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: 10px; }
.pay-logos { display: flex; align-items: center; gap: 22px; }
.pay-logos img { height: 22px; width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: .55; transition: opacity .2s; }
.pay-logos img:hover { opacity: .85; }

/* Animated process timeline */
.process-dark { background: radial-gradient(ellipse at top, var(--burgundy-2) 0%, var(--burgundy) 60%); color: var(--cream); overflow: hidden; }
.process-dark h2 { color: #fff; }
.process-dark .intro { color: var(--cream); opacity: .85; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; margin-top: 56px; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 34px; left: 7%; right: 7%; height: 3px; border-radius: 3px; }
.timeline::before { background: rgba(255,255,255,.12); }
.timeline::after { background: linear-gradient(90deg, var(--gold), #e8d3a2, var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.6,.1,.2,1); }
.timeline.in-view::after { transform: scaleX(1); }
.t-step { position: relative; text-align: center; transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i) * 150ms + 200ms); }
.js .timeline:not(.in-view) .t-step { opacity: 0; transform: translateY(26px); }
.t-icon { position: relative; z-index: 1; width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%; background: var(--burgundy); border: 2px solid var(--gold); display: grid; place-items: center; color: var(--gold); transition: transform .35s ease, background .35s ease, color .35s ease, box-shadow .35s ease; }
.t-icon svg { width: 30px; height: 30px; }
.t-num { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--burgundy); font-size: .72rem; font-weight: 700; display: grid; place-items: center; font-family: var(--sans); }
.t-step h3 { color: #fff; font-size: 1.05rem; margin-bottom: .35em; transition: color .35s; }
.t-step p { font-size: .88rem; line-height: 1.55; color: var(--cream); opacity: .78; margin: 0; }
.t-step:hover .t-icon, .t-step.active .t-icon { background: var(--gold); color: var(--burgundy); transform: translateY(-6px) scale(1.08); box-shadow: 0 0 0 8px rgba(200,169,106,.18), 0 12px 30px rgba(0,0,0,.35); }
.t-step:hover .t-num, .t-step.active .t-num { background: #fff; }
.t-step:hover h3, .t-step.active h3 { color: var(--gold); }
.t-step:last-child .t-icon { animation: pulse 2.4s ease-out infinite; animation-delay: 2.5s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,169,106,.55); } 70% { box-shadow: 0 0 0 18px rgba(200,169,106,0); } 100% { box-shadow: 0 0 0 0 rgba(200,169,106,0); } }
.process-cta { text-align: center; margin-top: 52px; }
@media (prefers-reduced-motion: reduce) {
  .t-step, .timeline::after, .t-icon { transition: none; animation: none !important; }
  .js .timeline:not(.in-view) .t-step { opacity: 1; transform: none; }
  .timeline::after { transform: scaleX(1); }
}

/* Auth pages */
.auth-shell { min-height: calc(100vh - 300px); display: grid; place-items: center; padding: 70px 16px; background: var(--cream); }
.auth-card { width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--burgundy); border-radius: var(--radius); padding: 40px; box-shadow: 0 18px 40px rgba(59,9,20,.08); }
.auth-card h1 { font-size: 2rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
form.auth-form { display: grid; gap: 16px; }
form.auth-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checks { display: grid; gap: 8px; }
.checks label { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink); letter-spacing: 0; margin: 0; }
.checks input { width: auto; }
.msg { padding: 12px 14px; border-radius: var(--radius); font-size: .92rem; display: none; }
.msg.show { display: block; }
.msg.error { background: #fbeaea; color: #8a1c1c; border: 1px solid #efc6c6; }
.msg.ok { background: #eef6ec; color: #2b5a23; border: 1px solid #cfe3c8; }
.demo-note { font-size: .82rem; background: #fff8e8; border: 1px dashed var(--gold); padding: 10px 12px; border-radius: var(--radius); color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* Dashboard */
.dash-head { background: var(--burgundy); color: var(--cream); padding: 44px 0; }
.dash-head h1 { color: #fff; font-size: 2rem; margin: 0 0 4px; }
.dash-head .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.dash-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-bar select { width: auto; min-width: 280px; font-weight: 700; color: var(--burgundy); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.tile span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tile strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--burgundy); }
.leads td { vertical-align: middle; }
.lead-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--burgundy-3); text-decoration: underline; cursor: pointer; text-align: left; }
.lead-links { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--cream); border: 1px solid var(--line); color: var(--burgundy); border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.chip:hover { background: var(--burgundy); color: var(--cream); }
.progress { min-width: 220px; }
.progress .track { height: 10px; background: #eee3d3; border-radius: 999px; overflow: hidden; }
.progress .fill { height: 100%; background: linear-gradient(90deg, var(--burgundy-3), var(--gold)); border-radius: 999px; }
.progress .meta { display: flex; justify-content: space-between; font-size: .82rem; margin-top: 6px; }
.progress .meta b { color: var(--burgundy); }
.stages { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 4px; gap: 4px; }
.stages span.done { color: var(--burgundy); font-weight: 700; }
.sample-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--burgundy); border-radius: 4px; padding: 2px 6px; margin-left: 8px; vertical-align: middle; }

dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(640px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(38,6,13,.6); }
dialog header { background: var(--burgundy); color: #fff; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; }
dialog header h3 { color: #fff; margin: 0; }
dialog .close { background: none; border: 0; color: var(--cream); font-size: 1.6rem; cursor: pointer; line-height: 1; }
dialog .body { padding: 24px; max-height: 70vh; overflow-y: auto; }
dl.info { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; }
dl.info dt { font-weight: 700; color: var(--burgundy); }
dl.info dd { margin: 0; }
.rec, .doc, .qa { border-bottom: 1px solid var(--line); padding: 12px 0; }
.rec:last-child, .doc:last-child, .qa:last-child { border-bottom: 0; }
.rec { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qa p { margin: 0; }
.qa p:first-child { font-weight: 700; color: var(--burgundy); }
.doc { display: flex; justify-content: space-between; gap: 12px; }
.badge { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge.yes { background: #eef6ec; color: #2b5a23; }
.badge.no { background: #fff4e0; color: #8a5a00; }

/* Responsive */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--burgundy); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 26px; max-width: 520px; margin-left: auto; margin-right: auto; }
  .timeline::before, .timeline::after { top: 20px; bottom: 20px; left: 34px; right: auto; width: 3px; height: auto; }
  .timeline::after { transform: scaleY(0); transform-origin: top; }
  .timeline.in-view::after { transform: scaleY(1); }
  .t-step { display: grid; grid-template-columns: 70px 1fr; gap: 0 20px; text-align: left; align-items: center; }
  .js .timeline:not(.in-view) .t-step { transform: translateX(-20px); }
  .t-icon { margin: 0; grid-row: span 2; }
  .t-step h3 { margin: 0; align-self: end; }
  .t-step p { align-self: start; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse, .article { grid-template-columns: 1fr; gap: 36px; }
  .toc { position: static; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--burgundy); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 60px 0; }
  .g2, .g3, .g4, .site-footer .grid, form.contact .two, form.auth-form .two { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 28px 20px; }
  .dash-bar select { min-width: 0; width: 100%; }
  dl.info { grid-template-columns: 1fr; gap: 2px 0; }
  dl.info dd { margin-bottom: 10px; }
  .hero .wrap { padding: 70px 16px 80px; }
  .logo img { height: 56px; }
  .site-header .wrap { min-height: 80px; }
  .client-bar .wrap { justify-content: center; }
}
