/* ============================================================
   Masand & Associates — Design tokens
   ============================================================ */
:root {
  --navy: #1B3A5C;
  --navy-deep: #12283F;
  --tan: #A87B4F;
  --tan-light: #C9A374;
  --olive: #5C6B47;
  --cream: #F5EFDC;
  --paper: #FBF8F0;
  --ink: #22261F;
  --ink-soft: #4B4E44;
  --rule: rgba(27, 58, 92, 0.16);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

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

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

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

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

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--paper); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand svg { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text { font-family: var(--serif); line-height: 1.1; }
.brand-text .name { display: block; font-size: 1.05rem; color: var(--navy); font-weight: 600; }
.brand-text .tag { display: block; font-size: 0.68rem; letter-spacing: 0.03em; color: var(--olive); font-family: var(--sans); font-weight: 600; margin-top: 2px; }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.96rem;
  font-weight: 600;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}
.nav-links a.active,
.nav-links a:hover { color: var(--navy); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--tan);
}
.nav-cta { display: none; }
@media (min-width: 780px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1.5px solid var(--navy);
  border-radius: 2px;
  padding: 8px 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  cursor: pointer;
}
@media (min-width: 780px) { .nav-toggle { display: none; } }
.nav-links { display: none; }
@media (min-width: 780px) { .nav-links { display: flex; } }
.nav-links.open { display: flex; }
@media (max-width: 779px) {
  .nav-links.open {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open li { border-top: 1px solid var(--rule); }
  .nav-links.open a { display: block; padding: 16px 28px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--rule);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 240px; margin: 0 auto; }
}
.eyebrow-line {
  font-weight: 600;
  color: var(--olive);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.hero p.lede { font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-art { justify-self: center; }

/* ---------- Differentiator strip ---------- */
.strip {
  background: var(--navy);
  color: var(--paper);
  padding: 46px 0;
}
.strip .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 780px) { .strip .container { grid-template-columns: 1fr; } }
.strip p { color: #E4E2D6; margin: 0; font-size: 1.05rem; max-width: 54ch; }
.strip .stats { display: flex; gap: 40px; flex-wrap: wrap; }
.strip .stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--tan-light);
  font-weight: 600;
}
.strip .stat span { font-size: 0.86rem; color: #C9C7B8; }

/* ---------- Ledger / dossier blocks ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
@media (max-width: 860px) { .dossier-grid { grid-template-columns: 1fr; } }
.dossier {
  padding: 30px 28px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  position: relative;
}
.dossier:nth-child(3n) { border-right: none; }
@media (max-width: 860px) { .dossier { border-right: none; } }
.dossier .tab {
  display: inline-block;
  background: var(--tan);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.dossier h3 { margin-bottom: 10px; }
.dossier ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); }
.dossier li { margin-bottom: 6px; }
.dossier a.more { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1.5px solid var(--tan); }

/* ---------- Reach strip ---------- */
.reach {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px 0;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: baseline;
}
.reach h3 { margin: 0; }
.reach p { margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 52px 40px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin: 0; max-width: 30ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #C9C7B8;
  padding: 50px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--paper); font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.02em; margin-bottom: 14px; }
.footer-grid p, .footer-grid a { color: #B7B5A6; font-size: 0.92rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--paper); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand svg { width: 34px; height: 34px; }
.footer-brand span { font-family: var(--serif); color: var(--paper); font-size: 1.05rem; }
.footer-bottom {
  padding-top: 20px;
  font-size: 0.82rem;
  color: #8E8C7E;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page header (About/Services/Contact) ---------- */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--rule);
}
.page-hero p.lede { font-size: 1.08rem; }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.pull-quote {
  border-left: 3px solid var(--tan);
  padding: 4px 0 4px 22px;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 34px 0;
  font-weight: 500;
}
.credentials { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.credentials li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
}
.credentials li span:first-child { color: var(--ink-soft); }
.credentials li span:last-child { color: var(--navy); font-weight: 600; text-align: right; }

/* ---------- Services page ---------- */
.service-block { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.service-block .head {
  display: flex;
  gap: 24px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.service-block .tab {
  display: inline-block;
  background: var(--tan);
  color: var(--paper);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 700px) { .service-list { grid-template-columns: 1fr; } }
.service-item {
  padding: 22px 26px 22px 0;
  border-bottom: 1px solid var(--rule);
}
.service-item:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 26px; }
@media (max-width: 700px) { .service-item:nth-child(odd) { border-right: none; } }
.service-item h4 { font-family: var(--sans); color: var(--navy); font-size: 1.02rem; margin-bottom: 6px; }
.service-item p { margin: 0; font-size: 0.94rem; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.contact-block:first-child { border-top: 1px solid var(--rule); }
.contact-block .icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; color: var(--tan); }
.contact-block h4 { font-family: var(--sans); font-size: 0.98rem; color: var(--navy); margin-bottom: 4px; }
.contact-block a, .contact-block p { margin: 0; text-decoration: none; }
.contact-block a { color: var(--ink-soft); }
.contact-block a:hover { color: var(--navy); }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  border-radius: 2px;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--tan); outline: none; }
.form-note { font-size: 0.84rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Hairline category grid (works for any item count) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.cat-grid > div { background: var(--cream); padding: 30px 26px; }
.cat-grid .tab {
  display: inline-block;
  background: var(--tan);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.cat-grid ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); }
.cat-grid li { margin-bottom: 6px; }
.cat-grid a.more { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1.5px solid var(--tan); }

/* ---------- Floating call button ---------- */
.call-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--paper);
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 6px 18px rgba(18, 40, 63, 0.32);
  transition: background 0.18s ease, transform 0.18s ease;
}
.call-fab:hover { background: var(--navy-deep); transform: translateY(-2px); }
.call-fab svg { width: 18px; height: 18px; flex-shrink: 0; }
.call-fab .fab-label { display: none; }
@media (min-width: 560px) { .call-fab .fab-label { display: inline; } }

/* ---------- Keyword strip (SEO term list, plain text not tag-cloud styling) ---------- */
.keyword-line { color: var(--ink-soft); font-size: 0.92rem; border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 8px; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumb a { color: var(--olive); text-decoration: none; font-weight: 600; }
.crumb a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq-item h4 { font-family: var(--sans); color: var(--navy); font-size: 1rem; margin-bottom: 8px; }
.faq-item p { margin: 0; }

/* ---------- Google rating badge ---------- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.rating-badge .stars { color: var(--tan); letter-spacing: 1px; font-size: 0.95rem; }
.rating-badge b { color: var(--navy); }

/* ---------- Review cards (populated once real review text is provided) ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 8px;
}
.review-card { background: var(--paper); padding: 26px 24px; }
.review-card .stars { color: var(--tan); letter-spacing: 1px; margin-bottom: 10px; display: block; }
.review-card p.quote { font-style: italic; color: var(--ink); margin-bottom: 14px; }
.review-card .reviewer { font-size: 0.86rem; font-weight: 600; color: var(--navy); }
