/* Sedgemoor PAT Testing, by A38 IT */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #f2f6f3;
  --white: #ffffff;
  --ink: #15302a;
  --muted: #47605a;
  --green: #17804a;
  --green-deep: #0f3d2e;
  --yellow: #f6c500;
  --red: #c2182b;
  --rule: #cdd9d2;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --wrap: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.25rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.55rem; line-height: 1.15; margin-bottom: 0.4rem; }
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.measure { max-width: 40rem; }
.skip { position: absolute; left: -999rem; top: 0; background: var(--yellow); color: var(--ink); padding: 0.6rem 1rem; font-weight: 600; z-index: 10; }
.skip:focus { left: 0; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 2rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 2.6rem; height: 2.6rem; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; display: block; }
.brand-by { font-size: 0.85rem; font-weight: 500; color: var(--muted); display: block; margin-top: 0.15rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.05rem; padding: 0.35rem 0; display: inline-block; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--green); }
.header-phone { font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--green-deep); text-decoration: none; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-block; font-family: var(--body); font-weight: 600; font-size: 1.1rem; line-height: 1.2; padding: 0.9rem 1.5rem; border-radius: 0.4rem; border: 2px solid var(--ink); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: #ffd61f; color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

/* Home hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero-sub { font-size: 1.3rem; line-height: 1.45; color: var(--muted); margin-top: 1.3rem; max-width: 34rem; }

/* The test label */
.labels { position: relative; max-width: 24rem; margin: 0 auto; padding: 1.5rem 0 4.6rem; }
.label { background: var(--white); border-radius: 0.9rem; overflow: hidden; font-family: var(--body); }
.label-pass { position: relative; border: 4px solid var(--green); transform: rotate(-3deg); box-shadow: 0 1.4rem 2.6rem -1.4rem rgba(15, 61, 46, 0.55); animation: stick 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.label-head { background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 1.1rem; }
.label-word { font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.label-tick { width: 3rem; height: 3rem; }
.label-rows { margin: 0; padding: 0.5rem 1.1rem 0.3rem; }
.label-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--rule); }
.label-rows dt { color: var(--muted); font-size: 0.95rem; }
.label-rows dd { margin: 0; font-weight: 600; text-align: right; }
.label-foot { padding: 0.6rem 1.1rem 0.8rem; font-size: 0.9rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; }
.label-fail { position: absolute; right: -1.2rem; bottom: 0; width: 13rem; border: 3px solid var(--red); transform: rotate(6deg); z-index: -1; }
.label-fail .label-head { background: var(--red); padding: 0.4rem 0.8rem; }
.label-fail .label-word { font-size: 1.7rem; }
.label-fail p { margin: 0; padding: 0.45rem 0.8rem 0.55rem; font-size: 0.9rem; font-weight: 600; color: var(--red); }
.labels { isolation: isolate; }
@keyframes stick { from { transform: rotate(4deg) scale(1.12); opacity: 0; } to { transform: rotate(-3deg) scale(1); opacity: 1; } }

