/* css resets */
/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

ul {
  list-style: none;
  padding-left: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* font styles */
html {
  font-size: 1rem;
}

body {
  font-family: "Roboto", system-ui, "Segoe UI", Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.3rem;
}

h3 {
  font-size: 1.5rem;
}

.hero > p {
  font-size: 1.2rem;
}

blockquote {
  font-size: calc(1.5rem + 0.5vw);
}

.hero,
h2,
.testimonial,
footer,
.call-to-action-card {
  text-align: center;
}

footer p {
  font-size: 0.5rem;
}

/* colors */
header,
main,
footer {
  background-color: #1f2937;
}

header h3 {
  color: #f9faf8;
}

main h1,
button,
.call-to-action-card {
  color: #f9faf7;
}

main p,
ul,
footer p {
  color: #e5e7eb;
}

.info-section h2 {
  color: #1f2937;
}

.info-images img {
  border: 4px solid #3882f6;
}

.testimonial-section {
  background-color: #e5e7eb;
}

button,
.call-to-action-card {
  background-color: #3882f6;
}

.hero-image-container,
.call-to-action-card button {
  border: 2px solid #f9faf7;
}

/* global styles */
.container {
  width: 90%;
  margin: 0 auto;
  max-width: 960px;
}

.header-links {
  display: none;
}

main,
section {
  padding-top: 3em;
  padding-bottom: 3em;
}

header,
footer {
  padding: 1em;
}

button {
  padding: 0.5em 1.5em;
  margin-top: 1em;
  border: none;
}

.hero-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

.hero-image-container {
  height: 10em;
}

.info-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.info-images figure {
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.info-images > figure > img {
  height: 200px;
  width: 100%;
  border-radius: 8px;
}

button,
.call-to-action-card {
  border-radius: 4px;
}

.call-to-action-card {
  display: block;
  padding: 1em clamp(2em, 10%, 6em);
}

footer ul {
  margin-bottom: 1em;
}

/* mobile layout */
@media only screen and (max-width: 400px) {
  .hero,
  .hero-image-container {
    width: 100%;
  }
}

/* tablet layout */
@media only screen and (min-width: 401px) and (max-width: 799px) {
  .hero,
  .hero-image-container {
    width: 100%;
  }

  .info-images figure {
    width: 50%;
  }
}

/* desktop layout */
@media only screen and (min-width: 800px) {
  .hero,
  .testimonial {
    text-align: left;
  }

  .page-header {
    display: flex;
    justify-content: space-between;
  }

  .header-links {
    gap: 1em;
  }

  .links {
    display: flex;
    justify-content: space-around;
  }

  main,
  section {
    margin-bottom: 0;
  }

  .hero-image-container {
    height: 160px;
  }

  .hero,
  .hero-image-container {
    flex: 1;
  }

  .info-images figure {
    flex: 1;
    max-width: 300px;
  }

  .testimonial {
    width: 80%;
    margin: 0 auto;
  }

  .call-to-action-card {
    text-align: left;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
}
