/* AV Support
   Built out from the logo: a cobalt rounded tile holding a white A and an amber V.
   - Nunito (the logo's rounded, heavy letters) for headings, buttons and numbers.
   - Atkinson Hyperlegible Next, drawn for low-vision readers, for everything you read.
   - Cobalt for anything you can press, navy for the two full-width bands,
     amber only as a small accent, never for text on white.
   - Two corner sizes: the tile radius for photos and panels, the control radius
     for buttons and fields. */

/* Fonts are served from this site, not a third party. Both are variable
   fonts under the SIL Open Font License, latin subset. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url("fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1a2238;
  --ink-soft: #4a5570;
  --blue: #1f4fd8;
  --blue-press: #173fb0;
  --navy: #13235a;
  --navy-art: #172a6b;
  --amber: #f5a623;
  --paper: #fbfcfe;
  --mist: #eaf0fb;
  --line: #cdd6ea;
  --field-border: #7783a0;
  --on-navy-soft: #dbe3f7;
  --error: #a3271b;

  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Nunito, "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  --step-3: clamp(2.125rem, 1.35rem + 3.3vw, 3.5rem);

  --gutter: clamp(1.125rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --r-tile: 1.75rem;
  --r-control: 0.875rem;
  --mobile-bar-height: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ol {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-3);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--step-2);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--step-1);
  font-weight: 800;
}

h4 {
  font-size: var(--step-0);
  font-weight: 800;
}

p {
  max-width: 62ch;
  text-wrap: pretty;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 70rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  border-radius: var(--r-control);
  background: var(--ink);
  color: #fff;
}

main:focus {
  outline: none;
  box-shadow: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--r-control);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-primary:hover {
  background: var(--blue-press);
}

.button-quiet {
  background: #fff;
  border-color: var(--blue);
  color: var(--blue);
}

.button-quiet:hover {
  background: var(--mist);
}

.button-light {
  background: #fff;
  color: var(--blue);
}

.button-light:hover {
  background: var(--mist);
}

.button-outline-light {
  border-color: #fff;
  color: #fff;
}

.button-outline-light:hover {
  background: rgb(255 255 255 / 0.14);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  row-gap: 0.25rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--blue);
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  white-space: nowrap;
}

.site-nav {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
  font-size: var(--step--1);
  font-weight: 700;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.5rem;
}

.site-nav a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.header-phone {
  display: flex;
  flex-direction: column;
  margin-left: auto;
  text-align: right;
  text-decoration: none;
  line-height: 1.2;
}

.header-phone-label {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.header-phone-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-0);
  white-space: nowrap;
}

@media (max-width: 22.5rem) {
  .header-row {
    gap: 0.75rem;
  }

  .brand {
    font-size: 1.25rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .header-phone-number {
    font-size: 1rem;
  }
}

@media (min-width: 52rem) {
  .header-phone {
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border: 2px solid transparent;
    border-radius: var(--r-control);
    background: var(--blue);
    color: #fff;
  }

  .header-phone:hover {
    background: var(--blue-press);
  }

  .header-phone-label {
    font-family: var(--font-display);
    font-size: var(--step--1);
    font-weight: 800;
    color: inherit;
  }

  .header-phone-number {
    font-size: var(--step--1);
  }
}

@media (min-width: 60rem) {
  .site-nav {
    display: flex;
  }

  .header-phone {
    margin-left: 0;
  }
}

/* Hero */

.hero {
  background: var(--mist);
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.hero-copy {
  display: grid;
  gap: 1.25rem;
  align-content: center;
}

.lede {
  font-size: clamp(1.1875rem, 1rem + 1vw, 1.375rem);
  line-height: 1.45;
  max-width: 34ch;
}

.hero-note {
  font-size: var(--step--1);
  color: var(--ink-soft);
  max-width: 46ch;
}

/* The photo sits on an amber tile offset behind it, the same rounded
   square as the logo. */
.hero-photo {
  position: relative;
  margin: 0 1rem 1rem 0;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border-radius: var(--r-tile);
  background: var(--amber);
}

.hero-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--r-tile);
}

.hero-photo figcaption {
  position: absolute;
  left: 0.875rem;
  bottom: 0.875rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-control);
  background: #fff;
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 700;
}

/* On phones the photo sits straight under the headline, so people see
   who they would be calling before they scroll. */
@media (max-width: 51.99rem) {
  html {
    scroll-padding-bottom: calc(var(--mobile-bar-height) + 1rem);
  }
}

@media (max-width: 39.99rem) {
  .hero-grid {
    gap: 1.5rem;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy h1 {
    order: 1;
  }

  .hero-photo {
    order: 2;
    max-width: 26rem;
  }

  .hero-photo img {
    aspect-ratio: 4 / 3;
  }

  .hero-copy > :not(h1) {
    order: 3;
  }
}

@media (min-width: 40rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
  }

}

/* Between phone and desktop the headline column is narrow, so the
   headline steps down a size to keep its lines whole. */
@media (min-width: 40rem) {
  .hero-copy h1 {
    font-size: clamp(2rem, 4.2vw, 3.375rem);
  }
}

/* Eight years: the one loud moment on the page. The logo's A and V sit
   oversized in the corner, one shade off the band colour. */

.record {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding-block: var(--section);
}

.record-art {
  position: absolute;
  top: -2.5rem;
  right: -3.5rem;
  width: 13rem;
  height: auto;
  color: var(--navy-art);
  pointer-events: none;
}

.record-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
}

