/**
 * Brooks Home Layouts
 *
 * Every colour is read from the theme's own custom properties, with the firm's
 * values as fallbacks, so the page follows the theme rather than fighting it.
 * Nothing here styles the site header, menu or footer — those stay the theme's.
 */

.hl-home {
  --hl-court: var(--court, #12202e);
  --hl-court-deep: #0d1925;
  --hl-court-2: var(--court-2, #1b2c3d);
  --hl-brass: var(--brass, #b08d3e);
  --hl-brass-btn: var(--brass-btn, #c8a04a);
  --hl-brass-bright: var(--brass-bright, #d9b45c);
  --hl-limestone: var(--limestone, #f5f2ea);
  --hl-paper: var(--paper, #fff);
  --hl-rule: var(--rule, #e4e0d5);
  --hl-rule-warm: #d8d4c8;
  --hl-ink: var(--ink, #222933);
  --hl-muted: var(--muted, #4b5563);
  --hl-oxblood: var(--oxblood, #7c2d2d);
  --hl-link: var(--link, #14538c);
  --hl-on-dark: #c9cfd6;
  --hl-on-dark-dim: #aeb8c2;
  --hl-serif: var(--serif, Georgia, "Times New Roman", Times, serif);
  --hl-gutter: clamp(16px, 4vw, 60px);
  --hl-section-y: clamp(44px, 7vw, 68px);
}

.hl-home * { box-sizing: border-box; }

.hl-inner { max-width: 1160px; margin: 0 auto; padding-inline: var(--hl-gutter); }

.hl-section { padding-block: var(--hl-section-y); }

.hl-limestone { background: var(--hl-limestone); }

.hl-home .hl-h1 { font-family: var(--hl-serif); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; color: #fff; margin: 16px 0 0; font-size: clamp(30px, 5.2vw, 48px); }

.hl-home .hl-h1.is-tight { font-size: clamp(27px, 4.2vw, 42px); }

.hl-home .hl-h2 { font-family: var(--hl-serif); font-weight: 700; letter-spacing: -0.015em; margin: 11px 0 0; font-size: clamp(25px, 3.4vw, 34px); color: var(--hl-ink); }

.hl-home .hl-h3 { font-family: var(--hl-serif); font-weight: 700; font-size: 19px; margin: 0; color: var(--hl-ink); }

.hl-eyebrow { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hl-oxblood); margin: 0; }

.hl-eyebrow.hl-on-dark { color: var(--hl-brass-bright); }

.hl-sub { margin-top: 18px; font-size: clamp(15.5px, 1.6vw, 17px); line-height: 1.62; color: var(--hl-on-dark); }

.hl-measure { max-width: 60ch; }

.hl-lede { margin-top: 12px; font-size: 16.5px; line-height: 1.6; color: var(--hl-muted); max-width: 62ch; }

.hl-more { margin-top: 20px; }

.hl-more a { font-weight: 600; }

.hl-disclaimer { margin-top: 24px; font-size: 13px; color: var(--hl-muted); }

.hl-rule-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 28px; }

.hl-rule-head .line { flex-grow: 1; height: 1px; background: var(--hl-rule); }

/* ---------- hero ---------- */
.hl-hero {
  background: linear-gradient(115deg, var(--hl-court-deep) 0%, var(--hl-court) 45%, var(--hl-court-2) 100%);
  padding-block: clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}

/* The photograph sits under a dark wash, the way the live home page treats it.
   The template sets the three custom properties from Homepage: Hero, so the
   photo, its darkening and its focal point match the rest of the site. With no
   photo chosen the image resolves to none and this layer draws nothing. */
.hl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hl-hero-image, none);
  background-position: center var(--hl-hero-focus, center);
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--hl-hero-dim, 0.2);
  pointer-events: none;
}

.hl-hero > * { position: relative; z-index: 1; }

.hl-hero.is-compact { padding-block: clamp(28px, 4vw, 44px); }

.hl-proof { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; }

.hl-proof li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--hl-on-dark); }

.hl-dot { width: 6px; height: 6px; background: var(--hl-brass); flex-shrink: 0; }

/* ---------- the action row ---------- */
.hl-actions { margin-top: 30px; display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }

.hl-actions.is-stacked { max-width: 640px; }

@media (min-width: 900px) {

  .hl-actions.is-beside { grid-template-columns: var(--hl-cols, 3fr 1fr); gap: 20px; }
}

.hl-act-card { background: var(--hl-paper); border-top: 4px solid var(--hl-brass); border-radius: 3px; padding: clamp(20px, 3vw, 28px); }

.hl-note { margin: 9px 0 0; font-size: 13.5px; color: var(--hl-muted); text-align: center; }

.hl-or { margin: 18px 0 16px; display: flex; align-items: center; gap: 14px; }

.hl-or .l { flex-grow: 1; height: 1px; background: var(--hl-rule); }

.hl-or .t { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hl-muted); }

.hl-home .hl-btn-brass {
  margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--hl-brass-btn); color: var(--hl-court); border-radius: 3px;
  padding: 17px 14px; min-height: 44px; text-decoration: none;
  font-family: var(--hl-serif); font-size: clamp(17px, 2.4vw, 21px); font-weight: 700;
}

.hl-home .hl-btn-brass:hover { background: var(--hl-brass-bright); color: var(--hl-court); text-decoration: none; }

.hl-home .hl-btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid var(--hl-court); color: var(--hl-ink); border-radius: 3px;
  padding: 14px; min-height: 44px; font-size: 16.5px; font-weight: 600; text-decoration: none;
}

.hl-home .hl-btn-ghost:hover { background: var(--hl-limestone); text-decoration: none; }

/* ---------- civil panel: clear, not filled ---------- */
.hl-civil {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-top: 3px solid var(--hl-brass);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  padding: 18px 16px;
  height: 100%;
}

.hl-civil-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }

.hl-civil-head { margin: 0; font-family: var(--hl-serif); font-size: 18px; font-weight: 700; color: #fff; }

.hl-civil-blurb { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--hl-on-dark-dim); }

.hl-civil-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr; gap: 8px; }

@media (min-width: 620px) {

 .hl-civil-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hl-actions.is-beside .hl-civil-actions { grid-template-columns: 1fr; }

.hl-home .hl-civil-btn {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  min-height: 46px; padding: 11px 13px; border-radius: 3px; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3); background: transparent;
  color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer;
}

.hl-home .hl-civil-btn:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; color: #fff; }

.hl-home .hl-civil-btn.is-lead { background: var(--hl-brass-btn); border-color: var(--hl-brass-btn); color: var(--hl-court); }

.hl-home .hl-civil-btn.is-lead:hover { background: var(--hl-brass-bright); border-color: var(--hl-brass-bright); color: var(--hl-court); }

.hl-civil-btn .l { flex-grow: 1; }

.hl-civil-btn .n { flex-basis: 100%; font-size: 12px; font-weight: 400; opacity: 0.85; word-break: break-word; }

.hl-civil-btn.is-lead .n { opacity: 0.75; }

/* chevron on the email toggle */
.hl-civil-btn .c { width: 9px; height: 9px; flex-shrink: 0; border-right: 2px solid currentcolor; border-bottom: 2px solid currentcolor; transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.15s; }

.hl-civil-btn[aria-expanded="true"] .c { transform: rotate(-135deg) translate(-3px, -3px); }

/* the matter choices, revealed by the email button */
.hl-civil-topics { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.28); }

