/* Self-hosted fonts */
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/libre-baskerville-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Libre Baskerville'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/libre-baskerville-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/libre-baskerville-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/manrope-latin-700-normal.woff2') format('woff2'); }

/* Glenbridge Commercial Finance
   Layout: navy hero bands and quiet grey-green sections; service pages pair a readable
   main column with a sticky "talk to us" card. One brand look (light), set explicitly. */
:root {
  --navy: #1B3A5C;
  --navy-deep: #0F2438;
  --green: #1F5C43;
  --green-dark: #14432F;
  --mint: #7FC4A4;
  --ground: #F4F6F5;
  --paper: #FFFFFF;
  --ink: #17211D;
  --muted: #4A5752;
  --line: #E2E8E5;
  --on-navy: #D6E3EE;
  --todo-bg: #FFF1B8;
  --todo-ink: #5A4500;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1160px;
  --radius: 8px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.25; text-wrap: balance; color: var(--navy); margin: 0; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); }
.rule { width: 72px; height: 3px; background: var(--mint); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 6px; font-weight: 700; font-size: 0.98rem; text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.btn-green { background: var(--green); color: #FFFFFF; }
.btn-green:hover { background: var(--green-dark); color: #FFFFFF; }
.btn-white { background: #FFFFFF; color: var(--navy); }
.btn-white:hover { background: var(--ground); color: var(--navy-deep); }
.btn-outline { border-color: var(--mint); color: #FFFFFF; }
.btn-outline:hover { background: rgba(127, 196, 164, 0.16); color: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Placeholders David still needs to fill in */
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0 4px; border-radius: 3px; font-weight: 600; }
.todo-note { background: var(--todo-bg); color: var(--todo-ink); border-radius: var(--radius); padding: 14px 18px; font-size: 0.92rem; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex-shrink: 0; }
.brand-icon b { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1; color: #FFFFFF; }
.brand-icon i { width: 21px; height: 2px; background: var(--mint); }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-name { font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--navy); }
.brand-sub { text-transform: uppercase; font-size: 9.5px; font-weight: 700; letter-spacing: 0.26em; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 0.95rem; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--mint); }
.nav .btn { padding: 10px 20px; min-height: 44px; color: #FFFFFF; }
.nav .btn:hover { color: #FFFFFF; }

/* Hero bands */
.hero { background: var(--navy); color: #FFFFFF; }
.hero .wrap { padding-block: 88px 96px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { color: #FFFFFF; max-width: 28ch; }
.hero .lead { max-width: 62ch; font-size: 1.15rem; color: var(--on-navy); }
.hero .eyebrow { color: var(--mint); }
.page-hero { background: var(--ground); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: 64px; display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { max-width: 30ch; }
.page-hero .lead { max-width: 64ch; font-size: 1.12rem; color: var(--muted); }

/* Sections */
.section { padding-block: 80px; }
.section-ground { background: var(--ground); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; max-width: 60ch; }
.section-head p { color: var(--muted); }

/* Service cards on home and services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.card:hover { border-color: var(--mint); }
.card .tick { width: 28px; height: 3px; background: var(--green); }
.card h3 { font-size: 1.2rem; }
.card p { font-size: 0.96rem; color: var(--muted); line-height: 1.55; }
.card .more { margin-top: auto; padding-top: 6px; font-size: 0.9rem; font-weight: 700; color: var(--green); }

/* Reasons grid */
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.split > .side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.split > .main { flex: 999 1 520px; min-width: 0; }
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.reasons h3 { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; color: var(--ink); margin-bottom: 6px; }
.reasons p { color: var(--muted); font-size: 0.98rem; }
.portrait { width: 200px; border-radius: var(--radius); }

/* Bands */
.band-green { background: var(--green); color: #FFFFFF; }
.band-green .wrap { padding-block: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.band-green h2 { color: #FFFFFF; }
.band-green p { color: #E3F1EA; max-width: 62ch; }
.band-green .text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 12px; }
.band-green .btn-white { color: var(--green); }
.cta-end .wrap { padding-block: 88px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.cta-end p { max-width: 56ch; color: var(--muted); }

/* Article-style body for service and content pages */
.layout { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 64px 80px; align-items: flex-start; }
.prose { flex: 999 1 560px; min-width: 0; max-width: 72ch; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 1.6rem; margin-top: 26px; }
.prose h3 { margin-top: 16px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--green); }
.prose strong { color: var(--ink); }
.prose em { color: var(--muted); }
.example { background: var(--ground); border-radius: var(--radius); padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.example .label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.example h3 { margin: 0; }
.example .small { font-size: 0.85rem; color: var(--muted); font-style: italic; }
.aside { flex: 1 1 280px; min-width: 0; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.aside-card.dark { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.aside-card.dark h3 { color: #FFFFFF; font-size: 1.2rem; }
.aside-card.dark .btn { color: var(--navy); }
.aside-card h3 { font-size: 1.05rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.95rem; }
.aside-card ul a { text-decoration: none; color: var(--ink); display: block; padding: 5px 0; }
.aside-card ul a:hover, .aside-card ul a[aria-current="page"] { color: var(--green); }
.aside-card ul a[aria-current="page"] { font-weight: 700; }

/* Contact form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #C6D1CC; border-radius: 6px; background: #FFFFFF; color: var(--ink); width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; }
.form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form-done { background: var(--ground); border-radius: var(--radius); padding: 24px; }
.hp { position: absolute; left: -9999px; }
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Steps on the accountants page */
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; }
.steps li::before { content: counter(step); flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #FFFFFF; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }

/* Insights list */
.articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #C9DCEB; font-size: 0.95rem; }
.site-footer .wrap { padding-block: 56px 32px; display: flex; flex-direction: column; gap: 36px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.foot-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.foot-brand .name { font-family: var(--serif); font-size: 26px; line-height: 1; color: #FFFFFF; }
.foot-brand .r { width: 150px; height: 2px; background: var(--mint); }
.foot-brand .sub { text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: 0.3em; }
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-col h4 { margin: 0 0 4px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #FFFFFF; }
.site-footer a { color: #C9DCEB; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.legal { border-top: 1px solid #2A4562; padding-top: 20px; font-size: 0.82rem; color: #A9C0D4; display: flex; flex-direction: column; gap: 8px; }
.legal .todo { font-weight: 500; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero .wrap { padding-block: 56px 64px; }
  .section { padding-block: 56px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .nav { gap: 2px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Tables in policy pages */
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--ground); font-weight: 700; color: var(--ink); }

.byline { font-size: 0.88rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.byline a { color: var(--muted); }

/* FAQ blocks on raw pages */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq h3 { font-size: 1.15rem; margin-top: 16px; }
.faq p { color: var(--muted); margin: 0; }

/* Insights: featured article and author block */
.card.featured { display: block; border-left: 4px solid var(--mint); }
.card.featured h3 { font-size: 1.6rem; margin: 8px 0; }
.author-block { display: flex; gap: 24px; align-items: center; max-width: 820px; }
.author-block img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
@media (max-width: 560px) { .author-block { flex-direction: column; align-items: flex-start; } }

.card.deal .deal-amt { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--navy); }

/* Property news */
.prose .news-item { margin: 22px 0; }
.prose .news-item h3, .prose .news-listing h3 { font-size: 1.1rem; margin: 0 0 6px; }
.prose .news-item p, .prose .news-listing p { margin: 0 0 6px; }
.prose .news-source { font-size: 0.88rem; color: var(--muted); }
.prose .news-source a { color: var(--muted); }
.prose .news-view { background: var(--ground); border-left: 4px solid var(--green); padding: 14px 18px; margin: 14px 0 6px; font-style: italic; }
.prose .news-view strong { font-style: normal; }
.prose .news-listing { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.prose .news-price { color: var(--green); font-weight: 700; }
.prose .news-cta { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--green); }
.prose .news-closing { margin-top: 40px; padding: 22px 24px; background: var(--navy); color: #fff; border-radius: var(--radius); }
.prose .news-closing p { margin: 0; color: #fff; }
.prose .news-closing a { color: #fff; }
