/* Dr. Lee CPA — layout modeled on a classic CPA firm site.
   Change the colors here to re-theme every page. */
:root {
  --brand: #642979;        /* nav bar / accents */
  --brand-dark: #4a1a5c;   /* active + hover */
  --link: #570077;
  --text: #333;
  --muted: #666;
  --footer: #d9d9d9;
  --max: 1170px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--brand);
  /* subtle diagonal texture over the purple */
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 2px, transparent 2px 11px);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: Arial, sans-serif; font-weight: 400; color: var(--text); margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 16px; }

.page { max-width: var(--max); margin: 0 auto; background: #fff; min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Header ---------- */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px 12px; }
.logo { display: flex; align-items: center; gap: 12px; color: inherit; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 78px; height: 78px; flex-shrink: 0; border-radius: 50%;
  border: 5px solid #2b2b2b; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 700; letter-spacing: -2px;
  color: #2b2b2b;
}
.logo-mark span { color: var(--brand); }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 700;
  font-variant: small-caps; letter-spacing: 1px; color: #222; line-height: 1.1;
  padding-bottom: 3px; border-bottom: 3px solid var(--brand);
}
.logo-title { font-family: Georgia, serif; font-size: 13.5px; font-weight: 700; font-variant: small-caps; letter-spacing: 1.5px; color: #222; margin-top: 2px; }
.logo-tag { font-size: 15px; color: #222; margin-top: 6px; }
.header-contact { text-align: right; font-size: 15px; color: var(--muted); line-height: 1.5; }
.header-contact a { color: #555; }

/* ---------- Navigation ---------- */
.nav { background: var(--brand); border-bottom: 3px solid var(--brand-dark); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav a { display: block; padding: 13px 17px; color: #fff; font-size: 15px; }
.nav a:hover, .nav a.active { background: var(--brand-dark); text-decoration: none; }
.nav-toggle-label { display: none; }
/* hidden visually but still reachable by keyboard */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid #fff; outline-offset: -4px; }

/* ---------- Banner ---------- */
.banner {
  position: relative; height: 200px; overflow: hidden;
  /* To use a photo instead, point this at e.g. images/banner.jpg */
  background: #55206a url("banner.svg") left center / cover no-repeat;
}
.banner-caption {
  position: absolute; right: 0; bottom: 0;
  background: rgba(255,255,255,.85); color: #111;
  font-family: Arial, sans-serif; font-size: 28px; padding: 6px 12px;
}

/* ---------- Main two-column body ---------- */
.content { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 40px 24px 60px; flex: 1; }
.sidebar section { margin-bottom: 34px; }
.sidebar h2 { font-size: 21px; margin-bottom: 8px; }
.sidebar p { margin: 0 0 12px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin-bottom: 7px; }
.sidebar .more { font-weight: 700; }
.main h1 { margin-bottom: 18px; }
.main h2 { margin-top: 28px; }
.main ul { padding-left: 20px; margin: 0 0 16px; }
.main li { margin-bottom: 5px; }
.service { margin-bottom: 26px; }
.service h2 { margin-top: 0; font-size: 20px; }
.hours { border-collapse: collapse; margin-bottom: 20px; }
.hours td { padding: 4px 24px 4px 0; }
.button {
  display: inline-block; background: var(--brand); color: #fff; padding: 8px 16px; border-radius: 4px;
}
.button:hover { background: var(--brand-dark); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); padding: 28px 24px; font-size: 13px; color: #333; }
.site-footer a { color: #333; text-decoration: underline; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .site-header { padding: 12px 16px; }
  .header-contact { display: none; }
  .logo-mark { width: 60px; height: 60px; font-size: 23px; }
  .logo-name { font-size: 20px; }
  .logo-tag { font-size: 13px; }
  .nav-toggle-label { display: block; color: #fff; padding: 12px 16px; cursor: pointer; font-size: 15px; }
  .nav ul { display: none; flex-direction: column; }
  .nav-toggle:checked ~ ul { display: flex; }
  .nav a { padding: 11px 16px; border-top: 1px solid rgba(255,255,255,.12); }
  .banner { height: 140px; }
  .banner-caption { font-size: 19px; }
  .content { grid-template-columns: 1fr; padding: 28px 16px 40px; gap: 10px; }
  .sidebar { order: 2; }
  .site-footer { padding: 22px 16px; }
}

/* Resources page tables */
.dates { border-collapse: collapse; width: 100%; margin-bottom: 20px; }
.dates td { padding: 7px 10px; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
.dates td:first-child { font-weight: 700; white-space: nowrap; width: 150px; }
.dates tr:nth-child(odd) td { background: #faf7fb; }
@media (max-width: 768px) { .dates td:first-child { white-space: normal; width: 110px; } }

/* Contact map + resource source lines */
.map { border: 1px solid #ccc; margin-top: 10px; }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }
.source { font-size: 13px; color: var(--muted); margin-top: -8px; }
