:root {
  color-scheme: light;
  --paper: #f9f8f2;
  --white: #fffefa;
  --green: #173e36;
  --green-deep: #102e28;
  --ink: #182b24;
  --muted: #50615a;
  --soft: #ecf0e1;
  --line: #d5ded1;
  --accent: #deeab1;
  --warm: #8c462d;
  --heading: Georgia, 'Times New Roman', serif;
  --body: 'Segoe UI', system-ui, sans-serif;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #152522;
  --white: #20342f;
  --ink: #f3f4e9;
  --muted: #c2cfc4;
  --soft: #213831;
  --line: #49645a;
  --warm: #f2ac8d;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
input, select, textarea { min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 4px; }
::selection { background: #d9e69f; color: #102e28; }
.wrap { width: min(100% - 96px, 1180px); margin-inline: auto; }
.section { padding-block: clamp(66px, 8vw, 112px); }
.skip-link { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 12px 18px; transform: translateY(-150%); background: var(--white); }
.skip-link:focus { transform: translateY(0); }

.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.22rem; font-weight: 750; letter-spacing: -.045em; line-height: 1.1; }
.brand-mark { display: grid; width: 42px; aspect-ratio: 1; place-items: center; background: var(--green); color: var(--accent); border-radius: 7px; font-size: .94rem; letter-spacing: -.065em; }
.brand-caption { display: block; font-size: .65rem; font-weight: 600; letter-spacing: .015em; color: var(--muted); margin-top: .32rem; }
.header nav, .nav-controls { display: flex; align-items: center; gap: clamp(10px, 2.6vw, 35px); }
.header nav a { text-decoration: none; font-weight: 650; font-size: .85rem; white-space: nowrap; }
.header nav a:hover, .language:hover, .text-link:hover { text-decoration: underline; }
.nav-controls { gap: 10px; }
.language, .theme-toggle, .menu-toggle { display: grid; place-items: center; min-width: 38px; min-height: 38px; color: var(--ink); background: transparent; text-decoration: none; border: 1px solid var(--line); border-radius: 5px; font-size: .77rem; font-weight: 700; }
.theme-toggle { font-size: 1.1rem; }
.menu-toggle { padding-inline: 9px; }

.hero { padding-block: clamp(64px, 8.2vw, 120px); background: var(--soft); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: clamp(42px, 6.8vw, 99px); }
h1, h2 { font-family: var(--heading); font-weight: 400; line-height: 1.02; letter-spacing: -.052em; text-wrap: balance; }
h1 { font-size: clamp(3.6rem, 6.45vw, 6.15rem); }
h1 em { display: block; color: var(--green); }
:root[data-theme='dark'] h1 em { color: var(--accent); }
.hero-description { font-size: clamp(1.04rem, 1.6vw, 1.25rem); max-width: 35rem; margin-top: 27px; line-height: 1.55; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; width: fit-content; max-width: 100%; padding: 13px 17px; border: 1px solid transparent; border-radius: 6px; font-size: .89rem; line-height: 1.4; font-weight: 700; text-decoration: none; transition: background .16s; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-deep); }
:root[data-theme='dark'] .button-primary { background: var(--accent); color: var(--green-deep); }
:root[data-theme='dark'] .button-primary:hover { background: #edf4cf; }
.button-accent { background: var(--accent); color: var(--green-deep); }
.button-accent:hover { background: #edf4cf; }
.text-link { display: inline-flex; align-items: baseline; gap: .45rem; width: fit-content; font-weight: 700; font-size: .9rem; text-decoration: none; }
.eyebrow { font-size: .72rem; line-height: 1.4; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--warm); }

.workflow { background: var(--green); color: #f3f5e5; border-radius: 12px; box-shadow: 0 24px 40px #0b25191f; padding: 24px; position: relative; isolation: isolate; overflow: hidden; }
.workflow figcaption { display: flex; align-items: center; justify-content: space-between; min-height: 32px; margin-bottom: 20px; }
.workflow .eyebrow { color: var(--accent); }
.workflow-decoration { width: 82px; height: 52px; opacity: .24; position: absolute; z-index: -1; right: 18px; top: 10px; background-image: radial-gradient(#dfeab8 1.1px, transparent 1.1px); background-size: 9px 9px; }
.workflow-panel { background: #f7f8ee; color: #182b24; padding: clamp(15px, 2.3vw, 25px); border-radius: 7px; }
.workflow-caption { color: #535e51; font-size: .75rem; }
.workflow-title { font: 400 clamp(1.55rem, 2.4vw, 2.25rem)/1.14 var(--heading); letter-spacing: -.035em; margin: .48rem 0 1.25rem; }
.workflow ul { margin: 0; padding: 0; list-style: none; }
.workflow li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #d9dfd1; padding-block: 11px; font-size: .83rem; font-weight: 650; }
.workflow-item { display: inline-flex; align-items: center; gap: 9px; }
.workflow-check { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: #e2ebcd; color: #2b5041; font-size: .76rem; }
.workflow-check.pending { background: #f5e4cc; color: #7b4c2d; font-weight: 900; }
.workflow-state { color: #3a633e; font-size: .75rem; text-align: right; }
.workflow-state.pending { color: #823f23; }
.workflow-footer { border-top: 1px solid #d9dfd1; padding-top: 12px; color: #535e51; font-size: .75rem; }

.section-heading { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px 60px; align-items: end; margin-bottom: 39px; }
.section-heading .eyebrow, .funding .eyebrow, .contact .eyebrow { margin-bottom: 13px; }
h2 { font-size: clamp(2.4rem, 4.7vw, 4.15rem); }
.section-heading > p, .funding-intro, .contact-grid > div > p:not(.eyebrow) { color: var(--muted); max-width: 36rem; }
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.package { display: flex; flex-direction: column; padding: clamp(20px, 2.3vw, 32px); border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.package.featured { background: var(--soft); border-top: 4px solid #49765d; padding-top: calc(clamp(20px, 2.3vw, 32px) - 3px); }
.package h3 { font: 400 clamp(1.42rem, 2.2vw, 2rem)/1.14 var(--heading); letter-spacing: -.035em; min-height: 2.28em; }
.package-intro { color: var(--muted); font-size: .92rem; margin-top: 9px; min-height: 3.1em; }
.package ul { display: grid; gap: 11px; margin: 19px 0 22px; padding: 17px 0 0 18px; border-top: 1px solid var(--line); font-size: .88rem; }
.package .text-link { margin-top: auto; }
.service-notes { color: var(--muted); font-size: .84rem; margin-top: 24px; }
.budget-note a { color: var(--warm); font-weight: 650; }

.funding { background: var(--green-deep); color: #f5f6ea; --warm: #eab898; }
.funding-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(28px, 7vw, 100px); }
.funding-intro { color: #d1dfd0; margin-top: 21px; }
.funding-steps { padding-left: 1.36rem; margin-block: 24px; }
.funding-steps li { padding-left: 6px; margin-bottom: 12px; }
.funding-steps li::marker { color: var(--accent); font-weight: 700; }
.funding-steps h3 { font-size: .98rem; }
.funding-steps p { font-size: .89rem; color: #d1dfd0; }
.budget { background: #f6f5e9; color: #182b24; --warm: #8c462d; border-radius: 8px; padding: clamp(23px, 4vw, 42px); }
.budget h3 { font: 400 clamp(1.62rem, 3.2vw, 2.8rem)/1.1 var(--heading); letter-spacing: -.045em; }
.budget-wording { border-block: 1px solid #d8ddd1; margin-top: 18px; padding-block: 16px; font-size: .89rem; }
.copy-button { display: inline-flex; gap: 8px; margin-top: 13px; padding: 7px 12px; color: #183e36; background: transparent; border: 1px solid #8a9f8e; border-radius: 5px; font-size: .81rem; font-weight: 700; }
.copy-button:hover { background: #e4ebd7; }
.copy-status, .budget-note { font-size: .78rem; color: #4d6052; }
.copy-status:not(:empty) { margin-top: 7px; }
.budget-note { margin-top: 15px; }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 30px; }
.work-grid article { border-top: 1px solid var(--line); padding-top: 16px; }
.work-grid h3 { font-size: 1.04rem; margin-bottom: 8px; }
.work-grid p { color: var(--muted); font-size: .93rem; }

.contact { background: var(--soft); border-block: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.14fr; gap: clamp(25px, 7.5vw, 95px); }
.contact-grid > div > p:not(.eyebrow) { margin-block: 17px; }
.contact-phone { font-size: 1rem; font-weight: 700; }
#contact-form { padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#contact-form label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 5px; }
#contact-form label span { font-weight: 400; }
#contact-form input, #contact-form select, #contact-form textarea { color: var(--ink); background: var(--paper); width: 100%; margin-bottom: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; font-size: .88rem; }
#contact-form textarea { resize: vertical; }
#contact-form textarea::placeholder { color: var(--muted); opacity: 1; }
.form-note { margin-top: 8px; font-size: .77rem; color: var(--muted); }
#form-status:empty { margin: 0; }
#enquiry-captcha:not(:empty) { margin-bottom: 14px; }
#contact-form button:disabled { cursor: not-allowed; opacity: .7; }
.footer { padding-block: 23px; }
.footer-inner { display: grid; grid-template-columns: 1fr minmax(0, 2fr) auto; align-items: start; gap: 12px 20px; color: var(--muted); font-size: .82rem; }
.footer-inner strong { color: var(--ink); }
.footer summary { cursor: pointer; width: fit-content; }
.footer details p { margin-top: 6px; max-width: 38rem; }

@media (min-width: 851px) {
  .header .menu-toggle { display: none; }
}

@media (max-width: 850px) {
  .wrap { width: min(100% - 52px, 1180px); }
  .header-inner { min-height: 67px; flex-wrap: wrap; }
  .header nav { width: 100%; padding-bottom: 13px; flex-wrap: wrap; order: 3; }
  .has-js .header nav { display: none; }
  .has-js .header nav.open { position: absolute; top: calc(100% + 1px); left: 0; z-index: 3; display: grid; gap: 0; width: 100%; padding: 6px 13px; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 7px 7px; }
  .header nav.open a { padding-block: 9px; }
  .hero-grid, .funding-grid, .contact-grid { grid-template-columns: 1fr; }
  .workflow { width: min(100%, 520px); }
  .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .section-heading h2 { text-wrap: initial; }
  .funding h2, .contact h2 { text-wrap: initial; }
  .package h3, .package-intro { min-height: 0; }
  .packages { grid-template-columns: 1fr; }
  .package ul { margin-bottom: 16px; }
}

@media (max-width: 540px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { gap: 6px; }
  .brand { font-size: 1.08rem; gap: 7px; }
  .brand-caption { font-size: .58rem; }
  .brand-mark { width: 34px; }
  .nav-controls { gap: 5px; }
  .language, .theme-toggle, .menu-toggle { min-width: 31px; min-height: 36px; }
  h1 { font-size: clamp(2.45rem, 10.4vw, 3.5rem); }
  .hero-description { margin-top: 18px; }
  .hero-actions { margin-top: 22px; }
  .workflow { padding: 15px; }
  .workflow figcaption { margin-bottom: 10px; }
  .workflow li { font-size: .77rem; }
  .work-grid, .form-row { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner details { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
