/* Robert Emmet Bourke & Co. Solicitors — site styles */

:root {
  --navy: #002e5d;
  --navy-deep: #001f40;
  --ink: #14233a;
  --slate: #56677d;
  --wash: #eef1f5;
  --line: #d6dce4;
  --brass: #a98a5c;
  --white: #ffffff;
  --red: #b3261e;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --measure: 66ch;
  --gutter: 24px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; color: var(--ink); }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
ul, ol { padding-left: 1.3em; max-width: var(--measure); }
li { margin-bottom: 0.4em; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--brass); color: var(--navy-deep); padding: 8px 14px; font-family: var(--sans);
}
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header ------------------------------------------------------------- */

.site-header {
  background: var(--navy);
  color: var(--white);
  position: relative;
  z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  color: var(--white); text-decoration: none;
}
.brand img { width: 40px; height: 44px; object-fit: contain; }
.brand .brand-name {
  font-family: var(--display); font-size: 1.3rem; line-height: 1.1; white-space: nowrap;
}
.brand .brand-sub {
  display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.02em;
  color: #c9d3e0; margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500;
  color: var(--white); text-decoration: none; padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--white); }
.nav .nav-phone {
  margin-left: 12px; padding: 9px 16px; border: 1px solid rgba(255,255,255,0.35); border-radius: 2px;
}
.nav .nav-phone:hover { border-color: var(--brass); }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.4); border-radius: 2px;
  color: var(--white); font-family: var(--sans); font-size: 0.9rem; padding: 8px 12px; cursor: pointer;
}

@media (max-width: 1120px) {
  .nav { gap: 18px; }
  .nav .nav-phone { margin-left: 4px; padding: 8px 12px; }
  .brand .brand-name { font-size: 1.2rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-deep); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 16px; border-top: 1px solid rgba(255,255,255,0.12);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px var(--gutter); border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 1.05rem; }
  .nav .nav-phone { margin: 12px var(--gutter) 0; text-align: center; }
  .brand .brand-name { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .brand { gap: 10px; }
  .brand .brand-sub { display: none; }
  .brand .brand-name { font-size: 1.05rem; white-space: normal; }
}

/* Hero --------------------------------------------------------------- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 560px;
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px var(--gutter) 64px;
}
.hero-text .inner { max-width: 520px; margin-left: auto; width: 100%; padding-right: 48px; }
.hero-text h1 { margin-bottom: 0.6em; }
.hero-text p { font-size: 1.15rem; color: var(--slate); }
.hero-img { position: relative; min-height: 420px; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { order: 2; padding: 40px var(--gutter) 48px; }
  .hero-text .inner { max-width: none; padding-right: 0; }
  .hero-img { order: 1; min-height: 300px; height: 48vw; }
}

/* Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block; font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  padding: 12px 22px; border-radius: 2px; text-decoration: none; border: 1px solid var(--navy);
  background: var(--navy); color: var(--white); cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--navy-deep); color: var(--white); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--wash); }
.btn.light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn.light:hover { background: #e9eef5; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Sections ----------------------------------------------------------- */

