/* Amjad R Malik, CPA PLLC  editorial letterhead layout */
:root {
  --navy: #022357;
  --navy-deep: #011534;
  --navy-mid: #1a3a6e;
  --gold: #a77d48;
  --gold-bright: #b8905a;
  --gold-light: #d4c09a;
  --ivory: #f4f1ea;
  --cream: #e8e2d6;
  --paper: #fbfaf6;
  --ink: #16191f;
  --muted: #5c616a;
  --line: #d6d0c4;
  --white: #ffffff;
  --header-h: 72px;
  --font-serif: "Newsreader", "Times New Roman", Times, serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", Calibri, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy-mid); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button, input, textarea { font: inherit; }
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-optical-sizing: auto;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.wrap { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; min-width: 0; }

/* Letterhead */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.masthead {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; 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.12; }
.logo-text strong { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.logo-text span { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.masthead-meta { display: flex; align-items: center; gap: 1rem; }
.phone-link {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.phone-link svg { width: 15px; height: 15px; }
.phone-link:hover { color: var(--gold); }
.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; 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; }
.nav { display: none; }
.nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  top: var(--header-h);
  background: var(--paper);
  z-index: 55;
  padding: 1.25rem 1.4rem 3rem;
  overflow: auto;
}
.nav a {
  display: block;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.nav a:hover, .nav a.is-current { color: var(--gold); }
.nav-consult { color: var(--gold) !important; }

/* Buttons and typographic actions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--navy);
  border-radius: 0;
  padding: 0.8rem 1.25rem;
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: var(--navy);
  color: var(--white);
}
.btn:hover { background: var(--navy-mid); color: var(--white); border-color: var(--navy-mid); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--navy-deep); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem 1.4rem; align-items: center; margin-top: 1.8rem; }
.text-link {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.12rem;
}
.text-link:hover { color: var(--gold); }

.eyebrow {
  display: block;
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 0 0 1.6rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.note { margin-top: 2rem; color: var(--muted); font-size: 0.98rem; max-width: 42rem; }

/* Asymmetric editorial hero */
.hero {
  background: var(--ivory);
  padding: 2.6rem 0 3.2rem;
}
.hero-grid { display: grid; gap: 2.4rem; min-width: 0; }
.hero-grid > * { min-width: 0; max-width: 100%; }
.hero h1 {
  font-size: clamp(2.35rem, 9vw, 3.15rem);
  font-weight: 500;
  line-height: 1.06;
  max-width: 14ch;
  margin-bottom: 1.1rem;
}
.hero .standfirst {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
}
.hero-plate {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--gold-light);
  padding: 1.6rem 1.4rem 1.3rem;
  max-width: 340px;
}
.hero-plate img { margin-inline: auto; max-width: 260px; }
.hero-plate figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* Credentials strip */
.creds {
  background: var(--navy);
  color: var(--gold-light);
  padding: 1.15rem 0;
}
.creds-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0;
}
.creds-row span {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.25rem 0.9rem 0.25rem 0;
  margin-right: 0.9rem;
  border-right: 1px solid rgba(212, 192, 154, 0.35);
}
.creds-row span:last-child { border-right: 0; margin-right: 0; }

/* Sections */
.section { padding: 4rem 0; }
.section.tight { padding: 3.2rem 0; }
.section-head { max-width: 36rem; margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 0.4rem; }

/* Numbered practice / services */
.num-list { list-style: none; margin: 0; padding: 0; }
.num-item {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.9rem 1.1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.num-item:last-child { border-bottom: 1px solid var(--line); }
.num-item .num {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
  padding-top: 0.2rem;
}
.num-item h2, .num-item h3 { font-size: 1.35rem; margin: 0 0 0.3rem; }
.num-item p { color: var(--muted); margin: 0; max-width: 38rem; }
.num-item a.item-link { color: inherit; text-decoration: none; }
.num-item a.item-link:hover h2, .num-item a.item-link:hover h3 { color: var(--gold); }

/* Pull quote */
.approach {
  background: var(--navy-deep);
  color: #e4e8ef;
  padding: 4.2rem 0;
}
.approach blockquote { margin: 0; }
.approach blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
  line-height: 1.25;
  color: var(--white);
  max-width: 18ch;
  letter-spacing: -0.02em;
}
.approach .quote-mark {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.approach-attrib {
  margin-top: 1.6rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Deadline timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: var(--gold-light);
}
.timeline li {
  position: relative;
  padding: 0 0 1.6rem 2rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ivory);
}
.timeline time {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
}
.timeline p { color: var(--muted); margin: 0.15rem 0 0; }

/* Closing invitation */
.close { padding: 4.2rem 0; background: var(--paper); border-top: 1px solid var(--line); }
.close h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 16ch; }

