@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=Raleway:wght@400;500;700&display=swap');

/* Tuinhulp Amsterdam. Colours from their own logo and site CSS, see ../BRAND.md */
:root {
  --green: #517a3b;       /* their site CSS: main accent */
  --green-deep: #46692f;  /* shade of #517a3b, buttons with white text */
  --forest: #2f4722;      /* dark shade of #517a3b: bands, headings */
  --olive: #6a6402;       /* logo: the word "Amsterdam" */
  --wheat: #e5d80e;       /* logo: the wheat sprig (only on dark green) */
  --ink: #2b2b2b;         /* their heading text colour */
  --text: #484848;        /* their body text colour */
  --muted: #5e5c50;       /* shade of their #969277, AA on cream */
  --cream: #f6f4e5;       /* their site CSS: light background */
  --line: #d6d4bf;        /* their site CSS: border colour */
  --white: #fff;

  --f-display: 'Playfair Display', Georgia, serif;
  --f-body: 'Raleway', 'Segoe UI', system-ui, sans-serif;

  --r: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.7 var(--f-body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; color: var(--forest); text-wrap: balance; }
h3 { line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: #e8edc9; }
:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--wheat); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--forest); color: var(--white); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .7rem 1.25rem; border-radius: var(--r); border: 1px solid var(--green-deep); background: var(--green-deep); color: var(--white); font: 700 .875rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--forest); border-color: var(--forest); }
.btn.ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn.ghost:hover { background: var(--forest); color: var(--white); }
.on-dark .btn { background: var(--wheat); border-color: var(--wheat); color: var(--forest); }
.on-dark .btn:hover { background: var(--white); border-color: var(--white); }
.on-dark .btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.on-dark .btn.ghost:hover { background: var(--white); color: var(--forest); border-color: var(--white); }
.textlink { color: var(--green-deep); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 80px; }
.brand img { height: 54px; width: auto; }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 1.75rem; }
.nav-link { font-size: .92rem; font-weight: 500; text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; color: var(--ink); }
.nav-link:hover { border-bottom-color: var(--line); }
.nav-link[aria-current="page"] { border-bottom-color: var(--green); color: var(--forest); }
.menu-btn { display: none; align-items: center; gap: .4rem; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: .55rem .8rem; font: 700 .85rem var(--f-body); color: var(--forest); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-list[popover] { position: fixed; inset: 80px 0 auto 0; margin: 0; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: var(--white); padding: .5rem 1.25rem 1.25rem; flex-direction: column; gap: 0; }
  .nav-list[popover]:not(:popover-open) { display: none; }
  .nav-list .nav-link { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .header-call .num { display: none; }
}
@media (max-width: 1060px) and (min-width: 861px) { .header-call .num { display: none; } }
@media (max-width: 520px) {
  .header-in { gap: .75rem; min-height: 68px; }
  .brand img { height: 44px; }
  .nav-list[popover] { inset: 68px 0 auto 0; }
  .header-call { padding-inline: .8rem; }
}

/* Hero: cream text column, forest column with how-to rows. No photo: they have no own photos. */
.hero { display: grid; background: var(--cream); border-top: 1px solid var(--line); }
.hero-copy { padding: clamp(3rem, 7vw, 6.5rem) 1.25rem clamp(2.75rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); max-width: 10em; letter-spacing: -.01em; }
.hero-lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--text); max-width: 31em; margin: 1.5rem 0 2.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-side { background: var(--forest); color: var(--white); padding: clamp(2.5rem, 5vw, 4.5rem) 1.25rem; display: flex; flex-direction: column; justify-content: center; }
.hero-side h2 { color: var(--white); font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 1.25rem; }
.howto { list-style: none; border-top: 1px solid rgba(255,255,255,.22); counter-reset: none; }
.howto li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.howto .k { color: var(--wheat); font-weight: 700; font-size: .95rem; }
.howto .v { color: rgba(255,255,255,.88); font-size: .98rem; }
.hero-side .btn { margin-top: 1.75rem; align-self: flex-start; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: min(72vh, 660px); }
  .hero-copy { padding-left: max(1.25rem, calc((100vw - var(--wrap)) / 2)); padding-right: 4rem; align-self: center; }
  .hero-side { padding-right: max(1.25rem, calc((100vw - var(--wrap)) / 2)); padding-left: 3.5rem; }
}
@media (max-width: 420px) { .howto li { grid-template-columns: 1fr; gap: .15rem; } }

