/* ==========================================================================
   Pines Bookkeeping — shared stylesheet
   Brand colours sampled from the logo (PBLogo.png):
     green  #39B54A   grey  #6D6E71 / #818285
   ========================================================================== */

:root {
  --green: #39b54a;
  --green-dark: #278038;   /* AA-safe on white for buttons/links */
  --green-tint: #eaf6ec;
  --grey: #6d6e71;          /* body text — matches logo wordmark */
  --grey-light: #818285;    /* muted / secondary text */
  --ink: #2b2d30;           /* headings */
  --bg: #ffffff;
  --bg-alt: #f6f7f6;
  --border: #e3e4e5;
  --shadow: 0 4px 20px rgba(43, 45, 48, 0.08);
  --radius: 10px;
  --max-width: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { padding-left: 1.2em; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------------------------------- Buttons ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--green-dark);
  color: #fff;
}
.btn-primary:hover {
  background: #1f6b2e;
  box-shadow: 0 6px 18px rgba(39, 128, 56, 0.32);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--grey-light);
  color: var(--ink);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--bg-alt);
}

.btn-block { width: 100%; justify-content: center; }

/* ---------------------------------- Header ------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 34px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--ink);
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  display: inline-block;
}
.main-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.main-nav a[aria-current="page"] {
  color: var(--green-dark);
  font-weight: 700;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta-mobile { display: none; }

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-secondary { display: none; }
  .main-nav {
    position: fixed;
    inset: 78px 0 0 0;
    background: #fff;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    padding: 20px 24px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 14px 12px; font-size: 1.1rem; }
  .main-nav .nav-cta-mobile { display: block; margin-top: 16px; }
}

/* ---------------------------------- Hero -------------------------------- */

.hero {
  padding: 72px 0 64px;
  background: linear-gradient(180deg, var(--green-tint) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.82rem;
  background: var(--green-tint);
  border: 1px solid #cdeed3;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--grey);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-art {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.hero-stat {
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--ink);
}
.hero-stat span {
  font-size: 0.85rem;
  color: var(--grey-light);
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

/* ---------------------------------- Sections ----------------------------- */

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head.left { text-align: left; margin: 0 0 40px; }
.eyebrow {
  display: block;
  color: var(--green-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

/* Card grids */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge .icon-glyph {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font);
}

.card ul {
  padding-left: 1.1em;
  margin: 0.6em 0 0;
}
.card li { margin-bottom: 6px; }

/* Fixed-fee banner */
.callout {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
}
.callout h2, .callout h3 { color: #fff; }
.callout p { color: #d7d8da; }
.callout .btn-primary { background: var(--green); }
.callout .btn-primary:hover { background: var(--green-dark); }
@media (max-width: 860px) {
  .callout { grid-template-columns: 1fr; text-align: left; }
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
  position: relative;
}
.price-card .price-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-card.addon {
  border-style: dashed;
  border-color: var(--grey-light);
  background: var(--bg-alt);
}
.price-card.addon.featured {
  border-style: dashed;
  border-color: var(--green);
  box-shadow: none;
}
.price-card .price {
  font-size: 2.2rem;
  color: var(--ink);
  font-weight: 800;
  margin: 6px 0 2px;
}
.price-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--grey-light);
}
.price-card .price-note {
  font-size: 0.85rem;
  color: var(--grey-light);
  margin-bottom: 20px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.price-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 0.96rem;
}
.price-card li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--green-dark);
  margin-top: 3px;
}

.placeholder-flag {
  display: inline-block;
  background: #fff6db;
  border: 1px solid #f0dd9a;
  color: #7a5b00;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 0 0 28px;
}

.addon-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.addon-table th, .addon-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.addon-table th {
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.addon-table tr:last-child td { border-bottom: none; }
.addon-table td.amount { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* Steps / process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  position: relative;
  padding-top: 46px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Quote */
.quote {
  background: var(--green-tint);
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
  font-size: 1.1rem;
  color: var(--ink);
  font-style: italic;
}
.quote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-weight: 600;
  color: var(--grey-light);
  font-size: 0.9rem;
}

/* Forms */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 0.94rem;
}
.form-field .hint { font-size: 0.82rem; color: var(--grey-light); margin-top: 4px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checkbox-row input { width: auto; margin-top: 4px; }

.contact-methods {
  display: grid;
  gap: 16px;
}
.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.contact-method .icon-badge { margin-bottom: 0; flex-shrink: 0; }

.build-note {
  background: #fff6db;
  border: 1px solid #f0dd9a;
  color: #6b5000;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.92rem;
  margin-bottom: 28px;
}
.build-note strong { color: #4a3700; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--green-dark);
}
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { margin-top: 12px; color: var(--grey); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cfd0d2;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.site-footer .brand img { height: 30px; filter: brightness(0) invert(1); }
.site-footer h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #cfd0d2; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #45464a;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--grey-light);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 52px 0 44px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero p.lead { max-width: 60ch; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--grey-light);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--grey-light); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