.section { padding: 72px 0; }
.section.wash { background: var(--wash); }
.section.navy { background: var(--navy); color: var(--white); }
.section.navy h2, .section.navy h3 { color: var(--white); }
.section.navy p { color: #dbe3ee; }
.section.navy a { color: var(--white); }
.section-head { margin-bottom: 36px; }
.section-head h2 { margin-bottom: 0.35em; }
.section-head p { color: var(--slate); font-size: 1.05rem; }
.rule-brass { border: 0; border-top: 2px solid var(--brass); width: 56px; margin: 0 0 20px; }

@media (max-width: 860px) { .section { padding: 52px 0; } }

/* Practice list ------------------------------------------------------ */

.practice-list {
  list-style: none; padding: 0; margin: 0; max-width: none;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px;
  border-top: 1px solid var(--line);
}
.practice-list li { margin: 0; border-bottom: 1px solid var(--line); }
.practice-list a {
  display: block; padding: 20px 0 22px; text-decoration: none; color: inherit;
}
.practice-list a:hover .pl-title { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.pl-title { font-family: var(--display); font-size: 1.3rem; color: var(--navy); display: block; margin-bottom: 4px; }
.pl-short { font-family: var(--sans); font-size: 0.92rem; color: var(--slate); display: block; max-width: 44ch; }
@media (max-width: 760px) { .practice-list { grid-template-columns: 1fr; } }

/* Two column prose + image ----------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { width: 100%; height: 100%; object-fit: cover; max-height: 520px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split .photo-grid img { width: 100%; height: auto; max-height: none; aspect-ratio: 16 / 15; object-fit: cover; display: block; }
@media (max-width: 480px) { .photo-grid { gap: 10px; } }

/* People ------------------------------------------------------------- */

.people-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; list-style: none; padding: 0; margin: 0; max-width: none;
}
.people-grid li { margin: 0; }
.people-grid a { text-decoration: none; color: inherit; display: block; }
.people-grid a:hover .person-name { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.portrait, .initials {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; background: var(--wash);
}
.initials {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 3rem; color: var(--navy); background: var(--wash);
  border: 1px solid var(--line);
}
.person-name { font-family: var(--display); font-size: 1.25rem; color: var(--navy); margin: 14px 0 2px; display: block; }
.person-title { font-family: var(--sans); font-size: 0.9rem; color: var(--slate); display: block; }
@media (max-width: 860px) { .people-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }

.person-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line);
}
.person-row:last-child { border-bottom: 1px solid var(--line); }
.person-row .portrait, .person-row .initials { width: 220px; height: 220px; }
.person-row h2 { font-size: 1.7rem; margin-bottom: 0.1em; }
.person-row .person-title { margin-bottom: 14px; }
.person-row .email { font-family: var(--sans); font-size: 0.95rem; }
@media (max-width: 700px) {
  .person-row { grid-template-columns: 1fr; gap: 20px; }
  .person-row .portrait, .person-row .initials { width: 160px; height: 160px; }
}

/* Page header band --------------------------------------------------- */