.hl-civil-topics[hidden] { display: none; }

.hl-civil-topics-head { margin: 0 0 9px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hl-brass-bright); }

.hl-civil-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.hl-civil-chip {
  min-height: 44px; padding: 9px 13px; border-radius: 3px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.32); background: transparent;
  color: #fff; font: inherit; font-size: 14px; font-weight: 500;
}

.hl-civil-chip:hover { background: rgba(255, 255, 255, 0.12); }

.hl-civil-chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--hl-court); font-weight: 600; }

.hl-home .hl-civil-send {
  margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 12px 14px; border-radius: 3px; text-decoration: none;
  background: var(--hl-brass-btn); color: var(--hl-court); font-size: 15px; font-weight: 700;
}

.hl-home .hl-civil-send:hover { background: var(--hl-brass-bright); color: var(--hl-court); text-decoration: none; }

.hl-civil-to { margin: 8px 0 0; font-size: 12.5px; text-align: center; color: var(--hl-on-dark-dim); word-break: break-word; }

/* ---------- tiles ---------- */
.hl-tiles { margin-top: 30px; display: grid; gap: 18px; grid-template-columns: 1fr; }

@media (min-width: 620px) {

 .hl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 900px) {

 .hl-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (min-width: 900px) {

 .hl-tiles.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hl-home .hl-tile {
  background: var(--hl-paper); border: 1px solid var(--hl-rule-warm);
  border-top: 3px solid var(--hl-brass); border-radius: 3px;
  padding: 20px 18px 16px; display: flex; flex-direction: column; min-height: 178px; text-decoration: none;
}

.hl-home .hl-tile:hover { border-color: var(--hl-court); border-top-color: var(--hl-brass); text-decoration: none; }

.hl-home .hl-tile.is-urgent { border-top-color: var(--hl-oxblood); }

.hl-tag { margin-top: 13px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a7a52; }

.hl-tile.is-urgent .hl-tag { color: var(--hl-oxblood); }

.hl-home .hl-tile h3 { margin: 6px 0 0; font-family: var(--hl-serif); font-size: 19px; color: var(--hl-ink); }

.hl-home .hl-tile p { margin: 5px 0 0; font-size: 14px; color: var(--hl-muted); }

.hl-spacer { flex-grow: 1; }

.hl-act { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--hl-ink); border: 1px solid var(--hl-rule-warm); border-radius: 3px; padding: 8px 11px; align-self: flex-start; margin-top: 12px; }

.hl-next { font-size: 13.5px; font-weight: 600; color: var(--hl-link); margin-top: 12px; }

/* ---------- B: the switch ---------- */
.hl-seg { margin-top: 14px; display: inline-flex; flex-wrap: wrap; background: #0b1621; border: 1px solid #2c4053; border-radius: 4px; padding: 5px; gap: 4px; max-width: 100%; }

.hl-seg button { border: 0; border-radius: 3px; padding: 12px 18px; min-height: 44px; font: inherit; font-size: 14.5px; font-weight: 600; background: transparent; color: var(--hl-on-dark); cursor: pointer; }

.hl-seg button[aria-pressed="true"] { background: var(--hl-brass-btn); color: var(--hl-court); }

.hl-mode[hidden] { display: none; }

/* ---------- C: answers + index ---------- */
.hl-faqs { margin-top: 28px; display: grid; gap: 14px 28px; grid-template-columns: 1fr; align-items: start; }

@media (min-width: 900px) {

 .hl-faqs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hl-faq { border-top: 1px solid var(--hl-rule); }

.hl-faq summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 44px; }

.hl-faq summary::-webkit-details-marker { display: none; }

.hl-faq .q { font-family: var(--hl-serif); font-size: 19px; font-weight: 700; color: var(--hl-ink); line-height: 1.35; }

.hl-faq .sign { flex-shrink: 0; width: 28px; height: 28px; border-radius: 2px; background: var(--hl-limestone); color: var(--hl-ink); position: relative; }

.hl-faq .sign::before, .hl-faq .sign::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentcolor; transform: translate(-50%, -50%); }

.hl-faq .sign::before { width: 12px; height: 2px; }

.hl-faq .sign::after { width: 2px; height: 12px; }

.hl-faq[open] .sign { background: var(--hl-court); color: var(--hl-brass-bright); }

.hl-faq[open] .sign::after { display: none; }

.hl-home .hl-faq p { margin: 0; font-size: 16px; line-height: 1.68; color: var(--hl-muted); padding-bottom: 16px; max-width: 60ch; }

.hl-index { margin-top: 26px; background: var(--hl-paper); border: 1px solid var(--hl-rule-warm); border-radius: 3px; overflow: hidden; }

.hl-home .hl-index a { display: grid; gap: 8px; grid-template-columns: 1fr; padding: 14px 18px; border-bottom: 1px solid var(--hl-rule); text-decoration: none; }

@media (min-width: 860px) {

 .hl-home .hl-index a { grid-template-columns: 1.8fr 1.2fr 140px; gap: 24px; align-items: center; } }

.hl-home .hl-index a:last-child { border-bottom: 0; }

.hl-home .hl-index a:hover { background: var(--hl-limestone); text-decoration: none; }

.hl-index .name { display: flex; align-items: center; gap: 12px; font-size: 16.5px; font-weight: 600; color: var(--hl-ink); }

.hl-index .meta { font-size: 14.5px; color: var(--hl-muted); }

.hl-index .meta.is-urgent { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--hl-oxblood); }

