@font-face {
  font-family: 'Preview Sans';
  src: url('assets/outfit.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fdfdfd;
  --ink: #080808;
  --red: #d51520;
  --sans: 'Preview Sans', 'Century Gothic', 'Avenir Next', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 20px/1.4 var(--sans); }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover, nav button:hover { text-decoration: underline; text-underline-offset: .2em; }
button { font: inherit; color: inherit; cursor: pointer; }
nav button { padding: 0; background: none; border: 0; text-align: left; text-transform: inherit; }
img { display: block; max-width: 100%; height: auto; }
abbr { text-decoration: none; }
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: clamp(20px, 3.90625vw, 50px); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 54px; }
.masthead nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px clamp(16px, 3.9vw, 50px); font-size: clamp(17px, 1.9vw, 24px); text-transform: uppercase; }
.intro { margin-top: 67px; }
.seal { margin: 0 0 34px 3px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 890px) minmax(110px, 1fr); gap: 24px; }
h1 { font-size: clamp(28px, 2.66vw, 34px); font-weight: 300; line-height: 1.18; letter-spacing: -.035em; }
.intro-grid > div > p { margin-top: 31px; letter-spacing: -.025em; }
.intro-grid > div > p + p { margin-top: 28px; }
.credentials { margin-top: 32px; display: grid; grid-template-columns: 1.1fr 1fr .67fr; gap: 18px; color: var(--red); font-weight: 500; line-height: 1.25; }
.services { max-width: 1118px; margin-top: 87px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.service-tile { aspect-ratio: 1; padding: 23px; color: white; background: #b6392d; }
.service-tile:first-child { background: #e8d5c6; color: var(--ink); }
.service-tile:nth-child(3) { background: #354590; }
.service-tile:nth-child(4) { background: #106f50; }
.services h2 { text-transform: uppercase; font-size: clamp(28px, 3.125vw, 40px); font-weight: 300; letter-spacing: -.05em; line-height: 1.24; }
.services p { margin-top: 14px; font-size: clamp(18px, 1.72vw, 22px); line-height: 1.41; letter-spacing: -.035em; }
footer { background: #000; color: #fff; margin-top: clamp(72px, 7vw, 90px); }
.footer-grid { min-height: 388px; padding-top: 45px; padding-bottom: 45px; display: grid; grid-template-columns: minmax(120px, .7fr) minmax(190px, 1fr) minmax(0, 2fr); gap: 28px; font-size: 18px; }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; text-transform: uppercase; }
address { font-style: normal; }
address p + p { margin-top: 17px; }
dialog { width: min(440px, calc(100% - 36px)); padding: 26px; border: 1px solid; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgb(0 0 0 / 55%); }
dialog p { margin-block: 14px; }
dialog button { padding: 5px 14px; background: var(--ink); color: white; border: 1px solid var(--ink); }
:focus-visible { outline: 2px solid #bf5743; outline-offset: 4px; }
@media (max-width: 1000px) {
  .desktop-break { display: none; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-tile { padding: 18px; }
  .footer-grid { gap: 20px; }
}
@media (max-width: 760px) {
  .masthead { align-items: flex-start; flex-direction: column; padding-top: 32px; gap: 22px; }
  .masthead nav { justify-content: flex-start; }
  .intro { margin-top: 48px; }
  .intro-grid { grid-template-columns: 1fr; }
  .services { margin-top: 52px; }
  .footer-grid { min-height: 280px; }
}
@media (max-width: 580px) {
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 470px) {
  .credentials, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 24px; }
}

.enquiry-cta { justify-self: end; align-self: start; }
.enquiry-cta a { display: inline-block; border-top: 2px solid var(--red); padding: 12px 12px 0; }
.service-tile { display: block; transition: opacity .16s ease; }
.service-tile:hover, .service-tile:focus-visible { opacity: .88; text-decoration: none; }
#services, #team, #contacts { scroll-margin-top: 24px; }
.team { margin-top: 96px; }
.team h2, #contacts h2 { font-size: 34px; font-weight: 500; margin-bottom: 20px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 26px; }
.team-member img, .team-placeholder { width: min(100%, 240px); aspect-ratio: 1; border-radius: 50%; }
.team-member h3 { font-size: 27px; font-weight: 500; margin: 14px 0 8px; }
.team-member p { font-size: 18px; }
.team-placeholder { display: grid; place-items: center; background: #e8d5c6; font-size: 60px; }
#enquiry-form, #enquiry-form label { display: grid; gap: 9px; }
.enquiry-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#enquiry-form input, #enquiry-form select, #enquiry-form textarea { width: 100%; min-width: 0; padding: 8px; color: white; background: #111; border: 1px solid #aaa; border-radius: 0; font: inherit; }
#enquiry-form textarea { resize: vertical; }
#enquiry-form button { justify-self: start; background: white; color: black; border: 0; padding: 8px 15px; }
#enquiry-form p { font-size: 16px; }
@media (max-width: 760px) {
  .enquiry-cta { justify-self: start; }
  .team { margin-top: 60px; }
  .team-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #contacts { grid-column: 1 / -1; }
}
@media (max-width: 470px) {
  .team-grid, .footer-grid, .enquiry-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .service-tile { transition: none; }
}

.category { max-width: 640px; padding-bottom: 80px; }
.category > a:first-child { text-decoration: underline; text-underline-offset: .2em; }
.category h1 { margin-block: 28px 14px; }
.category-enquiry { display: inline-block; margin-top: 24px; border-top: 2px solid var(--red); padding-top: 8px; }
