/* ============================================================
   HARTLEY LEGAL — LAYOUT WIREFRAME
   Restrained, dignified law-firm structure. Grey wireframe
   palette only; imagery is flat dashed placeholder boxes.
   Display type: Libre Baskerville. UI/body type: Inter.
   ============================================================ */

/* ---------- design tokens (wireframe palette) ---------- */
:root {
  --bg: #ededed;
  --surface: #e2e2e2;
  --surface-2: #dcdcdc;
  --line: #c6c6c6;
  --text: #333333;
  --muted: #777777;
  --faint: #9a9a9a;
  --dash: #a8a8a8;
  --accent: var(--pop);
  --accent-ink: var(--pop-ink);
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --header-h: 68px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
}

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
figure { display: block; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.18;
}

h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin: 0.6rem 0 0.9rem; }

section { scroll-margin-top: calc(var(--header-h) + 14px); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--text); border-color: var(--text); color: #ffffff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--text); }

/* ---------- top bar ---------- */
.topbar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-phone {
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.topbar-phone:hover { border-bottom-color: var(--text); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }

.brand-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--muted);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.brand-word {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 1.7rem; }

.site-nav a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.site-nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--accent-ink) !important;
  background: var(--accent);
  padding: 0.55rem 1.15rem;
  border-radius: 2px;
  transition: background 0.3s var(--ease) !important;
}
.nav-cta:hover { background: var(--text); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 4px;
}
.nav-burger span {
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); }

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4.6rem 1.5rem 4.2rem;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  max-width: 16ch;
  margin: 1.3rem 0 1.4rem;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2.1rem 0 2rem;
}

.hero-note {
  max-width: 30rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.hero-figure { position: relative; margin: 0 12px 12px 0; }

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.hero-figure .hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
}

.hero-figure figcaption {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.5rem;
}

.hero-meta-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 1.7rem;
}

.hero-meta dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.3rem;
}
.hero-meta dd { font-size: 0.92rem; font-weight: 500; }

/* ---------- sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}

.section-head { max-width: 42rem; margin-bottom: 3rem; }

.section-sub, .band-sub { color: var(--muted); max-width: 38rem; }

/* ---------- bands (process / faq) ---------- */
.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.band-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}

/* ---------- practice areas ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.practice-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--text);
  padding: 1.7rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.practice-card:hover { border-top-color: var(--accent); transform: translateY(-3px); }

.card-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.practice-card h3 { font-size: 1.28rem; font-weight: 700; }

.practice-card p { font-size: 0.89rem; color: var(--muted); flex: 1; }

.card-link {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.card-link:hover { color: var(--accent); }

/* ---------- how we work (3 steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  border-top: 1px solid var(--line);
}

.step { position: relative; padding-top: 1.9rem; }

.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--accent);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.step h3 { font-size: 1.32rem; font-weight: 700; margin: 0.5rem 0 0.6rem; }

.step p { font-size: 0.9rem; color: var(--muted); }

.steps-note {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 44rem;
}

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.team-photo { aspect-ratio: 4 / 5; border: 0; border-bottom: 1px dashed var(--dash); }

.team-card h3 { font-size: 1.24rem; font-weight: 700; padding: 1.3rem 1.4rem 0; }

.team-role {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0.35rem 1.4rem 0;
}

.team-bio { font-size: 0.88rem; color: var(--muted); padding: 0.7rem 1.4rem 0; }

/* ---------- faq ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 4rem;
  align-items: start;
}

.faq-head .section-sub { max-width: 30rem; }

.faq-call {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.faq-call a {
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}
.faq-call a:hover { border-bottom-color: var(--text); }

.faq-list { border-bottom: 1px solid var(--line); }

.faq-item { border-top: 1px solid var(--line); }

.faq-q {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  width: 100%;
  padding: 1.35rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-index {
  flex: none;
  width: 1.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--faint);
  transition: color 0.3s var(--ease);
}

.faq-q-text {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.faq-q:hover .faq-q-text { color: var(--muted); }

.faq-icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  align-self: center;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 1.5px;
  background: var(--muted);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }

.faq-item.is-open .faq-index { color: var(--accent); }
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after { background: var(--accent); }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}

.faq-a-inner {
  padding: 0 0 1.5rem 2.9rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 40rem;
}

/* ---------- consult ---------- */
.consult-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: start;
}

