/* York and Philip: house stylesheet. Tokens and type follow the brand board (direction B, heritage professional). */

:root {
  --cream: #F4F1E9;
  --white: #FFFFFF;
  --green: #1E3A2A;
  --green-rule: #2F4D3C;
  --gold: #B9975B;
  --ink: #1E221C;
  --body: #4A473E;
  --caption: #6E6A5E;
  --cream-on-dark: #F4F1E9;
  --muted-on-dark: #C9C3B2;
  --hairline: #E2DCCB;
  --serif: 'Libre Caslon Display', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --measure: 72ch;
  --pad-x: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; color: inherit; }
h1 { font-size: clamp(38px, 4.4vw, 64px); max-width: 16ch; }
h2 { font-size: clamp(28px, 2.8vw, 40px); }
h3 { font-size: 23px; }
h4 { font-size: 20px; }
p { margin: 0; }
.lead { font-size: 19px; color: var(--body); max-width: 40ch; }
.muted { color: var(--body); }
.caption { color: var(--caption); font-size: 14px; }

/* Labels and wordmark */
.eyebrow { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--green); }
.on-dark .eyebrow { color: var(--gold); }
.wordmark { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.wordmark .amp { color: var(--gold); }

/* Layout */
.wrap { padding-left: var(--pad-x); padding-right: var(--pad-x); max-width: 1440px; margin: 0 auto; }
.section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.section-white { background: var(--white); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.on-dark { background: var(--green); color: var(--cream-on-dark); }
.on-dark p, .on-dark .muted { color: var(--muted-on-dark); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 32px; }
  .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .grid-6 { grid-template-columns: 1fr; } }

/* Navigation */
.nav { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); background: var(--cream); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--body); }
.nav-links a:hover { color: var(--green); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open .nav-links { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; position: absolute; left: 0; right: 0; top: 81px; padding: 24px var(--pad-x) 32px; background: var(--cream); border-bottom: 1px solid var(--hairline); }
}

/* Buttons: gold is scarce, one primary per view */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px; font-weight: 600; font-size: 15px; border: 1px solid transparent; }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #A8874F; color: var(--ink); }
.btn-secondary { border-color: var(--green); color: var(--green); background: transparent; }
.btn-secondary:hover { color: var(--gold); border-color: var(--gold); }
.btn-nav { min-height: 44px; padding: 13px 22px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Lists with hairline rules (services, details, milestones) */
.rows { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: column; gap: 8px; padding: 22px 0; border-top: 1px solid var(--hairline); }
.row:last-child { border-bottom: 1px solid var(--hairline); }
.on-dark .row, .on-dark .row:last-child { border-color: var(--green-rule); }

/* Poortwachter clock */
.milestone { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--gold); padding-top: 14px; }
.milestone h4 { font-size: 24px; }

/* Forms (contact) */
.card { background: var(--white); border: 1px solid var(--hairline); padding: 40px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--caption); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--hairline); padding: 12px 14px; min-height: 48px; border-radius: 0; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Footer */
.footer { padding-top: 28px; padding-bottom: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--caption); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--caption); }

/* Icons */
.icon { width: 24px; height: 24px; stroke: var(--green); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.on-dark .icon { stroke: var(--cream-on-dark); }

/* Page sections built from the canvas (9 September 2026) */
.hero { padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(56px, 6vw, 84px); }
.hero h1 { max-width: 900px; }
.hero .lead { max-width: 720px; }
.hero .actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.step h3 { font-size: 20px; color: var(--green); }
.step, .feature { display: flex; flex-direction: column; gap: 12px; }
.feature h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.4; }
.feature p { font-size: 14px; }
.row p, .rows .muted { font-size: 15px; line-height: 1.55; }
.milestone p { font-size: 14px; line-height: 1.5; }
.checklist { display: flex; flex-direction: column; }
.checklist li { list-style: none; padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; line-height: 1.55; color: var(--body); }
.checklist li:last-child { border-bottom: 0; }
ul.checklist { margin: 0; padding: 0; }
.service { padding-top: clamp(56px, 6vw, 80px); padding-bottom: clamp(64px, 7vw, 96px); border-bottom: 1px solid var(--hairline); }
.service-white { background: var(--white); }
.service .intro { display: flex; flex-direction: column; gap: 16px; max-width: 880px; }
.cta-band { padding-top: 72px; padding-bottom: 72px; display: flex; justify-content: space-between; align-items: center; gap: 48px; flex-wrap: wrap; }
.cta-band .copy { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.cta-band h2 { font-size: clamp(30px, 2.7vw, 38px); }
.cta-band .action { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cta-band .action .caption { color: var(--muted-on-dark); }
@media (max-width: 960px) { .cta-band .action { align-items: flex-start; } }
.details { display: flex; flex-direction: column; }
.details div { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0; border-top: 1px solid var(--hairline); font-size: 14px; }
.details div:last-child { border-bottom: 1px solid var(--hairline); }
.details dt { font-weight: 500; color: var(--caption); margin: 0; }
.details dd { margin: 0; color: var(--ink); text-align: right; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contact-grid h1 { font-size: clamp(36px, 3.9vw, 56px); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
.card { display: flex; flex-direction: column; gap: 24px; }
.card h2 { font-size: 24px; }
.card .btn { width: 100%; }
.grid-2 > h2 { align-self: flex-start; }

/* Enquiry form (contact) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 15px; min-height: 1.4em; }
.form-status.success { color: var(--green); font-weight: 600; }
.form-status.error { color: #7E2D40; font-weight: 600; }
.form-status:empty { display: none; }

/* Legal pages (privacy, terms, complaints) */
.legal { max-width: calc(var(--measure) + 2 * var(--pad-x)); gap: 40px; }
.legal h1 { font-size: clamp(34px, 3.6vw, 48px); max-width: none; }
.legal h2 { font-size: 24px; }
.legal p { color: var(--body); font-size: 16px; }
.legal ul { margin: 0; padding-left: 20px; color: var(--body); display: flex; flex-direction: column; gap: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