/* Inner page header */
.page-head { background: var(--green-deep); color: var(--white); }
.page-head .wrap { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { max-width: 18ch; font-size: clamp(2.4rem, 5.4vw, 4rem); }
.page-head p { font-size: 1.3rem; line-height: 1.45; margin-top: 1.1rem; max-width: 38rem; color: #d7e6de; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-tint { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-plain + .section-plain { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 4rem; align-items: start; }
.stack > * + * { margin-top: 2.6rem; }

/* Report sheet: what you get */
.sheet { background: var(--white); border: 2px solid var(--ink); border-radius: 0.6rem; overflow: hidden; }
.sheet-head, .sheet li { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; gap: 1.5rem; align-items: center; padding: 1rem 1.4rem; }
.sheet-head { background: var(--ink); color: var(--white); font-weight: 600; font-size: 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li + li { border-top: 1px solid var(--rule); }
.sheet strong { font-weight: 600; }
.sheet-result { justify-self: end; background: var(--green); color: var(--white); font-family: var(--display); font-weight: 700; font-size: 1.15rem; padding: 0.1rem 0.75rem 0.15rem; border-radius: 0.3rem; }
.sheet-head span:last-child { justify-self: end; }

/* Plain point grids */
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3.5rem; }
.points li { border-top: 3px solid var(--green); padding-top: 1rem; }
.points p { color: var(--muted); }
.points-1 { grid-template-columns: minmax(0, 1fr); }

/* Call to action band */
.cta { background: var(--green-deep); color: var(--white); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { margin-bottom: 0.5rem; }
.cta p { color: #d7e6de; max-width: 34rem; }
.cta .btn { border-color: var(--yellow); flex: none; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-weight: 600; font-size: 1rem; color: var(--muted); border-bottom: 2px solid var(--ink); }
td:last-child, th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
td:last-child { font-weight: 600; }
.price-big td:last-child { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.note { color: var(--muted); font-size: 1rem; }
.callout { border-left: 5px solid var(--yellow); background: var(--paper); padding: 1.1rem 1.4rem; border-radius: 0 0.4rem 0.4rem 0; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0.45rem 0 0.45rem 2.1rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72rem; width: 1.25rem; height: 1.25rem; border-radius: 0.25rem; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* Big price figure on the IT page */
.figure-price { font-family: var(--display); font-weight: 700; font-size: clamp(3.5rem, 9vw, 6rem); line-height: 0.95; color: var(--green-deep); }
.figure-price small { display: block; font-family: var(--body); font-weight: 500; font-size: 1.1rem; line-height: 1.4; color: var(--muted); margin-top: 0.6rem; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.15rem 0; font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--green); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 40rem; padding-bottom: 1.3rem; margin: 0; }

/* Form */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.5rem; }
.field-wide { grid-column: 1 / -1; }
label, legend { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 0.35rem; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 2px solid #8a9c95; border-radius: 0.35rem; padding: 0.7rem 0.8rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--ink); }
textarea { min-height: 7rem; resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; }
.radios { display: flex; gap: 1.5rem; padding-top: 0.4rem; }
.radios label { display: flex; align-items: center; gap: 0.45rem; font-weight: 400; font-size: 1.1rem; margin: 0; }
.radios input { width: 1.2rem; height: 1.2rem; accent-color: var(--green); }
.hp { position: absolute; left: -999rem; }
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.contact-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.contact-list span { display: block; font-size: 0.95rem; color: var(--muted); }
.contact-list a, .contact-list strong { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.2; color: var(--green-deep); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list .plain { font-family: var(--body); font-weight: 500; font-size: 1.1rem; color: var(--ink); }
.errors { border: 2px solid var(--red); border-radius: 0.4rem; padding: 1rem 1.3rem; margin-bottom: 1.5rem; }
.errors ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }

/* Long-form text pages */
.prose h2 { font-size: 1.9rem; margin: 2.4rem 0 0.7rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.3rem; }

/* Footer */
.site-footer { background: var(--ink); color: #d7e6de; font-size: 1rem; }
.site-footer .wrap { padding-top: 2.8rem; padding-bottom: 2.8rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem 4rem; }
.site-footer a { color: var(--white); }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; color: var(--white); margin-bottom: 0.2rem; }
.footer-links { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.footer-links a { text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }
.legal { font-size: 0.92rem; line-height: 1.5; color: #b4c8be; max-width: 40rem; }

/* Narrow screens */
@media (max-width: 54rem) {
  .hero .wrap, .split, .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { gap: 2rem; }
  .labels { max-width: 20rem; margin-left: 0; }
  .points { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .header-phone { order: 2; }
  .site-nav { order: 3; width: 100%; }
}
@media (max-width: 36rem) {
  body { font-size: 1.0625rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .sheet-head, .sheet li { grid-template-columns: minmax(0, 1fr); padding: 0.9rem 1.1rem; }
  .sheet-head span:last-child, .sheet-result { display: none; }
  .label-fail { right: -0.4rem; }
  .brand-name { font-size: 1.35rem; }
  .site-nav ul { gap: 0.1rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .label-pass { animation: none; }
}

@media print {
  .site-nav, .btn-row, .cta, .labels { display: none; }
}
