/* ===========================================================
   MAXIMUS BUSINESS FUNDING — STYLES
   Palette: oxblood red / antique gold / cream & white / warm ink
=========================================================== */

:root{
  --cream:        #FAF6EF;
  --white:        #FFFFFF;
  --ink:          #221712;
  --ink-soft:     #4A3B33;

  --red:          #8A1F1F;
  --red-deep:     #5C1414;
  --red-tint:     #F7E9E6;

  --gold:         #C79A3D;
  --gold-light:   #E7CE8E;
  --gold-deep:    #9C7527;

  --line:         rgba(34,23,18,0.12);
  --line-light:   rgba(255,255,255,0.16);

  --shadow-card:  0 18px 40px -22px rgba(90,20,20,0.35);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 4px;
  --wrap: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
  scroll-padding-top:88px;
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }

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

h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--ink);
  margin:0 0 .5em;
  line-height:1.12;
  font-weight:600;
  letter-spacing:-0.01em;
}

p{ margin:0 0 1em; }

.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 28px;
}
.wrap-narrow{ max-width:840px; }

:focus-visible{
  outline:2px solid var(--gold-deep);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55em;
  padding:.95em 1.7em;
  border-radius:var(--radius);
  font-family:var(--font-body);
  font-weight:600;
  font-size:.95rem;
  border:1.5px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn-small{ padding:.65em 1.3em; font-size:.85rem; }
.btn-full{ width:100%; }

.btn-gold{
  background:linear-gradient(180deg, var(--gold-light), var(--gold));
  color:var(--red-deep);
  box-shadow:0 10px 24px -10px rgba(156,117,39,.55);
}
.btn-gold:hover{ transform:translateY(-2px); box-shadow:0 14px 28px -10px rgba(156,117,39,.65); }

.btn-outline{
  background:transparent;
  border-color:var(--line);
  color:var(--white);
}
.hero .btn-outline{ border-color:rgba(255,255,255,.5); }
.btn-outline:hover{ border-color:var(--gold); color:var(--gold-light); }

.btn-red{
  background:var(--red);
  color:var(--white);
}
.btn-red:hover{ background:var(--red-deep); transform:translateY(-2px); }

/* ---------- Type helpers ---------- */
.kicker{
  font-family:var(--font-body);
  font-weight:700;
  font-size:.78rem;
  letter-spacing:.06em;
  color:var(--red);
  margin:0 0 .8em;
}
.kicker-gold{ color:var(--gold); }
.kicker-light{ color:var(--gold-light); }

.section-head{ max-width:640px; margin:0 0 3rem; }
.section-head h2{ font-size:clamp(1.7rem,3vw,2.4rem); }
.section-lede{ color:var(--ink-soft); font-size:1.05rem; }
.section-lede.light{ color:rgba(255,255,255,.72); }
.section-head-light h2{ color:var(--white); }

.section{ padding:5.5rem 0; }
.section-cream{ background:#F3EDE1; }
.section-dark{
  background:radial-gradient(120% 140% at 15% 0%, var(--red-deep), var(--ink) 78%);
  color:var(--white);
}

/* =========================================================
   HEADER
========================================================= */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(250,246,239,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:.85rem; padding-bottom:.85rem;
  gap:1.5rem;
}

.logo{ display:flex; align-items:center; gap:.65rem; flex-shrink:0; }
.logo-mark{ color:var(--red); display:inline-flex; }
.logo-text{ display:flex; flex-direction:column; line-height:1.05; }
.logo-name{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.28rem;
  letter-spacing:.03em;
  color:var(--ink);
}
.logo-sub{
  font-size:.62rem;
  letter-spacing:.14em;
  font-weight:600;
  color:var(--gold-deep);
  text-transform:uppercase;
}

.main-nav{ display:flex; gap:2rem; }
.main-nav a{
  font-size:.92rem; font-weight:500; color:var(--ink-soft);
  position:relative; padding:.3rem 0;
  transition:color .15s ease;
}
.main-nav a:hover{ color:var(--red); }
.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background:var(--gold); transform:scaleX(0); transform-origin:left;
  transition:transform .2s ease;
}
.main-nav a:hover::after{ transform:scaleX(1); }

.header-actions{ display:flex; align-items:center; gap:1.3rem; }
.header-phone{
  display:flex; align-items:center; gap:.45rem;
  font-weight:600; font-size:.92rem; color:var(--ink);
}
.header-phone svg{ color:var(--red); }
.header-phone:hover{ color:var(--red); }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:36px; height:36px; background:none; border:none; cursor:pointer; padding:0;
}
.nav-toggle span{ display:block; height:2px; width:100%; background:var(--ink); border-radius:2px; }

