/* American Tax & Business Services LLC */
:root {
  --navy: #002546;
  --navy-deep: #00182f;
  --navy-mid: #123a5c;
  --red: #970c25;
  --red-bright: #b31430;
  --red-soft: #c94a5a;
  --ivory: #f7f8fa;
  --cream: #eef1f5;
  --ink: #12202c;
  --muted: #5a6570;
  --line: #d5dce3;
  --white: #ffffff;
  --header-h: 76px;
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-sans: "Source Sans 3", "Segoe UI", Calibri, sans-serif;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button, input, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--navy); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.wrap { width: min(1100px, calc(100% - 2rem)); margin-inline: auto; min-width: 0; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,248,250,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--red);
}
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--navy); min-width: 0; }
.logo img { height: 48px; width: auto; flex: 0 0 auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; }
.logo-text span { font-size: 0.72rem; color: var(--red); font-weight: 700; letter-spacing: 0.04em; }
.nav { display: flex; align-items: center; gap: 1rem; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 0.7rem; }
.phone-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--navy); font-weight: 700; text-decoration: none; white-space: nowrap; }
.phone-link svg { width: 16px; height: 16px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--white); color: var(--navy); border-radius: var(--radius); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 2px solid transparent; border-radius: var(--radius);
  padding: 0.75rem 1.2rem; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-bright); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }

.hero {
  background: var(--navy);
  color: #e8eef4;
  padding: 3.8rem 0 4rem;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2.15rem, 4.8vw, 3.4rem); }
.hero p { color: #c9d4de; font-size: 1.14rem; max-width: 36rem; }
.kicker, .hero .kicker { display: inline-block; color: #f0c8ce; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem; max-width: 100%; }
.kicker.dark { color: var(--red); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-mark { background: var(--white); border-radius: 16px; padding: 1.6rem 1.4rem; }
.hero-mark img { margin-inline: auto; max-width: 100%; width: auto; height: auto; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.pill { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #e8eef4; border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.88rem; font-weight: 600; }

.section { padding: 4rem 0; }
.section.alt { background: var(--cream); }
.section-head { max-width: 38rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.step { background: var(--white); border-radius: var(--radius); padding: 1.4rem 1.25rem; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,37,70,0.04); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.2rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.15rem; border-top: 3px solid var(--red); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

.faq { display: grid; gap: 0.7rem; max-width: 46rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.2rem 1rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-family: var(--font-display); padding: 0.9rem 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--red); font-weight: 700; }
.faq details[open] summary::after { content: "-"; }
.faq p { color: var(--muted); padding-bottom: 0.9rem; }

.book-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1rem 0; }
.contact-list li { margin: 0 0 0.8rem; }
.contact-list a { color: var(--navy); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--red); }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy); margin: 0 0 0.7rem; }
label span { display: block; margin-bottom: 0.3rem; }
input, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--ivory); color: var(--ink);
  padding: 0.7rem 0.75rem; border-radius: 8px;
}
input:focus, textarea:focus { outline: 2px solid var(--red); border-color: var(--red); background: var(--white); }
textarea { min-height: 120px; resize: vertical; }
.form-note, .form-success, .pay-note { margin-top: 0.85rem; color: var(--muted); font-size: 0.95rem; }
.form-success { display: none; background: #eef5f1; border: 1px solid #c9ddd2; color: #1c4734; padding: 0.85rem 1rem; border-radius: 8px; }
.form-success.is-visible { display: block; }
.pay-inline { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.badge { display: inline-block; border: 1px solid var(--red); color: var(--red); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; padding: 0.15rem 0.45rem; margin-left: 0.35rem; border-radius: 999px; }
.social { display: flex; gap: 0.55rem; margin-top: 1.1rem; }
.social a {
  width: 38px; height: 38px; border: 1px solid var(--line); color: var(--navy);
  display: grid; place-items: center; text-decoration: none; border-radius: 8px;
}
.social a:hover { border-color: var(--red); color: var(--red); }
.social svg { width: 16px; height: 16px; }

.page-hero { background: var(--navy); color: #e8eef4; padding: 2.8rem 0 2.2rem; }
.page-hero h1 { color: var(--white); }
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6rem; }

.site-footer { background: var(--navy-deep); color: #c5ced8; padding: 2.6rem 0 1.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 1.6rem; }
.site-footer h2, .site-footer h3 { color: var(--white); font-size: 1.1rem; }
.site-footer a { color: #d7dee6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 0.4rem; }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; font-size: 0.85rem; color: #9aa6b3; }

@media (max-width: 900px) {
  .hero-grid, .book-grid, .footer-grid, .form-row { grid-template-columns: 1fr; min-width: 0; }
  .hero-grid > *, .book-grid > * { min-width: 0; max-width: 100%; }
  .steps, .grid { grid-template-columns: 1fr; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible; }
  .nav, .header-actions .phone-link, .header-actions .btn { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0;
    top: var(--header-h);
    background: var(--ivory);
    border-bottom: 0;
    padding: 0.6rem 1.25rem 2.4rem;
    gap: 0;
    z-index: 60;
    overflow: auto;
  }
  .nav.is-open a {
    display: flex; align-items: center;
    min-height: 52px;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  body.menu-open { overflow: hidden; }
  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after { transition: transform 0.2s ease, top 0.2s ease, background 0.2s ease; }
  body.menu-open .menu-toggle span { background: transparent; }
  body.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
  body.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }
  .logo img { height: 40px; }
  .logo-text strong { font-size: 0.82rem; }
  .logo-text { min-width: 0; }
  .hero-mark { display: none; }
  .hero { padding: 2.2rem 0 2.4rem; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.6rem); }
  .hero p { font-size: 1.05rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; min-height: 48px; }
  .btn { min-height: 48px; }
  .form .btn, .pay-inline .btn { width: 100%; }
  .section { padding: 3rem 0; }
  .section-head h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  input, textarea { font-size: 16px; padding: 0.8rem 0.75rem; }
  input { min-height: 44px; }
  .social a { width: 44px; height: 44px; }
  .faq summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
  .faq summary::after { float: none; flex: 0 0 auto; }
  .site-footer h2 { font-size: clamp(1.15rem, 5.4vw, 1.4rem); }
  .footer-grid { gap: 1.4rem; }
}
@media (max-width: 620px) {
  :root { --header-h: 68px; }
}
@media (max-width: 379px) {
  .wrap { width: min(1100px, calc(100% - 1.6rem)); }
  .hero h1 { font-size: clamp(1.75rem, 8.2vw, 2.2rem); }
  .logo-text strong { font-size: 0.78rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