.hl-index .cta { font-size: 14px; font-weight: 600; color: var(--hl-link); }

@media (min-width: 860px) {

 .hl-index .cta { text-align: right; } }

/* ---------- D: case card ---------- */
.hl-card { background: var(--hl-limestone); border-top: 4px solid var(--hl-brass); border-radius: 3px; padding: clamp(18px, 3vw, 28px); }

.hl-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }

.hl-card-head .hl-note { margin: 0; text-align: left; font-size: 12.5px; }

.hl-groups { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }

.hl-groups fieldset { border: 0; margin: 0; padding: 0; }

.hl-groups legend { padding: 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hl-oxblood); margin-bottom: 9px; }

.hl-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.hl-chip { min-height: 44px; padding: 10px 14px; border: 1px solid var(--hl-rule-warm); border-radius: 3px; background: var(--hl-paper); color: var(--hl-ink); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; }

.hl-chip:hover { border-color: var(--hl-court); }

.hl-chip[aria-pressed="true"] { background: var(--hl-court); border-color: var(--hl-brass); color: #fff; font-weight: 600; }

.hl-msg { margin-top: 22px; background: var(--hl-court); border-radius: 3px; padding: clamp(14px, 2vw, 20px) clamp(15px, 2vw, 22px); }

.hl-msg .cap { margin: 0; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hl-on-dark-dim); }

