/* Maxim Avocats – Lawyers. Layout: the five practice areas are file folders with staggered tabs. */
/* Black-and-gold theme (matches the logo). Single dark look by design. */
:root {
  --paper: #0B0B0C;      /* page ground: black */
  --surface: #141414;    /* raised panels, bands, cards */
  --ink: #EDE7D9;        /* warm ivory text */
  --ink-soft: #ABA393;   /* secondary text, 7:1 on black */
  --rule: #34302A;       /* hairlines */
  --gold: #C8A24A;       /* the logo's gold: buttons, accents */
  --gold-light: #E4C979; /* headings and the firm name */
  --focus: #E4C979;
  --on-gold: #0B0B0C;
  --ok: #8DBF7A;
  --err: #E58A7E;
  /* five practice areas: five shades of gold (black text passes 4.5:1 on each) */
  --imm: #E4C979;
  --crim: #D7B865;
  --fam: #C8A24A;
  --com: #BC9641;
  --corp: #AE8836;
  --tint: 9%;
  --title-mix: 78%;
  --display: "Spectral", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { color: var(--gold-light); font-family: var(--display); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }

.wrap {
  max-width: 1160px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.stack { display: grid; gap: 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: .5rem 1rem; z-index: 20; }

/* Header */
.site-header { background: #000000; border-bottom: 1px solid var(--rule); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: .9rem; }
.brand { text-decoration: none; display: grid; line-height: 1.05; white-space: nowrap; }
.brand b { color: var(--gold-light); font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -0.015em; }
.brand span { font-size: .8rem; color: var(--ink-soft); letter-spacing: .04em; }
@media (max-width: 480px) { .brand b { font-size: 1.38rem; } }
.nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav a { white-space: nowrap; text-decoration: none; font-size: .98rem; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold-light); }
.lang { font-size: .92rem; color: var(--ink-soft); }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: .85rem 1.25rem; border-radius: 6px; white-space: nowrap; border: 1.5px solid var(--gold);
  background: var(--gold); color: var(--on-gold);
}
.btn:hover { text-decoration: none; background: var(--gold-light); border-color: var(--gold-light); }
.btn.ghost { background: transparent; color: var(--gold-light); }
.btn.ghost:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.btn.small { padding: .6rem .95rem; font-size: .95rem; }
.btn svg { width: 1.05em; height: 1.05em; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: .5rem .8rem; border: 1.5px solid var(--rule); border-radius: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: grid; }
.menu-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #000000; border-bottom: 1px solid var(--rule); padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); gap: .2rem; }
.menu-panel a { padding: .65rem 0; text-decoration: none; border-bottom: 1px solid var(--rule); }
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu { display: block; }
  .site-header .btn.call-head { display: none; }
}

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero-copy { display: grid; gap: 1.4rem; padding-top: .5rem; }
.hero-copy > * { min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.facts { display: grid; gap: .35rem; padding: 1rem 0 0; margin: .5rem 0 0; list-style: none; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: .98rem; }
.facts li { display: flex; gap: .6rem; align-items: baseline; }
.facts li::before { content: ""; width: .45rem; height: .45rem; border-radius: 1px; background: var(--gold); flex: none; transform: translateY(-.1rem); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Folder stack: the signature element */
.folders-title { font-family: var(--display); font-size: 1.6rem; font-weight: 500; margin: 0 0 1.8rem; }
.folders { list-style: none; margin: 0; padding: 0; display: grid; }
.folders li { position: relative; }
.folders li + li { margin-top: -18px; }
.folders li:nth-child(1) { --tab-x: 0%; --c: var(--imm); }
.folders li:nth-child(2) { --tab-x: 19%; --c: var(--crim); }
.folders li:nth-child(3) { --tab-x: 38%; --c: var(--fam); }
.folders li:nth-child(4) { --tab-x: 57%; --c: var(--com); }
.folders li:nth-child(5) { --tab-x: auto; --c: var(--corp); }
.folders li:nth-child(5) .folder .tab { right: 0; }
.folder {
  position: relative; display: block; text-decoration: none; margin-top: 30px;
  background: color-mix(in srgb, var(--c) var(--tint), var(--surface));
  border-top: 6px solid var(--c); border-left: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  border-radius: 0 10px 10px 10px;
  padding: 1.15rem 1.4rem 2.2rem;
  box-shadow: 0 -1px 0 color-mix(in srgb, var(--c) 30%, transparent), 0 14px 22px -16px #000000;
  transition: transform .18s ease;
}
.folders li:first-child .folder { margin-top: 30px; }
.folder .tab {
  position: absolute; top: -30px; left: var(--tab-x);
  max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--c); color: var(--on-gold); font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  padding: .42rem 1rem .34rem; border-radius: 8px 8px 0 0; line-height: 1.4;
}
.folder h3 { font-size: clamp(1.4rem, 2vw, 1.6rem); margin-bottom: .3rem; color: color-mix(in srgb, var(--c) var(--title-mix), var(--ink)); }
.folder p { color: var(--ink); font-size: 1rem; }
.folder:hover, .folder:focus-visible { transform: translateY(-6px); text-decoration: none; }
.folder:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.folders li:last-child .folder { padding-bottom: 1.2rem; }
@media (max-width: 520px) {
  .folders li:nth-child(n) { --tab-x: 0%; }
  .folders li:nth-child(2) { --tab-x: 10%; }
  .folders li:nth-child(3) { --tab-x: 20%; }
  .folders li:nth-child(4) { --tab-x: 30%; }
  .folders li:nth-child(5) { --tab-x: auto; }
}
@media (prefers-reduced-motion: reduce) { .folder { transition: none; } }

/* Sections */
.section { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section.band { background: var(--surface); border-block: 1px solid var(--rule); }
.section-head { display: grid; gap: .8rem; margin-bottom: 2rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .5rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--gold); }
.steps li::before { color: var(--gold); content: counter(step); font-family: var(--display); font-size: 2.4rem; line-height: 1; font-weight: 500; }
.steps p { color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }

/* Page head for inner pages */
.page-head { padding-block: clamp(2.5rem, 5vw, 3.75rem) 2rem; }
.page-head .wrap { display: grid; gap: 1rem; }

/* Practice-area header: a big open folder in the area colour */
.area-head { padding-top: clamp(3rem, 6vw, 4rem); }
.area-folder {
  position: relative; border-top: 6px solid var(--c);
  background: color-mix(in srgb, var(--c) var(--tint), var(--surface));
  border-radius: 0 14px 0 0; padding-block: 2rem 2.5rem;
}
.area-folder .tab {
  position: absolute; bottom: calc(100% + 2rem + 6px); left: max(16px, env(safe-area-inset-left, 0px));
  background: var(--c); color: var(--on-gold); font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  padding: .5rem 1.1rem .4rem; border-radius: 9px 9px 0 0;
}
.area-folder .inner { display: grid; gap: 1.1rem; }
.area-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); padding-block: 3rem; }
.area-body > * { min-width: 0; }
.prose { display: grid; gap: 2.2rem; max-width: 66ch; }
.prose section { display: grid; gap: .7rem; }
.prose p { color: var(--ink); }
.svc { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.svc li { padding: .6rem 0 .6rem 1.1rem; border-bottom: 1px solid var(--rule); position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: .5rem; height: 2px; background: var(--c, var(--ink)); }
.more { color: var(--ink-soft); font-style: italic; font-family: var(--display); font-size: 1.1rem; }
@media (max-width: 860px) { .area-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .svc { grid-template-columns: minmax(0, 1fr); } }

/* Contact card */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 1.4rem; display: grid; gap: 1.1rem; align-self: start; }
.card h2, .card h3 { font-size: 1.2rem; }
.kv { display: grid; gap: .15rem; }
.kv dt { font-size: .85rem; color: var(--ink-soft); }
.kv dd { margin: 0; }
.big-phone { color: var(--gold-light); font-family: var(--display); font-size: 1.7rem; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.hours { display: grid; gap: 0; margin: 0; }
.hours dt { color: var(--ink-soft); font-size: .9rem; }
.hours dd { margin: 0 0 .45rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Other areas: small tabs */
.tabs-row { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.tabs-row a { display: inline-block; text-decoration: none; padding: .45rem .9rem; border-radius: 8px 8px 0 0; border-bottom: 3px solid var(--c); background: color-mix(in srgb, var(--c) var(--tint), var(--surface)); font-size: .95rem; }
.tabs-row a:hover { background: color-mix(in srgb, var(--c) 24%, var(--surface)); }
.c-immigration { --c: var(--imm); } .c-criminal { --c: var(--crim); } .c-family { --c: var(--fam); }
.c-commercial { --c: var(--com); } .c-corporate { --c: var(--corp); }

/* Form */
.consult { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); }
.consult > * { min-width: 0; }
@media (max-width: 860px) { .consult { grid-template-columns: minmax(0, 1fr); } }
form.cf { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(1.1rem, 3vw, 1.75rem); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .88rem; color: var(--ink-soft); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--rule); border-radius: 6px; padding: .7rem .8rem; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 2px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; }
textarea { min-height: 8.5rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .86rem; color: var(--ink-soft); }
.status { font-weight: 600; padding: .8rem 1rem; border-radius: 6px; border-left: 4px solid var(--gold); background: var(--paper); }
.status.ok { border-left-color: var(--ok); }
.status.err { border-left-color: var(--err); }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.about-grid section { display: grid; gap: .6rem; align-content: start; }
.how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 3rem; }
.how div { display: grid; gap: .4rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.how p, .about-grid p { color: var(--ink-soft); }
@media (max-width: 800px) { .about-grid, .how { grid-template-columns: minmax(0, 1fr); } }

/* Resources */
.res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.res section { display: grid; gap: .6rem; align-content: start; }
.res ul { list-style: none; padding: 0; margin: 0; }
.res li { border-bottom: 1px solid var(--rule); }
.res li a { display: block; padding: .6rem 0; text-decoration: none; }
.res li a:hover { text-decoration: underline; }
@media (max-width: 760px) { .res { grid-template-columns: minmax(0, 1fr); } }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4rem); padding-bottom: 4rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: #000000; color: var(--ink); border-top: 1px solid var(--rule); padding-block: 3rem 2rem; margin-top: 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid > * { min-width: 0; }
.foot-grid h2 { color: var(--gold); font-family: var(--body); font-size: .95rem; font-weight: 600; margin-bottom: .6rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.foot-brand b { color: var(--gold-light); font-family: var(--display); font-size: 1.85rem; line-height: 1.15; font-weight: 600; display: block; }
.site-footer .hours dt, .site-footer .small { color: var(--ink-soft); }
.small { font-size: .9rem; }
.foot-base { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: .88rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* 404 */
.nf { padding-block: 5rem; display: grid; gap: 1.2rem; }

/* Maxim brand: black & gold chrome from the logo */
:root { --brand-black: #0B0B0C; --gold: #C8A24A; --gold-soft: #B89A55; --on-black: #EFEADF; --on-black-soft: #B9B2A2; }
.site-header { background: var(--brand-black); border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); color: var(--on-black); }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--gold); }
.brand-mark { width: 52px; height: auto; flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand b { font-family: "Cormorant Garamond", var(--display); font-weight: 600; font-size: clamp(1.55rem, 2.3vw, 1.95rem); letter-spacing: .24em; color: var(--gold); }
.brand-text span { font: 500 .66rem/1 Montserrat, var(--body); letter-spacing: .34em; text-transform: uppercase; color: var(--gold-soft); margin-top: .4rem; }
.brand:hover { text-decoration: none; }
@media (max-width: 480px) { .brand b { font-size: 1.4rem; } .brand-mark { width: 44px; } .brand-text span { font-size: .6rem; letter-spacing: .26em; } }
.nav a { color: var(--on-black); }
.nav a:hover { border-bottom-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-header .lang { color: var(--on-black-soft); }
.site-header .btn.call-head { background: var(--gold); border-color: var(--gold); color: var(--brand-black); }
.site-header :focus-visible { outline-color: var(--gold); }
.menu summary { color: var(--on-black); border-color: #3A3426; }
.menu-panel { background: var(--brand-black); border-bottom-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.menu-panel a { color: var(--on-black); border-bottom-color: #2A2519; }
.site-footer { background: var(--brand-black); color: var(--on-black); border-top: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.site-footer a { color: var(--on-black); }
.site-footer .hours dt, .site-footer .small { color: var(--on-black-soft); }
.foot-grid h2 { color: var(--gold); opacity: 1; }
.foot-logo { margin-bottom: .4rem; }
.foot-logo .brand-mark { width: 62px; }
.site-footer .foot-logo:hover { text-decoration: none; }
.foot-base { border-top-color: #2A2519; color: var(--on-black-soft); }

/* Home banner: the full logo over Montreal at sunset, seen from Mount Royal */
.brand-hero {
  position: relative; display: grid; justify-items: center; align-content: start;
  min-height: clamp(460px, 72vh, 700px); padding: clamp(3rem, 8vh, 5.5rem) 16px 3rem;
  background:
    linear-gradient(180deg, rgba(11,11,12,.9) 0%, rgba(11,11,12,.74) 42%, rgba(11,11,12,.28) 74%, rgba(11,11,12,.12) 100%),
    var(--brand-black) url("montreal-sunset.jpg") center 60% / cover no-repeat;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  text-align: center;
}
.brand-hero-inner { display: grid; justify-items: center; gap: clamp(.9rem, 2vw, 1.4rem); }
.brand-hero-mark { width: clamp(120px, 15vw, 200px); height: auto; }
.brand-hero-name {
  font-family: "Cormorant Garamond", var(--display); font-weight: 600; line-height: 1;
  font-size: clamp(3.4rem, 10vw, 7rem); letter-spacing: .28em; padding-left: .28em; color: var(--gold);
}
.brand-hero-rule { width: clamp(80px, 10vw, 120px); height: 2px; background: var(--gold); }
.brand-hero-sub {
  font: 500 clamp(.85rem, 1.5vw, 1.1rem)/1 Montserrat, var(--body); text-transform: uppercase;
  letter-spacing: .42em; padding-left: .42em; color: var(--gold-soft);
}
.brand-hero-name, .brand-hero-sub { text-shadow: 0 2px 14px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.6); }
.brand-hero-mark, .brand-hero-rule { filter: drop-shadow(0 2px 10px rgba(0,0,0,.6)); }
