/* The Law Office of Brian R. Toung, P.A. — site styles. No framework. Colours and fonts are set once in the tokens below. */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* Design tokens: deep navy with gold accent, geometric sans headings, crisp white */
:root {
  --bg: #ffffff; --surface: #ffffff; --band: #f2f4f8; --ink: #121a2a; --muted: #56607a; --line: #dfe3ec;
  --primary: #14233f; --primary-ink: #ffffff; --accent: #c9982f; --accent-soft: #f6ecd2;
  --hero-cta-bg: #c9982f; --hero-cta-ink: #14233f;
  --hero-bg: #14233f; --hero-ink: #ffffff; --hero-muted: #c3cbdc; --hero-line: #2e3f62;
  --cta-bg: #c9982f; --cta-ink: #14233f;
  --dark: #0c1629; --dark-ink: #dfe5f1;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-weight: 800; --head-track: -0.025em; --radius: 12px; --body-size: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--body-size)/1.65 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 0.18em; }
.prose a, .card li a, .more { color: #1a47c4; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 1rem; z-index: 99; }
.eyebrow { font: 700 0.8rem/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.band { background: var(--band); }
.section-head { max-width: 60ch; margin-bottom: 2.25rem; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent; font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--cta-bg); color: var(--cta-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* Top bar and header */
.topbar { background: var(--dark); color: var(--dark-ink); font-size: 0.875rem; }
.topbar .wrap { display: flex; gap: 1.5rem; justify-content: space-between; padding-block: 0.5rem; flex-wrap: wrap; }
.topbar a { color: inherit; font-weight: 700; text-decoration: none; }
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 84px; }
.brand span { font: var(--head-weight) 1rem/1.15 var(--font-head); letter-spacing: var(--head-track); }
.brand small { display: block; font: 400 0.78rem/1.3 var(--font-body); color: var(--muted); letter-spacing: 0; }
.nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.nav a, .nav summary { white-space: nowrap; display: block; padding: 0.6rem 0.8rem; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: var(--radius); cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: "▾"; margin-left: 0.35rem; font-size: 0.8em; color: var(--accent); }
.nav a:hover, .nav summary:hover, .nav a[aria-current] { background: var(--band); }
.nav details { position: relative; }
.mega { position: absolute; left: 50%; translate: -50% 0; top: calc(100% + 0.6rem); width: min(880px, 92vw); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); box-shadow: 0 18px 40px rgb(0 0 0 / 0.14); padding: 1.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.mega h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.mega h3 a { padding: 0; color: var(--primary); }
.mega ul { display: block; }
.mega li a { white-space: normal; padding: 0.2rem 0; font-weight: 400; font-size: 0.93rem; color: var(--muted); }
.mega li a:hover { background: none; color: var(--ink); text-decoration: underline; }
.menu-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: var(--radius); padding: 0.5rem 0.7rem; font: 700 0.95rem var(--font-body); color: var(--ink); }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-ink); border-bottom: 1px solid var(--hero-line); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero .lead { color: var(--hero-muted); }
.hero .btn-primary { background: var(--hero-cta-bg); color: var(--hero-cta-ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; color: var(--hero-muted); }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.9rem; height: 0.45rem; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); rotate: -45deg; }
.portrait { position: relative; margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius); box-shadow: 0 24px 50px rgb(0 0 0 / 0.25); }
.portrait::before { content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; border: 2px solid var(--accent); border-radius: var(--radius); z-index: 0; }
.portrait img, .portrait figcaption { position: relative; z-index: 1; }
.portrait figcaption { background: var(--surface); color: var(--ink); border-left: 4px solid var(--accent); padding: 0.8rem 1rem; margin: -2.2rem 1.25rem 0; border-radius: var(--radius); box-shadow: 0 8px 20px rgb(0 0 0 / 0.12); font-size: 0.93rem; }
.portrait figcaption strong { display: block; font: var(--head-weight) 1.1rem/1.2 var(--font-head); }

/* Credentials strip */
.creds { background: var(--surface); border-bottom: 1px solid var(--line); }
.creds ul { list-style: none; margin: 0; padding: 1.5rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.creds li { border-left: 3px solid var(--accent); padding-left: 1rem; font-size: 0.93rem; color: var(--muted); }
.creds strong { display: block; color: var(--ink); font: var(--head-weight) 1.1rem/1.25 var(--font-head); }

/* Cards */
.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.card.top { border-top: 4px solid var(--accent); }
.card h3 a { color: var(--ink); text-decoration: none; } .card h3 a:hover { text-decoration: underline; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card ul { list-style: none; padding: 0; margin: 0 0 1rem; font-size: 0.93rem; }
.card li { padding: 0.28rem 0; border-top: 1px solid var(--line); }
.card li a { text-decoration: none; }
.more { margin-top: auto; font-weight: 700; text-decoration: none; }
.more::after { content: " →"; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.points li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; }
.points .n { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--primary); font: 700 1rem var(--font-head); }
.points h3 { font-size: 1.1rem; margin-bottom: 0.2rem; } .points p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Reviews */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 1rem; font: 400 1.15rem/1.55 var(--font-head); letter-spacing: 0; }
.quote .stars { color: var(--accent); letter-spacing: 0.15em; margin-bottom: 0.6rem; }
.quote figcaption { font-size: 0.9rem; color: var(--muted); }

