/* =============================
   Price Advisory, Land Advice, Farm Advice and Forestry Advice: one shared stylesheet, the same file on all four sites.
   Same look as Rathangan Local Hackney, Fergus Price and Price Property: monochrome off-white and near-black,
   Inclusive Sans, square shapes, 2px rules, always-underlined links, no motion, one accent colour per family.
   Colours are named by role so the light and dark schemes stay consistent.
============================= */
/* Inclusive Sans, hosted on this site (SIL Open Font License, see fonts/OFL.txt).
   One variable file per character set covers every weight from 400 to 700. */
@font-face {
  font-family: 'Inclusive Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inclusive-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inclusive Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inclusive-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f8f8f6;               /* off-white: less glare than pure white */
  --surface: #ffffff;
  --ink: #1b1b1b;              /* near-black: softer than pure black */
  --muted: #3d3d3d;
  --rule: #858585;             /* card borders (3:1) */
  --rule-strong: #1b1b1b;
  --band: #1b1b1b;             /* header, hero and call-to-action bands */
  --band-ink: #ffffff;
  --primary: #1b1b1b;
  --primary-ink: #ffffff;
  --soft: #e9e9e7;
  --note-bg: #efefed;
  --link: #1b1b1b;
  --focus: #1b1b1b;            /* focus outline, with an off-white gap around it */
  /* Family accent: the motif line and tick boxes only. Price Advisory = field green; the specialist sites override it to black and white below. */
  --accent: #2e6b3c;
  --accent-ink: #ffffff;
  --accent-band: var(--band-ink);   /* motif line on the black bands: white, like the band text */

  --max: 1040px;
  --font: 'Inclusive Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1c1c1c;
    --ink: #f2f2f0;
    --muted: #cfcfcf;
    --rule: #6a6a6a;
    --rule-strong: #f2f2f0;
    --band: #000000;
    --band-ink: #ffffff;
    --primary: #f2f2f0;
    --primary-ink: #121212;
    --soft: #2a2a2a;
    --note-bg: #262626;
    --link: #f2f2f0;
    --focus: #f2f2f0;
    --accent: #8fcf9b;
    --accent-ink: #121212;
    color-scheme: dark;
  }
}

/* =============================
   Base
============================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 20px/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 4px; }
p { margin: 0 0 16px; }
strong { font-weight: 700; }
img, svg { max-width: 100%; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 8px var(--bg); }
.site-header :focus-visible, .hero :focus-visible, .cta-band :focus-visible { outline-color: var(--band-ink); box-shadow: 0 0 0 8px var(--band); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow > * { max-width: 48em; }
.section { padding: 64px 0; scroll-margin-top: 0; }
.section + .section { border-top: 2px solid var(--rule); }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--band-ink); color: var(--band); padding: 14px 18px; }

h1, h2, h3 { font-family: var(--font); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 6.4vw, 60px); line-height: 1.1; }
h2 { font-size: clamp(30px, 4.2vw, 40px); line-height: 1.15; margin-bottom: 16px; }
h3 { font-size: 23px; line-height: 1.25; margin-bottom: 8px; }
.intro { font-size: 22px; max-width: 34em; }

/* Small uppercase label above a heading, as on fergusprice.me */
.eyebrow, .ref {
  margin: 0 0 10px;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}

/* =============================
   Header
============================= */
.site-header { background: var(--band); color: var(--band-ink); border-bottom: 2px solid rgba(255, 255, 255, .18); }
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a { color: inherit; font-size: 18px; text-decoration-thickness: 1px; white-space: nowrap; }
.site-nav a[aria-current="page"] { text-decoration-thickness: 3px; }
.site-nav a:hover { text-decoration-thickness: 3px; }
.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--band-ink);
  color: inherit;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.header-call:hover { background: rgba(255, 255, 255, .12); }

