/* =========================================================
   Zen Stamp Duty Consultants – site styles
   Palette built around the logo green (#95b83a) and a deep ink green.
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #10231f;
  --ink-2: #183530;
  --ink-3: #24483f;
  --green: #95b83a;
  --green-300: #b9d36e;
  --green-600: #5b7c1c;
  --green-700: #476317;
  --green-50: #f1f6e4;
  --paper: #f6f5ef;
  --sand: #ebe7da;
  --line: #e1dfd3;
  --text: #1b2622;
  --muted: #56645e;
  --white: #fff;
  --danger: #b42318;
  --danger-bg: #fdf0ef;
  --success: #2f6b1f;
  --success-bg: #eef6e6;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 31, .06), 0 2px 8px rgba(16, 35, 31, .05);
  --shadow: 0 10px 30px -12px rgba(16, 35, 31, .25);
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
main:focus { outline: none; }

h1, h2, h3, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .75rem;
  font-variation-settings: "opsz" 72;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2, .h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3, .h3 { font-size: 1.25rem; font-variation-settings: "opsz" 24; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.muted-light { color: #c7d3cd; }
.rounded { border-radius: var(--radius); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .55rem 1rem; font-size: .95rem; }
.btn--lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green); color: var(--ink); }
.btn--primary:hover { background: var(--green-300); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(149, 184, 58, .8); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .04); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow--light { color: var(--green-300); }
.link-arrow--light:hover { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--green-300); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: #cdd8d2; font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar__item { margin: 0; display: flex; align-items: center; gap: .45rem; }
.topbar__links { display: flex; gap: 1.25rem; }
.topbar a { color: #e8efe9; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--green-300); }
.topbar .icon { width: 1rem; height: 1rem; color: var(--green); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(16, 35, 31, .35); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand__logo { width: 56px; height: 56px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.brand__sub { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

.primary-nav { display: flex; align-items: center; gap: 1.25rem; }
.primary-nav ul { list-style: none; display: flex; gap: .25rem; }
.primary-nav ul a {
  display: block; padding: .55rem .8rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem;
  position: relative;
}
.primary-nav ul a:hover { background: var(--green-50); color: var(--ink); }
.primary-nav ul a[aria-current="page"] { color: var(--green-700); }
.primary-nav ul a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--green); border-radius: 2px;
}
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer;
  }
  .nav-toggle .icon { width: 24px; height: 24px; }
  .nav-toggle .icon--close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon--open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon--close { display: block; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 1rem var(--gutter) 1.5rem;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav ul a { padding: .85rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .primary-nav ul a[aria-current="page"]::after { display: none; }
  .primary-nav__cta { align-self: flex-start; }
}
@media (max-width: 640px) {
  .topbar__item { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__links { gap: 1rem; }
  .topbar__links a:first-child span { display: none; }
  .brand__logo { width: 46px; height: 46px; }
  .brand__name { font-size: 1.12rem; }
  .site-header__inner { min-height: 68px; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; background: var(--ink); }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: center 60%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 31, 27, .95) 0%, rgba(13, 31, 27, .82) 45%, rgba(13, 31, 27, .35) 100%),
    linear-gradient(0deg, rgba(13, 31, 27, .6), transparent 40%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-top: clamp(4rem, 10vw, 7.5rem); padding-bottom: clamp(4rem, 10vw, 7.5rem);
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.9rem); max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--green-300); font-weight: 500; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #dbe5df; max-width: 58ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-card {
  background: rgba(16, 35, 31, .72); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius); padding: 1.75rem; backdrop-filter: blur(6px);
}
.hero-card__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media::after { background: linear-gradient(180deg, rgba(13, 31, 27, .82), rgba(13, 31, 27, .93)); }
}

.check-list { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.25rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.45; }
.check-list .icon {
  width: 1.4rem; height: 1.4rem; padding: .22rem; border-radius: 50%;
  background: var(--green); color: var(--ink); margin-top: .05rem;
}
.check-list--dark { margin-bottom: 0; }
.check-list--dark .icon { background: var(--green-50); color: var(--green-700); }

/* ---------- Answer strip (AEO) ---------- */
.answer-strip { background: var(--green-50); border-bottom: 1px solid #dfe8c9; }
.answer-strip__inner { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding-top: 2.25rem; padding-bottom: 2.25rem; align-items: start; }
.answer-strip__title { font-size: 1.35rem; margin: 0; }
.answer-strip p { margin: 0; font-size: 1.05rem; }
@media (max-width: 760px) { .answer-strip__inner { grid-template-columns: 1fr; gap: .75rem; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #e2ebe6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; box-shadow: var(--shadow); }
.media-badge {
  position: absolute; left: 1.25rem; bottom: -1.25rem; right: 1.25rem; max-width: 360px;
  display: flex; gap: .75rem; align-items: center;
  background: #fff; border-radius: var(--radius-sm); padding: 1rem 1.1rem; box-shadow: var(--shadow);
  font-weight: 600; color: var(--ink); line-height: 1.35; font-size: .95rem;
}
.media-badge .icon { width: 2.2rem; height: 2.2rem; padding: .45rem; border-radius: 10px; background: var(--green-50); color: var(--green-700); }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  display: flex; flex-direction: column; gap: .6rem;
  padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--text); text-decoration: none;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.service-card h3, .service-card h2 { font-size: 1.2rem; margin: .4rem 0 0; }
.service-card p { color: var(--muted); font-size: .97rem; margin: 0; flex: 1; }
.service-card__icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--green-50); color: var(--green-700);
}
.service-card__icon .icon { width: 26px; height: 26px; }
.service-card:hover .service-card__icon { background: var(--green); color: var(--ink); }
.service-card__more { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; color: var(--green-700); margin-top: .5rem; }
.service-card__more .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.service-card:hover .service-card__more .icon { transform: translateX(3px); }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; margin: 1.75rem 0 2rem; }
.feature-list li { display: flex; gap: .9rem; }
.feature-list li > span { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--green-700); box-shadow: var(--shadow-sm); }
.feature-list h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 0 0 .2rem; letter-spacing: 0; }
.feature-list p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
.steps li { position: relative; padding: 1.6rem; border-radius: var(--radius); background: var(--paper); }
.steps__n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--green-300); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem;
}
.steps h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps--compact { grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
@media (max-width: 560px) { .steps--compact { grid-template-columns: 1fr; } }

/* ---------- Documents & clients ---------- */
.doc-chips { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.doc-chips li {
  display: flex; align-items: center; gap: .7rem; padding: .95rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--ink-2); border: 1px solid var(--ink-3); color: #fff; font-weight: 550;
}
.doc-chips .icon { color: var(--green); }
@media (max-width: 480px) { .doc-chips { grid-template-columns: 1fr; } }

.client-logos { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; max-width: 1000px; margin: 0 auto; }
.client-logos li { flex: 0 0 calc((100% - 4rem) / 5); display: flex; align-items: center; justify-content: center; min-height: 104px; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: box-shadow .25s, transform .25s; }
.client-logos li:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.client-logos img { width: 144px; max-width: 100%; height: auto; }
@media (max-width: 900px) { .client-logos li { flex-basis: calc((100% - 2rem) / 3); } }
@media (max-width: 560px) { .client-logos { gap: .6rem; } .client-logos li { flex-basis: calc((100% - .6rem) / 2); } }
@media (max-width: 420px) { .client-logos { gap: .6rem; } .client-logos li { min-height: 84px; padding: .6rem; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .75rem; }
.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--font-body); font-size: 1.05rem; font-weight: 650; margin: 0; letter-spacing: 0; color: var(--ink); line-height: 1.4; }
.faq__icon { width: 1.3rem; height: 1.3rem; color: var(--green-700); transition: transform .25s; }
.faq[open] .faq__icon { transform: rotate(180deg); }
.faq[open] summary { border-bottom: 1px solid var(--line); }
.faq__a { padding: 1rem 1.25rem 1.2rem; color: #33413c; }
.faq__a p { margin: 0; }
.archive-note { margin: 3rem 0 1.25rem; padding: 1.25rem 1.4rem; border-left: 4px solid var(--green); background: var(--paper); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.archive-note p { margin: 0; }

/* ---------- Contact & form ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-details { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.contact-item { display: flex; gap: 1rem; }
.contact-item__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--green-50); color: var(--green-700); }
.contact-item h3 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .3rem; font-weight: 700; }
.contact-item address, .contact-item p { margin: 0 0 .35rem; }
.contact-big { font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.plain-list { list-style: none; display: grid; gap: .25rem; }

.enquiry-card { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: var(--shadow); }
.section--paper .enquiry-card { border-color: transparent; }
.enquiry-card__title { font-size: clamp(1.5rem, 2.5vw, 1.9rem); }
.enquiry-card__lead { color: var(--muted); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .label-like { font-weight: 650; font-size: .95rem; color: var(--ink); }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: .8rem .95rem; border: 1.5px solid #cfd3c8; border-radius: var(--radius-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(149, 184, 58, .25); }
.field input::placeholder, .field textarea::placeholder { color: #8a948f; }
.select { position: relative; }
.select select { appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select .icon { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); background: #fffafa; }
.field__error { color: var(--danger); font-size: .9rem; margin: 0; font-weight: 550; }
.captcha { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.captcha__img { display: block; width: 180px; height: 60px; border: 1.5px solid #d9ddd2; border-radius: var(--radius-sm); background: #f4f6ee; }
.captcha__refresh { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid #d9ddd2; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, transform .3s; }
.captcha__refresh:hover { background: var(--green-50); }
.captcha__refresh:active { transform: rotate(180deg); }
.captcha__refresh .icon { width: 20px; height: 20px; }
.field .captcha__input { flex: 1 1 140px; max-width: 200px; font-size: 1.15rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 650; }
.field__hint { margin: .1rem 0 0; font-size: .85rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.5rem; }
.form-note { margin: 0; font-size: .88rem; color: var(--muted); flex: 1 1 260px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-weight: 550; }
.alert p { margin: 0; }
.alert--success { background: var(--success-bg); color: var(--success); border: 1px solid #cfe3bf; }
.alert--success .icon { flex: none; width: 1.5rem; height: 1.5rem; padding: .25rem; border-radius: 50%; background: var(--success); color: #fff; }
.alert--error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f4cfcb; }
.alert:focus { outline: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #dbe5df; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%;
  border: 60px solid rgba(149, 184, 58, .12);
}
.cta-band__inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { margin: 0; max-width: 60ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1a17; color: #b9c6c0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr 1.3fr; gap: 2.5rem; padding-top: 4rem; padding-bottom: 3rem; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.brand--footer { color: #fff; margin-bottom: 1rem; }
.brand--footer .brand__sub { color: #8fa29a; }
.footer-title { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green-300); margin-bottom: 1rem; font-weight: 700; }
.footer-links { list-style: none; display: grid; gap: .45rem; }
.site-footer a { color: #dfe8e3; text-decoration: none; }
.site-footer a:hover { color: var(--green-300); text-decoration: underline; }
.footer-address { margin-bottom: 1rem; line-height: 1.6; }
.footer-contact { list-style: none; display: grid; gap: .5rem; }
.footer-contact li { display: flex; gap: .55rem; align-items: flex-start; }
.footer-contact .icon { width: 1.05rem; height: 1.05rem; margin-top: .25rem; color: var(--green); }
.footer-contact .muted { color: #8fa29a; }
.social-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.social { display: inline-flex; align-items: center; gap: .55rem; }
.social .icon { width: 2rem; height: 2rem; padding: .35rem; border-radius: 50%; background: #1b302b; color: #fff; }
.footer-bottom { border-top: 1px solid #1c2f2a; }
.footer-bottom__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: .88rem; }
.footer-bottom p { margin: 0; }

.call-fab {
  display: none; position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; place-items: center;
  background: var(--green); color: var(--ink); box-shadow: 0 10px 25px -8px rgba(16, 35, 31, .55);
}
.call-fab .icon { width: 26px; height: 26px; }
@media (max-width: 760px) { .call-fab { display: grid; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--ink); color: #dbe5df; overflow: hidden; isolation: isolate; }
.page-hero::after {
  content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; bottom: -220px; border-radius: 50%;
  border: 56px solid rgba(149, 184, 58, .13);
}
.page-hero__media, .page-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.page-hero__media img { object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 31, 27, .94), rgba(13, 31, 27, .7)); }
.page-hero__inner { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.page-hero h1 { color: #fff; max-width: 22ch; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero__lead { font-size: 1.15rem; max-width: 62ch; margin: 0; color: #d0dbd5; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .9rem; margin-bottom: 1.5rem; }
.breadcrumbs li { display: flex; align-items: center; gap: .35rem; color: #a9bab2; }
.breadcrumbs li + li::before { content: "/"; color: #6f857c; }
.breadcrumbs a { color: #e2ebe6; text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-300); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--green-300); }

/* ---------- Service detail ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 1000px) { .service-layout { grid-template-columns: 1fr; } }
.service-main > * + * { margin-top: 2.5rem; }
.service-main h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.service-figure { margin-left: 0; margin-right: 0; margin-bottom: 0; }
.service-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.answer-box { border-radius: var(--radius); background: var(--green-50); border: 1px solid #dfe8c9; padding: 1.4rem 1.5rem; }
.answer-box p:last-child { margin: 0; font-size: 1.07rem; color: var(--ink); }
.answer-box__label { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green-700); margin-bottom: .5rem; }
.answer-box__label .icon { width: 1.1rem; height: 1.1rem; }
.answer-box--spaced { margin-top: 1.5rem; }
.docs-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; background: var(--paper); }
.bullet-list { padding-left: 1.2rem; display: grid; gap: .45rem; margin-bottom: 1rem; }
.bullet-list li::marker { color: var(--green-600); }

.service-aside { position: sticky; top: 100px; display: grid; gap: 1.25rem; }
@media (max-width: 1000px) { .service-aside { position: static; } }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: #fff; }
.aside-card--ink { background: var(--ink); color: #d0dbd5; border-color: var(--ink); display: grid; gap: .75rem; }
.aside-card--ink p { margin: 0; }
.aside-card__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); margin-bottom: .75rem; }
.aside-card--ink .aside-card__title { color: #fff; margin: 0; }
.aside-links { list-style: none; display: grid; gap: .15rem; }
.aside-links a { display: flex; gap: .7rem; align-items: center; padding: .6rem .5rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 550; font-size: .96rem; line-height: 1.35; }
.aside-links a:hover { background: var(--green-50); }
.aside-links .icon { color: var(--green-700); width: 1.15rem; height: 1.15rem; }

/* ---------- Services listing ---------- */
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 900px) { .service-list { grid-template-columns: 1fr; } }
.service-row { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .25s; }
.service-row:hover { box-shadow: var(--shadow); }
.service-row__media img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.service-row__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.service-row h2 { font-size: 1.3rem; margin: .35rem 0 0; }
.service-row h2 a { color: var(--ink); text-decoration: none; }
.service-row h2 a:hover { color: var(--green-700); }
.service-row p { color: var(--muted); margin: 0 0 .25rem; font-size: .97rem; }
@media (max-width: 520px) { .service-row { grid-template-columns: 1fr; } .service-row__media img { min-height: 0; aspect-ratio: 16 / 9; } }

/* ---------- About ---------- */
.core-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.core-grid li { display: flex; flex-direction: column; gap: .8rem; padding: 1.4rem; background: #fff; border-radius: var(--radius); font-weight: 600; color: var(--ink); line-height: 1.4; box-shadow: var(--shadow-sm); }
.core-grid .icon { width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: 12px; background: var(--green-50); color: var(--green-700); }
@media (max-width: 1000px) { .core-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .core-grid { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.value-card { padding: clamp(1.6rem, 3vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--radius); }
.value-card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--green-300); margin-bottom: 1rem; }
.value-card__icon .icon { width: 26px; height: 26px; }
.value-card p:last-child { margin: 0; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } }
.person { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.person__avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--green-300); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.person h3 { font-size: 1.1rem; margin: 0 0 .15rem; }
.person p { margin: 0; }

/* ---------- Resources ---------- */
.toc { padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.toc__title { font-weight: 700; margin-bottom: .5rem; color: var(--ink); }
.toc ol { padding-left: 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem 2rem; }
.resource { position: relative; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.resource__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--green-300); margin-bottom: 1rem; }
.resource__icon .icon { width: 26px; height: 26px; }
.resource .answer-box { margin: 1rem 0 1.5rem; }
.link-cards { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
@media (max-width: 640px) { .link-cards { grid-template-columns: 1fr; } }
.link-cards a { position: relative; display: flex; flex-direction: column; gap: .25rem; padding: 1.2rem 3rem 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); height: 100%; }
.link-cards a:hover { border-color: var(--green); background: var(--green-50); }
.link-cards span { color: var(--muted); font-size: .93rem; line-height: 1.45; }
.link-cards .icon { position: absolute; right: 1.1rem; top: 1.2rem; color: var(--green-700); width: 1.1rem; height: 1.1rem; }

/* ---------- Converter ---------- */
.converter { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: calc(var(--radius) + 4px); background: var(--ink); color: #dbe5df; }
.converter h2 { color: #fff; display: flex; gap: .6rem; align-items: center; }
.converter h2 .icon { color: var(--green); }
.converter__row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1rem; margin: 1.25rem 0 1.5rem; }
@media (max-width: 480px) { .converter__row { grid-template-columns: 1fr; } }
.converter .field label { color: #fff; }
.converter__results { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.converter__results th, .converter__results td { padding: .7rem .2rem; border-bottom: 1px solid var(--ink-3); text-align: left; font-weight: 500; }
.converter__results td { text-align: right; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.converter__results tr.is-source td { color: var(--green-300); }
.converter .muted { color: #a9bab2; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.ref-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.ref-table th, .ref-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.ref-table thead th { background: var(--paper); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ref-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.ref-table tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Map ---------- */
.map-facade { position: relative; width: 100%; height: clamp(320px, 36vw, 460px); border-radius: var(--radius); overflow: hidden; background: #f2efe9; margin: 1rem 0 .5rem; }
.map-facade__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-facade__overlay { position: absolute; left: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.75rem, 2vw, 1.5rem); max-width: min(420px, calc(100% - 1.5rem)); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: 1.1rem 1.25rem; background: #fff; color: var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.map-facade__overlay p { margin: 0 0 .25rem; flex-basis: 100%; font-size: 1rem; }
.map-facade__overlay .btn { flex: none; }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) {
  .map-facade { height: auto; }
  .map-facade.is-loaded { height: 360px; }
  .map-facade__img { position: relative; display: block; height: 260px; }
  .map-facade__overlay { position: relative; left: 0; bottom: 0; max-width: none; border-radius: 0; box-shadow: none; }
}

/* ---------- Prose ---------- */
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.prose h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .45rem; }
.prose li::marker { color: var(--green-600); }
.prose p { margin-bottom: 0; }

.error-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.error-page .eyebrow { justify-content: center; }
.error-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .topbar, .site-header, .site-footer, .call-fab, .enquiry-card, .cta-band, .service-aside { display: none !important; }
  .page-hero, .hero { background: none; color: #000; }
}

/* Inline links inside footer text must not rely on colour alone */
.footer-contact a, .footer-bottom a { text-decoration: underline; text-decoration-color: rgba(185, 211, 110, .55); }

/* Home page: tighter vertical rhythm between sections */
.is-home .section { padding: clamp(2.25rem, 4.5vw, 3.5rem) 0; }
.is-home .section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.is-home .section-head { margin-bottom: clamp(1.5rem, 3vw, 2rem); }
/* Home FAQ: narrower intro column that stays in view, so no empty block on the left */
.home-faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(2rem, 4vw, 3.5rem); }
.home-faq__intro { position: sticky; top: 110px; }
@media (max-width: 900px) { .home-faq { grid-template-columns: 1fr; } .home-faq__intro { position: static; } }

/* Home: Company News & Research (content from the previous homepage) */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.news-card h2 { margin: .25rem 0 .9rem; }
.news-card p { color: var(--muted); }
.news-card p:last-child { margin-bottom: 0; }