.record-statement h2 {
  font-size: var(--step-3);
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.record-statement p {
  margin-top: 1.25rem;
  max-width: 48ch;
  color: var(--on-navy-soft);
}

.record-facts {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.record-facts > div {
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.3);
}

.record-facts dt {
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 800;
  color: var(--amber);
}

@media (min-width: 40rem) {
  .record-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
  }

  .record-art {
    top: auto;
    right: -5rem;
    bottom: -6rem;
    width: min(24rem, 60vw);
  }
}

/* Section intros */

.section-intro {
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-intro p {
  color: var(--ink-soft);
}

/* Services */

.support {
  padding-block: var(--section);
}

.service {
  display: grid;
  gap: 1.25rem;
}

.service + .service {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.service-photo {
  width: 100%;
  max-width: 30rem;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--r-tile);
}

.service-photo-square {
  object-position: 50% 35%;
}

.service-copy {
  display: grid;
  gap: 0.85rem;
  align-content: center;
}

.service-copy h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  font-weight: 900;
}

.service-detail {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.service-detail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: 3px;
  background: var(--amber);
}

@media (min-width: 40rem) {
  .service {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 6vw, 5rem);
  }
}

/* Photos */

.days {
  padding-block: var(--section);
  background: var(--mist);
}

.days-grid {
  display: grid;
  gap: 1.5rem;
}

.days-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--r-tile);
}

.days-wide img {
  aspect-ratio: 3 / 2;
}

.days-tall img {
  aspect-ratio: 4 / 3;
}

.days-grid figcaption {
  margin-top: 0.6rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ink-soft);
}

@media (min-width: 40rem) {
  .days-grid {
    grid-template-columns: minmax(0, 1.125fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* Steps: numbered because the order is real. Amber, not cobalt, so the
   numbers do not look like buttons. */

.start {
  padding-block: var(--section);
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.4rem;
  border-radius: var(--r-control);
  background: var(--amber);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 900;
  line-height: 1;
}

.steps p {
  color: var(--ink-soft);
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  .steps li {
    padding-top: 1.25rem;
    border-top: 3px solid var(--mist);
  }
}

/* About */

.about {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  gap: 2rem;
}

.about-photo {
  width: 100%;
  max-width: 24rem;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 100%;
  border-radius: var(--r-tile);
}

.about-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.about-copy h3 {
  margin-top: 1rem;
}

@media (max-width: 39.99rem) {
  .about-photo {
    aspect-ratio: 4 / 5;
  }
}

@media (min-width: 40rem) {
  .about-grid {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
  }
}

/* Questions */

.questions {
  padding-block: var(--section);
  background: var(--mist);
}

.questions-grid {
  display: grid;
  gap: 2rem;
}

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  padding-inline: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: #fff;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  font-size: 1.625rem;
  font-weight: 900;
  line-height: 1;
  color: var(--blue);
}

.faq details[open] summary::after {
  content: "\2212";
  content: "\2212" / "";
}

.faq details p {
  padding-bottom: 1.25rem;
  color: var(--ink-soft);
}

@media (min-width: 52rem) {
  .questions-grid {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(2rem, 6vw, 5rem);
  }

  .questions-grid h2,
  .contact-direct {
    position: sticky;
    top: 6.5rem;
    align-self: start;
  }
}

/* Contact */

.contact {
  padding-block: var(--section);
  background: var(--navy);
  color: #fff;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-direct {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-number {
  width: fit-content;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--amber);
  text-decoration: none;
}

.contact-number:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.contact-small {
  font-size: var(--step--1);
  color: var(--on-navy-soft);
  max-width: 40ch;
}

.enquiry {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-tile);
}

.enquiry-intro,
.enquiry-hint {
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-pair {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 36rem) {
  .field-pair {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  font-size: var(--step--1);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--field-border);
  border-radius: var(--r-control);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: var(--step--1);
  font-weight: 700;
}

/* A field people never see; automated spam fills it in and is dropped. */
.enquiry-trap {
  position: absolute;
  left: -100rem;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry-status-error {
  color: var(--error);
}

.enquiry-result {
  display: grid;
  gap: 0.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.enquiry-preview {
  padding: 0.9rem 1rem;
  background: var(--mist);
  border-radius: var(--r-control);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.enquiry-status {
  min-height: 1.5em;
  font-size: var(--step--1);
  font-weight: 700;
}

@media (min-width: 52rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
  }
}

/* Page not found */

.not-found {
  display: grid;
  gap: 1.25rem;
  padding-block: 4rem;
}

/* Footer */

.site-footer {
  padding-block: 2.5rem calc(2.5rem + var(--mobile-bar-height));
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.footer-brand .brand-mark {
  width: 2.75rem;
  height: 2.75rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 900;
  color: var(--blue);
}

/* Call and text stay within thumb reach on phones */

.mobile-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}

.mobile-bar .button {
  padding-inline: 0.75rem;
}

.mobile-bar .button-primary {
  flex: 2 1 auto;
}

.mobile-bar .button-quiet {
  flex: 1 1 auto;
}

@media (min-width: 52rem) {
  .mobile-bar {
    display: none;
  }

  .site-footer {
    padding-bottom: 2.5rem;
  }
}

/* Short screens (landscape phones, high zoom): let the header and call bar
   scroll with the page so they do not cover the content. */
@media (max-height: 40rem) {
  .site-header,
  .mobile-bar {
    position: static;
  }

  .site-footer {
    padding-bottom: 2.5rem;
  }

  html {
    scroll-padding: 0;
  }
}

@media print {
  .site-header,
  .mobile-bar,
  .enquiry,
  .record-art {
    display: none;
  }

  .record,
  .contact {
    background: none;
    color: var(--ink);
  }

  .record-statement p,
  .record-facts dt,
  .contact-number,
  .contact-small,
  .button-outline-light {
    color: var(--ink);
    border-color: var(--ink);
  }
}
