/* =========================================================
   Arden Works — site stylesheet
   ---------------------------------------------------------
   Colours and fonts are set once in :root below. Change a
   value there and it updates across the whole site.
   ========================================================= */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --paper: #FBF8F1;      /* warm off-white background */
  --stone: #F1ECE1;      /* soft panel */
  --sage: #C8D0C6;       /* hairlines */
  --line: #DDD6C7;       /* dividers on paper */
  --charcoal: #25292A;   /* main text, footer */
  --muted: #5B6160;      /* secondary text */
  --forest: #10432F;     /* brand green (from logo) */
  --forest-deep: #0B3324;
  --on-dark: #F3EFE4;
  --on-dark-muted: #B9BCB5;

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 3px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--forest-deep); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--forest); color: var(--paper); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  color: var(--charcoal);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); font-weight: 360; letter-spacing: -0.022em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.6rem); line-height: 1.2; }
p { margin: 0 0 1.1em; max-width: 64ch; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--forest); color: var(--paper); padding: .6rem 1rem; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: var(--paper); }

.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--charcoal); max-width: 52ch; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 500 1rem/1 var(--sans); letter-spacing: .01em;
  padding: 1.05rem 1.6rem; border-radius: var(--radius);
  background: var(--forest); color: var(--paper); text-decoration: none;
  border: 1px solid var(--forest); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--forest); border-color: color-mix(in srgb, var(--forest) 35%, transparent); }
.btn--ghost:hover { background: var(--forest); color: var(--paper); }
.btn--light { background: var(--on-dark); color: var(--charcoal); border-color: var(--on-dark); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--forest); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1.5rem; }
.brand { display: inline-flex; padding-block: .5rem; }
.brand img { height: 40px; width: auto; }

.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.4rem); }
.site-nav a { color: var(--charcoal); text-decoration: none; font-size: .975rem; padding-block: .4rem; background: linear-gradient(var(--forest), var(--forest)) left bottom / 0 1px no-repeat; transition: background-size .25s ease, color .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--forest); background-size: 100% 1px; }
.site-nav .btn { padding: .75rem 1.15rem; color: var(--paper); background: var(--forest); }
.site-nav .btn:hover { background: var(--forest-deep); }
.site-nav .btn:hover, .site-nav .btn[aria-current="page"] { color: var(--paper); }

@media (max-width: 820px) {
  .site-header .wrap { min-height: 66px; }
  .brand img { height: 34px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .55rem;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    font: 500 .95rem/1 var(--sans); color: var(--charcoal); padding: .65rem .85rem; cursor: pointer;
  }
  .nav-toggle__bars { width: 16px; height: 10px; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s ease, top .2s ease; }
  .nav-toggle__bars::before { top: 1px; }
  .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(37, 41, 42, .18); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav li:first-child { border-top: 0; }
  .site-nav a { display: block; padding: 1rem 0; font-size: 1.1rem; background: none; }
  .site-nav li:last-child { border-top: 0; padding-top: 1rem; }
  .site-nav .btn { display: flex; padding: 1rem; }
}
/* Without JavaScript the menu stays visible */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { position: static; display: block; border: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 11vw, 9rem) clamp(4.5rem, 10vw, 8rem); }
.hero__art {
  position: absolute; inset: 0 0 0 38%;
  background: url("../img/contours.svg") center / cover no-repeat;
  opacity: .32;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(0deg, transparent 0%, #000 22%); mask-composite: intersect;
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 15ch; margin-bottom: .45em; }
.hero .lede { margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; align-items: center; }
.text-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--forest) 35%, transparent); padding-bottom: 2px; transition: border-color .2s ease; }
.text-link:hover { border-bottom-color: var(--forest); }
@media (max-width: 820px) { .hero__art { inset: 62% -40% 0 0; opacity: .22; } }

/* Gentle one-time entrance for the hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero__art { animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { opacity: 0; transform: scale(1.03); } to { opacity: .32; transform: none; } }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 820px) {
  @keyframes settle { from { opacity: 0; } to { opacity: .22; } }
}

/* ---------- Intro band ---------- */
.intro { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(2.75rem, 5vw, 4rem); }
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.intro__statement { font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.32; margin: 0; max-width: 24ch; color: var(--forest); }
.intro p:last-child { margin-bottom: 0; }
@media (max-width: 820px) { .intro__grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); scroll-margin-top: 60px; }
.section--stone { background: var(--stone); }
.section__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__head h2 { margin: 0; max-width: 16ch; }
.section__head p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .section__head { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--charcoal); }
.service { padding: clamp(2rem, 4vw, 3rem) clamp(0rem, 3vw, 3rem) clamp(2rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-rows: auto auto 1fr; }
.service:nth-child(even) { padding-left: clamp(1.5rem, 3vw, 3rem); padding-right: 0; border-left: 1px solid var(--line); }
.service h3 { display: flex; align-items: baseline; gap: .7rem; }
.service h3::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--forest); transform: translateY(-.2em); }
.service p { color: var(--muted); }
.service ul { list-style: none; margin: .4rem 0 0; padding: 0; align-self: end; }
.service li { padding: .55rem 0; border-top: 1px solid var(--line); font-size: .975rem; }
/* An odd service out at the end spans the full width, text left and list right */
.service:last-child:nth-child(odd) { grid-column: 1 / -1; padding-right: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(1.5rem, 6vw, 6rem); }
.service:last-child:nth-child(odd) h3 { grid-column: 1; }
.service:last-child:nth-child(odd) p { grid-column: 1; margin-bottom: 0; }
.service:last-child:nth-child(odd) ul { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-top: 0; }
@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 2rem 0; border-left: 0; }
  .service:last-child:nth-child(odd) { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .service:last-child:nth-child(odd) p { margin-bottom: 1.1em; }
  .service:last-child:nth-child(odd) ul { grid-column: 1; grid-row: auto; margin-top: .4rem; }
}

