/* Bashir Krayem, CPA, PC — site styles (mobile-first) */

:root {
  --navy: #13294b;
  --navy-dark: #0d1e38;
  --navy-mid: #1f3d6b;
  --amber: #e8a33d;
  --amber-dark: #8a560c;   /* amber for small text on light backgrounds (AA) */
  --cream: #f5f3ee;
  --ink: #1c2738;
  --muted: #4a5568;
  --line: #e3ddd0;
  --white: #fff;
  --error: #b42318;
  --ok: #1f6f43;

  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(13, 30, 56, .06), 0 4px 14px rgba(13, 30, 56, .06);
  --callbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  padding-bottom: var(--callbar-h);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--navy-mid); text-underline-offset: .18em; }
a:hover { color: var(--navy); }

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

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -.125em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--navy); padding: 10px 14px; font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.3em; border-radius: var(--radius);
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn--sm { padding: .55em 1em; font-size: .925rem; }
.btn--primary { background: var(--amber); color: var(--navy); }
.btn--primary:hover { background: #f0b55c; color: var(--navy); }
.btn--light { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--light:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-dark); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--outline-dark { border-color: var(--navy); color: var(--navy); }
.btn--outline-dark:hover { background: rgba(19, 41, 75, .1); color: var(--navy); }
.btn[disabled] { opacity: .65; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar ---------- */
.topbar { display: none; background: var(--navy-dark); color: #cfd7e3; font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--amber); }
.topbar .icon { color: var(--amber); }

/* ---------- Header / nav ---------- */
.site-header { background: var(--navy); color: var(--white); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }

.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--white); line-height: 1.1; margin: 0; }
.brand:hover { color: var(--white); }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .05em; text-transform: uppercase; }
.brand__tag { font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-top: 4px; }
@media (max-width: 379px) { .nav-toggle span { position: absolute; left: -10000px; } }
@media (min-width: 480px) {
  .brand__name { font-size: 1.35rem; letter-spacing: .06em; }
  .brand__tag { font-size: .66rem; letter-spacing: .16em; }
}

.nav-toggle {
  display: none; align-items: center; gap: 6px;
  background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--radius); padding: 8px 12px; font: 600 .95rem var(--sans); cursor: pointer;
}
.nav-toggle .icon { width: 1.25em; height: 1.25em; }

.site-nav { width: 100%; }
.nav-list, .sub-list { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; flex-direction: column; padding: 8px 0; }
.nav-item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-top: 1px solid rgba(255, 255, 255, .1); }
.nav-item > a { flex: 1; display: block; padding: 12px 4px; color: var(--white); text-decoration: none; font-weight: 600; }
.nav-item > a:hover, .nav-item.is-active > a { color: var(--amber); }
.nav-item--cta { border-top: 0; padding-top: 12px; }
.nav-item--cta > a.btn { flex: 0 0 auto; color: var(--navy); }

