/* Tree of Life Celebrations
   Palette from the logo (rose-gold leaves) and Oonagh's photography (lake at dusk).
   Type: Spectral for reading, Hanken Grotesk for interface text. */

:root {
  --dusk: #2A2442;
  --dusk-soft: #4A4363;
  --leaf: #B98A6E;
  --mist: #EEF1F4;
  --page: #FFFFFF;
  --text: #3A3546;
  --line: #CDD3DB;

  --serif: "Spectral", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  /* Classic typographic scale: 14 / 18 / 21 / 24 / 36 / 48 / 60 */
  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.875rem, 1.4rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.4vw, 3rem);
  --step-5: clamp(2.5rem, 1.6rem + 3.6vw, 3.75rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(4rem, 3rem + 4vw, 7rem);
  --measure: 65ch;
  --radius: 4px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Elements with their own display (flex, grid) must still hide when [hidden] is set */
[hidden] {
  display: none !important;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--dusk);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

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

a {
  color: var(--dusk);
  text-decoration-color: var(--leaf);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a[href^="tel:"] {
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--dusk);
  outline-offset: 3px;
}

.contact :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

/* Anchor links land below the sticky header (84px) */
[id] {
  scroll-margin-top: 6rem;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.section-title {
  font-size: var(--step-3);
  margin-bottom: 0.5em;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--dusk);
}

.small-print {
  font-family: var(--sans);
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--dusk-soft);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--dusk);
  border-radius: var(--radius);
  background: var(--dusk);
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.button:hover {
  background: var(--dusk-soft);
}

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

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

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}

.phone-link {
  font-family: var(--sans);
  font-weight: 600;
  white-space: nowrap;
}

/* Leaf list: the logo's leaf as the list marker */
.leaf-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaf-list > li {
  position: relative;
  padding-left: 1.75rem;
}

.leaf-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.65rem;
  height: 1rem;
  background: url("../images/leaf.svg") no-repeat center / contain;
}

/* Header */
/* Stays at the top of the screen while scrolling */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--dusk);
  color: #fff;
}

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

.site-header__logo img {
  width: 56px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 1rem;
}

.site-nav__list a:not(.button) {
  color: #fff;
  text-decoration: none;
  padding-block: 0.5rem;
}

.site-nav__list a:not(.button):hover {
  text-decoration: underline;
  text-decoration-color: var(--leaf);
}

.site-nav__booking {
  margin-left: 1rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}

.menu-toggle__bars {
  position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before {
  top: -6px;
}

.menu-toggle__bars::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 991px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    background: var(--dusk);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__list a:not(.button) {
    display: block;
    padding-block: 0.75rem;
    font-size: 1.125rem;
  }

  .site-nav__booking {
    margin: 0.75rem 0 0;
  }

  .site-nav__booking .button {
    width: 100%;
  }
}

/* Floating call button: funeral directors ring rather than email */
.call-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--dusk);
  box-shadow: 0 4px 16px rgba(42, 36, 66, 0.3);
}

.call-fab img {
  width: 26px;
}

@media (max-width: 479px) {
  .call-fab {
    right: 1rem;
    bottom: 1rem;
  }
}