/* =========================================================
   HERO
========================================================= */
.hero{
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(199,154,61,.16), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--red-deep) 55%, var(--red) 100%);
  color:var(--white);
  padding:5rem 0 4.5rem;
  position:relative;
  overflow:hidden;
}
.hero-row{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:3.5rem;
  align-items:center;
}
.hero h1{
  color:var(--white);
  font-size:clamp(2.2rem, 4vw, 3.35rem);
  font-weight:600;
  max-width:15ch;
}
.hero-lede{
  color:rgba(255,255,255,.78);
  font-size:1.12rem;
  max-width:46ch;
}
.hero-ctas{ display:flex; gap:1rem; flex-wrap:wrap; margin:1.8rem 0 2.6rem; }

.hero-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.4rem;
  margin:0;
  padding-top:2rem;
  border-top:1px solid rgba(255,255,255,.16);
}
.hero-stats dt{
  font-family:var(--font-display);
  font-size:1.55rem;
  font-weight:600;
  color:var(--gold-light);
  margin:0;
}
.hero-stats dd{
  margin:.2rem 0 0;
  font-size:.78rem;
  color:rgba(255,255,255,.65);
}

.hero-visual{ display:flex; justify-content:center; }
.snapshot-card{
  background:var(--white);
  color:var(--ink);
  width:100%; max-width:360px;
  border-radius:8px;
  box-shadow:0 30px 60px -20px rgba(0,0,0,.5);
  padding:1.6rem 1.6rem 1.4rem;
  position:relative;
  background-image:repeating-linear-gradient(
    to bottom, rgba(34,23,18,0.035) 0px, rgba(34,23,18,0.035) 1px,
    transparent 1px, transparent 38px
  );
  background-position:0 92px;
}
.snapshot-head{
  display:flex; align-items:center; gap:.7rem;
  padding-bottom:1rem; margin-bottom:1rem;
  border-bottom:2px solid var(--gold);
}
.snapshot-seal{ color:var(--red); flex-shrink:0; }
.snapshot-title{ font-family:var(--font-display); font-weight:700; font-size:1rem; margin:0; }
.snapshot-sub{ font-size:.72rem; color:var(--ink-soft); margin:.1rem 0 0; letter-spacing:.03em; }
.snapshot-body{ display:flex; flex-direction:column; gap:.7rem; }
.snapshot-line{ display:flex; justify-content:space-between; align-items:baseline; font-size:.88rem; gap:1rem; }
.snapshot-line span{ color:var(--ink-soft); }
.snapshot-line strong{ font-weight:600; text-align:right; }
.snapshot-status{
  display:flex; align-items:center; gap:.5rem;
  margin-top:1.2rem; padding-top:1rem;
  border-top:1px solid var(--line);
  font-size:.85rem; font-weight:600; color:var(--red-deep);
}
.snapshot-status svg{ color:var(--gold-deep); flex-shrink:0; }

/* =========================================================
   SERVICE CARDS
========================================================= */
.card-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1.4rem;
}
.service-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:6px;
  padding:1.8rem 1.6rem;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-card);
  border-color:transparent;
}
.service-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:50%;
  background:var(--red-tint); color:var(--red);
  margin-bottom:1rem;
}
.service-icon svg{ width:22px; height:22px; }
.service-card h3{ font-size:1.1rem; margin-bottom:.5rem; }
.service-card p{ font-size:.92rem; color:var(--ink-soft); margin-bottom:1rem; }
.card-link{
  font-size:.86rem; font-weight:600; color:var(--gold-deep);
  border-bottom:1px solid transparent;
  transition:border-color .15s ease, color .15s ease;
}
.card-link:hover{ border-color:var(--gold-deep); color:var(--red); }

/* =========================================================
   WHY GRID
========================================================= */
.why-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:2.4rem 2rem;
}
.why-item h3{ color:var(--white); font-size:1.08rem; }
.why-item p{ color:rgba(255,255,255,.68); font-size:.92rem; margin-bottom:0; }
.why-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:50%;
  border:1.5px solid var(--gold);
  color:var(--gold-light);
  margin-bottom:1rem;
}
.why-icon svg{ width:20px; height:20px; }

/* =========================================================
   CALCULATOR
========================================================= */
.estimate-row{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:3rem;
  align-items:start;
}
.estimate-head{ margin-bottom:0; }

.calculator{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:8px;
  padding:2.2rem;
  box-shadow:var(--shadow-card);
}
.calc-field{ margin-bottom:1.6rem; }
.calc-label-row{
  display:flex; justify-content:space-between; align-items:baseline;
  margin-bottom:.6rem;
}
.calc-field label{ font-size:.86rem; font-weight:600; color:var(--ink-soft); }
.calc-value{ font-family:var(--font-display); font-weight:600; color:var(--red); font-size:1.05rem; }