/* =============================
   Hero
============================= */
.hero {
  background: var(--band);
  color: var(--band-ink);
  padding: 44px 0 80px;
  position: relative;
}
.hero::after {
  /* Boundary line motif: the dash-dot line used for land boundaries on maps */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--accent-band) 0 48px, transparent 48px 60px, var(--accent-band) 60px 66px, transparent 66px 78px);
}
.hero h1 em { font-style: normal; }
.hero .intro { color: var(--band-ink); margin-top: 20px; }
.hero-call { margin: 22px 0 0; font-size: 22px; }
.hero-call a { color: var(--band-ink); font-weight: 700; white-space: nowrap; }
.hero.compact { padding: 36px 0 70px; }
.crumbs { margin: 0 0 18px; font-size: 17px; }
.crumbs a { color: var(--band-ink); text-decoration-thickness: 1px; }
.crumbs span[aria-hidden] { margin: 0 8px; }
@media (prefers-color-scheme: dark) {
  .hero { border-bottom: 2px solid rgba(255, 255, 255, .18); }
}

/* =============================
   Buttons
============================= */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 62px;
  padding: 14px 26px;
  border: 3px solid transparent;
  font: 700 21px/1.1 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.btn svg { flex: 0 0 auto; width: 24px; height: 24px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn-primary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* On the black bands, buttons flip to white */
.hero .btn-primary, .cta-band .btn-primary { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.btn-outline { border-color: var(--rule-strong); color: var(--ink); background: var(--surface); }
.btn-outline:hover { background: var(--soft); }
.btn-outline-band { border-color: var(--band-ink); color: var(--band-ink); background: transparent; }
.btn-outline-band:hover { background: rgba(255, 255, 255, .12); }

/* =============================
   Panels and service cards
============================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.panel {
  background: var(--surface);
  border: 2px solid var(--rule);
  padding: 28px;
}

/* "Where can I help?": each family is one big link */
a.family { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; border-color: var(--rule-strong); }
a.family:hover { background: var(--band); color: var(--band-ink); }
a.family:hover .go { text-decoration-thickness: 4px; }
.family-ic { font-size: 36px; line-height: 1; margin-bottom: 14px; }
.asks { list-style: none; margin: 8px 0 20px; padding: 0; display: grid; gap: 10px; }
.asks li { padding-left: 26px; position: relative; }
.asks li::before { content: '“'; position: absolute; left: 0; font-weight: 700; font-size: 28px; line-height: 1; top: 2px; }
.go { margin-top: auto; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.go::after { content: '\00a0↓'; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.cards.two { grid-template-columns: 1fr 1fr; }
.card { display: flex; flex-direction: column; }
.card > p:not(.ref) { color: var(--muted); }
.card .more { margin-top: auto; padding-top: 16px; font-weight: 700; }
.card .more::after { content: '\00a0→'; }
.card .more[target="_blank"]::after { content: '\00a0↗'; }
.group-heading { margin-top: 40px; font-size: 26px; }

.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.ticks li::before {
  content: '✓';
  width: 28px; height: 28px; margin-top: 2px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 16px;
}

/* Links to the other service pages */
.related { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.related a {
  display: flex; align-items: center; min-height: 64px; padding: 12px 18px;
  background: var(--surface); color: var(--ink); border: 2px solid var(--rule-strong);
  font-weight: 700; text-decoration: none;
}
.related a::after { content: '\00a0→'; margin-left: auto; }
.related a:hover { background: var(--band); color: var(--band-ink); }
.note.urgent { margin: 0 0 32px; }
.note .btn { margin-top: 14px; }

/* =============================
   Steps
============================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; counter-reset: step; }
.step {
  background: var(--surface);
  border: 2px solid var(--rule);
  padding: 26px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 16px;
}
.step p { margin: 0; }

/* =============================
   Ticked list
============================= */
.rules { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 18px; }
.rules li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.rules .ic {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 22px;
}
.rules strong { display: block; }
.rules span { color: var(--muted); }

/* =============================
   FAQ
============================= */
.faqs { margin-top: 24px; display: grid; gap: 12px; max-width: 48em; }
details.faq {
  background: var(--surface);
  border: 2px solid var(--rule);
  padding: 0 24px;
}
details.faq[open] { border-color: var(--rule-strong); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  min-height: 62px;
  font-weight: 700;
  font-size: 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 26px;
  line-height: 1;
}
details.faq[open] summary::after { content: '−'; }
details.faq p { padding-bottom: 8px; }

/* =============================
   CTA band
============================= */
.cta-band {
  background: var(--band);
  color: var(--band-ink);
  border: 2px solid var(--band);
  padding: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}
@media (prefers-color-scheme: dark) { .cta-band { border-color: var(--rule-strong); } }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; font-size: 22px; }
.cta-band a.tel { color: inherit; font-weight: 700; overflow-wrap: anywhere; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn { min-width: 200px; }

/* =============================
   Note
============================= */
.note {
  background: var(--note-bg);
  border-left: 8px solid var(--primary);
  padding: 18px 20px;
  margin: 32px 0 0;
  max-width: 48em;
}

/* =============================
   Footer
============================= */
.site-footer {
  border-top: 2px solid var(--rule);
  padding: 30px 0 48px;
  font-size: 18px;
  color: var(--muted);
}
.site-footer a { color: inherit; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }

/* =============================
   Sticky mobile bar
============================= */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;
  gap: 6px;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 3px solid var(--rule-strong);
}
/* Three equal buttons, icon above a short label */
.callbar .btn {
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 66px;
  padding: 8px 2px;
  font-size: 16px;
  border-width: 2px;
}
.callbar .btn svg { width: 24px; height: 24px; }

/* =============================
   Responsive
============================= */
@media (max-width: 960px) {
  .site-nav { display: none; }
}
@media (max-width: 880px) {
  .steps, .split, .cards, .cards.two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 19px; }
  .hero { padding: 28px 0 64px; }
  .hero.compact { padding: 26px 0 60px; }
  .hero::after { bottom: 22px; }
  .hero-call { font-size: 20px; margin-top: 18px; }
  h1 { font-size: 34px; }
  h2 { font-size: 29px; }
  .intro, .hero .intro { font-size: 19px; margin-top: 14px; }
  .actions { margin-top: 20px; gap: 10px; }
  .hero .actions .btn { flex: 1 1 0; padding: 12px 10px; }
  .hero .actions .btn-lead { flex: 1 1 100%; }
  .header-call { display: none; }
  .callbar { display: flex; }
  body:has(.callbar) .site-footer { padding-bottom: 130px; }

  /* Steps: number beside the heading instead of above it */
  .steps { gap: 12px; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 20px; }
  .step::before { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .step h3, .step p { grid-column: 2; }

  .section { padding: 48px 0; }
  .panel { padding: 22px 20px; }
  .logo { font-size: 20px; }
  .cta-band { padding: 26px 22px; }
  .cta-actions { width: 100%; }
  .cta-band .btn { flex: 1 1 100%; }
}
.asks-page { max-width: 40em; font-size: 22px; margin-top: 16px; }
.asks-page li { padding-left: 32px; }
.asks-page li::before { font-size: 34px; }

/* =============================
   Specialist sites: Land Advice, Farm Advice, Forestry Advice
   Same design as Price Advisory. Each site has its own line under the hero instead of its own colour.
============================= */
/* Black and white only: no family green on these three sites. Tick boxes take the ink colour. */
.land, .farm, .forest { --accent: var(--primary); --accent-ink: var(--primary-ink); }
.hero .eyebrow { color: var(--band-ink); opacity: .85; }
.hero { padding-bottom: 96px; }

/* Land: map scale bar */
.land .hero::after {
  bottom: 30px; height: 14px;
  border: 2px solid var(--accent-band);
  background: repeating-linear-gradient(90deg, var(--accent-band) 0 80px, transparent 80px 160px);
}
/* Farm: post-and-rail fence */
.farm .hero::after {
  bottom: 24px; height: 26px;
  background:
    linear-gradient(var(--accent-band), var(--accent-band)) left 6px / 100% 3px no-repeat,
    linear-gradient(var(--accent-band), var(--accent-band)) left 16px / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, var(--accent-band) 0 6px, transparent 6px 90px);
}
/* Forestry: tree line */
.forest .hero::after {
  bottom: 24px; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath fill='%23fff' d='M0 30 11 4l11 26zM24 30l8-18 8 18zM38 30l11-22 11 22z'/%3E%3C/svg%3E") left bottom / 60px 30px repeat-x;
}

/* Trust strip under the hero */
.trust-strip { background: var(--surface); border-bottom: 2px solid var(--rule); padding: 18px 0; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 700; font-size: 18px; }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust li::before {
  content: '✓'; width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 15px;
}

/* Why us + common situations */
.why { align-items: start; gap: 32px; }
.why .rules { margin-top: 24px; }
.situations { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; }
.situations li { padding: 14px 0; border-top: 2px solid var(--rule); }
.situations li:first-child { border-top: 0; padding-top: 4px; }
.situations strong { display: block; }
.situations span { color: var(--muted); font-size: 18px; }

h2 em { font-style: normal; }
.steps.four { grid-template-columns: 1fr 1fr; }
.tag { margin: 0; padding-top: 16px; margin-top: auto; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) !important; }
.note p:last-of-type { margin-bottom: 0; }
.note .btn { margin-top: 16px; }

/* Contact: Tally form beside the phone options. The form panel stays light so Tally's own colours read in dark mode. */
.contact-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; margin-top: 24px; }
.form-panel { background: #ffffff; color: #1b1b1b; color-scheme: light; border: 2px solid var(--rule-strong); padding: 24px; min-width: 0; }
.form-panel iframe { display: block; width: 100%; }
.stack { display: grid; gap: 12px; margin-top: 8px; }
.disclaimer { margin: 24px 0 0; font-size: 17px; color: var(--muted); max-width: 48em; }

/* Long-form text (privacy policy) */
.prose > * { max-width: 46em; }
.prose h2 { font-size: clamp(26px, 3.4vw, 32px); margin: 44px 0 12px; }
.prose .note { margin: 0 0 32px; }
.prose ul { margin: 0 0 16px; padding-left: 28px; }
.prose li { margin: 8px 0; }

@media (max-width: 880px) {
  .steps.four, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding-bottom: 80px; }
  .land .hero::after { bottom: 22px; }
  .farm .hero::after, .forest .hero::after { bottom: 18px; }
  .trust { font-size: 16px; gap: 8px 18px; }
  .form-panel { padding: 16px; }
}

/* =============================
   Footer page links. Long phrases may wrap on phones so the page never scrolls sideways.
============================= */
.foot-nav { list-style: none; margin: 0 0 18px; padding: 0 0 18px; width: 100%; display: flex; flex-wrap: wrap; gap: 8px 22px; border-bottom: 2px solid var(--rule); }
.foot-nav a { color: var(--ink); font-weight: 700; }
@media (max-width: 600px) {
  .site-footer .nowrap { white-space: normal; }
}

/* =============================
   Situations: each card is one big link to a page
============================= */
a.situation { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; border-color: var(--rule-strong); }
a.situation h3 { font-size: 22px; }
a.situation p { color: var(--muted); margin-bottom: 12px; }
a.situation .go { margin-top: auto; }
a.situation .go::after { content: '\00a0→'; }
a.situation[target="_blank"] .go::after { content: '\00a0↗'; }
a.situation:hover { background: var(--band); color: var(--band-ink); }
a.situation:hover p { color: inherit; }

/* =============================
   About Fergus, recent work and fees
============================= */
.about { align-items: start; gap: 32px; }
.cases { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.cases li { padding: 14px 0; border-top: 2px solid var(--rule); }
.cases li:first-child { border-top: 0; padding-top: 4px; }
.cases strong { display: block; }
.cases span { color: var(--muted); font-size: 18px; }
.fees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.fee { background: var(--surface); border: 2px solid var(--rule-strong); padding: 24px; }
.fee .ref { margin-bottom: 6px; }
.fee strong { display: block; font-size: 30px; line-height: 1.15; margin-bottom: 6px; }
.fee span { color: var(--muted); }
.where { margin: 18px 0 0; font-weight: 700; }
.who { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.who li { border: 2px solid var(--rule-strong); background: var(--surface); padding: 6px 12px; font-size: 18px; font-weight: 700; }
@media (max-width: 880px) {
  .fees { grid-template-columns: 1fr; }
}

/* Brand mark beside the name in the header */
.logo svg { width: 38px; height: 38px; flex: none; margin-right: 12px; }
