/* nostress.co.uk makeover (31.10.26): one responsive layout for every page, in the original brand colours
   (black bar, slate blue #30426A, red accent, light blue-grey band). */
:root { --ink: #1f2430; --muted: #5b6474; --slate: #30426a; --slate-2: #a7b6cd; --red: #c8102e; --line: #e3e7ee; --bg: #fff; --soft: #f4f6fa; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 Arial, Helvetica, system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-underline-offset: 2px; }
a:hover { color: var(--red); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header: logo on black, email, text menu (a menu button on phones). */
.top { background: #000; color: #fff; }
.bar { display: flex; align-items: center; flex-wrap: wrap; gap: 0 24px; padding-top: 6px; }
.logo img { width: 190px; height: auto; }
.top .mail { margin: 0 0 0 auto; font-size: 15px; }
.top .mail a { color: #fff; text-decoration: none; font-weight: bold; }
.main { flex-basis: 100%; border-top: 3px solid var(--red); }
.main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main a { display: block; padding: 12px 4px; color: #fff; text-decoration: none; font-size: 13px; font-weight: bold; white-space: nowrap; }
.top .wrap { max-width: 1260px; }
.main ul { justify-content: space-between; }
.main a:hover, .main a[aria-current] { background: var(--slate); color: #fff; }
.menu-toggle, .burger { display: none; }

/* 2010 pages' own section menu (its six original links). */
.subnav { background: linear-gradient(#c00, #800); }
.subnav ul { list-style: none; margin: 0 auto; padding: 0 20px; max-width: 1120px; display: flex; flex-wrap: wrap; }
.subnav a { display: block; padding: 9px 10px; color: #fff; text-decoration: none; font-size: 13px; font-weight: bold; }
.subnav a:hover { background: rgba(0, 0, 0, .25); }

/* Page intro: tag line, H1, quote band and the page's picture. */
.intro { background: var(--soft); border-bottom: 1px solid var(--line); padding: 32px 0; }
.intro .split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.tag { margin: 0 0 8px; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.intro h1, .content h1:first-child { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; color: var(--ink); }
blockquote { margin: 16px 0 0; padding: 12px 16px; border-left: 4px solid var(--red); background: #fff; color: var(--slate); font-size: 18px; font-style: italic; }
.hero-pic img { border-radius: 12px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #fff; }

/* Home: the 12 service tiles. */
.tiles { list-style: none; margin: 32px auto 0; padding: 0 20px; max-width: 1120px; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.tiles a { display: block; height: 100%; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--slate); font-weight: bold; font-size: 15px; background: #fff; }
.tiles a:hover { border-color: var(--slate); box-shadow: 0 4px 14px rgba(48, 66, 106, .15); }
.tiles img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tiles span { display: block; padding: 10px 12px; }

/* Content: the page's original blocks; the old table columns sit side by side on wide screens. */
main.wrap { padding-top: 28px; padding-bottom: 40px; }
main.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
.content { min-width: 0; }
.content h1 { font-size: 26px; line-height: 1.25; margin: 28px 0 12px; }
.content h2 { font-size: 23px; line-height: 1.3; margin: 28px 0 10px; color: var(--slate); }
.content h3 { font-size: 19px; line-height: 1.35; margin: 22px 0 8px; }
.content p, .content ul, .content ol { margin: 0 0 14px; }
.content li { margin: 4px 0; }
.content figure { margin: 16px 0; }
.content img { border-radius: 10px; margin: 12px 0; }
.t2012 > div:has(> .cell), .content.t2012 { display: block; }
.content .cell { margin-bottom: 8px; }
/* One readable column of text (the old three side-by-side table columns left big gaps); pictures sit in the flow. */
.content { max-width: 800px; }
main.with-side .content { max-width: none; }
.content img { max-width: 560px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.content img[src*="logo-samples"], .content img[src*="No-Stress-Logo"] { aspect-ratio: auto; object-fit: contain; }

/* 2010 sidebar: "Contact Us for", email and the two package links. */
.side { font-size: 15px; }
.side h2 { font-size: 17px; margin: 0 0 8px; color: var(--slate); }
.side .plain { list-style: none; padding: 0; margin: 0 0 14px; }
.side .plain li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.promos { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.promos a { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; font-weight: bold; }
.promos img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.promos span { display: block; padding: 10px 12px; }

/* Footer: the original link columns, then the company line. */
.foot { background: #000; color: #cfd5e0; padding: 28px 0 20px; font-size: 14px; }
.foot .mail a, .foot a { color: #fff; }
.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 24px; }
.foot h2 { font-size: 14px; color: var(--slate-2); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 3px 0; }
.legal { background: #fff; color: var(--muted); font-size: 13px; text-align: center; padding: 14px 0; }

/* Phones and small tablets. */
@media (max-width: 900px) {
  .intro .split { grid-template-columns: 1fr; }
  main.with-side { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .logo img { width: 140px; }
  .top .mail { display: none; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 44px; height: 44px; cursor: pointer; }
  .burger span { display: block; height: 3px; background: #fff; border-radius: 2px; }
  .main { display: none; }
  .menu-toggle:checked ~ .main { display: block; }
  .main ul { flex-direction: column; }
  .main a { padding: 12px 4px; border-bottom: 1px solid #222; }
  .intro { padding: 22px 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

/* Picture-and-text cards (the old picture rows paired with their text rows). */
.content.thome { max-width: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; margin: 8px 0 28px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px 8px; background: #fff; }
.card img { margin: 0 -16px 12px; width: calc(100% + 32px); max-width: none; border-radius: 12px 12px 0 0; }
.card h3 { margin-top: 4px; }
.cap { display: block; font-weight: bold; margin-top: -4px; }
.summary { font-weight: bold; }

/* Keyword-string H1s (pipes) are set smaller; the 2010 related-page trail sits apart from the text. */
.intro h1.pipe { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; }
.trail { margin: 0 0 22px; font-size: 15px; color: var(--muted); }
@media (max-width: 760px) {
  /* The 2010 section menu is one row you can swipe sideways on phones, instead of five rows above the content. */
  .subnav ul { flex-wrap: nowrap; overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
  .subnav a { white-space: nowrap; }
}
/* Home tiles: each picture shown whole inside its frame (the logo picture fills edge to edge). */
.tiles img { object-fit: contain; background: #fff; padding: 6px; }
