/* Edward Russell Associates — site styles
   Brand guidelines Sept 2026: black #0D0D0F / gold #C3924D / white / grey #8A8F96 · Lora throughout */

:root {
  --black: #0D0D0F;
  --white: #ffffff;
  --gold: #C3924D;
  --gold-deep: #A5773A;
  --ink: #1a1a1a;
  --stone: #6b6660;
  --grey: #8A8F96;
  --paper: #f7f5f1;
  --rule: #e4e0d9;
  --serif: "Lora", Georgia, serif;
  --sans: "Lora", Georgia, serif;
  --measure: 62ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: inherit; }
strong { font-weight: 500; }

.wrap { width: min(1120px, 100% - 2 * var(--pad)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--paper { background: var(--paper); }
.section--black { background: var(--black); color: var(--white); }
.section--black p { color: #d8d3cb; }

/* Header */
.header { background: var(--black); color: var(--white); border-bottom: 1px solid #222; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--white); }
.brand img, .brand svg { height: 40px; width: auto; display: block; }
.brand span { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .02em; }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 400; color: #cfc9c0; padding: .35rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid #444; color: var(--white); padding: .45rem .7rem; font: inherit; font-size: .85rem; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 78px; background: var(--black); flex-direction: column; align-items: flex-start; padding: 1rem var(--pad) 1.5rem; gap: .5rem; border-bottom: 1px solid #222; z-index: 20; }
  .nav.is-open { display: flex; }
  .header { position: relative; }
}

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 500; font-size: .92rem; padding: .85rem 1.6rem; text-decoration: none; border: 1px solid var(--gold); background: var(--gold); color: var(--black); cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--black); }
.btn--ink { background: var(--black); border-color: var(--black); color: var(--white); }
.btn--ink:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn[disabled] { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Hero */
.hero { background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.hero .wrap { padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 7vw, 6rem); position: relative; z-index: 1; }
.hero h1 { max-width: 14ch; }
.hero p { font-size: 1.1rem; color: #cfc9c0; max-width: 46ch; }
.hero .actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 2rem; }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; opacity: .9; pointer-events: none; }
.skyline path, .skyline line { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.hero .strap { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.05rem; margin-bottom: 1.2rem; }

/* Two-column features */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.lede { font-size: 1.15rem; }

/* Definition-style lists with rules (used for roles, services) */
.rulelist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rulelist li { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; }
.rulelist li b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
@media (max-width: 600px) { .rulelist li { grid-template-columns: 1fr; gap: .2rem; } }
.section--black .rulelist, .section--black .rulelist li { border-color: #2a2a2a; }

/* Jobs */
.jobs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; }
.filters select, .filters input { font: inherit; font-size: .9rem; padding: .55rem .8rem; border: 1px solid var(--rule); background: var(--white); }
.job-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.job { border-bottom: 1px solid var(--rule); padding: 1.4rem 0; display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; }
.job h3 { margin: 0 0 .25rem; }
.job h3 a { text-decoration: none; }
.job h3 a:hover { color: var(--gold-deep); }
.job .meta { color: var(--stone); font-size: .9rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.job .salary { color: var(--ink); font-weight: 400; }
@media (max-width: 600px) { .job { grid-template-columns: 1fr; } }
.empty { padding: 3rem 0; color: var(--stone); border-bottom: 1px solid var(--rule); }
.job-detail .meta { color: var(--stone); display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 2rem; }
.job-detail .body { white-space: pre-line; max-width: var(--measure); }
.job-detail .cta { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.back { font-size: .9rem; color: var(--stone); text-decoration: none; }
.back:hover { color: var(--ink); }
.tag { display: inline-block; font-size: .78rem; font-weight: 400; color: var(--gold-deep); border: 1px solid var(--gold); padding: .15rem .6rem; }

/* Forms */
.form { max-width: 640px; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 400; font-size: .92rem; margin-bottom: .4rem; }
.field .hint { color: var(--stone); font-size: .82rem; margin: .3rem 0 0; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: .95rem; padding: .75rem .9rem; border: 1px solid #cfc9c0; background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 2px rgba(195,146,77,.25); }
.field textarea { min-height: 150px; resize: vertical; }
.field input[type="file"] { padding: .55rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; }
.check input { width: auto; margin-top: .3rem; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.2rem; border-left: 3px solid var(--gold); background: var(--paper); margin: 1rem 0; }
.notice--error { border-color: #b23a3a; }

/* Footer */
.footer { background: var(--black); color: #a8a29a; font-size: .85rem; padding-block: 2.5rem; border-top: 1px solid #222; }
.footer .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; }
.footer a { color: #cfc9c0; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer .gold { color: var(--gold); font-family: var(--serif); font-style: italic; }

/* Admin */
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.admin-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.admin-list li { border-bottom: 1px solid var(--rule); padding: .9rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.admin-list .title { font-family: var(--serif); font-size: 1.05rem; }
.admin-list .sub { font-size: .82rem; color: var(--stone); }
.admin-list .live { color: var(--gold-deep); }
.admin-list .draft { color: var(--stone); }
.linkbtn { background: none; border: none; font: inherit; font-size: .85rem; color: var(--stone); cursor: pointer; padding: .3rem .5rem; text-decoration: underline; }
.linkbtn:hover { color: var(--ink); }
.linkbtn--danger:hover { color: #b23a3a; }
.sticky { position: sticky; top: 1.5rem; }

/* Refinements */
.nav .btn { padding: .5rem 1.1rem; border-bottom: 1px solid var(--gold); }
.nav .btn:hover, .nav .btn[aria-current="page"] { background: var(--gold); color: var(--black); }
.hero .wrap { padding-bottom: clamp(8rem, 16vw, 12rem); }
.job .meta span[aria-hidden] { margin-inline: .6rem; color: var(--gold); }
@media (max-width: 760px) { .brand img { height: 30px; } }

/* ===== Photographic layer ===== */
.u { }
.photo-hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: var(--white); background: var(--black) center/cover no-repeat; isolation: isolate; }
.photo-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.85) 100%); z-index: -1; }
.photo-hero .wrap { padding-block: clamp(3rem, 8vw, 6rem); }
.photo-hero h1 { max-width: 15ch; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.photo-hero p { font-size: 1.15rem; color: #e6e1d8; max-width: 48ch; }
.photo-hero .actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 2rem; }
.photo-hero .kicker { color: var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin-bottom: 1rem; display: block; }
.goldline { width: 64px; height: 2px; background: var(--gold); margin-bottom: 1.5rem; }

.page-hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; color: var(--white); background: var(--black) center/cover no-repeat; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.85)); z-index: -1; }
.page-hero .wrap { padding-block: 3rem 2.5rem; }
.page-hero h1 { margin: 0 0 .4rem; }
.page-hero p { color: #d8d3cb; margin: 0; max-width: 52ch; font-size: 1.05rem; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: var(--white); background: var(--black) center/cover no-repeat; isolation: isolate; text-decoration: none; }
.pillar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.9)); z-index: -1; transition: background .2s; }
.pillar:hover::before { background: linear-gradient(180deg, rgba(0,0,0,.2) 30%, rgba(0,0,0,.95)); }
.pillar > div { padding: 1.75rem; }
.pillar h3 { font-size: 1.6rem; margin: 0 0 .4rem; }
.pillar p { color: #d8d3cb; font-size: .95rem; margin: 0 0 .8rem; max-width: 34ch; }
.pillar .more { color: var(--gold); font-weight: 400; font-size: .9rem; border-bottom: 1px solid var(--gold); }

.split--photo { align-items: center; }
.split--photo img { width: 100%; height: 100%; min-height: 380px; max-height: 560px; object-fit: cover; display: block; }
.frame { position: relative; }
.frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid var(--gold); pointer-events: none; }

.photo-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .6rem; }
.photo-strip img { width: 100%; height: 320px; object-fit: cover; display: block; }
@media (max-width: 760px) { .photo-strip { grid-template-columns: 1fr 1fr; } .photo-strip img { height: 200px; } .photo-strip img:first-child { grid-column: 1 / -1; height: 260px; } }