/* Hero */
.hero {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

.motto {
  margin: 0 0 2.5rem;
}

.motto__line {
  margin: 0;
}

.motto__line--en {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  color: var(--dusk);
  font-size: var(--step-5);
  font-weight: 300;
  line-height: 1.1;
}

.motto__line--translation {
  padding-block: 0.3rem;
  color: var(--dusk-soft);
  font-size: var(--step-1);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
}

.motto__lang {
  margin-left: 0.6rem;
  white-space: nowrap;
  color: var(--leaf);
  font-family: var(--sans);
  font-size: var(--step--1);
  font-style: normal;
  font-weight: 500;
}

.hero__title {
  max-width: 34ch;
  margin-bottom: 0.75rem;
  font-size: var(--step-2);
  line-height: 1.35;
}

.hero__intro {
  max-width: 52ch;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 40% 30%;
  border-radius: var(--radius);
}

.accreditations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.accreditations img {
  width: auto;
  height: 52px;
}

/* The one moment of motion: the four languages arrive in turn on load */
@media (prefers-reduced-motion: no-preference) {
  .motto__line {
    animation: motto-in 0.9s ease-out both;
  }

  .motto__line:nth-child(2) { animation-delay: 0.35s; }
  .motto__line:nth-child(3) { animation-delay: 0.6s; }
  .motto__line:nth-child(4) { animation-delay: 0.85s; }
}

@keyframes motto-in {
  from {
    opacity: 0;
    transform: translateY(0.4em);
  }
}

@media (max-width: 767px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__photo {
    max-width: 420px;
  }
}

/* "Heading left, content right" */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.split__body {
  max-width: var(--measure);
}

@media (max-width: 767px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.promises > li + li {
  margin-top: 1.75rem;
}

.promises h3 {
  margin-bottom: 0.25rem;
  font-size: var(--step-2);
}

/* Funeral directors worked with */
.partners {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.partners__title {
  margin-bottom: 1.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
}

.partners__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partners__list img {
  width: auto;
  max-width: 150px;
  height: 56px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
}

/* Funeral homes without a logo: a grey block the same height as the logos */
.partners__name {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 56px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  background: #DDE2E8;
  color: var(--dusk-soft);
  font-size: 0.9375rem;
  line-height: 1.2;
  text-align: center;
}

/* How it works */
/* Measured in the lead's own (larger) size, so a one-sentence intro stays on one line */
.section-intro .lead {
  max-width: 72ch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.25rem;
  object-fit: cover;
  border-radius: var(--radius);
}

.steps h3 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: var(--step-2);
}

.steps h3::before {
  counter-increment: step;
  content: counter(step);
  color: var(--leaf);
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1;
}

@media (max-width: 767px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.featured-quote {
  margin: 2.5rem 0 clamp(3rem, 2rem + 3vw, 4.5rem);
}

.featured-quote blockquote {
  max-width: 22ch;
  margin: 0;
  color: var(--dusk);
  font-size: var(--step-4);
  font-weight: 300;
  line-height: 1.2;
}

.featured-quote figcaption {
  margin-top: 1rem;
  color: var(--dusk-soft);
  font-family: var(--sans);
  font-size: 1rem;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}

.testimonial {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.testimonial blockquote {
  margin: 0;
}

.testimonial figcaption {
  margin-top: 1rem;
  color: var(--dusk);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
}

.read-more {
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dusk);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--leaf);
  text-underline-offset: 0.2em;
  cursor: pointer;
}

@media (max-width: 767px) {
  .testimonials {
    grid-template-columns: 1fr;
  }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.services-grid__text {
  max-width: var(--measure);
}

.service-list {
  columns: 2 15rem;
  column-gap: 2rem;
  margin: 2rem 0;
}

.service-list li {
  margin-bottom: 0.6rem;
  break-inside: avoid;
}

.video-frame {
  margin: 0;
}

.video-frame iframe,
.video-frame video {
  width: 100%;
  max-width: 343px;
  height: auto;
  aspect-ratio: 343 / 610;
  border: 0;
  border-radius: var(--radius);
  background: var(--dusk);
}

.video-frame figcaption {
  max-width: 343px;
  margin-top: 1rem;
}

.video-frame h3 {
  margin-bottom: 0.4rem;
  font-size: var(--step-1);
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

/* The portrait is a pre-cut circle (transparent PNG) */
.about__photo img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.about__body {
  max-width: var(--measure);
}

.signature {
  color: var(--dusk-soft);
  font-style: italic;
}

@media (max-width: 767px) {
  .about {
    grid-template-columns: 1fr;
  }

  .about__photo {
    max-width: 360px;
  }
}

/* Closing contact band */
.contact {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5rem, 4rem + 5vw, 8rem);
  background: var(--dusk) url("../images/contact-background.jpg") center 60% / cover no-repeat;
  color: #fff;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(42, 36, 66, 0.92) 0%, rgba(42, 36, 66, 0.78) 55%, rgba(42, 36, 66, 0.4) 100%);
}

.contact__inner {
  max-width: 40rem;
}

.contact h2 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: var(--step-4);
  font-weight: 300;
}

.contact__phone {
  display: inline-block;
  margin-top: 1.5rem;
  color: #fff;
  font-size: var(--step-4);
  font-weight: 300;
  line-height: 1.1;
  text-decoration: none;
}

.contact__phone:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.contact__email {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--sans);
}

.contact a:not(.button) {
  color: #fff;
}

/* Footer */
.site-footer {
  padding-block: 3rem 6rem; /* clears the floating call button */
  background: var(--dusk);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--sans);
  font-size: var(--step--1);
}

.site-footer a {
  color: #fff;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer__logo img {
  width: 56px;
}

.social {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Page headings on inner pages */
.page-head {
  max-width: var(--measure);
  margin-bottom: 3rem;
}

.page-head h1,
.prose h1,
.form-page__intro h1 {
  font-size: var(--step-4);
  font-weight: 300;
}

.page-head h1 {
  margin-bottom: 1rem;
}

/* Booking chooser */
.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.choice {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--page);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s;
}

.choice:hover {
  border-color: var(--dusk);
}

.choice img {
  width: 100%;
  aspect-ratio: 37 / 20;
  object-fit: cover;
}

.choice__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.choice h2 {
  margin-bottom: 0.5rem;
  font-size: var(--step-2);
}

.choice__cta {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--dusk);
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--leaf);
  text-underline-offset: 0.2em;
}

.reassurance {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  color: var(--dusk-soft);
  font-style: italic;
}

.reassurance::before {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 1rem;
  background: url("../images/leaf.svg") no-repeat center / contain;
}

@media (max-width: 860px) {
  .choices {
    grid-template-columns: 1fr;
  }

  .choice {
    flex-direction: row;
  }

  .choice img {
    width: 38%;
    aspect-ratio: auto;
  }
}