.hl-home .hl-msg p[data-hl-message] { margin: 9px 0 0; font-family: var(--hl-serif); font-size: clamp(16px, 2.2vw, 20px); line-height: 1.48; color: #fff; }

.hl-card-alt { margin-top: 12px; text-align: center; }

.hl-home .hl-card-alt a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--hl-ink); }

/* Floating tiles. They lift off the page rather than shouting from a red band,
   and sit half over the hero edge so they read as the next step, not an alarm. */
.hl-float { background: var(--hl-paper); padding-block: 0 clamp(30px, 4vw, 44px); }

.hl-float .hl-inner { position: relative; margin-top: clamp(-26px, -2.5vw, -18px); }

.hl-float .hl-eyebrow { margin-bottom: 14px; padding-top: clamp(28px, 4vw, 40px); }

.hl-float-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }

@media (min-width: 620px) {

 .hl-float-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 1000px) {

 .hl-float-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }

.hl-home .hl-float-tile {
  display: flex; align-items: center; gap: 12px;
  background: var(--hl-paper); border: 1px solid var(--hl-rule);
  border-radius: 4px; padding: 14px 15px; min-height: 64px; text-decoration: none;
  box-shadow: 0 2px 10px rgba(18, 32, 46, 0.08);
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}

.hl-home .hl-float-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(18, 32, 46, 0.16);
  border-color: var(--hl-rule-warm);
  text-decoration: none;
}

.hl-float-tile .ic {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hl-limestone);
}

.hl-float-tile .tx { flex-grow: 1; min-width: 0; }

.hl-float-tile .t { display: block; font-size: 15px; font-weight: 600; color: var(--hl-ink); line-height: 1.3; }

.hl-float-tile .s { display: block; margin-top: 3px; font-size: 13px; color: var(--hl-muted); line-height: 1.35; }

.hl-float-tile .ar { flex-shrink: 0; color: var(--hl-brass); font-size: 16px; }

@media (prefers-reduced-motion: reduce) {

  .hl-home .hl-float-tile { transition: none; }

  .hl-home .hl-float-tile:hover { transform: none; }
}

.hl-steps { margin-top: 32px; display: grid; gap: clamp(22px, 3vw, 44px); grid-template-columns: 1fr; }

@media (min-width: 760px) {

 .hl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hl-step .head { display: flex; align-items: center; gap: 12px; }

.hl-step .num { width: 34px; height: 34px; flex-shrink: 0; border-radius: 2px; background: var(--hl-court); color: var(--hl-brass-bright); font-family: var(--hl-serif); font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.hl-home .hl-step h3 { margin: 0; font-family: var(--hl-serif); font-size: 20px; color: var(--hl-ink); }

.hl-home .hl-step p { margin: 11px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--hl-muted); }