.cta-band { position: relative; color: var(--white); background: var(--black) center/cover no-repeat; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.78); z-index: -1; }
.cta-band .wrap { padding-block: clamp(4rem, 9vw, 7rem); }
.cta-band p { color: #d8d3cb; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid var(--rule); padding-top: 2rem; margin-top: 3rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stats b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; display: block; margin-bottom: .2rem; }
.stats span { color: var(--stone); font-size: .92rem; }

.team { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 700px) { .team { grid-template-columns: 1fr; } }
.person img, .person .placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--paper); }
.person .placeholder { display: flex; align-items: center; justify-content: center; color: var(--gold); font-family: var(--serif); font-size: 4rem; border: 1px solid var(--rule); }
.person h3 { margin: 1rem 0 .1rem; }
.person .role { color: var(--gold-deep); font-size: .9rem; margin-bottom: .6rem; }

.quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; max-width: 30ch; margin: 0; }
.quote small { display: block; font-family: var(--sans); font-size: .9rem; color: var(--gold); margin-top: 1rem; }

/* Brand guidelines refinements */
.footer .fine { color: var(--grey); font-size: .75rem; margin-top: .3rem; }
.header .wrap { min-height: 84px; }
.brand img { height: 44px; }
@media (max-width: 760px) { .brand img { height: 34px; } }
.btn, .nav a, .field label, .filters select, .filters input { font-weight: 500; }
.hero .strap, .photo-hero .kicker, .footer .gold { font-style: italic; }
.section--black p, .photo-hero p, .cta-band p, .pillar p, .page-hero p { color: #d8d3cb; }
.job .meta, .stats span, .admin-list .sub, .field .hint { color: var(--grey); }

.photo-quad { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.photo-quad img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.testimonial { border-top: 2px solid var(--gold); padding-top: 1.4rem; }
.testimonial blockquote { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }
.testimonial blockquote::before { content: "\201C"; color: var(--gold); font-size: 2rem; line-height: 0; vertical-align: -0.4em; margin-right: .15rem; }
.testimonial .who { font-size: .9rem; }
.testimonial .who b { font-weight: 600; display: block; }
.testimonial .who span { color: var(--grey); }
.section--black .testimonial blockquote { color: #f2efe9; }
.admin-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.admin-tabs button { background: none; border: none; font: inherit; font-weight: 500; padding: .8rem 1.2rem; cursor: pointer; color: var(--grey); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-tabs button.is-active { color: var(--ink); border-bottom-color: var(--gold); }

.centred { text-align: center; max-width: 720px; }
.centred p { margin-inline: auto; }
.band-photo { height: clamp(220px, 34vw, 420px); background: var(--black) center/cover no-repeat; }

/* For-clients dropdown */
.has-sub { position: relative; display: flex; align-items: center; }
.has-sub .sub-parent { display: inline-flex; align-items: center; gap: .35rem; }
.has-sub .caret { font-size: .7em; color: var(--gold); }
.sub-toggle { display: none; background: none; border: none; color: #cfc9c0; font-size: 1rem; cursor: pointer; padding: .35rem .5rem; }
.submenu { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--black); border: 1px solid #222; border-top: 2px solid var(--gold); padding: .4rem 0; display: none; z-index: 40; }
.submenu a { display: block; padding: .6rem 1.1rem; font-size: .88rem; color: #cfc9c0; border-bottom: none; white-space: nowrap; }
.submenu a:hover { color: var(--white); background: #171719; border-bottom: none; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; }
@media (min-width: 761px) { .has-sub .sub-toggle { display: none; } }
@media (max-width: 760px) {
  .has-sub { display: block; width: 100%; }
  .has-sub .sub-parent { display: inline-flex; }
  .has-sub .caret { display: none; }
  .sub-toggle { display: inline-block; position: absolute; right: 0; top: .1rem; }
  .submenu { position: static; border: none; border-top: none; padding: .2rem 0 .2rem 1rem; min-width: 0; }
  .submenu.is-open { display: block; }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: none; }
  .has-sub:hover .submenu.is-open { display: block; }
}

/* Sector pages */
.sector-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
@media (max-width: 900px) { .sector-cards { grid-template-columns: 1fr; } }
.sector-card { position: relative; min-height: 300px; display: flex; align-items: flex-end; color: var(--white); background: var(--black) center/cover no-repeat; isolation: isolate; text-decoration: none; }
.sector-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 30%, rgba(0,0,0,.9)); z-index: -1; transition: background .2s; }
.sector-card:hover::before { background: linear-gradient(180deg, rgba(0,0,0,.25) 30%, rgba(0,0,0,.95)); }
.sector-card > div { padding: 1.5rem; }
.sector-card h3 { font-size: 1.45rem; margin: 0 0 .3rem; }
.sector-card p { color: #d8d3cb; font-size: .9rem; margin: 0 0 .6rem; }
.sector-card .more { color: var(--gold); font-size: .85rem; border-bottom: 1px solid var(--gold); }
.support-list { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.support-list li { border-bottom: 1px solid var(--rule); padding: 1.3rem 0; display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem; }
.support-list .n { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); line-height: 1; }
.support-list b { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; display: block; margin-bottom: .3rem; }
.support-list span { color: var(--stone); }
.section--black .support-list, .section--black .support-list li { border-color: #2a2a2a; }

.sector-cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .sector-cards--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .sector-cards--4 { grid-template-columns: 1fr; } }
