/* Cerberus Asset Management — site stylesheet
   No external fonts or frameworks: everything is self-hosted so the
   Content-Security-Policy can stay strict (see web.config / _headers). */

:root {
  --green-900: #2a3806;
  --green-800: #3a4d0a;
  --green-700: #4b6309;
  --green-600: #557000;   /* original brand green */
  --green-500: #6b8c0f;
  --green-300: #b0cf4c;   /* original accent */
  --green-100: #eef3dc;
  --ink: #1d211a;
  --ink-soft: #4a5044;
  --muted: #6b7165;
  --line: #e2e5dc;
  --paper: #ffffff;
  --paper-alt: #f6f7f2;
  --danger: #a3261b;

  /* Modern system sans: Segoe UI Variable on Windows 11, SF Pro on Apple, Roboto on Android. No downloads, no third parties. */
  --display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 10, .06), 0 8px 24px rgba(20, 30, 10, .07);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-underline-offset: .18em; }
a:hover { color: var(--green-800); }
:focus-visible { outline: 3px solid var(--green-300); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Top bar & header ---------- */
.topbar {
  background: var(--green-900);
  color: #dfe8c4;
  font-size: .875rem;
}
.topbar .wrap { display: flex; justify-content: flex-end; gap: 22px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar span { color: var(--green-300); margin-right: 4px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 62px; width: auto; border-radius: 6px; }
.brand-logo--footer { height: 84px; }
@media (max-width: 480px) { .site-header .brand-logo { height: 54px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: .16em; text-transform: uppercase; }
.brand-sub { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--green-600); margin-top: 4px; }
.brand:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; cursor: pointer; color: var(--ink);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .97rem;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--green-700); background: var(--green-100); }
.site-nav a[aria-current="page"] { color: var(--green-700); font-weight: 650; }
.site-nav .nav-cta {
  background: var(--green-600); color: #fff; margin-left: 8px; padding: 10px 18px;
}
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--green-800); color: #fff; }

.has-sub { position: relative; }
.has-sub > button {
  font: inherit; font-weight: 500; font-size: .97rem; color: var(--ink-soft);
  background: none; border: 0; padding: 10px 12px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.has-sub > button::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.has-sub > button:hover, .has-sub.is-current > button { color: var(--green-700); background: var(--green-100); }
.has-sub > button[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px; display: none;
}
.has-sub > button[aria-expanded="true"] + .sub-menu { display: block; }
@media (hover: hover) and (min-width: 1121px) {
  .has-sub:hover > .sub-menu { display: block; }
}

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 18px; gap: 2px; }
  .site-nav a, .has-sub > button { padding: 13px 12px; width: 100%; text-align: left; }
  .has-sub > button { justify-content: space-between; }
  .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .site-nav .nav-cta { margin: 10px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse 70% 120% at 18% 40%, rgba(176, 207, 76, .35), transparent 60%),
    linear-gradient(115deg, var(--green-800) 0%, var(--green-600) 55%, var(--green-700) 100%);
}
.hero::before {
  /* concentric ripples echo the original header artwork */
  content: ""; position: absolute; inset: -40% -10% -40% -30%;
  background: repeating-radial-gradient(ellipse at 20% 50%, transparent 0 70px, rgba(255, 255, 255, .07) 71px 73px, transparent 74px 140px);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); }