.fade-in { opacity: 0; animation: fade .8s var(--ease) .15s forwards; }
.fade-in.late { animation-delay: .4s; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Page head (sub pages) */
.page-head { padding: clamp(2.75rem, 5vw, 4.75rem) 0 clamp(2.25rem, 4vw, 3.25rem); background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); max-width: 15em; }
.page-head p { color: var(--text); max-width: 40em; margin: 1.2rem 0 0; font-size: 1.12rem; }
.page-head .actions { margin-top: 1.75rem; }

/* Werkgebied strip */
.area { border-bottom: 1px solid var(--line); background: var(--white); }
.area-in { display: grid; gap: .75rem 3rem; padding: 1.75rem 0; align-items: baseline; }
.area h2 { font: 700 .9rem/1.3 var(--f-body); color: var(--muted); }
.area ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 0; }
.area li { font: 400 clamp(1.25rem, 2.1vw, 1.6rem)/1.3 var(--f-display); color: var(--forest); }
.area li:not(:last-child)::after { content: ","; margin-right: .45em; }
.area p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (min-width: 900px) { .area-in { grid-template-columns: 9rem 1fr auto; } .area p { max-width: 17em; } }

/* Sections */
.sec { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.sec.tint { background: var(--cream); }
.sec-head { display: grid; gap: 1rem 4rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.sec-head p { color: var(--text); margin: 0; max-width: 34em; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1fr 1fr; align-items: end; } }

/* Register list (services) */
.reg { list-style: none; border-top: 1px solid var(--line); }
.reg li { border-bottom: 1px solid var(--line); }
.reg a { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1.5rem; align-items: center; padding: 1.2rem 0; text-decoration: none; }
.reg .r-name { font: 400 clamp(1.5rem, 2.6vw, 2.05rem)/1.15 var(--f-display); color: var(--forest); }
.reg .r-text { grid-column: 1; font-size: .92rem; color: var(--muted); }
.reg .r-go { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); color: var(--forest); transition: background .18s, border-color .18s, color .18s; }
.reg .r-go svg { width: 18px; height: 18px; }
.reg a:hover .r-go { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }
.reg a:hover .r-name { text-decoration: underline; text-decoration-thickness: 1px; }
@media (min-width: 900px) {
  .reg a { grid-template-columns: 18rem 1fr auto; min-height: 84px; }
  .reg .r-text { grid-column: 1; grid-row: 1; padding-right: 2rem; }
  .reg .r-name { grid-column: 2; grid-row: 1; }
  .reg .r-go { grid-column: 3; grid-row: 1; }
}