.contact-details { display: grid; gap: 1rem; margin: 2.2rem 0 1.6rem; }

.contact-details li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.contact-details li span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact-details a { font-weight: 500; border-bottom: 1px solid var(--line); transition: border-color 0.3s var(--ease); }
.contact-details a:hover { border-bottom-color: var(--text); }

.conf-note {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 26rem;
  margin-bottom: 2rem;
}

.map-photo { aspect-ratio: 16 / 9; }

/* form */
.consult-form, .form-success {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2.1rem;
}

.f-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
.f-row-2 { grid-template-columns: repeat(2, 1fr); }

.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.f-row .field { margin-bottom: 0; }

.field label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.req { color: var(--accent); }

input, select, textarea {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 0.9rem;
  width: 100%;
  outline: none;
  appearance: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

textarea { resize: vertical; min-height: 110px; }

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--surface-2);
}

input::placeholder, textarea::placeholder { color: var(--faint); }

input.invalid, textarea.invalid, select.invalid {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}

.field-error {
  display: block;
  min-height: 1em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
}
.field-error:not(:empty)::before { content: "! "; }

.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 0.4rem; }

.f-note { font-size: 0.8rem; color: var(--muted); }

/* success state */
.form-success { text-align: center; padding: 3.2rem 2.1rem; }

.success-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 1.3rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.4rem;
}

.form-success h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }

.form-success p { color: var(--muted); font-size: 0.92rem; max-width: 26rem; margin: 0 auto 1.6rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 1.5rem 2.4rem;
}

.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 1.9rem; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; font-weight: 500; color: var(--muted); transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--text); }

.footer-disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--faint);
  max-width: 62rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  font-size: 0.78rem;
  color: var(--faint);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding: 3.6rem 1.5rem 3.6rem; }
  .hero-figure { max-width: 440px; }
  .steps { grid-template-columns: 1fr; gap: 1.9rem; }
  .team-grid { grid-template-columns: 1fr; max-width: 460px; }
  .team-photo { aspect-ratio: 16 / 10; }
  .faq-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .consult-grid { grid-template-columns: 1fr; gap: 2.6rem; }
}

@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 1.5rem 1.8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
                visibility 0.3s var(--ease);
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav-cta { margin-top: 0.3rem; }

  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1.5rem; }
  .faq-a-inner { padding-left: 0; }
}

@media (max-width: 560px) {
  .topbar-note { display: none; }
  .topbar-inner { justify-content: center; }
  .practice-grid { grid-template-columns: 1fr; }
  .section, .band-inner { padding: 4rem 1.2rem; }
  .hero-inner { padding: 3rem 1.2rem 3.2rem; }
  .hero-meta-wrap { padding: 0 1.2rem; }
  .f-row-2 { grid-template-columns: 1fr; }
  .consult-form, .form-success { padding: 1.5rem; }
  .faq-q { gap: 0.9rem; }
  .faq-q-text { font-size: 0.98rem; }
}

/* ============================================================
   LAYOUT WIREFRAME — image placeholders
   Every image area is a flat #dcdcdc box with a 1px dashed
   border and a centered label naming the real content.
   ============================================================ */
.wf-img {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #dcdcdc;
  border: 1px dashed #a8a8a8;
  color: #777777;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1rem;
}

/* COLOUR OPTION — accent is re-themed by the corner widget; default is wireframe grey */
:root { --pop: #9a9a9a; --pop-ink: #ffffff; }