/* ---------- How we work ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); counter-reset: step; }
.step { position: relative; padding-top: 2.75rem; counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 1.05rem; color: var(--forest); width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid var(--forest); border-radius: 50%; background: var(--stone); z-index: 1; }
.step::after { content: ""; position: absolute; top: 1rem; left: 2rem; right: calc(-1 * clamp(1.25rem, 2.5vw, 2.5rem)); height: 1px; background: var(--sage); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.4rem; margin-top: .6rem; }
.step p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 2.25rem 3.5rem; }
  .step:last-child { padding-bottom: 0; }
  .step::after { top: 2rem; bottom: 0; left: 1rem; right: auto; width: 1px; height: auto; }
  .step h3 { margin-top: .15rem; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); }
.about__mark { align-self: start; position: sticky; top: 120px; }
.about__mark img { width: min(100%, 340px); }
.about h2 { max-width: 18ch; }
.principles { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 0; }
.principles li { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.35; }
.principles span { color: var(--muted); }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about__mark { position: static; }
  .about__mark img { width: 200px; }
  .principles li { grid-template-columns: 1fr; gap: .3rem; }
}

/* ---------- Closing call to action ---------- */
.cta { background: var(--forest); color: var(--on-dark); padding-block: clamp(4rem, 8vw, 6.5rem); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: url("../img/contours.svg") center / cover no-repeat; opacity: .12; filter: brightness(0) invert(1); pointer-events: none; }
.cta .wrap { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 2rem 4rem; flex-wrap: wrap; }
.cta h2 { color: var(--on-dark); margin-bottom: .35em; max-width: 18ch; }
.cta p { color: color-mix(in srgb, var(--on-dark) 82%, transparent); margin: 0; max-width: 48ch; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); max-width: 18ch; }
.page-head p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 7rem); padding-block: clamp(3rem, 6vw, 5rem) var(--section); }
.contact__aside h2 { font-size: 1.5rem; }
.contact__aside dl { margin: 2rem 0 0; }
.contact__aside dt { font-size: .875rem; color: var(--muted); margin-top: 1.4rem; }
.contact__aside dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.25rem; }
.contact__aside dd a { text-decoration: none; border-bottom: 1px solid var(--sage); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact__form { order: -1; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
.field { display: grid; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .95rem; font-weight: 500; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal);
  background: #fff; border: 1px solid #CFC7B6; border-radius: var(--radius);
  padding: .85rem .95rem; transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2325292A' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field textarea { min-height: 11rem; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #A9A291; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 18%, transparent); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #9B3B2A; }
.field .hint { font-size: .875rem; color: var(--muted); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: .5rem; }
.form__foot p { font-size: .9rem; color: var(--muted); margin: 0; flex: 1 1 18rem; }
.form__error { grid-column: 1 / -1; color: #9B3B2A; font-size: .95rem; margin: 0; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Long-form text (privacy) ---------- */
.prose { padding-block: clamp(3rem, 6vw, 4.5rem) var(--section); }
.prose__inner { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); margin-top: 2.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--forest); }
.note { background: var(--stone); border-left: 2px solid var(--forest); padding: 1rem 1.25rem; font-size: .95rem; margin-bottom: 2.5rem; }

/* ---------- Simple message pages (thank you / 404) ---------- */
.message { padding-block: clamp(5rem, 14vw, 10rem); min-height: 55vh; }
.message h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); max-width: 16ch; }
.message .hero__actions { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--on-dark-muted); padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; font-size: .95rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2.5fr)); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid #3A3F40; }
.footer__brand img { height: 44px; width: auto; margin-bottom: 1.25rem; }
.footer__brand p { max-width: 34ch; }
.site-footer h2 { font-family: var(--sans); font-size: .875rem; font-weight: 600; color: var(--on-dark); letter-spacing: .02em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.75rem; font-size: .85rem; }
.footer__legal p { margin: 0; max-width: none; }
.footer__company { display: grid; gap: .3rem; }
.footer__company p:last-child { color: #8F938E; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
