/* =========================================================
   Feroben Bookkeeping — Modern Minimal Stylesheet
   Palette: sage green + cream + charcoal
   Type:    Fraunces (display) + Inter (body)
   ========================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* ---------- Tokens ---------- */
:root {
  --sage:        #6F8C7E;
  --sage-deep:   #4F6B5E;
  --sage-soft:   #DCE6E0;
  --cream:       #F8F5EE;
  --cream-warm:  #F1ECE0;
  --charcoal:    #23262A;
  --charcoal-2:  #4A4F55;
  --gold:        #C9A96A;
  --line:        #E2DDD0;
  --white:       #FFFFFF;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(35,38,42,.06);
  --shadow:    0 8px 30px rgba(35,38,42,.08);
  --shadow-lg: 0 22px 60px rgba(35,38,42,.12);

  --max:       1140px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 0 0 .4em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 450; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 500; }
p  { margin: 0 0 1em; color: var(--charcoal-2); }
.lead { font-size: 1.18rem; color: var(--charcoal-2); max-width: 60ch; }
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1rem;
}
.eyebrow::before { content: "— "; opacity: .5; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: clamp(56px, 9vw, 110px) 0; }
.section-tight { padding: clamp(40px, 6vw, 70px) 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 238, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--charcoal);
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: url("logo.svg") center/contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
  border-radius: 12px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -.01em;
}
.brand-tag {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: 4px;
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: .95rem;
  color: var(--charcoal-2);
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--sage-deep); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--charcoal);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--charcoal);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .98rem;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--sage-deep);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--charcoal);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}
.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--cream);
}
.btn-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform .2s;
}
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(60px, 10vw, 130px) 0 clamp(60px, 9vw, 110px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--sage-soft) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 em {
  font-style: italic;
  color: var(--sage-deep);
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta div { font-size: .9rem; color: var(--charcoal-2); }
.hero-meta strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 4px;
}

/* hero card / illustration block */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  width: 110px; height: 110px;
  background: var(--sage);
  border-radius: 50%;
  z-index: -1;
  opacity: .6;
}
.hero-visual h4 {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 18px;
  font-weight: 600;
}
.report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
  color: var(--charcoal-2);
}
.report-row:last-child { border-bottom: 0; }
.report-row strong { color: var(--charcoal); font-weight: 500; }
.report-row .pos { color: var(--sage-deep); font-weight: 600; }
.report-row .neg { color: #B45A4A; font-weight: 600; }
.report-total {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px solid var(--charcoal);
  display: flex;
  justify-content: space-between;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
}

/* ---------- Section heads ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.section-head.left {
  text-align: left;
  margin-left: 0;
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--sage);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--sage-soft);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--sage-deep);
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: .98rem; flex: 1; }
.service-card .learn-more {
  margin-top: 20px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--sage-deep);
}
.service-card .learn-more::after {
  content: " →";
  transition: transform .2s;
  display: inline-block;
}
.service-card:hover .learn-more::after { transform: translateX(3px); }

/* Detailed service block */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-of-type { border-bottom: 0; }
.service-detail .label {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-bottom: 8px;
}
.service-detail h2 { margin-bottom: 18px; }
.service-detail ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.service-detail li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
}
.service-detail li:last-child { border-bottom: 0; }
.service-detail li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--sage-deep);
  border-bottom: 2px solid var(--sage-deep);
  transform: rotate(-45deg);
}
.who-its-for {
  background: var(--cream-warm);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 24px;
  font-size: .95rem;
}
.who-its-for strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--charcoal);
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--charcoal);
  color: var(--cream);
  padding: 70px 0;
}
.trust .container { text-align: center; }
.trust h2 { color: var(--cream); margin-bottom: 14px; }
.trust p { color: rgba(248,245,238,.8); max-width: 60ch; margin: 0 auto; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.stat strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 6px;
}
.stat span {
  font-size: .9rem;
  color: rgba(248,245,238,.7);
  letter-spacing: .04em;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}
.about-portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--sage-soft), var(--cream-warm));
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-portrait::after {
  content: "BF";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  font-size: 6rem;
  color: var(--sage-deep);
  opacity: .35;
}
.about-portrait .badge {
  position: absolute;
  bottom: 18px; left: 18px;
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--sage-deep);
  box-shadow: var(--shadow-sm);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--sage-deep);
  color: var(--cream);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  bottom: -180px; left: -120px;
  width: 400px; height: 400px;
  background: rgba(248,245,238,.06);
  border-radius: 50%;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: rgba(248,245,238,.85); max-width: 50ch; margin: 0 auto 28px; }
.cta-band .btn-primary {
  background: var(--cream);
  color: var(--sage-deep);
}
.cta-band .btn-primary:hover {
  background: var(--white);
  color: var(--charcoal);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream-warm);
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid h5 {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin: 0 0 18px;
  font-weight: 600;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a {
  font-size: .92rem;
  color: var(--charcoal-2);
  transition: color .2s;
}
.footer-grid a:hover { color: var(--sage-deep); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--charcoal-2);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: span 2; }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--charcoal);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 4px rgba(111,140,126,.14);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note {
  font-size: .85rem;
  color: var(--charcoal-2);
  margin-top: 16px;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  top: -160px; right: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--sage-soft) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.page-header > .container { position: relative; z-index: 1; }
.page-header h1 { max-width: 18ch; margin-bottom: 16px; }
.page-header p.lead { max-width: 56ch; }

/* ---------- Two-column content ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  color: var(--sage-deep);
  font-weight: 300;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid,
  .about-grid,
  .two-col,
  .service-detail { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: span 1; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: inline-flex; }
  .hero-meta { gap: 18px; }
  .brand-tag { display: none; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}
