/* towsons.com — one stylesheet, no framework. */

:root {
  --ink: #14171b;
  --ink-2: #2c3238;
  --muted: #5d6670;
  --line: #e3e5e1;
  --paper: #ffffff;
  --tint: #f4f5f1;

  /* The four ink colours of the logo's drops. */
  --red: #e8233f;
  --green: #5f8f3e;
  --blue: #0088b8;
  --yellow: #f3ad12;
  --wdm: #58935d;

  --radius: 16px;
  --shadow: 0 1px 2px rgb(20 23 27 / 6%), 0 12px 32px -12px rgb(20 23 27 / 22%);
  --gutter: 16px;
  --max: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 640px) {
  :root { --gutter: 28px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

address { font-style: normal; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow--light { color: rgb(255 255 255 / 82%); }

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .8em 1.35em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.button:hover { color: #fff; background: #000; transform: translateY(-1px); }
.button--light { background: #fff; color: var(--ink); }
.button--light:hover { background: #fff; color: var(--ink); box-shadow: 0 8px 24px -8px rgb(0 0 0 / 45%); }
.button--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 60%); }
.button--ghost:hover { background: rgb(255 255 255 / 12%); border-color: #fff; }
.button--wdm { background: var(--wdm); }
.button--wdm:hover { background: #467a4b; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.text-link:hover { color: var(--blue); }
.text-link .icon { transition: transform .15s ease; }
.text-link:hover .icon { transform: translateX(2px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 92%);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.site-header__brand { flex: none; border-radius: 6px; }
.site-header__brand img { height: 42px; width: auto; }

.site-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: .45rem .6rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .975rem;
  font-weight: 560;
  text-decoration: none;
}
.site-nav a:hover { background: var(--tint); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

@media (max-width: 359px) {
  .site-header__brand img { height: 36px; }
  .site-nav a { padding-inline: .5rem; font-size: .925rem; }
}

@media (min-width: 640px) {
  .site-header__inner { min-height: 76px; }
  .site-header__brand img { height: 48px; }
  .site-nav ul { gap: 6px; }
  .site-nav a { padding: .5rem 1rem; font-size: 1rem; }
}

/* ---------- Ink bar: the logo's four colours ---------- */

.ink-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 6px;
}
.ink-bar span:nth-child(1) { background: var(--red); }
.ink-bar span:nth-child(2) { background: var(--green); }
.ink-bar span:nth-child(3) { background: var(--blue); }
.ink-bar span:nth-child(4) { background: var(--yellow); }

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(460px, 74vh, 700px);
  overflow: hidden;
  background: #22262b url("/assets/images/site/hero-poster.jpg") center / cover no-repeat;
  color: #fff;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(12 14 17 / 88%) 0%, rgb(12 14 17 / 55%) 45%, rgb(12 14 17 / 30%) 100%);
}

.hero__content {
  padding-block: 7rem clamp(2.75rem, 7vw, 5rem);
}

.hero__title {
  margin-bottom: .3em;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero__lead {
  max-width: 30em;
  margin-bottom: 2rem;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.25rem, 8vw, 6rem); }
.section--tint { background: var(--tint); }

.section__title {
  margin-bottom: 1.5em;
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
}

/* ---------- Home: at a glance ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 1.6rem 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.feature h3 { margin: 1.1rem 0 .45rem; font-size: 1.2rem; }
.feature p { color: var(--muted); font-size: 1rem; }

.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
.feature__icon .icon { width: 26px; height: 26px; }
.feature--red .feature__icon { background: #fde7ea; color: #c8102e; }
.feature--green .feature__icon { background: #ecf3e6; color: #4b7a2c; }
.feature--blue .feature__icon { background: #e2f3fa; color: #00739c; }
.feature--yellow .feature__icon { background: #fdf2d6; color: #a86f00; }

/* On a phone: icon beside the words, so the four don't make a long column. */
@media (max-width: 559px) {
  .features { gap: .85rem; }
  .feature {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 1rem;
    padding: 1.1rem 1.15rem;
  }
  .feature__icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; }
  .feature__icon .icon { width: 22px; height: 22px; }
  .feature h3 { margin: .1rem 0 .3rem; font-size: 1.1rem; }
  .feature p { font-size: .975rem; }
}

/* ---------- Home: workshop photos ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.gallery__item {
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfe2dc;
  aspect-ratio: 1;
}
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 760px) {
  .gallery {
    grid-template-columns: 1.7fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: clamp(420px, 46vw, 560px);
  }
  .gallery { gap: 1rem; }
  .gallery__item { aspect-ratio: auto; }
  .gallery__item--wide { grid-column: auto; grid-row: span 2; aspect-ratio: auto; }
}

/* ---------- Home: brand teaser ---------- */

.brand-teaser {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.brand-teaser .section__title { margin-bottom: .6em; }
.brand-teaser__text > p:not(.eyebrow) { color: var(--muted); max-width: 46ch; }
.brand-teaser__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}
.brand-teaser__image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .brand-teaser { grid-template-columns: 1fr 1.15fr; gap: 4rem; }
}

/* ---------- Inner pages: heading band ---------- */

.page-head {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2rem, 5vw, 3rem);
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.page-head__title { margin-bottom: 0; font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -0.03em; }
.page-head__meta { margin-top: .75rem; color: var(--muted); }
.page-head__lead { margin-top: 1rem; color: var(--muted); font-size: 1.15rem; }
.page-head--center { text-align: center; padding-block: clamp(4rem, 12vw, 7rem); }
.page-head--center .button { margin-top: 1rem; }

/* ---------- Brands ---------- */

.brand {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.crossfade {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: #dfe2dc;
}
.crossfade picture { position: absolute; inset: 0; }
.crossfade img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.crossfade picture + picture { opacity: 0; animation: crossfade 9s ease-in-out infinite; }

@keyframes crossfade {
  0%, 40% { opacity: 0; }
  50%, 90% { opacity: 1; }
  100% { opacity: 0; }
}

.brand__text { text-align: center; }
.brand__logo { width: 120px; margin: 0 auto 1.25rem; }
.brand__name { font-size: clamp(1.6rem, 3vw, 2rem); }
.brand__text p { max-width: 42ch; margin-inline: auto; color: var(--muted); }
.brand__text .button { margin-top: .75rem; }

@media (min-width: 860px) {
  .brand { grid-template-columns: 1.2fr 1fr; gap: 4rem; }
}

/* ---------- Contact ---------- */

.notice {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 1.25rem 0 0;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600;
  font-size: .975rem;
}
.notice .icon { color: var(--blue); }

.contact {
  display: grid;
  gap: 1.25rem;
}
.contact__details, .contact__faq {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

@media (min-width: 860px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.5rem; }
  .contact__details, .contact__faq { gap: 1.5rem; }
}

.card {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.card p { color: var(--ink-2); }

.card__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .7rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.card__title .icon { color: var(--muted); width: 1.3em; height: 1.3em; }

.card--warning { background: #fff8e5; border-color: #f2d78f; }
.card--warning .card__title .icon { color: #a86f00; }

.contact__email a { font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem 1.25rem;
  margin: 0;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.map { border-top: 1px solid var(--line); }
.map__frame {
  width: 100%;
  height: clamp(320px, 42vw, 480px);
  border: 0;
  background: #e8eae5;
}
.map__link { padding-block: 1rem; margin-block: 0; }

/* ---------- Privacy and terms ---------- */

/* overflow-wrap: the policy's OAuth scope addresses are long unbroken words. */
/* A readable column, lined up with the page title above it. */
.prose { max-width: 800px; margin-inline: 0; overflow-wrap: anywhere; }
.section > .prose {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
}
.section > .prose > * { max-width: 800px; }
.prose h2 { margin: 2.4rem 0 .7rem; font-size: 1.35rem; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--muted); }
.prose a { overflow-wrap: anywhere; }
.prose b { font-weight: 650; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 0;
  background: var(--ink);
  color: #c4cad1;
  font-size: .975rem;
}
.site-footer a { color: #e7eaee; }
.site-footer a:hover { color: #fff; }

.site-footer__grid {
  display: grid;
  gap: 2rem;
  padding-block: 3.25rem 2.5rem;
}

@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
}

.site-footer__logo { height: 52px; width: auto; margin-bottom: 1rem; filter: invert(1); }
.site-footer__about p { max-width: 32ch; }

.site-footer__heading {
  margin-bottom: .9rem;
  color: #fff;
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer__links { margin: 0; padding: 0; list-style: none; }
.site-footer__links li { margin-bottom: .45rem; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }

.site-footer__legal {
  padding-block: 1.25rem 2rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: #9aa3ad;
  font-size: .85rem;
}
.site-footer__legal p { margin-bottom: .35rem; }
.site-footer__legal a { color: #e7eaee; }

/* ---------- WhatsApp chat button (every page) ---------- */

.whatsapp-button {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 28px -8px rgb(0 0 0 / 40%), 0 2px 6px rgb(0 0 0 / 14%);
  transition: transform .15s ease, background-color .15s ease;
}
.whatsapp-button:hover { color: #fff; background: #1ebe5a; transform: translateY(-2px); }
.whatsapp-button__icon { width: 30px; height: 30px; flex: none; }
.whatsapp-button__label { display: none; }

@media (min-width: 760px) {
  .whatsapp-button { padding: .8rem 1.25rem .8rem 1rem; }
  .whatsapp-button__icon { width: 26px; height: 26px; }
  .whatsapp-button__label { display: inline; }
}

/* Keep the last footer line clear of the button. */
.site-footer__legal { padding-bottom: 6rem; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .crossfade picture + picture { animation: none; }
  .hero__video { display: none; }
}