@media (max-width: 479px) {
  .choice {
    flex-direction: column;
  }

  .choice img {
    width: 100%;
    aspect-ratio: 37 / 20;
  }
}

/* Enquiry forms */
.form-page {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.form-page__intro h1 {
  margin: 1.5rem 0 1rem;
}

.back-link {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
}

.back-link::before {
  content: "← ";
}

.form-panel {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--page);
}

.form-panel h2 {
  margin-bottom: 1.25rem;
  font-size: var(--step-1);
}

.form-panel h2:not(:first-of-type) {
  margin-top: 2rem;
}

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

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.field label {
  margin-bottom: 0.4rem;
  color: var(--dusk);
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8A8796;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--dusk);
  outline: 2px solid var(--dusk);
  outline-offset: 0;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.5rem 0 1.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}

.checkbox input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--dusk);
}

.checkbox small {
  display: block;
  color: var(--dusk-soft);
  font-size: var(--step--1);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cf-turnstile {
  margin-bottom: 0.5rem;
}

.form-status {
  display: none;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1rem;
}

.form-status.is-visible {
  display: block;
}

.form-status--done {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--page);
}

.form-status--done h2 {
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 300;
}

.form-status--fail {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid #A23B3B;
  background: #F8EDED;
  color: #5E1F1F;
}

.form-status--fail a {
  color: inherit;
}

form[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .form-page,
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* Long-form pages (privacy, terms) */
.prose {
  max-width: var(--measure);
}

.prose h1 {
  margin-bottom: 1.5rem;
}

/* Support links */
.support-list {
  max-width: var(--measure);
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-list li {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}

.support-list h2 {
  margin-bottom: 0.25rem;
  font-size: var(--step-1);
}

.support-list a {
  font-family: var(--sans);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Funeral director enquiry: step 1 (availability) and step 2 summary */
.button--outline {
  background: transparent;
  color: var(--dusk);
}

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

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.step-count {
  margin-bottom: 0.25rem;
  color: var(--dusk-soft);
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
}

.avail-notice {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--leaf);
  background: var(--mist);
  font-family: var(--sans);
  font-size: 0.9375rem;
}

.avail-notice--error {
  border-left-color: #A23B3B;
  background: #F8EDED;
  color: #5E1F1F;
}

.avail-days {
  margin: 0.5rem 0 1.5rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.avail-days[aria-busy='true'] {
  min-height: 6rem;
  opacity: 0.5;
}

.avail-day {
  border-bottom: 1px solid var(--line);
}

.avail-day__toggle {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  gap: 0.25rem 1rem;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 0.75rem 0.25rem;
  border: 0;
  background: none;
  color: var(--dusk);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.avail-day__toggle::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--dusk-soft);
  border-bottom: 2px solid var(--dusk-soft);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s;
}

.avail-day__toggle[aria-expanded='true']::after {
  transform: rotate(-135deg) translateY(-2px);
}

.avail-day__toggle:hover {
  background: var(--mist);
}

.avail-day__date {
  font-family: var(--sans);
  font-weight: 600;
}

.avail-day--free .avail-day__status::before,
.avail-day--partial .avail-day__status::before {
  content: '';
  display: inline-block;
  width: 0.55rem;
  height: 0.85rem;
  margin-right: 0.5rem;
  background: url('../images/leaf.svg') no-repeat center / contain;
}

.avail-day--full .avail-day__toggle,
.avail-day--unavailable .avail-day__toggle {
  color: #7A7689;
}

.avail-pick {
  padding: 0.5rem 0.25rem 1.5rem;
}

.avail-pick .field {
  max-width: 20rem;
}

.slot-summary {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--leaf);
  background: var(--mist);
}

.slot-summary h2 {
  margin: 0 0 0.25rem;
  font-size: var(--step-1);
}

.slot-summary__note {
  margin: 0.25rem 0 0;
  color: var(--dusk-soft);
  font-family: var(--sans);
  font-size: 0.9375rem;
}

.slot-summary .read-more {
  margin-top: 0.5rem;
}

.slot-fields {
  margin: 0;
  padding: 0;
  border: 0;
}

@media (max-width: 479px) {
  .avail-day__toggle {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .avail-day__status {
    grid-column: 1;
  }

  .avail-day__toggle::after {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* Radio button groups (e.g. "OK to contact the next of kin now?") */
.choice-group {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: 0.6rem;
  padding: 0;
  color: var(--dusk);
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
}

.choice-group .checkbox {
  margin: 0 0 0.5rem;
}

/* Private page: where Oonagh already is that day */
.avail-day__where {
  grid-column: 2;
  color: var(--dusk-soft);
  font-family: var(--sans);
  font-size: var(--step--1);
}

@media (max-width: 479px) {
  .avail-day__where {
    grid-column: 1;
  }
}

/* Long-form pages: section headings and lists */
.prose h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: var(--step-2);
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.3rem;
}