.sub-toggle {
  background: transparent; border: 0; color: var(--white); cursor: pointer;
  width: 44px; height: 44px; font-size: 1rem; border-radius: var(--radius);
}
.sub-toggle span { display: inline-block; transition: transform .15s; }
.sub-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.sub-list { width: 100%; padding: 0 0 8px 14px; }
.sub-list a { display: block; padding: 8px 4px; color: #dfe5ee; text-decoration: none; }
.sub-list a:hover { color: var(--amber); }

/* With JS on small screens: collapse the menu and submenus. */
.js .nav-toggle { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.js .nav-item.has-sub .sub-list { display: none; }
.js .nav-item.has-sub.is-open .sub-list { display: block; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--cream); }
.section--tight { padding: 40px 0; }
.section__head { max-width: 720px; margin-bottom: 28px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: block; font: 700 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-dark); margin-bottom: 8px;
}
.lead { font-size: 1.15rem; color: var(--muted); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; grid-template-columns: 1fr; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: var(--white); padding: 56px 0 60px; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lead { color: #dbe3ee; max-width: 56ch; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.facts { display: grid; margin: 0; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts > div {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-top: 3px solid var(--amber); border-radius: var(--radius); padding: 16px 14px;
}
.facts dt { font-family: var(--serif); font-weight: 700; font-size: clamp(1.25rem, 4.5vw, 1.9rem); color: var(--amber); line-height: 1.1; }
.facts dd { margin: 6px 0 0; font-size: .93rem; color: #dbe3ee; line-height: 1.4; }

.hero__promise { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; font-size: .95rem; color: #dbe3ee; }
.hero__promise .icon { color: var(--amber); }

.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: var(--white); padding: 44px 0 40px; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { color: #dbe3ee; max-width: 62ch; margin: 0; font-size: 1.1rem; }
.page-hero .eyebrow, .hero .eyebrow { color: var(--amber); }
.breadcrumb { font-size: .875rem; margin-bottom: 10px; color: #b9c5d6; }
.breadcrumb a { color: #dbe3ee; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-top: 3px solid var(--amber); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--cream); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.card__icon .icon { width: 22px; height: 22px; }
.card__link { margin-top: auto; padding-top: 12px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card--link { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card--link:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(13, 30, 56, .12); color: inherit; }
.card--plain { border-top: 0; box-shadow: none; border: 1px solid var(--line); }

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2313294b' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checklist--cols { columns: 1; column-gap: 32px; }
.checklist--cols li { break-inside: avoid; }

.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .95rem; }

/* ---------- Meet Bashir ---------- */
.meet { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
.portrait { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 360px; border-bottom: 4px solid var(--amber); }
.portrait img { width: 100%; }
.credentials { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 8px; }
.credentials li { background: var(--navy); color: var(--white); font-size: .85rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }

/* ---------- Prose / content pages ---------- */
.content-layout { display: grid; gap: 36px; grid-template-columns: 1fr; }
.prose { max-width: 74ch; }
.prose--wide { max-width: none; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

.aside-card { background: var(--cream); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--amber); }
.aside-card h2 { font-size: 1.25rem; }
.aside-card .btn { width: 100%; margin-top: 10px; }
.aside-sticky { align-self: start; }

.callout { background: var(--cream); border-left: 4px solid var(--amber); padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5em 0; }
.callout h3 { margin-top: 0; }
.callout :last-child { margin-bottom: 0; }

.notice { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 28px; }

.def-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0 0 1.5em; }
.def-grid > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.def-grid h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.def-grid p { margin: 0; font-size: .97rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--navy); color: var(--white); font-weight: 700; }
tbody tr:nth-child(even) { background: #faf9f6; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; font-weight: 600; color: var(--navy); }
.month-heading { margin-top: 1.6em; }

/* Stack table rows on small screens */
@media (max-width: 639px) {
  .table-stack thead { display: none; }
  .table-stack tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .table-stack td { display: block; padding: 2px 0; border: 0; white-space: normal; }
  .table-stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
  .table-stack td:first-child[data-label]::before { content: none; }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--amber); color: var(--navy); padding: 36px 0; }
.cta-band__inner { display: flex; flex-direction: column; gap: 18px; }
.cta-band__title { color: var(--navy); margin-bottom: .3em; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.cta-band p { margin: 0; max-width: 60ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b7c2d2; font-size: .95rem; }
.site-footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 36px; }
.site-footer a { color: #e3e9f2; text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.brand--footer { margin-bottom: 14px; }
.site-footer__heading { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.site-footer__remote { color: var(--amber); font-weight: 600; }
.contact-list, .link-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 10px; margin-bottom: 10px; }
.contact-list .icon { color: var(--amber); margin-top: .3em; }
.link-list li { margin-bottom: 8px; }
.link-list .icon { color: var(--amber); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }

/* ---------- Mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; background: var(--amber); color: var(--navy); font-weight: 700; text-decoration: none;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .15);
}
.call-bar:hover { color: var(--navy); }
body { --callbar-h: 54px; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #b9b2a3; border-radius: var(--radius); padding: 11px 12px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(232, 163, 61, .6); outline-offset: 0; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--error); }
.error-msg { color: var(--error); font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.form-alert { border-radius: var(--radius); padding: 14px 16px; font-weight: 600; }
.form-alert--error { background: #fdecea; color: var(--error); border: 1px solid #f5c2bd; }
.form-alert--ok { background: #e8f4ec; color: var(--ok); border: 1px solid #b9dcc6; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.thanks { text-align: center; max-width: 640px; margin: 0 auto; }
.thanks__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: var(--white); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.thanks__icon .icon { width: 34px; height: 34px; }

.contact-card { background: var(--navy); color: #dbe3ee; border-radius: var(--radius); padding: 26px; }
.contact-card h2 { color: var(--white); font-size: 1.3rem; }
.contact-card a { color: var(--white); }
.contact-card a:hover { color: var(--amber); }
.contact-card .contact-list .icon { color: var(--amber); }
.contact-card__promise { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 14px; margin-top: 14px; color: var(--amber); font-weight: 600; }

/* ---------- 640px+ ---------- */
@media (min-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .def-grid { grid-template-columns: 1fr 1fr; }
  .checklist--cols { columns: 2; }
  .call-bar { display: none; }
  body { --callbar-h: 0px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-band__actions { flex: none; }
}

/* ---------- 960px+ ---------- */
@media (min-width: 960px) {
  .topbar { display: block; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .meet { grid-template-columns: 340px 1fr; gap: 48px; }
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; }
  .facts { gap: 16px; }
  .facts > div { padding: 22px 20px; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  .aside-sticky { position: sticky; top: 20px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
  .site-footer__grid { grid-template-columns: 1.5fr 1.2fr 1fr 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 80px 0 84px; }

  /* Desktop navigation */
  .site-header__inner { flex-wrap: nowrap; padding-top: 16px; padding-bottom: 16px; }
  .js .nav-toggle, .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; }
  .nav-list { flex-direction: row; align-items: center; gap: 2px; padding: 0; }
  .nav-item { border-top: 0; flex-wrap: nowrap; }
  .nav-item > a { padding: 10px 10px; }
  .has-sub > a { padding-right: 2px; }
  .sub-toggle { width: 26px; height: 36px; }
  .nav-item--cta { padding: 0 0 0 10px; }
  .sub-list, .js .nav-item.has-sub .sub-list {
    display: none; position: absolute; top: 100%; left: 0; min-width: 250px;
    background: var(--white); border-radius: var(--radius); padding: 8px 0;
    box-shadow: 0 10px 30px rgba(13, 30, 56, .2); border-top: 3px solid var(--amber);
  }
  .sub-list a { color: var(--ink); padding: 9px 18px; }
  .sub-list a:hover, .sub-list a:focus { background: var(--cream); color: var(--navy); }
  .has-sub:hover .sub-list, .has-sub:focus-within .sub-list,
  .js .nav-item.has-sub:hover .sub-list, .js .nav-item.has-sub:focus-within .sub-list,
  .js .nav-item.has-sub.is-open .sub-list { display: block; }
  .js .nav-item.has-sub.is-closed .sub-list { display: none; }
}

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

@media print {
  .topbar, .site-header nav, .nav-toggle, .cta-band, .call-bar, .site-footer { display: none !important; }
  body { padding: 0; }
}