input[type="range"]{
  -webkit-appearance:none;
  width:100%; height:6px;
  border-radius:4px;
  background:linear-gradient(90deg, var(--gold) var(--pct,50%), var(--line) var(--pct,50%));
  outline:none;
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:20px; height:20px; border-radius:50%;
  background:var(--red);
  border:3px solid var(--white);
  box-shadow:0 2px 8px rgba(0,0,0,.35);
  cursor:pointer;
}
input[type="range"]::-moz-range-thumb{
  width:20px; height:20px; border-radius:50%;
  background:var(--red); border:3px solid var(--white);
  box-shadow:0 2px 8px rgba(0,0,0,.35); cursor:pointer;
}

.calc-results{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1rem;
  padding:1.4rem 0;
  margin:1rem 0 1rem;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.calc-result{ display:flex; flex-direction:column; gap:.3rem; }
.calc-result span{ font-size:.76rem; color:var(--ink-soft); }
.calc-result strong{ font-family:var(--font-display); font-size:1.35rem; color:var(--red-deep); }
.calc-disclaimer{ font-size:.78rem; color:var(--ink-soft); margin-bottom:1.3rem; }

/* =========================================================
   STEPS
========================================================= */
.steps{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1.8rem;
}
.step{
  padding-top:1.6rem;
  border-top:2px solid var(--gold);
}
.step-num{
  display:block;
  font-family:var(--font-display);
  font-size:1.6rem;
  color:var(--red);
  font-weight:600;
  margin-bottom:.6rem;
}
.step h3{ font-size:1.08rem; }
.step p{ color:var(--ink-soft); font-size:.92rem; margin-bottom:0; }

/* =========================================================
   TESTIMONIALS
========================================================= */
.testimonial-slider{
  display:flex; align-items:center; gap:1.2rem;
}
.t-track-wrap{ overflow:hidden; flex:1; }
.t-track{ display:flex; transition:transform .45s ease; }
.t-slide{
  flex:0 0 100%;
  margin:0;
  background:var(--white);
  border:1px solid var(--line);
  border-left:4px solid var(--gold);
  border-radius:6px;
  padding:2.4rem 2.6rem;
}
.t-slide p{
  font-family:var(--font-display);
  font-size:1.3rem;
  font-style:italic;
  font-weight:400;
  color:var(--ink);
  margin-bottom:1.4rem;
}
.t-slide footer strong{ display:block; font-size:.95rem; }
.t-slide footer span{ font-size:.82rem; color:var(--ink-soft); }

.t-arrow{
  flex-shrink:0;
  width:44px; height:44px; border-radius:50%;
  border:1.5px solid var(--line);
  background:var(--white);
  color:var(--red);
  font-size:1.1rem;
  cursor:pointer;
  transition:background-color .15s ease, color .15s ease, border-color .15s ease;
}
.t-arrow:hover{ background:var(--red); color:var(--white); border-color:var(--red); }

.t-dots{ display:flex; justify-content:center; gap:.5rem; margin-top:1.5rem; }
.t-dot{
  width:8px; height:8px; border-radius:50%;
  background:var(--line);
  border:none; cursor:pointer; padding:0;
  transition:background-color .15s ease, transform .15s ease;
}
.t-dot.active{ background:var(--red); transform:scale(1.25); }

/* =========================================================
   FAQ ACCORDION
========================================================= */
.acc-item{ border-bottom:1px solid var(--line); }
.acc-trigger{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem;
  background:none; border:none;
  padding:1.3rem 0;
  font-family:var(--font-body);
  font-size:1.02rem; font-weight:600; color:var(--ink);
  text-align:left; cursor:pointer;
}
.acc-icon{
  flex-shrink:0;
  width:26px; height:26px; border-radius:50%;
  border:1.5px solid var(--gold-deep);
  color:var(--gold-deep);
  display:inline-flex; align-items:center; justify-content:center;
  font-size:1rem; line-height:1;
  transition:transform .2s ease, background-color .2s ease, color .2s ease;
}
.acc-item.open .acc-icon{
  transform:rotate(45deg);
  background:var(--red); color:var(--white); border-color:var(--red);
}
.acc-panel{ display:none; padding-bottom:1.4rem; }
.acc-panel p{ color:var(--ink-soft); margin:0; max-width:70ch; }

/* =========================================================
   CONTACT
========================================================= */
.contact-row{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:3.5rem;
  align-items:start;
}
.contact-list{ list-style:none; margin:2rem 0 0; padding:0; display:flex; flex-direction:column; gap:1.1rem; }
.contact-list li{ display:flex; align-items:center; gap:.8rem; font-size:.98rem; }
.contact-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%;
  background:rgba(199,154,61,.16); color:var(--gold);
  flex-shrink:0;
}
.contact-list a:hover{ color:var(--gold-light); }

