/* Balanced Books & Advisory — site styles
   Colors: Limestone #E6E1D3, Cool Iron #415559, Sage #979F92, Deep Sage #6F7A6A, page #F4F1E9
   Fonts: Archivo (headlines, expanded width) and Sora (body), both self-hosted. */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('fonts/sora.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --limestone: #E6E1D3;
  --iron: #415559;
  --sage: #979F92;
  --deep-sage: #6F7A6A;
  --page: #F4F1E9;
  --field: #FBFAF6;
  --pad: clamp(20px, 6.95vw, 89px);
  --head: 'Archivo', system-ui, sans-serif;
  --body: 'Sora', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--iron); font-family: var(--body); line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--iron); text-decoration: none; }
a:hover { color: var(--deep-sage); }
:focus-visible { outline: 3px solid var(--deep-sage); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--iron); color: var(--page); padding: 12px 18px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.label { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin: 0; }
h1, h2, h3 { font-family: var(--head); font-stretch: 125%; font-weight: 700; margin: 0; color: var(--iron); }
h2 { font-size: clamp(26px, 2.65vw, 34px); line-height: 1.1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 32px; border-radius: 4px; font-weight: 600; font-size: 16px; border: 2px solid var(--iron); font-family: var(--body); cursor: pointer; line-height: 1; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.btn svg { flex: none; }
.btn-solid { background: var(--iron); color: var(--page); }
.btn-solid:hover { background: #34464a; color: var(--page); }
.btn-outline { background: transparent; color: var(--iron); }
.btn-outline:hover { background: var(--iron); color: var(--page); }
.btn-light { background: var(--limestone); color: var(--iron); border-color: var(--limestone); }
.btn-light:hover { background: var(--page); color: var(--iron); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--page); border-bottom: 1px solid var(--limestone); }
.site-header .wrap { height: 89px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.nav a.link { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 8px; transition: text-decoration-color .15s ease; }
.nav a.link:hover { color: var(--iron); text-decoration-color: var(--iron); }
.nav .btn { height: 48px; padding: 0 24px; font-size: 15px; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); column-gap: 89px; align-items: center; min-height: 610px; padding-top: 48px; padding-bottom: 48px; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; margin: 0; }
.hero h1 { font-size: clamp(34px, 4.3vw, 55px); line-height: 1.08; text-wrap: balance; }
.hero h1 span { display: block; }
.hero p.lede { margin: 0; font-size: 19px; line-height: 1.6; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.hero-seal { display: flex; justify-content: center; }
.hero-seal img { width: min(380px, 100%); height: auto; }

/* Trades ribbon */
.ribbon { background: var(--limestone); }
.ribbon ul { list-style: none; margin: 0 auto; padding: 0 var(--pad); max-width: 1280px; height: 89px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--head); font-stretch: 125%; font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }

/* Services */
.services { padding: 89px 0 89px; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 55px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.card { background: var(--limestone); border-radius: 8px; padding: 34px 21px; display: flex; flex-direction: column; gap: 13px; }
.card h3 { font-size: 21px; line-height: 1.2; }
.card .lead { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.card ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.card.premium { background: var(--iron); color: var(--limestone); }
.card.premium h3 { color: var(--page); }

/* About */
.about { background: var(--limestone); padding: 89px 0; }
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); column-gap: 89px; align-items: center; }
.about-art { display: flex; justify-content: center; align-items: center; }
.about-art img { width: min(320px, 100%); height: auto; }
.about-text { display: flex; flex-direction: column; gap: 18px; }
.about-text h2 { font-size: clamp(26px, 2.65vw, 34px); max-width: 15em; }
.about-text p { margin: 0; font-size: 16px; line-height: 1.65; max-width: 540px; text-wrap: pretty; }

/* Testimonials (hidden until real quotes exist: remove the "hidden" attribute in index.html) */
.testimonials { padding: 89px 0; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 21px; margin-top: 34px; }
.quote { background: var(--limestone); border-radius: 8px; padding: 34px 28px; margin: 0; }
.quote p { margin: 0 0 16px; font-size: 17px; }
.quote cite { font-style: normal; font-weight: 600; font-size: 15px; }

/* Contact */
.contact { background: var(--iron); color: var(--limestone); padding: 89px 0 55px; }
.contact a { color: var(--limestone); }
.contact a:hover { color: var(--page); }
.contact a.btn-light, .contact a.btn-light:hover { color: var(--iron); }
.contact h2, .contact h3 { color: var(--limestone); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 89px; }
.contact-left { display: flex; flex-direction: column; gap: 24px; padding-right: 34px; }
.contact-left p { margin: 0; font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.contact-list { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.contact-right { border-left: 1px solid var(--deep-sage); padding-left: 89px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.contact-right h3 { font-size: 24px; line-height: 1.2; }
.contact-right p { margin: 0; font-size: 17px; line-height: 1.6; }
.contact-right .btn { align-self: flex-start; }
.talk { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.talk a { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px; border-bottom: 1.5px solid var(--limestone); font-weight: 600; }
.reassure { border-top: 1px solid var(--deep-sage); margin-top: 55px; padding-top: 24px; text-align: center; font-size: 15px; }

/* Footer */
.site-footer { background: var(--iron); border-top: 1px solid var(--deep-sage); color: var(--limestone); font-size: 14px; }
.site-footer .wrap { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.site-footer img { height: 48px; width: auto; }
.site-footer a { color: var(--limestone); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--page); }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; text-align: right; }

/* Question dialog */
dialog.q { border: 0; padding: 0; background: transparent; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: visible; color: var(--iron); }
dialog.q::backdrop { background: rgba(32, 44, 47, 0.72); }
.q-box { position: relative; background: var(--page); border-radius: 8px; padding: 40px; display: flex; flex-direction: column; gap: 24px; max-height: calc(100vh - 24px); overflow-y: auto; }
.q-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--iron); font-size: 30px; line-height: 1; cursor: pointer; font-family: var(--body); }
.q-box h2 { font-size: 28px; line-height: 1.15; padding-right: 40px; }
.q-box p { margin: 0; }
.q-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field input[type=text], .field input[type=email], .field textarea { width: 100%; border: 1.5px solid var(--deep-sage); border-radius: 4px; background: var(--field); color: var(--iron); font-family: var(--body); font-size: 16px; padding: 0 14px; height: 48px; }
.field textarea { height: 112px; padding: 12px 14px; resize: vertical; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.radios label { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border: 1.5px solid var(--deep-sage); border-radius: 4px; background: var(--field); font-size: 15px; font-weight: 400; cursor: pointer; }
.radios input { margin: 0; width: 18px; height: 18px; accent-color: var(--iron); }
.note { font-size: 14px; line-height: 1.5; }
.note.small { font-size: 13px; }
.q-box .btn { align-self: flex-start; }
.q-status { font-weight: 600; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.q-thanks h2 { padding-right: 40px; }

/* Simple text pages (terms, privacy, blog) */
.page { padding: 72px 0 89px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; margin-bottom: 8px; }
.page h2 { font-size: 22px; margin: 40px 0 12px; }
.page p, .page li { font-size: 16px; line-height: 1.7; }
.page ul { padding-left: 22px; }
.page .updated { font-size: 14px; margin: 0 0 24px; }

/* Tablet */
@media (max-width: 1100px) {
  .ribbon ul { font-size: 12px; letter-spacing: 0.08em; font-stretch: 100%; }
  .nav { gap: 24px; }
}

@media (max-width: 960px) {
  .nav a.link.hide-md { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 30px 28px; }
  .eyebrow { white-space: normal; }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; padding-bottom: 56px; row-gap: 40px; }
  .hero-seal img { width: 220px; }
  .about .wrap { grid-template-columns: 1fr; }
  .about-art { display: none; }
  .contact-grid { grid-template-columns: 1fr; row-gap: 44px; }
  .contact-left { padding-right: 0; }
  .contact-right { border-left: 0; border-top: 1px solid var(--deep-sage); padding-left: 0; padding-top: 44px; }
  .services, .about, .testimonials { padding: 64px 0; }
  .contact { padding: 64px 0 40px; }
  .section-head { margin-bottom: 34px; }
  .foot-meta { justify-content: flex-start; text-align: left; }
}

/* Phone */
@media (max-width: 620px) {
  .site-header .wrap { height: 72px; }
  .logo img { height: 44px; }
  .nav a.link { display: none; }
  .nav .btn { height: 44px; padding: 0 18px; font-size: 14px; }
  .btn { height: 52px; padding: 0 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero p.lede { font-size: 17px; }
  /* Ribbon shows three trades on phones: General Contracting, Outdoor Living, Landscaping */
  .ribbon ul { height: 64px; font-size: clamp(8px, 2.6vw, 12px); letter-spacing: 0.04em; gap: 6px; }
  .ribbon li:nth-child(2), .ribbon li:nth-child(3) { display: none; }
  .q-box { padding: 28px 20px; }
  .q-grid { grid-template-columns: 1fr; }
  .radios label { flex: 1 1 100%; }
  .reassure { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

#ask-form-wrap > div:first-child { margin-bottom: 24px; }

@media (max-width: 380px) {
  .logo img { height: 36px; }
  .nav .btn { padding: 0 14px; font-size: 13px; }
  .hero-actions .btn { white-space: normal; text-align: center; }
}
