/* Clean Books Business Services — site styles */
:root {
  --green: #2F8A12;
  --green-logo: #349A0A;
  --green-deep: #1C3F16;
  --green-soft: #E6F0E0;
  --blue: #0065C2;
  --paper: #F7F8F4;
  --panel: #EEF0EA;
  --ink: #1F2A23;
  --muted: #5B6A60;
  --rule: #CFD8CE;
  --margin-red: #0065C2;
  --white: #FFFFFF;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--green-deep); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 184px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--green-deep); }
.brand img { height: 160px; width: auto; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 400; font-size: .78rem; color: var(--muted); }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-size: .98rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green-deep); }
.site-header .nav a.btn, .site-header .nav a.btn:link, .site-header .nav a.btn:visited, .site-header .nav a.btn:hover, .site-header .nav a.btn:active { border: 0; color: #FFFFFF !important; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 6px; padding: .45rem .7rem; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-header .wrap { min-height: 116px; }
  .brand img { height: 98px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 116px; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--rule); padding: .5rem 1.25rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--green); }
  .nav .btn { margin-top: .75rem; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; background: var(--green); color: var(--white); text-decoration: none; padding: .8rem 1.4rem; border-radius: 6px; font-weight: 500; font-size: 1rem; border: 0; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--green-deep); color: var(--white); }
.btn.secondary { background: transparent; color: var(--green-deep); border: 1.5px solid var(--green); }
.btn.secondary:hover { background: var(--green-soft); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* Hero with ledger ruling */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, transparent 0, transparent calc(50% + 300px), var(--margin-red) calc(50% + 300px), var(--margin-red) calc(50% + 301px), transparent calc(50% + 301px)),
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--rule) 31px, var(--rule) 32px);
  opacity: .55;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,0));
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: .5em; font-size: 1.34rem; line-height: 1.5; letter-spacing: 0; }
.hero .hero-sub { font-family: var(--serif); font-size: 1.27rem; line-height: 1.45; color: var(--green-deep); margin-bottom: .9rem; max-width: 60ch; }
.hero .lede { margin-bottom: 1.6rem; }
.hero-card { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--blue); padding: 1.6rem 1.7rem; box-shadow: 0 1px 0 var(--rule); }
.hero-card h2 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; color: var(--muted); margin-bottom: 1rem; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--rule); font-size: .98rem; }
.ledger li:last-child { border-bottom: 0; }
.ledger li span:last-child { color: var(--green); font-weight: 600; white-space: nowrap; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero::before { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--rule) 31px, var(--rule) 32px); }
}

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section.deep { background: var(--green-deep); color: #E8EFE8; }
.section.deep h2, .section.deep h3 { color: var(--white); }
.section.deep p { color: #D4E0D4; }
.section.deep a { color: #BFE3C4; }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 1.5rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.wrap.wide { width: min(1240px, 100% - 2.5rem); }
.grid.five { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.grid.five .service p { font-size: .92rem; }
.grid.five .service li { font-size: .9rem; }
.grid.five .service h3 { font-size: 1.12rem; }
@media (max-width: 1100px) { .grid.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid.five { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid.five { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.four { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }

.service { padding: 1.4rem 0 0; border-top: 2px solid var(--green-logo); }
.service h3 { margin-bottom: .4rem; }
.service p { color: var(--muted); font-size: .98rem; margin-bottom: .6rem; }
.service ul { margin: 0; padding-left: 1.1rem; font-size: .96rem; }
.service li { margin-bottom: .25rem; }

.fact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2.5rem; }
.fact-list li { padding-left: 1.6rem; position: relative; }
.fact-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }
.fact-list strong { display: block; color: var(--green-deep); }
.fact-list span { color: var(--muted); font-size: .96rem; }
@media (max-width: 660px) { .fact-list { grid-template-columns: 1fr; } }

.industries { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin: 0; padding: 0; list-style: none; }
.industries li { background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .85rem; font-size: .92rem; }

.towns { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--green-deep); line-height: 1.5; max-width: none; display: flex; flex-wrap: wrap; row-gap: .2rem; }
.towns span { white-space: nowrap; }
.towns span + span::before { content: "·"; color: var(--green); margin: 0 .55em; }

/* Contact / intake form */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--blue); padding: 1.5rem 1.6rem; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: .15rem 0 0; font-size: 1.05rem; }
.contact-card dd a { text-decoration: none; font-weight: 500; }
form { background: var(--white); border: 1px solid var(--rule); padding: 1.6rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 500; margin-bottom: .35rem; font-size: .96rem; }
.field .hint { color: var(--muted); font-size: .85rem; margin: -.2rem 0 .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #B9C4B8; border-radius: 5px; background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); border-color: var(--green); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hidden { display: none; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 1rem; margin-bottom: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.headshot { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--rule); border-radius: 4px; }
.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 1.3rem 1.4rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid var(--paper); }
.timeline .when { font-size: .85rem; color: var(--muted); display: block; }
.timeline strong { color: var(--green-deep); }

/* FAQ */
details { border-top: 1px solid var(--rule); padding: 1rem 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; color: var(--green-deep); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font-weight: 400; font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: .8rem; color: var(--ink); }

/* Footer */
.site-footer { background: var(--green-deep); color: #C9D8CB; padding: 2.5rem 0 2rem; font-size: .93rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: var(--white); font-family: var(--sans); font-size: .95rem; font-weight: 600; margin-bottom: .6rem; }
.site-footer a { color: #E6F0E6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer .tag { font-family: var(--serif); font-style: italic; color: var(--white); font-size: 1.1rem; margin-bottom: .4rem; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; margin-top: .5rem; font-size: .83rem; color: #9DB5A1; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Page intro (inner pages) */
.page-intro { padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }
.page-intro h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.field select:has(option[value=""]:checked) { color: var(--muted); }
