/* BASE */

@font-face {
  font-family: 'Avenir';
  src: url('font/avenirltproheavy-webfont.woff2') format('woff2'),
       url('font/avenirltproheavy-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  --blue-100: #bde8f4;
  --blue-300: #83cee3;
  --blue-500: #1f9cbe;
  --blue-700: #0b3642;
  --blue-900: #041216;
  --orange: #ecae48;
  --white: #fff;
}

* {
  font-family: 'Avenir', sans-serif;
  transition-duration: 300ms;
}

/* UTILITIES */

.sr-only {
  border-width: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* LAYOUT */

body {
  color: var(--blue-900);
  text-align: center;
}

.centre {
  margin: auto;
  max-width: 1280px;
}

header,
section {
  padding: 48px 16px;
  
  @media (width >= 880px) {
    padding: 128px 80px;
  }
}

/* TYPOGRAPHY */

h2 ,
h3 {
  font-size: 1.5rem; /* 24px */
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* COMPONENTS */

.buttons {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;

  @media (width >= 880px) {
    flex-direction: row;
  }
}

.button {
  align-items: center;
  background: var(--blue-100);
  border-radius: 8px;
  color: var(--blue-900);
  display: flex;
  font-size: 1.25rem; /* 20px */
  gap: 8px;
  justify-content: center;
  padding: 8px 16px;
  text-decoration: none;
  transition-property: scale;

  &:hover {
    scale: 1.05;
  }

  img {
    width: 32px;
  }
}

/* HEADER */

header > .centre {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 48px;

  @media (width >= 880px) {
    gap: 80px;
  }
}

.logo {
  max-width: 406px;
  margin-bottom: 16px;
  width: 100%;
}

.subtitle {
  font-size: 1.25rem; /* 20px */
}

.taxi-image {
  border-radius: 32px;
  max-width: 304px;
  width: 100%;
}

.contact-cta {
  width: 100%;
}

.buttons-heading {
  margin-bottom: 16px;
}

/* SERVICES */

.section--services {
  background: var(--blue-300);
  
  > .centre {
    display: flex;
    flex-direction: column;
    gap: 48px;

    @media (width >= 880px) {
      flex-direction: row;
    }
  }
}

.service {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  
  @media (width >= 880px) {
    gap: 48px;
  }
}

/* TESTIMONIALS */

.section--testimonials > .centre {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 48px;

  @media (width >= 800px) {
    gap: 80px;
  }
}

.review-cta {
  width: 100%;
}

.buttons-heading {
  margin-bottom: 16px;
}

.testimonials {
  display: flex;
  flex-direction: column;
  gap: 32px;

  @media (width >= 880px) {
    flex-direction: row;
  }
}

.testimonial {
  align-items: flex-start;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  text-align: left;

  > img {
    width: 32px;
  }
}

/* CONTACT */

.section--contact {
  background: var(--blue-700);
  color: var(--white);
  font-size: 1.5rem; /* 24px */

  > .centre {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  a {
    color: var(--white);
    text-decoration-thickness: from-font;
    text-underline-offset: 6px;

    &:hover {
      color: var(--orange);
    }
  }
}

/* FOOTER */

footer {
  background: var(--blue-900);
  color: var(--white);
  font-size: 0.8125rem; /* 13px */
  padding: 12px 0;

  > .centre {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;

    @media (width >= 480px) {
      flex-direction: row;
    }
  }

  span {
    display: none;

    @media (width >= 480px) {
      display: inline;
    }
  }

  a {
    color: var(--white);
    text-underline-offset: 3px;

    &:hover {
      color: var(--orange);
    }
  }
}