.hero-inner { max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green-300); font-weight: 600; margin-bottom: 14px;
}
.eyebrow--dark { color: var(--green-600); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 3.8rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.08; margin-bottom: .45em; }
.hero p.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #eef3dc; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; }
.btn-light { background: #fff; color: var(--green-800); }
.btn-light:hover { background: var(--green-100); color: var(--green-900); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  position: relative; color: #fff; background: var(--green-800);
  background-size: cover; background-position: center;
}
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(42, 56, 6, .94) 0%, rgba(75, 99, 9, .82) 55%, rgba(75, 99, 9, .55) 100%);
}
.page-head--bridge { background-image: url("../img/banner3.jpg"); }
.page-head--city { background-image: url("../img/banner2.jpg"); }
.page-head--works { background-image: url("../img/banner4.jpg"); }
.page-head--office { background-image: url("../img/img_3098.jpg"); }
.page-head .wrap { position: relative; z-index: 1; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { color: #e6edcf; margin: 10px 0 0; max-width: 680px; font-size: 1.1rem; }
.breadcrumb { font-size: .875rem; margin-bottom: 10px; color: #cfdcaa; }
.breadcrumb a { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--alt { background: var(--paper-alt); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1120px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); }
.card .card-link { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .card-link::after { content: " →"; }
.card--link { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card--link:hover { border-color: var(--green-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
}
.facts strong { display: block; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 1.2rem; color: var(--green-700); }
.facts span { color: var(--ink-soft); font-size: .97rem; }

/* ---------- Prose (content pages & news) ---------- */
.prose { max-width: 760px; }
.prose > p:first-child, .prose .intro { font-size: 1.18rem; color: var(--ink); }
.prose p, .prose li { color: var(--ink-soft); }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px var(--green-100);
}
.prose img { border-radius: var(--radius); margin: 1.6em auto; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--green-300);
  font-family: var(--display); font-size: 1.2rem; font-weight: 500; color: var(--ink);
}

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .content-layout { grid-template-columns: 1fr; } }
.aside-box { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside-box + .aside-box { margin-top: 20px; }
.aside-box h2 { font-size: 1.25rem; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li + li { border-top: 1px solid var(--line); }
.aside-box li a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink-soft); }
.aside-box li a:hover, .aside-box li a[aria-current="page"] { color: var(--green-700); font-weight: 600; }
.aside-box--dark { background: var(--green-800); border-color: var(--green-800); color: #e6edcf; }
.aside-box--dark h2 { color: #fff; }
.aside-box--dark p { color: #e6edcf; }
.aside-box--dark a:not(.btn) { color: #fff; }   /* :not(.btn) so this doesn't override the button's own text colour */

/* ---------- Testimonials ---------- */
.quote {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; position: relative;
}
.quote::before {
  content: "\201C"; font-family: Georgia, serif; font-size: 4.5rem; line-height: 1;
  color: var(--green-300); position: absolute; top: 10px; left: 22px;
}
.quote blockquote { margin: 34px 0 20px; font-family: var(--display); font-size: 1.08rem; font-weight: 500; line-height: 1.6; letter-spacing: -.005em; color: var(--ink); }
.quote figcaption { margin-top: auto; font-size: .95rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); font-size: 1rem; }
.quote--feature { background: var(--green-800); border-color: var(--green-800); }
.quote--feature blockquote { color: #fff; font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -.015em; }
.quote--feature figcaption, .quote--feature figcaption strong { color: #dfe8c4; }

/* ---------- Team ---------- */
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.person-initials {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); font-family: var(--display); font-size: 1.2rem; font-weight: 700;
  margin-bottom: 14px;
}
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--green-700); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.person dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .95rem; }
.person dt { color: var(--muted); }
.person dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- News ---------- */
.news-list { display: grid; gap: 18px; }
.news-item {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.news-item time { font-size: .9rem; color: var(--green-700); font-weight: 600; padding-top: 3px; }
.news-item h2, .news-item h3 { font-size: 1.3rem; margin-bottom: .35em; }
.news-item h2 a, .news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h2 a:hover, .news-item h3 a:hover { color: var(--green-700); text-decoration: underline; }
.news-item p { margin: 0; color: var(--ink-soft); }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; gap: 6px; } }
.split .news-item { grid-template-columns: 1fr; gap: 4px; padding: 18px 20px; }
.split .news-list { gap: 12px; }
.year-heading { font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 36px 0 14px; font-family: var(--sans); }
.year-heading:first-child { margin-top: 0; }
.article-meta { color: #dfe8c4; font-size: .95rem; margin-top: 10px; }
.back-link { display: inline-block; margin-top: 28px; font-weight: 600; text-decoration: none; }
.back-link::before { content: "← "; }
.back-link--fwd::before { content: none; }
.back-link--fwd::after { content: " →"; }

/* ---------- Business sales ---------- */
.listing-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.listing-tools input {
  font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; min-width: min(100%, 320px);
}
.listing-count { color: var(--muted); margin: 0; }
.listing-card h2 { font-size: 1.3rem; }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; align-self: flex-start;
}
.badge--sale { background: var(--green-100); color: var(--green-800); }
.badge--sold { background: #f4e3e1; color: var(--danger); }
.listing-deadline { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.listing-detail h2 { font-size: 1.45rem; margin-top: 1.4em; }
.contact-card { font-style: normal; line-height: 1.7; }
.notice {
  background: var(--paper-alt); border: 1px solid var(--line); border-left: 4px solid var(--green-500);
  border-radius: 8px; padding: 16px 18px; color: var(--ink-soft);
}
.notice--error { border-left-color: var(--danger); }

.office { margin-bottom: 22px; }
.office h3 { font-size: 1.15rem; margin-bottom: .3em; }
.office address { font-style: normal; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-800); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #dfe8c4; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #171b13; color: #b9bfb0; font-size: .95rem; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e3e8d8; text-decoration: none; }
.site-footer a:hover { color: var(--green-300); text-decoration: underline; }
.site-footer address { font-style: normal; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-sub { color: var(--green-300); }
.footer-legal { border-top: 1px solid #2d3327; margin-top: 40px; padding-top: 22px; font-size: .85rem; color: #8d9484; }
.footer-legal p { margin: 0 0 6px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-muted { color: var(--muted); }
.center { text-align: center; }

@media print {
  .topbar, .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  .page-head { background: none !important; color: #000; }
  .page-head::after { display: none; }
  .page-head h1, .page-head p { color: #000; }
}

/* ---------- Contact page ---------- */
.contact-way {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  background: var(--green-800); color: #fff; border-radius: var(--radius); padding: 28px 30px;
  transition: background .15s ease, transform .15s ease;
}
.contact-way:hover { background: var(--green-900); color: #fff; transform: translateY(-2px); }
.contact-way-label { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green-300); font-weight: 600; }
.contact-way-value { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact-way-note { color: #dfe8c4; font-size: .95rem; }
.offices-heading { margin-top: 56px; }
.office address { margin-bottom: 8px; }
.office p { margin: 0; }