/* Inner page intro (no navy banner) */
.page-intro { padding: 3.2rem 0 0.5rem; }
.page-intro h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); max-width: 16ch; }

/* About */
.bio-layout { display: grid; gap: 2rem; }
.bookplate {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--gold-light);
  padding: 2rem 1.5rem 1.6rem;
  text-align: center;
  max-width: 320px;
}
.bookplate img { height: 120px; width: auto; margin: 0 auto 1rem; }
.bookplate .role {
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.bookplate .name { font-size: 1.55rem; margin-bottom: 0.3rem; }
.bookplate p { color: var(--muted); font-size: 0.95rem; }
.bio-copy { max-width: 38rem; font-size: 1.08rem; }
.bio-copy p { margin-bottom: 1.1rem; }

/* Resources checklist */
.checklist { margin: 0; padding-left: 1.15rem; }
.checklist li { margin: 0 0 0.45rem; }

/* Payments */
.pay-letter {
  max-width: 38rem;
  background: var(--paper);
  border-top: 3px solid var(--gold);
  padding: 2.2rem 0 0;
}
.badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--navy);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  margin-left: 0.55rem;
  vertical-align: middle;
}
.pay-note, .form-note, .form-success { margin-top: 0.95rem; color: var(--muted); font-size: 0.95rem; }
.form-success { display: none; background: #eef4ee; border: 1px solid #c9d8cc; color: #1c3d2a; padding: 0.85rem 1rem; }
.form-success.is-visible { display: block; }

/* Contact */
.contact-grid { display: grid; gap: 2.4rem; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.contact-list li { margin: 0 0 1.1rem; }
.contact-list strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.contact-list a { color: var(--navy); font-weight: 500; text-decoration: none; font-family: var(--font-serif); font-size: 1.15rem; }
.contact-list a:hover { color: var(--gold); }
.address-line { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy); }
.form { background: transparent; border: 0; padding: 0; }
.form h2 { font-size: 1.7rem; }
.form-row { display: grid; gap: 0.8rem; }
label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--navy); margin: 0 0 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
label span { display: block; margin-bottom: 0.35rem; }
input, textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0.55rem 0 0.65rem;
  border-radius: 0;
}
input:focus, textarea:focus { outline: none; border-bottom-color: var(--gold); }
textarea { min-height: 130px; resize: vertical; }

.social { display: flex; gap: 0.55rem; margin-top: 1.3rem; }
.social a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  color: var(--navy);
  display: grid; place-items: center;
  text-decoration: none;
}
.social a:hover { border-color: var(--gold); color: var(--gold); }
.social svg { width: 16px; height: 16px; }
.social.light a { border-color: rgba(255,255,255,0.2); color: var(--gold-light); }
.social.light a:hover { border-color: var(--gold); color: var(--gold-light); }

.prose { max-width: 40rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }

/* Footer as a colophon, not a 3-column template */
.site-footer {
  background: var(--navy-deep);
  color: #c5ced8;
  padding: 3.4rem 0 1.4rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.footer-brand img { height: 64px; width: auto; max-width: none; align-self: flex-start; flex: 0 0 auto; }
.footer-brand h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0;
  font-weight: 500;
}
.footer-brand p { margin: 0.35rem 0 0; color: var(--gold-light); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; font-weight: 600; }
.footer-rule { border: 0; height: 1px; background: rgba(212, 192, 154, 0.35); margin: 0 0 1.6rem; }
.footer-meta {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
  font-size: 0.95rem;
}
.footer-meta a { color: #d7dee6; text-decoration: none; }
.footer-meta a:hover { color: var(--gold-light); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
}
.footer-links a {
  color: #d7dee6;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--gold-light); }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; font-size: 0.85rem; color: #9aa6b3; }

/* Scroll reveals */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

@media (min-width: 700px) {
  .hero-plate { max-width: 380px; }
  .timeline li {
    display: grid;
    grid-template-columns: 15.5rem 1fr;
    gap: 1.2rem;
    align-items: baseline;
    padding: 1.05rem 0 1.05rem 2rem;
    border-top: 1px solid var(--line);
  }
  .timeline li:last-child { border-bottom: 1px solid var(--line); padding-bottom: 1.05rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --header-h: 126px; }
  .wrap { width: min(1180px, calc(100% - 4rem)); }
  .menu-toggle { display: none; }
  .phone-link { display: inline-flex; }
  .site-header { border-bottom: 0; }
  .masthead {
    min-height: 78px;
    border-bottom: 1px solid var(--line);
  }
  .logo img { height: 54px; }
  .logo-text strong { font-size: 1.15rem; }
  .nav, .nav.is-open {
    display: block;
    position: static;
    padding: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .nav-inner {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    min-height: 48px;
  }
  .nav a {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0;
    border: 0;
    color: var(--navy);
  }
  .nav a.is-current { color: var(--gold); box-shadow: inset 0 -1px 0 var(--gold); }
  .nav-consult { margin-left: auto; color: var(--gold) !important; }

  .hero { padding: 4.8rem 0 5.2rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.7fr);
    gap: 3.5rem 5rem;
    align-items: end;
  }
  .hero h1 { font-size: clamp(3.2rem, 5.6vw, 5rem); max-width: 12.5ch; }
  .hero-plate { margin-bottom: 0.4rem; justify-self: end; }

  .creds { padding: 1.3rem 0; }
  .creds-row { justify-content: space-between; }
  .creds-row span { margin-right: 0; padding-right: 1.2rem; }

  .section { padding: 5.4rem 0; }
  .num-item { grid-template-columns: 4.5rem 1fr; gap: 0.4rem 1.6rem; padding: 1.7rem 0; }
  .num-item .num { font-size: 1.35rem; }
  .num-item h2, .num-item h3 { font-size: 1.55rem; }

  .approach { padding: 5.6rem 0; }
  .bio-layout { grid-template-columns: 0.72fr 1.28fr; gap: 4rem; align-items: start; }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4.5rem; align-items: start; }

  .footer-brand { flex-direction: row; align-items: flex-end; gap: 1.4rem; }
  .footer-meta {
    grid-template-columns: repeat(3, max-content);
    gap: 0.4rem 2.4rem;
  }
  .page-intro { padding: 4.4rem 0 0.8rem; }
}

@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.62fr); }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .nav-inner { gap: 0.8rem; }
  .nav a { letter-spacing: 0.06em; font-size: 0.72rem; }
  .creds-row { justify-content: flex-start; }
  .creds-row span { margin-right: 0.6rem; }
}

/* Mobile QA: 360 to 899 */
@media (max-width: 899px) {
  .hero-plate { display: none; }
  .hero { padding: 2rem 0 2.4rem; }
  .hero h1 { font-size: clamp(2.05rem, 8vw, 2.8rem); max-width: none; }
  .hero .standfirst { font-size: 1.02rem; max-width: none; }
  .eyebrow { letter-spacing: 0.12em; }
  .page-intro { padding: 2.4rem 0 0.2rem; }
  .page-intro h1 { font-size: clamp(1.9rem, 8vw, 2.7rem); max-width: none; }
  .section { padding: 3rem 0; }
  .section.tight { padding: 2.4rem 0; }
  .close { padding: 3rem 0; }
  .approach { padding: 3.2rem 0; }
  .approach-attrib { letter-spacing: 0.08em; overflow-wrap: anywhere; }

  .actions { width: 100%; }
  .actions .btn,
  .pay-letter .btn,
  .form .btn {
    width: 100%;
    min-height: 48px;
  }
  .actions .text-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border-bottom: 0;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 5px;
  }
  .btn { min-height: 48px; }

  .creds { padding: 1rem 0 1.1rem; }
  .creds-row { gap: 0.45rem 0.85rem; }
  .creds-row span {
    border-right: 0;
    margin-right: 0;
    padding: 0.15rem 0;
    letter-spacing: 0.08em;
  }

  .nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }
  .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); }

  input, textarea { font-size: 16px; padding: 0.75rem 0; }
  input { min-height: 44px; }

  .social a { width: 44px; height: 44px; }
  .footer-brand h2 { font-size: clamp(1.5rem, 7.2vw, 2rem); }
  .footer-brand p { letter-spacing: 0.08em; }
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0.25rem 0; }
  .contact-list a { min-height: 44px; display: inline-flex; align-items: center; }
  .masthead .phone-link { display: none; }
  .bookplate { width: 100%; max-width: 100%; }
  .num-item { grid-template-columns: 2.6rem 1fr; gap: 0.6rem 0.85rem; }
  .num-item h2, .num-item h3 { font-size: 1.2rem; }
}

@media (max-width: 379px) {
  .wrap { width: min(1180px, calc(100% - 1.6rem)); }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
}
