/* Aspire Legals — site styles */
:root {
  --ink: #14231f;
  --ink-soft: #3b4a45;
  --muted: #6b7a74;
  --paper: #f7f4ee;
  --paper-2: #efe9dd;
  --card: #fffdf8;
  --line: #ddd4c3;
  --green: #163a32;
  --green-2: #1f4d42;
  --brass: #a8834a;
  --brass-soft: #e9dcc3;
  --radius: 6px;
  --max: 1160px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-2); }
a:hover { color: var(--brass); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass); font-weight: 600; margin-bottom: .9rem; display: block;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.ph {
  background: #fff3cf; border-bottom: 1px dashed #b98a1e; color: #6d5208;
  padding: 0 .25em; border-radius: 2px; font-style: normal; white-space: nowrap;
}

/* Header */
.topbar { background: var(--green); color: #d9e3df; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .ph { background: transparent; color: #f1d9a8; border-bottom-color: #f1d9a8; }
header.site {
  position: sticky; top: 0; z-index: 50; background: rgba(247,244,238,.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 42px; height: 42px; }
.brand b { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; letter-spacing: .02em; display: block; line-height: 1; }
.brand small { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
nav.main a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem;
  padding: 8px 12px; border-radius: 4px;
}
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--green-2); background: var(--paper-2); }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 4px; border: 1px solid var(--green); cursor: pointer;
  background: var(--green); color: #fff; font-family: var(--sans); transition: background .15s;
}
.btn:hover { background: var(--green-2); color: #fff; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green); color: #fff; }
.btn.brass { background: var(--brass); border-color: var(--brass); }
.btn.brass:hover { background: #8f6d3a; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

/* Hero */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--green-2); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card {
  background: var(--green); color: #e6eeea; border-radius: var(--radius); padding: 34px;
  position: relative; box-shadow: 0 30px 60px -30px rgba(20,35,31,.45);
}
.hero-card h3 { color: #fff; font-size: 1.3rem; }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.hero-card li:last-child { border-bottom: 0; }
.hero-card li span:last-child { color: var(--brass-soft); text-align: right; }
.hero-card::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(168,131,74,.45); border-radius: 3px; pointer-events: none;
}

/* Sections */
section.block { padding: 84px 0; }
section.alt { background: var(--paper-2); }
section.dark { background: var(--green); color: #dbe5e1; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark .lede { color: #c9d6d1; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head > div { max-width: 680px; }

.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--brass); }
.card .num { font-family: var(--serif); color: var(--brass); font-size: 1.1rem; font-weight: 700; }
.card h3 { margin-top: 6px; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .laws { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
a.card { text-decoration: none; color: inherit; display: block; }

/* Practice detail */
.practice { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.practice-nav { position: sticky; top: 100px; }
.practice-nav a { display: block; text-decoration: none; color: var(--ink-soft); padding: 7px 0 7px 14px; border-left: 2px solid var(--line); font-size: .93rem; }
.practice-nav a:hover { color: var(--green); border-left-color: var(--brass); }
.area { padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.area:first-child { padding-top: 0; }
.area h2 { font-size: 2rem; display: flex; gap: 14px; align-items: baseline; }
.area h2 span { font-size: 1rem; color: var(--brass); font-family: var(--sans); font-weight: 600; }
.area .cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.area ul { padding-left: 1.1em; margin: 0; }
.area li { margin-bottom: .35em; }
.statutes { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .92rem; }
.statutes h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.statutes ul { list-style: none; padding: 0; }
.statutes li { padding: 5px 0; border-bottom: 1px dotted var(--line); }
.statutes li:last-child { border-bottom: 0; }

/* Courts strip */
.courts { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); overflow: hidden; }
.courts div { padding: 22px 18px; border-right: 1px solid rgba(255,255,255,.15); }
.courts div:last-child { border-right: 0; }
.courts b { display: block; font-family: var(--serif); font-size: 1.2rem; color: #fff; line-height: 1.2; margin-bottom: 6px; }
.courts span { font-size: .85rem; color: #b9c9c3; }

/* Books */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.book { display: flex; flex-direction: column; }
.cover {
  aspect-ratio: 6 / 9; border-radius: 3px 6px 6px 3px; padding: 26px 22px; position: relative;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  box-shadow: inset 6px 0 0 rgba(0,0,0,.22), inset 8px 0 0 rgba(255,255,255,.07), 0 22px 40px -22px rgba(20,35,31,.6);
  margin-bottom: 20px; overflow: hidden;
}
.cover::after { content: ""; position: absolute; inset: 12px 12px 12px 18px; border: 1px solid rgba(233,220,195,.5); pointer-events: none; }
.cover .series { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-soft); }
.cover .t { font-family: var(--serif); font-size: 1.85rem; line-height: 1.08; font-weight: 700; }
.cover .s { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: 10px; }
.cover .a { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .06em; color: var(--brass-soft); }
.cover .seal { width: 54px; height: 54px; opacity: .85; }
.c-green { background: linear-gradient(160deg, #1f4d42, #102b25); }
.c-maroon { background: linear-gradient(160deg, #6a2430, #3d1219); }
.c-navy { background: linear-gradient(160deg, #23395b, #121f33); }
.c-slate { background: linear-gradient(160deg, #3d4b55, #1f282e); }
.c-ochre { background: linear-gradient(160deg, #8a6a33, #4e3a17); }
.c-teal { background: linear-gradient(160deg, #1d5a63, #0f3237); }
.book h3 { font-size: 1.35rem; margin-bottom: 4px; }
.book .meta { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.book p { font-size: .96rem; color: var(--ink-soft); }
.book .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.tag { font-size: .75rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px; padding: 2px 10px; color: var(--ink-soft); }
.book .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.book .actions .btn { padding: 9px 16px; font-size: .88rem; }

.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--brass); }
.mini h4 { font-size: 1.2rem; margin-bottom: 4px; }
.mini .meta { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.mini p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* Approach / steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { border-top: 2px solid var(--brass); padding-top: 18px; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-size: 2rem; color: var(--brass); font-weight: 700; display: block; }
.step h3 { font-size: 1.25rem; }
.step p { font-size: .95rem; color: var(--ink-soft); }
section.dark .step p { color: #c9d6d1; }

/* Profile */
.profile { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.portrait {
  aspect-ratio: 4/5; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--muted); text-align: center; font-size: .9rem; padding: 20px;
}
.portrait svg { width: 90px; height: 90px; margin: 0 auto 10px; opacity: .5; }
.creds { list-style: none; padding: 0; margin: 20px 0; }
.creds li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.creds li::before { content: "§"; color: var(--brass); font-family: var(--serif); font-weight: 700; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.member .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; color: var(--brass); margin-bottom: 14px; }
.member p { font-size: .92rem; color: var(--ink-soft); margin: 0 0 4px; }

/* Page hero */
.page-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list b { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }
form.enquiry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: .98rem;
  background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass-soft); border-color: var(--brass); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; font-size: .88rem; color: var(--ink-soft); align-items: flex-start; margin-bottom: 18px; }
.check input { margin-top: 5px; }
.note { font-size: .85rem; color: var(--muted); }
.form-msg { display: none; margin-top: 14px; padding: 12px 14px; background: #e7f1ec; border-left: 3px solid var(--green-2); font-size: .92rem; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brass); font-family: var(--sans); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--ink-soft); }

/* CTA */
.cta { text-align: center; padding: 76px 0; }
.cta p { margin-left: auto; margin-right: auto; }

/* Legal text */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }

/* Footer */
footer.site { background: #0f201c; color: #a9bab4; padding: 64px 0 28px; font-size: .92rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer.site h4 { font-family: var(--sans); color: #fff; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: #cfdad6; text-decoration: none; }
footer.site a:hover { color: var(--brass-soft); }
footer.site .brand { color: #fff; margin-bottom: 14px; }
footer.site .brand small { color: #8fa39c; }
footer.site .ph { background: transparent; color: #e9cf97; border-bottom-color: #e9cf97; }
.legal-line { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; font-size: .82rem; color: #81938d; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; background: #1f7a4d; color: #fff; text-decoration: none;
  border-radius: 30px; padding: 12px 18px; font-weight: 600; font-size: .9rem; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4);
  display: flex; align-items: center; gap: 8px;
}
.wa:hover { color: #fff; background: #19663f; }
.wa svg { width: 20px; height: 20px; }

/* Responsive */
@media (max-width: 1000px) {
  .hero .wrap, .profile, .contact, .practice, .area .cols { grid-template-columns: 1fr; }
  .g3, .books, .team { grid-template-columns: repeat(2, 1fr); }
  .g4, .shelf, .steps { grid-template-columns: repeat(2, 1fr); }
  .courts { grid-template-columns: repeat(3, 1fr); }
  .courts div:nth-child(3) { border-right: 0; }
  .courts div:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.15); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .practice-nav { position: static; display: none; }
  .portrait { max-width: 320px; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  nav.main { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; padding: 10px 16px 16px; }
  header.site .btn.nav-cta { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .g3, .g2, .g4, .books, .team, .shelf, .steps, .row2 { grid-template-columns: 1fr; }
  .courts { grid-template-columns: 1fr 1fr; }
  .courts div { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.15); }
  footer.site .cols { grid-template-columns: 1fr; }
  section.block { padding: 60px 0; }
  .hero { padding: 56px 0 48px; }
  .topbar .wrap > span:last-child { display: none; }
  .ph { white-space: normal; }
  .wa span { display: none; }
}
.grid > *, .profile > *, .contact > *, .practice > *, .hero .wrap > *, .area .cols > * { min-width: 0; }
@media (max-width: 1000px) {
  .hero .wrap, .profile, .contact, .practice, .area .cols { grid-template-columns: minmax(0, 1fr); }
}
.creds li { display: block; position: relative; padding-left: 24px; }
.creds li::before { position: absolute; left: 0; top: 10px; }
@media (max-width: 480px) { header.site .brand small { display: none; } header.site .brand b { font-size: 1.4rem; } }
