/* canon-lawyer.ca site styles */
/* Fonts are self-hosted (EB Garamond & Inter, SIL Open Font License) */
@font-face{font-family:"EB Garamond";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/eb-garamond-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"EB Garamond";font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/eb-garamond-latin-400-italic.woff2) format("woff2")}
@font-face{font-family:"EB Garamond";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/eb-garamond-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"EB Garamond";font-style:italic;font-weight:500;font-display:swap;src:url(/assets/fonts/eb-garamond-latin-500-italic.woff2) format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/inter-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/inter-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/inter-latin-600-normal.woff2) format("woff2")}

:root {
  --ink: #1c2230;
  --ink-2: #2b3346;
  --muted: #5a6273;
  --paper: #f8f5ef;
  --paper-2: #efe9de;
  --card: #fffdf9;
  --line: #ddd4c4;
  --accent: #7a2231;       /* oxblood */
  --accent-dark: #5e1824;
  --gold: #a8844c;
  --focus: #b8893f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28,34,48,.06), 0 8px 24px rgba(28,34,48,.06);
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.lead { font-size: 1.2rem; color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 22px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); color: var(--ink); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,245,239,.92); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 42px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.05; display: block; }
.brand-tag { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-size: .96rem; font-weight: 500; padding: 10px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 8px; }
.nav .btn { margin-left: 10px; padding: 12px 18px; font-size: .94rem; }
.nav .btn, .nav .btn:hover { color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    box-shadow: 0 12px 24px rgba(28,34,48,.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav .btn { margin: 16px 0 0; border-radius: 999px; border-bottom: 0; padding: 16px; }
}

/* Hero */
.hero { padding: 72px 0 80px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 64px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: var(--muted); padding: 0; margin: 0; list-style: none; }
.hero-note li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.hero-note svg { color: var(--gold); flex: none; }

.portrait { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.portrait-frame {
  border-radius: 200px 200px 14px 14px; overflow: hidden; background: var(--paper-2);
  box-shadow: 0 30px 60px -20px rgba(28,34,48,.35); aspect-ratio: 4/5;
  outline: 1px solid var(--gold); outline-offset: 10px;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-badge {
  position: absolute; left: -28px; bottom: 36px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); max-width: 230px;
}
.portrait-badge strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; display: block; line-height: 1; color: var(--accent); }
.portrait-badge span { font-size: .85rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 6px; }

@media (max-width: 900px) {
  .hero { padding: 44px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .portrait { max-width: 320px; }
  .portrait-badge { left: -12px; }
}

/* Credential strip */
.creds { background: var(--ink); color: #e9e4da; }
.creds-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred { padding: 26px 22px; border-left: 1px solid rgba(255,255,255,.1); }
.cred:first-child { border-left: 0; padding-left: 0; }
.cred strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: #fff; line-height: 1.2; }
.cred span { font-size: .88rem; color: #b9b3a8; display: block; line-height: 1.45; margin-top: 4px; }
@media (max-width: 900px) {
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .cred { padding: 20px 14px; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .cred:nth-child(-n+2) { border-top: 0; }
  .cred:nth-child(odd) { padding-left: 0; }
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
@media (max-width: 700px) { .section { padding: 60px 0; } }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px 28px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s; position: relative;
}
a.card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card .icon { width: 46px; height: 46px; border-radius: 50%; background: var(--paper-2); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-2); flex: 1; }
.card .who { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.card .more { font-weight: 600; color: var(--accent); font-size: .95rem; margin-top: 6px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .card { padding: 26px 22px; } }

/* Deadline callout */
.callout {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow);
}
.callout .num { font-family: var(--serif); font-size: 3.6rem; line-height: .9; color: var(--accent); text-align: center; }
.callout .num small { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.callout h3 { margin-bottom: .25em; }
.callout p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .callout { grid-template-columns: 1fr; text-align: left; gap: 14px; padding: 24px 22px; } .callout .num { text-align: left; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; margin: 0; }
.steps li::before {
  content: counter(step, upper-roman); position: absolute; top: 0; left: 0;
  font-family: var(--serif); font-size: 1.4rem; color: var(--accent);
  width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center;
}
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--ink-2); font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 22px; } .steps li { padding: 0 0 0 62px; } }

/* Testimonials */
.testimonials-band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.testimonials-band .section-head { margin-bottom: 18px; }
.testimonial { margin: 0; }
.testimonial + .testimonial { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.testimonial blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 2.1vw, 1.42rem); line-height: 1.55; color: var(--ink); }
.testimonial blockquote::before { content: "\201C"; display: block; height: .55em; font-size: 4.2rem; line-height: 1; color: var(--gold); }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { margin-top: 18px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.prose .testimonial { margin: 36px 0; padding: 22px 28px 26px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); }
.prose .testimonial blockquote { font-size: 1.2rem; }
@media (max-width: 560px) { .prose .testimonial { padding: 18px 20px 22px; } }

/* About split */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.split .photo { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); max-width: 380px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.6rem; color: var(--accent); font-weight: 300;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -60px; width: 360px; height: 460px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 180px 180px 0 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #f1dfe2; max-width: 40em; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Page header */
.page-head { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-head .lead { max-width: 42em; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* Article layout with sidebar */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding-top: 64px; padding-bottom: 88px; align-items: start; }
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose > p, .prose li { color: var(--ink-2); }
.prose .cite { font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--accent); background: rgba(122,34,49,.07); padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.box h3 { font-size: 1.3rem; }
.box.dark { background: var(--ink); color: #e9e4da; border-color: var(--ink); }
.box.dark h3 { color: #fff; }
.box.dark p { color: #cfc9be; }
.box ul { margin: 0; }
.note { background: var(--paper-2); border-radius: var(--radius); padding: 20px 22px; font-size: .95rem; color: var(--ink-2); border: 1px solid var(--line); }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; gap: 40px; } .aside { position: static; } }

/* Timeline table */
.deadlines { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .98rem; }
.deadlines th, .deadlines td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.deadlines th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.deadlines td:first-child { font-family: var(--serif); font-size: 1.15rem; }
.deadlines .days { font-weight: 600; color: var(--accent); white-space: nowrap; }
@media (max-width: 560px) { .deadlines th:nth-child(3), .deadlines td:nth-child(3) { display: none; } }

/* Credentials list */
.cv { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cv h3 { font-size: 1.35rem; border-bottom: 1px solid var(--gold); padding-bottom: 10px; margin-bottom: 14px; }
.cv ul { list-style: none; padding: 0; }
.cv li { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.cv li span { display: block; font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) { .cv { grid-template-columns: 1fr; } }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #cbbfab; border-radius: 8px; padding: 12px 14px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(184,137,63,.35); border-color: var(--gold); }
.hint { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .94rem; color: var(--ink-2); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -5000px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #cfc9be; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #eee7da; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #9f998e; margin-bottom: 14px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-tag { color: #9f998e; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; font-size: .82rem; color: #9f998e; line-height: 1.55; }
.disclaimer p { margin-bottom: .6em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
