/* Wel-done Landscaping site — site stylesheet. :root is the runtime source of truth for tokens; mirror in DESIGN.md.
   Cache: bump ?v=N on the <link> in the HTML when you edit this file. */

:root{
  /* Neutral roles (/taste clarity.md). Tint toward the brand hue, keep the roles. Contrast on --bg:
     ink 18:1, ink-soft 8:1 (secondary text, never lighter), line-strong 3.3:1 (input borders). */
  --bg:#ffffff; --bg-alt:#f5f6f7; --ink:#111418; --ink-soft:#4a4f57;
  --line-strong:#878d96; --line:rgba(0,0,0,.12);
  /* One action colour, on interactive things only (links, buttons, focus, selection). --brand is
     decorative (grounds, illustration), never a second kind of button. --error is for errors only. */
  --action:#0a6fae; --action-hover:#085a8d; --on-action:#ffffff; --brand:#18a6dd; --error:#b42318;
  --display:system-ui,-apple-system,Segoe UI,sans-serif;
  --body:system-ui,-apple-system,Segoe UI,sans-serif;
  --mono:ui-monospace,Cascadia Mono,monospace;
  /* Type: one 1.25 scale, two weights. Spacing: one scale, pick by how related two things are. */
  --text-sm:14px; --text-base:18px; --text-lg:22px; --text-xl:28px; --text-2xl:36px; --text-3xl:44px;
  --weight-regular:400; --weight-strong:700;
  --space-1:8px; --space-2:16px; --space-3:24px; --space-4:32px; --space-5:48px; --space-6:80px;
  --max:1160px; --measure:720px; --radius:10px;
  /* Motion tokens: /taste motion.md section 2. Routine UI under 300ms, exits faster than
     entrances, never ease-in, never scale(0). Use these names; don't invent values. */
  --ease-out:cubic-bezier(.23,1,.32,1); --ease-out-expo:cubic-bezier(.16,1,.3,1);
  --ease-in-out:cubic-bezier(.77,0,.175,1); --ease-drawer:cubic-bezier(.32,.72,0,1);
  --ease-pop:cubic-bezier(.34,1.36,.64,1); --ease:var(--ease-out-expo);
  --dur-press:160ms; --dur-quick:150ms; --dur-fast:250ms; --dur-medium:350ms; --dur-slow:400ms; --dur-focal:600ms;
  --scale-press:.97; --scale-modal:.96; --scale-menu:.97; --scale-tip:.98;
  --shift-micro:4px; --shift-base:8px; --shift-reveal:12px; --blur-swap:2px; --stagger:40ms;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:var(--text-base);
  font-weight:var(--weight-regular);line-height:1.6}
main{max-width:var(--max);margin:0 auto;padding:var(--space-6) var(--space-3)}
@media(max-width:640px){main{padding-block:var(--space-5)}}
h1,h2,h3{font-family:var(--display);font-weight:var(--weight-strong);line-height:1.2;letter-spacing:-.02em;
  text-wrap:balance;overflow-wrap:break-word;margin:0 0 var(--space-2)}
h1{font-size:clamp(var(--text-xl),1.2rem + 3vw,var(--text-3xl));line-height:1.1;letter-spacing:-.03em}
h2{font-size:var(--text-xl)} h3{font-size:var(--text-lg)}
/* More space above a heading than below it. */
h2:not(:first-child){margin-top:var(--space-5)} h3:not(:first-child){margin-top:var(--space-4)}
p{margin:0 0 var(--space-2)}
.prose{max-width:var(--measure)}
strong,b{font-weight:var(--weight-strong)}
a{color:var(--action);text-underline-offset:.2em}
:focus-visible{outline:2px solid var(--action);outline-offset:2px}
::selection{background:var(--action);color:var(--on-action)}

/* Buttons: three weights, one shape. At most one .btn-primary per view; label = verb + noun. */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 var(--space-3);
  border:2px solid var(--action);border-radius:var(--radius);font:inherit;font-weight:var(--weight-strong);
  text-decoration:none;cursor:pointer;transition:background-color var(--dur-quick) var(--ease-out),
  border-color var(--dur-quick) var(--ease-out),transform var(--dur-press) var(--ease-out)}
.btn-primary{background:var(--action);color:var(--on-action)}
.btn-secondary{background:transparent;color:var(--action)}
.btn-tertiary{background:transparent;border-color:transparent;color:var(--action);text-decoration:underline;padding-inline:0}
.btn:active{transform:scale(var(--scale-press))}
/* A row of actions, most important first; stacked full width on phones. */
.actions{display:flex;flex-wrap:wrap;gap:var(--space-1)}
@media(max-width:640px){.actions{flex-direction:column;align-items:stretch}}
@media(hover:hover) and (pointer:fine){
  .btn-primary:hover{background:var(--action-hover);border-color:var(--action-hover)}
  .btn-secondary:hover{background:var(--bg-alt)}}

/* Forms: one column. Order inside .field is label, .hint, .field-error, then the control, so autofill
   and the keyboard never cover the hint or the error. Validate on submit; an error names the problem and
   the fix; mark optional "(optional)". Controls fill the field; give short ones a size (postcode: size="8"). */
.field{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:var(--space-1);
  max-width:32rem;margin-bottom:var(--space-3)}
.field > label{font-weight:var(--weight-strong)}
.hint{font-size:var(--text-sm);color:var(--ink-soft)}
.field-error{display:flex;gap:var(--space-1);font-size:var(--text-sm);font-weight:var(--weight-strong);color:var(--error)}
.field-error::before{content:"";flex:none;width:1.15em;height:1.15em;margin-top:.15em;background:currentColor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.5'/%3E%3Cpath d='M8 4.5v4M8 11v.5'/%3E%3C/svg%3E") center/contain no-repeat}
input:where(:not([type]),[type=text],[type=email],[type=tel],[type=url],[type=search],[type=password],[type=number],[type=date]),
select,textarea{font:inherit;color:var(--ink);background:var(--bg);min-height:48px;width:100%;max-width:100%;
  padding:0 var(--space-2);border:1px solid var(--line-strong);border-radius:var(--radius)}
textarea{padding-block:var(--space-1)}
input[size],textarea[cols]{width:auto}
input:where([type=checkbox],[type=radio]){accent-color:var(--action);width:20px;height:20px}
[aria-invalid="true"]{border-color:var(--error)}

/* Reduced motion means gentler, not none: movement goes, fades and color changes stay. */
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;
  transition-property:opacity,color,background-color,border-color!important}
  .btn:active{transform:none}}

/* Contact form (public/contact/, docs/CONTACT-FORM.md). Fields and button use the defaults above;
   only the form's own layout, empty-error hiding, status line and spam trap live here. */
.lead-form{max-width:var(--measure);margin-top:var(--space-3)}
.lead-form textarea{resize:vertical;min-height:140px}
.hint-inline{font-weight:var(--weight-regular);color:var(--ink-soft)}
.lead-form .field-error:empty{display:none}
.lead-form .btn:disabled{opacity:.6;cursor:progress}
.lead-status{margin:var(--space-2) 0 0;min-height:1.6em}
.lead-status[data-kind="ok"]{color:#067647}
.lead-status[data-kind="error"]{color:var(--error)}
.lead-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