/* Two-column text blocks */
.split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.15fr; gap: 5rem; align-items: start; } }
.split h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 1.2rem; }
.lead { font-size: 1.15rem; color: var(--ink); }
.rows { list-style: none; border-top: 1px solid var(--line); margin: 1.25rem 0 1.75rem; }
.rows li { border-bottom: 1px solid var(--line); padding: .8rem 0; text-wrap: pretty; }
.rows.cols { columns: 2 16rem; column-gap: 2.5rem; border-top: 0; }
.rows.cols li { break-inside: avoid; }
.rows.cols li:first-child, .rows.cols li { border-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Promise rows (their own words) */
.promise { list-style: none; display: grid; border-top: 1px solid var(--line); }
.promise li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); font: 400 1.35rem/1.3 var(--f-display); color: var(--forest); }
.promise li span { display: block; font: 400 .95rem/1.55 var(--f-body); color: var(--muted); margin-top: .25rem; }
@media (min-width: 900px) { .promise { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

/* Task rows with text (onderhoud / aanleg) */
.tasks { list-style: none; border-top: 1px solid var(--line); }
.tasks li { display: grid; gap: .3rem 3rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.tasks h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.tasks p { margin: 0; max-width: 40em; }
@media (min-width: 900px) { .tasks li { grid-template-columns: 18rem 1fr; } }

/* Detail block: heading column left, content right */
.detail { display: grid; gap: 1.25rem 4rem; padding: clamp(2.75rem, 5vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.detail:first-child { border-top: 0; padding-top: 0; }
.detail:last-child { padding-bottom: 0; }
.detail h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.detail .side p { color: var(--muted); margin: 1rem 0 0; font-size: .98rem; }
.detail .body > p { max-width: 40em; }
.detail .body > p:last-child { margin-bottom: 0; }
.detail h3 { font-size: 1.35rem; margin: 1.75rem 0 .5rem; }
@media (min-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .detail .side { position: sticky; top: 110px; align-self: start; }
}
.plain-list { list-style: none; border-top: 1px solid var(--line); margin: .75rem 0 1.25rem; }
.plain-list li { padding: .65rem 0; border-bottom: 1px solid var(--line); text-wrap: pretty; }
.months { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 1.25rem; }
.months li { border: 1px solid var(--line); border-radius: var(--r); padding: .3rem .7rem; font-size: .95rem; background: var(--white); }

/* Contact rows */
.kv { list-style: none; border-top: 1px solid var(--line); }
.kv li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.kv .k { font-weight: 700; font-size: .92rem; color: var(--forest); }
.kv a { text-decoration: none; border-bottom: 1px solid var(--line); }
.kv a:hover { border-bottom-color: var(--ink); }
.kv .v span { display: block; font-size: .9rem; color: var(--muted); }
.note { font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) { .kv li { grid-template-columns: 1fr; gap: .2rem; } }

/* Form */
.form { display: grid; gap: 1.1rem; }
.form .two { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; color: var(--forest); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid #a9a68c; border-radius: var(--r); background: var(--white); color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 1px; border-color: var(--green-deep); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #a3261b; }
.field .err { display: none; color: #a3261b; font-size: .85rem; margin-top: .3rem; }
.field input:user-invalid + .err, .field textarea:user-invalid + .err, .field select:user-invalid + .err { display: block; }
.form-demo { font-size: .85rem; color: var(--muted); margin: 0; }
.form-ok { padding: 2rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); }
.form-ok h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; } }
.contact-grid h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.25rem; }

/* English block */
.en { display: grid; gap: 1.5rem 4rem; }
.en h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
@media (min-width: 900px) { .en { grid-template-columns: 1fr 1.4fr; } }

/* CTA band */
.cta { background: var(--forest); color: var(--white); padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.cta-in { display: grid; gap: 2rem; align-items: end; }
.cta h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3.1rem); }
.cta p { color: rgba(255,255,255,.84); margin: 1rem 0 0; max-width: 34em; }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1.3fr 1fr; } .cta .actions { justify-content: flex-end; } }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 4rem 0 6rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); max-width: 22em; }
.site-footer h2 { font: 700 .8rem/1 var(--f-body); color: var(--muted); margin-bottom: .9rem; letter-spacing: .02em; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer ul a { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.site-footer ul a:hover { text-decoration-color: var(--ink); }
.f-note { display: block; font-size: .85rem; color: var(--muted); }
.f-gap { margin-top: 1.6rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1.1fr 1fr 1fr; } .site-footer { padding-bottom: 3rem; } }

/* Mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s var(--ease); }
.callbar.show { transform: none; }
.callbar .btn { justify-content: center; }
@media (min-width: 900px) { .callbar { display: none; } }

/* Reveal */
[data-aos] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
[data-aos].aos-animate { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { animation: none; opacity: 1; }
  [data-aos] { opacity: 1; transform: none; transition: none; }
  .callbar { transition: none; }
}