/* Contact */
.contact { background: var(--dark); color: var(--dark-ink); }
.contact h2 { color: #fff; } .contact a { color: #fff; }
.contact dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; margin: 1.5rem 0 0; }
.contact dt { font-weight: 700; color: var(--accent); } .contact dd { margin: 0; }
.form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.93rem; }
.form input, .form select, .form textarea { font: inherit; padding: 0.7rem 0.8rem; border: 1px solid #b9b2a8; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.form .note { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* Inner page */
.page-head { background: var(--hero-bg); color: var(--hero-ink); padding: clamp(2rem, 5vw, 3.5rem) 0; border-bottom: 1px solid var(--hero-line); }
.crumbs { font-size: 0.88rem; color: var(--hero-muted); margin-bottom: 0.9rem; } .crumbs a { color: inherit; }
.page-head .lead { color: var(--hero-muted); max-width: 62ch; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose { max-width: 68ch; } .prose h2 { margin-top: 1.6em; font-size: 1.6rem; } .prose li { margin-bottom: 0.4em; }
.aside { position: sticky; top: 6.5rem; display: grid; gap: 1.25rem; }
.aside .form { grid-template-columns: 1fr; border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 1rem 1.25rem; border-radius: var(--radius); margin: 1.5rem 0; }

/* Footer */
.footer { background: var(--dark); color: var(--dark-ink); border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.93rem; }
.footer .wrap { padding-block: 2.5rem 1.5rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer h2 { font-size: 0.85rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer a { color: inherit; text-decoration: none; } .footer a:hover { text-decoration: underline; }
.legal { border-top: 1px solid rgb(255 255 255 / 0.12); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.82rem; opacity: 0.8; }

/* Sticky call bar on phones */
.callbar { display: none; }

@media (max-width: 1340px) { .brand small { display: none; } }
@media (max-width: 1180px) { .nav a, .nav summary { padding-inline: 0.55rem; } }
@media (max-width: 960px) {
  .btn { white-space: normal; }
  .grid-4, .creds ul { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .hero .wrap, .split, .article, .footer .cols { grid-template-columns: 1fr; }
  .aside { position: static; }
  .menu-toggle { display: block; }
  .header .btn { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1rem; max-height: 80vh; overflow: auto; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .mega { position: static; translate: none; width: auto; box-shadow: none; grid-template-columns: 1fr 1fr; padding: 1rem; margin: 0.25rem 0 0.5rem; }
  .portrait { max-width: 420px; }
  .topbar .hours { display: none; }
  .callbar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 30; }
  .callbar a { flex: 1; text-align: center; padding: 0.9rem; font-weight: 700; text-decoration: none; background: var(--cta-bg); color: var(--cta-ink); }
  .callbar a + a { background: var(--dark); color: #fff; }
  body { padding-bottom: 3.2rem; }
}
@media (max-width: 560px) {
  .grid-4, .grid-2, .creds ul, .form, .mega { grid-template-columns: 1fr; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Additions for the full site */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form [data-status].ok { color: #14613a; font-weight: 700; font-size: 1rem; } .form [data-status].err { color: #a11616; font-weight: 700; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.post-meta { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.6rem; } .page-head .post-meta { color: var(--hero-muted); }
.reply { margin: 1rem 0 0; padding: 0.75rem 1rem; background: var(--band); border-radius: var(--radius); font-size: 0.9rem; }
.citylist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.citylist a { display: block; padding: 0.9rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); text-decoration: none; font-weight: 600; color: var(--ink); }
.citylist a:hover { background: var(--band); }
.prose img.float { float: right; width: min(42%, 300px); margin: 0 0 1rem 1.5rem; border-radius: var(--radius); }
.prose h2 a, .prose h3 a { color: inherit; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.note { font-size: 0.85rem; color: var(--muted); }
.split > .prose h2 { font-size: 1.2rem; margin-top: 1.2em; }
.previewbar { background: #fde68a; color: #3b2f05; font: 600 0.85rem/1.2 system-ui, sans-serif; padding: 0.45rem 1rem; text-align: center; }

/* Live Google rating */
.topbar .rating { font-weight: 600; } .topbar .rating span[aria-hidden] { color: var(--accent); }
.rating-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem; padding: 1.25rem 1.5rem; background: var(--band); border-left: 4px solid var(--accent); border-radius: var(--radius); margin-bottom: 2rem; }
.rating-summary p { margin: 0; } .rating-summary .score { font: var(--head-weight) 2rem/1 var(--font-head); } .rating-summary .stars { color: var(--accent); font-size: 1.3rem; letter-spacing: 0.1em; }
.live-reviews h2 { font-size: 1.4rem; }
[hidden] { display: none !important; }
@media (max-width: 960px) { .topbar .rating { order: 3; } }

.review-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 2rem; }
