/* S.Amari Bookkeeping Solutions, LLC — shared stylesheet */
:root {
  --navy: #0f1e45;
  --navy-deep: #0a1531;
  --orange: #ff9e0b;
  --orange-dark: #9a5800; /* AA contrast on white and on mist */
  --ink: #1b2440;
  --muted: #4a5470;
  --paper: #ffffff;
  --mist: #f5f6fa;
  --line: #dde1ec;
  --radius: 10px;
  --max: 1120px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--orange-dark); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
[id] { scroll-margin-top: 90px; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--orange-dark);
  margin-bottom: .75rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1.25rem; max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy); font-weight: 700; line-height: 1.2; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand span { font-family: var(--font-head); font-size: 1.05rem; max-width: 15rem; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--navy); color: var(--navy);
  border-radius: 8px; padding: .45rem .8rem; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a.nav-link {
  display: block; padding: .5rem .8rem; text-decoration: none; color: var(--navy);
  font-weight: 600; border-bottom: 3px solid transparent;
}
.site-nav a.nav-link:hover { border-bottom-color: var(--orange); }
.site-nav a.nav-link.active { border-bottom-color: var(--orange); color: var(--navy-deep); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  background: var(--orange); color: var(--navy-deep);
  font-weight: 800; padding: 1rem 1.6rem; border-radius: var(--radius);
  border: 2px solid var(--orange); font-size: 1.05rem; line-height: 1.3;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #ffb23d; color: var(--navy-deep); transform: translateY(-1px); }
.btn-sm { padding: .6rem 1rem; font-size: .92rem; }
.cta-note { margin: .85rem auto 0; font-size: .95rem; color: #c9cfe3; max-width: 52ch; }

/* Hero: navy with a faint blueprint grid */
.hero {
  background-color: var(--navy); color: #fff; padding: 4.5rem 0 4rem;
  background-image:
    linear-gradient(rgba(255,158,11,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,158,11,.07) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero .eyebrow { color: var(--orange); }
.hero .lead { font-size: 1.2rem; max-width: 62ch; color: #e6e9f4; }
.hero-note { margin-top: .9rem; font-size: .95rem; color: #c9cfe3; }
.hero-note a { color: #fff; }
.pill {
  display: inline-block; background: rgba(255,158,11,.16); border: 1px solid var(--orange);
  color: #ffd28a; padding: .35rem .9rem; border-radius: 999px; font-weight: 700; font-size: .92rem; margin-bottom: 1.25rem;
}

/* Sections */
section { padding: 4rem 0; }
.section-alt { background: var(--mist); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--orange); }
.section-navy .lead { color: #e6e9f4; }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-top: 4px solid var(--orange); border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card .label { font-weight: 700; color: var(--navy); }
.card-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .75rem; }
.card-head h3 { margin: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; margin-bottom: .75rem;
}

/* Trade icons (inline SVG, navy tile with orange line art) */
.icon {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: var(--orange);
}
.icon svg { width: 28px; height: 28px; }
.avatar { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid var(--orange); }

.check-list { list-style: none; padding: 0; margin: 1rem 0; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .7rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: .75rem; height: .75rem; background: var(--orange); border-radius: 2px;
}

.quote {
  border-left: 5px solid var(--orange); padding: .5rem 0 .5rem 1.25rem;
  font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); margin: 1.5rem 0;
}
.callout {
  background: var(--navy); color: #fff; border-left: 6px solid var(--orange);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0;
  font-family: var(--font-head); font-size: 1.2rem; line-height: 1.45;
}
.section-navy .callout { background: var(--navy-deep); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1rem 0; }
.chips li { border: 2px solid var(--navy); background: #fff; color: var(--navy); border-radius: 999px; padding: .3rem 1rem; font-weight: 800; }
.section-navy .chips li { border-color: var(--orange); background: transparent; color: #fff; }

.fit-note { background: #fff; border: 2px dashed var(--navy); border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: 1.75rem; }
.fit-note p { margin: 0; }

.portrait { border-radius: var(--radius); border: 4px solid var(--orange); max-width: 380px; width: 100%; }
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }

/* Intuit credential badges */
.badge-wrap { margin-top: 2.25rem; }
.badge-title { font-weight: 700; color: var(--navy); margin-bottom: .75rem; }
.badge-row { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 0; margin: 0; align-items: center; }
.badge-row li { width: 128px; }
.badge-row img { width: 100%; height: auto; }
.badge-row.large li { width: 150px; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 0 1.25rem; margin-bottom: .75rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 1rem 2rem 1rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: .85rem; font-size: 1.5rem; color: var(--orange-dark); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; }

.stripe { height: 10px; background: repeating-linear-gradient(135deg, var(--orange) 0 16px, var(--navy-deep) 16px 32px); }
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 60ch; margin-left: auto; margin-right: auto; color: #e6e9f4; }
.cta-band .cta-note { color: #c9cfe3; }

/* Contact */
.contact-line, address, .site-footer p { overflow-wrap: anywhere; }
.contact-line { font-size: 1.15rem; font-weight: 700; }
.contact-line a { text-decoration: none; }
.contact-line a[href^="https://calendly"] { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.meta-line { color: var(--muted); font-size: .98rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #d5daeb; padding: 3rem 0 6.5rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-brand { display: flex; align-items: center; gap: .75rem; color: #fff; font-family: var(--font-head); font-weight: 700; }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 50%; }
.footer-title { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: .6rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.legal { margin-top: 2rem; font-size: .82rem; color: #b9c0d8; max-width: 90ch; }
.copyright { margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid #243257; font-size: .9rem; }

/* Sticky mobile action bar */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--navy-deep); border-top: 3px solid var(--orange);
  padding: .6rem .75rem; gap: .6rem;
}
.mobile-bar a { flex: 1; text-align: center; text-decoration: none; font-weight: 800; padding: .8rem .5rem; border-radius: 8px; font-size: .95rem; line-height: 1.2; }
.mobile-bar .bar-cta { background: var(--orange); color: var(--navy-deep); flex: 2; }
.mobile-bar .bar-call { background: #fff; color: var(--navy-deep); white-space: nowrap; }

/* Service groups, card subheads, affiliate buttons */
h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0; font-size: 1.15rem; }
.group { margin-bottom: 2.75rem; }
.group:last-child { margin-bottom: 0; }
.group-head { margin-bottom: 1.1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--line); }
.group-head .eyebrow { margin-bottom: .25rem; }
.group-head h3 { font-size: 1.6rem; margin-bottom: .1rem; }
.group-sub { margin: 0; color: var(--muted); font-weight: 600; }
a.aff-link:not([href^="http"]) { display: none; }
p:has(> a.aff-link:not([href^="http"])) { display: none; }

@media (min-width: 720px) {
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.4fr 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
}

@media (max-width: 860px) {
  .header-cta { display: none; }
  .mobile-bar { display: flex; }
  .brand span { font-size: .9rem; max-width: 11rem; }
  section { padding: 3rem 0; }
  .hero { padding: 3rem 0; }
  .badge-row li, .badge-row.large li { width: 104px; }
}

@media (min-width: 861px) {
  .header-inner { position: relative; }
  .site-footer { padding-bottom: 3rem; }
}

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