/* ============================================================
   AccelerateFast Accounting — shared stylesheet
   ============================================================ */

:root {
  --bg: #ffffff;
  --panel: #faf6f2;
  --panel-2: #f3ece4;
  --line: #e7ded3;
  --text: #211c19;
  --text-dim: #55493f;
  --text-mute: #6e6053;
  --red-1: #a31e2e;
  --red-2: #e8442e;
  --red-grad: linear-gradient(160deg, var(--red-1), var(--red-2));
  --red-text: #b81f30;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { color: var(--text-dim); max-width: var(--measure); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- bar-rule (logo motif) ---------- */
.bar-rule {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 18px;
  margin-bottom: 18px;
}
.bar-rule span {
  display: block;
  width: 5px;
  background: var(--red-grad);
  border-radius: 1px;
}
.bar-rule span:nth-child(1) { height: 35%; }
.bar-rule span:nth-child(2) { height: 55%; }
.bar-rule span:nth-child(3) { height: 75%; }
.bar-rule span:nth-child(4) { height: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 42px; width: auto; }
.brand-text {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.brand-text .fast { color: var(--red-2); font-style: italic; }
.brand-text small {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin-top: 2px;
}

nav.main-nav { display: flex; gap: 36px; }
nav.main-nav a {
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color 0.15s ease;
  position: relative;
}
nav.main-nav a:hover { color: var(--text); }
nav.main-nav a.active { color: var(--text); }
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -28px;
  height: 2px;
  background: var(--red-grad);
}

.header-cta {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.header-cta:hover { border-color: var(--red-2); background: var(--panel); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  padding: 110px 0 90px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px; right: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(232,68,46,0.09), transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: end;
}
.hero-eyebrow {
  color: var(--red-text);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  max-width: 12ch;
  margin-bottom: 26px;
}
.hero .lede {
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 3px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-primary { background: var(--red-grad); color: #fff; }
.btn-primary:hover { opacity: 0.92; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--red-2); }

.hero-figure {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 24px 60px -24px rgba(163, 30, 46, 0.35);
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-figure .stat-chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: #fff;
  border-radius: 3px;
  padding: 16px 20px;
  box-shadow: 0 12px 30px -10px rgba(33, 28, 25, 0.35);
  max-width: 220px;
}
.hero-figure .stat-chip .num {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--red-text);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-figure .stat-chip .desc {
  font-size: 12px;
  color: var(--text-mute);
}

/* ---------- photo band (full-width banner) ---------- */
.photo-band {
  position: relative;
  height: 340px;
  overflow: hidden;
}
.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-band .band-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 32px;
  background: linear-gradient(0deg, rgba(20,16,14,0.72), transparent);
  color: #fff;
  font-size: 14px;
  max-width: 640px;
}

/* ---------- photo panel (image w/ dark overlay, used behind a quote) ---------- */
.photo-panel {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  padding: 44px;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.photo-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(20,16,14,0.15), rgba(20,16,14,0.86));
  z-index: 1;
}
.photo-panel .panel-content { position: relative; z-index: 2; }
.photo-panel .quote { color: #fff; }
.photo-panel .quote-attr { color: rgba(255,255,255,0.72); }
.photo-panel .quote-attr strong { color: #fff; }

/* ---------- section basics ---------- */
section { padding: 90px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--red-text);
  font-size: 15px;
}

/* ---------- services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--bg);
  padding: 40px;
}
.service-card .bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  margin-bottom: 20px;
}
.service-card .bars span {
  width: 4px;
  background: var(--red-2);
  opacity: 0.85;
}
.service-card .bars span:nth-child(1){height:40%;}
.service-card .bars span:nth-child(2){height:65%;}
.service-card .bars span:nth-child(3){height:100%;}
.service-card h3 { font-size: 21px; margin-bottom: 12px; }
.service-card p { font-size: 15px; margin-bottom: 0; }
.service-card a.more {
  display: inline-block;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--red-text);
  border-bottom: 1px solid transparent;
}
.service-card a.more:hover { border-color: var(--red-2); }

/* ---------- stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 44px);
  background: var(--red-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.stat .desc { font-size: 13.5px; color: var(--text-mute); }

/* ---------- two column / about teaser ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 44px;
}
.quote {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 22px;
}
.quote-attr { font-size: 13.5px; color: var(--text-mute); }
.quote-attr strong { color: var(--text); font-weight: 600; }

/* ---------- process list ---------- */
.process-list { border-top: 1px solid var(--line); }
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.process-item .step {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-mute);
  font-size: 15px;
}
.process-item h4 { font-size: 18px; margin-bottom: 8px; }
.process-item p { margin: 0; font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h3 { font-size: 26px; margin-bottom: 6px; }
.cta-band p { margin: 0; font-size: 15px; }

/* ---------- footer ---------- */
footer.site-footer {
  padding: 56px 0 40px;
  background: var(--panel);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; max-width: 34ch; }
.footer-col h5 {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 16px;
  font-family: var(--sans);
  font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding: 70px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(32px, 4.4vw, 46px); max-width: 16ch; }
.page-hero p { font-size: 17px; max-width: 52ch; margin-top: 18px; }

/* ---------- about / values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-card {
  border-top: 2px solid var(--line);
  padding-top: 20px;
}
.value-card h4 { font-size: 17px; margin-bottom: 8px; }
.value-card p { font-size: 14.5px; margin: 0; }

.credentials-list { list-style: none; margin: 0; padding: 0; }
.credentials-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text-dim);
  display: flex;
  gap: 14px;
}
.credentials-list li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 8px;
  background: var(--red-2);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info dl { margin: 0; }
.contact-info dt {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  margin-top: 26px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 6px 0 0;
  font-size: 16px;
  color: var(--text);
}

form.contact-form { display: grid; gap: 18px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red-2);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--text-mute); margin-top: -4px; }
button.submit-btn {
  justify-self: start;
  background: var(--red-grad);
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: 3px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
}
button.submit-btn:hover { opacity: 0.92; }
.form-status { font-size: 13.5px; margin-top: 4px; min-height: 18px; }

.map-embed {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  height: 280px;
  margin-top: 28px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); }

/* ---------- accessibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red-2);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  nav.main-nav {
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 10px 32px 20px;
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  nav.main-nav a.active::after { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .footer-top { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 1fr; gap: 8px; }
}
