/* Dr Jon Tey — refreshed site styles. Brand navy carried over from the current site. */
:root {
  --navy: #182153;
  --navy-2: #2a3577;
  --ink: #1d2338;
  --muted: #565d78;
  --bg: #ffffff;
  --soft: #f4f6fb;
  --warm: #f7f2d9;
  --line: #e2e6f1;
  --link: #2f6fae;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(24, 33, 83, .06), 0 8px 24px rgba(24, 33, 83, .07);
  --font: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1430; --soft: #161c40; --ink: #e9ecf8; --muted: #a9b0cf; --line: #2a3163; --warm: #262a4d; --link: #8fbdf0; --navy: #dfe4ff; --navy-2: #b9c3f5; --shadow: none; }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { font-size: 1.35rem; font-weight: 600; color: var(--navy); text-decoration: none; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; padding: 10px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); background: var(--soft); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; color: var(--navy); cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; background: var(--navy); color: #fff !important; text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: 999px; font-size: 1rem; letter-spacing: 0; text-transform: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); background: var(--navy-2); }
@media (prefers-color-scheme: dark) { .btn { color: #0f1430 !important; } }
.btn.ghost { background: transparent; color: var(--navy) !important; border: 1.5px solid var(--navy); }
.btn.ghost:hover { background: var(--soft); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--soft), var(--bg)); padding: clamp(32px, 6vw, 72px) 0; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--link); margin-bottom: 14px; }
.creds { font-weight: 600; letter-spacing: .04em; color: var(--navy-2); margin: -.2em 0 1.4em; }
.portrait { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(160deg, var(--navy), var(--navy-2)); aspect-ratio: 4 / 5; position: relative; }
.portrait img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.portrait::after { content: "JT"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; font-weight: 600; color: rgba(255,255,255,.25); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .portrait { max-width: 260px; order: -1; } }

/* Quick facts */
.facts { margin-top: -28px; position: relative; z-index: 2; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.facts li { padding: 20px 24px; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; }
.facts b { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts span, .facts a { font-weight: 600; color: var(--navy); }

/* Sections */
section { padding: clamp(48px, 7vw, 96px) 0; }
.alt { background: var(--soft); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.grid { display: grid; gap: 20px; }
.services { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.alt .card { box-shadow: var(--shadow); }
.card h3 { margin: 0; }
.card p { margin: .4em 0 0; color: var(--muted); font-size: .95rem; }
a.card { text-decoration: none; display: block; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
a.card h3::after { content: " →"; color: var(--link); }

.values { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); }
.values blockquote { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.35; color: var(--navy); font-weight: 600; letter-spacing: -.01em; }
.sign { font-weight: 600; color: var(--navy); }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

.location { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.location .card { padding: 28px; }
.location address { font-style: normal; }
.notice { background: var(--warm); border-radius: var(--radius); padding: 20px 24px; }
.notice p { margin: 0; }
@media (max-width: 860px) { .location { grid-template-columns: 1fr; } }

.badges { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.badges img { height: 96px; width: auto; border-radius: 10px; background: #fff; padding: 6px; border: 1px solid var(--line); }

/* Prose pages */
.page-head { padding: clamp(40px, 6vw, 72px) 0 8px; background: linear-gradient(180deg, var(--soft), var(--bg)); }
.prose { padding: 24px 0 72px; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.meta { color: var(--muted); font-size: .95rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 16px 0 24px; }
.figs img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 1px solid var(--line); background: var(--soft); }
.figs figcaption { font-size: .85rem; color: var(--ink); margin-top: 6px; line-height: 1.35; }
.figs figcaption small { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.figs figure { margin: 0; }
.resource-group { margin-top: 2.2em; }
.resource-group > h2 { font-size: 1.25rem; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.resource { padding: 14px 0; border-bottom: 1px solid var(--line); }
.resource a { font-weight: 600; }
.resource p { margin: .25em 0 0; color: var(--muted); font-size: .97rem; }
.post-list { display: grid; gap: 20px; }
.post-list a { text-decoration: none; }

/* Footer */
.site-footer { background: var(--navy); color: #dfe4ff; padding: 48px 0 28px; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .site-footer { background: #0a0e24; } }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.05rem; letter-spacing: .04em; margin-bottom: .6em; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4em; }
.fine { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; color: #aab3e6; }

/* Design switcher (review only, remove at go-live) */
.review{position:fixed;right:.6rem;bottom:.6rem;z-index:90;display:flex;gap:.3rem;align-items:center;background:#111;color:#fff;font:600 12px system-ui;padding:.35rem .5rem;border-radius:999px}.review a{color:#fff;padding:.25rem .6rem;border-radius:999px;text-decoration:none}.review a[aria-current]{background:#2452e6}.review span{opacity:.6;padding:0 .3rem}

/* Footer social icons: monochrome so they blend into the footer */
.social{list-style:none;margin:0;padding:0;display:flex;gap:.6rem;flex-wrap:wrap}.social li{margin:0!important}
.social a{display:grid;place-items:center;width:2.75rem;height:2.75rem;border-radius:50%;border:1px solid rgba(255,255,255,.3);color:#dfe4ff;text-decoration:none;transition:background .15s,border-color .15s,color .15s}
.social a:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.7);color:#fff}
.social svg{width:1.25rem;height:1.25rem;fill:currentColor}.social svg.st{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
