/* Toscas Group — site styles
   Design tokens mirror the previous Squarespace build:
   brown #7B6050, mist #E3E9F3, action blue #0977AE, Instrument Sans. */

:root {
  --brown: #7b6050;
  --brown-deep: #6a5244;
  --mist: #e3e9f3;
  --blue: #0977ae;
  --blue-deep: #06608f;
  --ink: #17171a;
  --ink-soft: #4a4a52;
  --white: #ffffff;
  --logo-brown: #562700;

  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4rem, 9vw, 8.5rem);
  --radius: 0;
}

/* ---------- reset ---------- */
*, *::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 { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.09rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7.5vw, 5.95rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.9rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: -0.01em; }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p  { margin: 0 0 1.35em; }
p:last-child { margin-bottom: 0; }

/* ---------- layout ---------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--brown { background: var(--brown); color: var(--white); }
.section--mist  { background: var(--mist);  color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }
.section--hero {
  background: var(--brown);
  color: var(--white);
  padding-block: clamp(4.5rem, 12vw, 9.5rem);
}
.section--hero h1 { margin-bottom: 0; }
.section--hero .eyebrow {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: .06em;
  margin: 1.4rem 0 0;
  opacity: .92;
}
.measure { max-width: 62ch; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: .75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 100px;
  padding-block: 1rem;
}
.logo { display: block; flex: 0 0 auto; line-height: 0; }
.logo img { width: clamp(205px, 26vw, 340px); height: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.1rem); }
.nav a {
  text-decoration: none;
  font-size: 1.09rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .6rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-top: 1px solid #e6e6e6;
    padding: .5rem var(--gutter) 1.25rem;
    box-shadow: 0 14px 24px rgba(0, 0, 0, .07);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { width: 100%; padding-block: .85rem; font-size: 1.15rem; }
  .site-header__inner { position: relative; min-height: 78px; }
  .logo img { width: min(215px, 58vw); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .05em;
  padding: 1.05rem 2rem;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s ease;
}
.btn:hover, .btn:focus-visible { background: var(--blue-deep); }
.btn + .btn { margin-left: .75rem; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.section--brown :where(a, button, input, textarea, select):focus-visible {
  outline-color: var(--white);
}

/* ---------- intro / two-column ---------- */
.intro { max-width: 72ch; }
.intro h2 { margin-bottom: .45em; }
.intro .btn { margin-top: 1.4rem; }

/* When the measure class sits on the .wrap itself, keep the container at full
   width and narrow the children instead — otherwise .wrap's auto margins
   centre the text column and it stops lining up with the section headings. */
.wrap.intro, .wrap.prose { max-width: var(--wrap); }
.wrap.intro > * { max-width: 72ch; }
.wrap.prose > * { max-width: 68ch; }

.rule {
  border: 0;
  border-top: 1px solid currentColor;
  opacity: .45;
  margin: 0;
}

.svc-list { display: grid; gap: 0; }
.svc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid currentColor;
}
.svc:last-child { border-bottom: 1px solid currentColor; }
.svc h3 { margin: 0; }
.svc p { margin: 0; }
@media (max-width: 760px) {
  .svc { grid-template-columns: 1fr; gap: .9rem; }
}

.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head h2 { margin-bottom: 0; }

.actions { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- quote ---------- */
.quote { margin: 0; }
.quote blockquote {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.quote figcaption { margin-top: 1.5rem; font-size: 1.09rem; color: var(--ink-soft); }

/* ---------- prose ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose .lede {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.prose strong { font-weight: 600; }

/* ---------- form ---------- */
.form { max-width: 720px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  margin-bottom: .45rem;
}
.field .req { color: var(--blue); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b9bfc9;
  border-radius: var(--radius);
  padding: .8rem .9rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #7d8794; }

/* honeypot — hidden from humans, visible to naive bots */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form__status {
  margin-top: 1.25rem;
  font-size: 1rem;
  min-height: 1.5em;
}
.form__status[data-state="error"] { color: #a3231f; font-weight: 500; }
.form__status[data-state="ok"] { color: #1c6b3a; font-weight: 500; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d7d7dc;
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  font-size: 1rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.site-footer a:hover { border-bottom-color: var(--white); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer p { margin: 0; }
.site-footer address { font-style: normal; line-height: 1.65; color: #c3c3ca; }
.site-footer .tagline { color: #9a9aa4; margin-top: .5rem; }

/* ---------- 404 ---------- */
.err { text-align: center; padding-block: clamp(5rem, 14vw, 10rem); }
.err .btn { margin-top: 1.5rem; }