.contact-form{
  background:var(--white);
  border-radius:8px;
  padding:2.2rem;
  color:var(--ink);
  box-shadow:0 30px 60px -20px rgba(0,0,0,.5);
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.2rem;
}
.form-field-full{ grid-column:1 / -1; }
.form-field label{
  display:block; font-size:.82rem; font-weight:600;
  color:var(--ink-soft); margin-bottom:.4rem;
}
.form-field input,
.form-field select,
.form-field textarea{
  width:100%;
  font-family:var(--font-body);
  font-size:.95rem;
  padding:.75em .9em;
  border:1.5px solid var(--line);
  border-radius:4px;
  background:var(--cream);
  color:var(--ink);
  transition:border-color .15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  border-color:var(--gold-deep);
  outline:none;
}
.form-field textarea{ resize:vertical; }
.field-error{
  display:none;
  font-size:.76rem; color:var(--red);
  margin-top:.35rem;
}
.form-field.invalid input,
.form-field.invalid select{ border-color:var(--red); }
.form-field.invalid .field-error{ display:block; }

.contact-form .btn{ margin-top:1.6rem; }

.form-success{
  display:flex; flex-direction:column; align-items:flex-start;
  gap:.6rem; padding:1rem 0 .4rem; color:var(--red-deep);
}
.form-success svg{ color:var(--gold-deep); }
.form-success h3{ margin-bottom:0; }
.form-success p{ color:var(--ink-soft); margin-bottom:0; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer{
  background:var(--ink);
  color:rgba(255,255,255,.65);
  padding:4rem 0 0;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:2.5rem;
  padding-bottom:3rem;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-brand .logo{ margin-bottom:1rem; }
.footer-brand .logo-mark{ color:var(--gold); }
.footer-brand .logo-name{ color:var(--white); }
.footer-brand p{ font-size:.9rem; }
.footer-col h4{
  color:var(--white); font-size:.85rem; letter-spacing:.05em;
  text-transform:uppercase; margin-bottom:1.1rem; font-family:var(--font-body); font-weight:700;
}
.footer-col{ display:flex; flex-direction:column; gap:.7rem; font-size:.9rem; }
.footer-col a:hover{ color:var(--gold-light); }

.footer-bottom{
  display:flex; justify-content:space-between; gap:2rem;
  padding:1.6rem 0 2rem;
  font-size:.78rem;
  flex-wrap:wrap;
}
.footer-disclaimer{ max-width:520px; }

/* =========================================================
   MOBILE CALL FAB
========================================================= */
.mobile-call-fab{
  display:none;
  position:fixed; bottom:20px; right:20px; z-index:70;
  width:54px; height:54px; border-radius:50%;
  background:var(--red);
  color:var(--white);
  align-items:center; justify-content:center;
  box-shadow:0 10px 26px -8px rgba(0,0,0,.5);
}

/* =========================================================
   HERO ENTRANCE (single orchestrated reveal)
========================================================= */
.hero-copy > *{
  opacity:0;
  animation:heroReveal .7s ease forwards;
}
.hero-copy .kicker{ animation-delay:.05s; }
.hero-copy h1{ animation-delay:.15s; }
.hero-copy .hero-lede{ animation-delay:.25s; }
.hero-copy .hero-ctas{ animation-delay:.35s; }
.hero-copy .hero-stats{ animation-delay:.45s; }
@keyframes heroReveal{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1020px){
  .card-grid{ grid-template-columns:repeat(2, 1fr); }
  .why-grid{ grid-template-columns:repeat(2, 1fr); }
  .steps{ grid-template-columns:repeat(2, 1fr); gap:2.2rem 1.8rem; }
  .hero-row{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; max-width:420px; margin:0 auto; }
  .estimate-row{ grid-template-columns:1fr; }
  .contact-row{ grid-template-columns:1fr; }
}

@media (max-width: 840px){
  .main-nav{
    position:fixed; top:66px; left:0; right:0;
    background:var(--cream);
    flex-direction:column;
    gap:0;
    padding:.5rem 28px 1rem;
    border-bottom:1px solid var(--line);
    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
  }
  .main-nav.open{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .main-nav a{ padding:.8rem 0; border-bottom:1px solid var(--line); }
  .header-phone{ display:none; }
  .nav-toggle{ display:flex; }
  .mobile-call-fab{ display:flex; }
}

@media (max-width: 640px){
  .section{ padding:3.8rem 0; }
  .card-grid{ grid-template-columns:1fr; }
  .why-grid{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr; }
  .hero-stats{ grid-template-columns:repeat(2, 1fr); }
  .form-grid{ grid-template-columns:1fr; }
  .calc-results{ grid-template-columns:1fr; gap:.9rem; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-bottom{ flex-direction:column; }
  .t-slide{ padding:1.8rem; }
  .t-slide p{ font-size:1.1rem; }
}