.page-band {
  position: relative; background: var(--navy); color: var(--white); overflow: hidden;
  min-height: 300px; display: flex; align-items: flex-end;
}
.page-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.page-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,46,93,0.1) 0%, rgba(0,31,64,0.85) 100%);
}
.page-band .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 40px; width: 100%; }
.page-band h1 { color: var(--white); margin-bottom: 0.2em; }
.page-band .crumb { font-family: var(--sans); font-size: 0.85rem; color: #c9d3e0; margin-bottom: 14px; }
.page-band .crumb a { color: #c9d3e0; text-decoration: none; }
.page-band .crumb a:hover { color: var(--white); text-decoration: underline; }
.page-band.plain { min-height: 0; }
.page-band.plain .wrap { padding-top: 56px; padding-bottom: 36px; }

/* Article layout ----------------------------------------------------- */

.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding: 56px 0 80px; }
.article .body p.lead { margin-bottom: 1.4em; }
.aside { font-family: var(--sans); font-size: 0.95rem; }
.aside-block { border-top: 2px solid var(--brass); padding-top: 18px; margin-bottom: 36px; }
.aside-block h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.aside-person { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.aside-person img, .aside-person .initials { width: 56px; height: 56px; flex: 0 0 56px; font-size: 1.1rem; }
.aside-person a { text-decoration: none; font-family: var(--display); font-size: 1.05rem; }
.aside-person a:hover { text-decoration: underline; }
.aside-person span { display: block; color: var(--slate); font-size: 0.85rem; }
.aside p { max-width: none; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; gap: 40px; padding: 44px 0 64px; } }

.prose { padding: 56px 0 80px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose table { border-collapse: collapse; width: 100%; max-width: var(--measure); font-family: var(--sans); font-size: 0.92rem; margin: 1em 0 1.6em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--ink); }
.updated { font-family: var(--sans); font-size: 0.85rem; color: var(--slate); margin-bottom: 2em; }

.placeholder { color: var(--red); font-weight: 600; }

/* Contact ------------------------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 56px 0 80px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-details { font-family: var(--sans); font-size: 1rem; }
.contact-details address { font-style: normal; line-height: 1.6; margin-bottom: 1.2em; }
.contact-details dt { font-weight: 600; margin-top: 1em; }
.contact-details dd { margin: 2px 0 0; }
.contact-details dl { margin: 0 0 1.4em; }

form.contact { font-family: var(--sans); }
form.contact label { display: block; font-weight: 600; font-size: 0.92rem; margin: 18px 0 6px; }
form.contact label:first-child { margin-top: 0; }
form.contact input, form.contact textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #9aa7b8; border-radius: 2px;
  background: var(--white); color: var(--ink);
}
form.contact textarea { min-height: 150px; resize: vertical; }
form.contact .privacy-line { font-size: 0.88rem; color: var(--slate); margin: 16px 0; }
form.contact .form-status { margin-top: 14px; font-size: 0.95rem; }
form.contact .form-status.err { color: var(--red); }
form.contact .form-status.ok { color: var(--navy); font-weight: 600; }

.services { list-style: none; padding: 0; margin: 0 0 1.4em; max-width: none; font-family: var(--sans); }
.services li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.services li:first-child { border-top: 1px solid var(--line); }
.services .svc-name { font-weight: 600; }
.services .svc-meta { color: var(--slate); font-size: 0.9rem; display: block; }
.services .svc-fee { white-space: nowrap; color: var(--navy); font-weight: 600; }

/* Insights ----------------------------------------------------------- */

.insight { padding: 28px 0; border-top: 1px solid var(--line); }
.insight:last-child { border-bottom: 1px solid var(--line); }
.insight h2 { font-size: 1.45rem; margin-bottom: 0.2em; }
.insight h2 a { text-decoration: none; }
.insight h2 a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.insight .meta { font-family: var(--sans); font-size: 0.88rem; color: var(--slate); margin-bottom: 0.6em; }
.insight p:last-child { margin-bottom: 0; }
h2.insight-group { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin: 44px 0 6px; }

/* Articles ----------------------------------------------------------- */

.article-meta { font-family: var(--sans); font-size: 0.9rem; color: var(--slate); margin-bottom: 1.6em; }
.article .body h2 { font-size: 1.5rem; margin-top: 1.8em; }
.article .body p { text-align: justify; hyphens: auto; }
.article .body p.lead { font-size: 1.15rem; }
sup.fn { font-family: var(--sans); font-size: 0.7em; line-height: 0; vertical-align: super; margin-left: 1px; }
sup.fn a { text-decoration: none; color: var(--brass); font-weight: 600; }
sup.fn a:hover { text-decoration: underline; }
.article-note { font-family: var(--sans); font-size: 0.9rem; color: var(--slate); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 2em; }
.footnotes { margin-top: 2.5em; font-family: var(--sans); font-size: 0.86rem; color: var(--slate); }
.footnotes h2 { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin: 0 0 12px; }
.footnotes ol { padding-left: 1.6em; max-width: none; }
.footnotes li { margin-bottom: 6px; line-height: 1.5; word-break: break-word; }
.footnotes li:target { background: #fbf6ec; }
.footnotes .fn-back { text-decoration: none; margin-left: 4px; }
@media (max-width: 600px) { .article .body p { text-align: left; } }

/* Footer ------------------------------------------------------------- */

.site-footer { background: var(--navy-deep); color: #c9d3e0; font-family: var(--sans); font-size: 0.9rem; padding: 56px 0 32px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-name { font-family: var(--display); font-size: 1.35rem; color: var(--white); margin: 0 0 2px; }
.footer-inc { color: var(--brass); font-size: 0.9rem; margin: 0 0 14px; }
.site-footer address { font-style: normal; line-height: 1.6; margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0 0 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 20px; font-size: 0.84rem; line-height: 1.6; }
.footer-legal p { max-width: none; margin: 0 0 6px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Cookie notice ------------------------------------------------------ */

.cookie-note {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--brass);
  box-shadow: 0 8px 28px rgba(0,31,64,0.18); padding: 16px 18px; font-family: var(--sans); font-size: 0.9rem;
  max-width: 560px; margin-left: auto; display: none; gap: 14px; align-items: center; flex-wrap: wrap;
}
.cookie-note.show { display: flex; }
.cookie-note p { margin: 0; flex: 1 1 280px; max-width: none; }
.cookie-note .btn { padding: 9px 16px; font-size: 0.88rem; }
