@font-face {
  font-family: 'Livvic';
  src: url('../assets/fonts/Livvic-Regular.ttf');
}

@font-face {
  font-family: 'Livvic Bold';
  src: url('../assets/fonts/Livvic-Bold.ttf');
}

@font-face {
  font-family: 'Livvic SemiBold';
  src: url('../assets/fonts/Livvic-SemiBold.ttf');
}

@font-face {
  font-family: 'Livvic Medium Italic';
  src: url('../assets/fonts/Livvic-MediumItalic.ttf');
  font-style: italic;
}

:root {
  --midnight-green: #014e56;
  --light-coral: #f67e7e;
  --white: #ffffff;
  --rapture-blue: #79c8c7;
  --police-blue: #2c6269;
  --deep-jungle-green: #004047;
  --sacramento-green: #012f34;
  --dark-green: #002529;
}

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

body {
  margin: 0;
  font-family: 'Livvic', sans-serif;
  min-width: 0;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.h1-large {
  font-family: 'Livvic Bold', sans-serif;
  font-size: 100px;
  line-height: 100px;
}

.h1-small {
  font-family: 'Livvic Bold', sans-serif;
  font-size: 64px;
  line-height: 56px;
}

h2 {
  font-family: 'Livvic Bold', sans-serif;
  font-size: 48px;
  line-height: 48px;
  color: var(--sacramento-green);
}

h3 {
  font-family: 'Livvic Bold', sans-serif;
  font-size: 18px;
  line-height: 28px;
}

.body-1 {
  font-family: 'Livvic SemiBold', sans-serif;
  font-size: 18px;
  line-height: 28px;
}

.body-2 {
  font-family: 'Livvic SemiBold', sans-serif;
  font-size: 15px;
  line-height: 25px;
}

.short-separator {
  margin: 0;
  width: 50px;
  height: 4px;
  background: var(--light-coral);
  border: none;
}

/* Navigation */
.header-home {
  background-color: var(--midnight-green);
  height: auto;
  padding-top: 73px;
}

nav {
  height: 48px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

nav > img {
  width: 160px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 18px;
  line-height: 28px;
  font-family: 'Livvic SemiBold', sans-serif;
}

.nav-links a:hover {
  color: var(--light-coral);
}

.nav-links .nav-contact {
  margin-left: auto;
  padding: 8px 32px;
  border: 2px solid var(--white);
  border-radius: 24px;
}

.nav-links .nav-contact:hover {
  background-color: var(--white);
  color: var(--dark-green);
}

/* Home - Hero */
#hero {
  background: var(--midnight-green);
  color: var(--white);
  position: relative;
  min-height: 579px;
  padding-top: 129px;
  overflow: hidden;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.hero-content h1 {
  margin: 0;
  width: 635px;
}

.hero-content h1 span {
  color: var(--light-coral);
}

.hero-description {
  width: 445px;
}

.hero-description hr {
  background: var(--rapture-blue);
}

.hero-description p {
  margin: 79px 0 0;
}

#hero::before,
#hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

#hero::before {
  left: 0;
  top: 129px;
  width: 100px;
  height: 200px;
  background: url('../assets/images/background/home-header1.svg') no-repeat;
}

#hero::after {
  right: max(20px, calc((100% - 1110px) / 2));
  bottom: 0;
  width: 358px;
  height: 100px;
  background: url('../assets/images/background/home-header2.svg') no-repeat;
}

/* Home - Features */
#features {
  background-color: var(--sacramento-green);
  padding-block: 140px;
  color: var(--white);
  position: relative;
  min-height: 684px;
  overflow: hidden;
}

#features h2 {
  color: var(--white);
  margin: 56px 0 0;
}

#features h3 {
  margin: 0 0 16px;
  color: var(--light-coral);
}

#features p {
  margin: 0;
}

.features-decoration {
  position: absolute;
  bottom: 0;
  right: 0;
}

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

.features-list {
  list-style: none;
  margin: 58px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.features-item {
  display: flex;
  gap: 23px;
  align-items: start;
}

.features-item img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.features-heading {
  width: 445px;
  flex-shrink: 0;
}

.features-text {
  width: 445px;
}

/* Home - Testimonials */
#testimonials {
  position: relative;
  background: var(--deep-jungle-green);
  padding: 140px 24px;
  min-height: 745px;
  overflow: hidden;
  text-align: center;
}

.testimonials-container {
  max-width: 1110px;
  margin: 0 auto;
}

.testimonials-bg-top {
  position: absolute;
  top: 0;
  left: 0;
}

.testimonials-bg-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
}

#testimonials h2 {
  max-width: 932px;
  margin: 0 auto 56px;
  color: var(--white);
}

#testimonials h2 span,
.testimonial-card h3 {
  color: var(--rapture-blue);
}

.testimonials-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  position: relative;
  padding-top: 36px;
}

.apostrophe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.quote-text {
  position: relative;
  color: var(--white);
  font:
    15px/25px 'Livvic SemiBold',
    sans-serif;
  margin: 0 0 24px;
}

.testimonial-card h3 {
  margin: 0 0 2px;
}

.testimonial-card .role {
  color: var(--white);
  font-size: 13px;
  line-height: 18px;
  font-style: italic;
  margin: 0 0 32px;
}

.testimonial-card .avatar {
  width: 66px;
  height: 66px;
  border: 2px solid #c4fffe;
  border-radius: 50%;
  object-fit: cover;
}

/* CTA */
#cta {
  background-color: var(--light-coral);
  height: 200px;
  position: relative;
  z-index: 1;
}

#cta .container {
  max-width: 957px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cta-background {
  position: absolute;
  left: 0;
  bottom: 0;
}

.cta-contact {
  display: inline-block;
  padding: 8px 32px;
  border: 2px solid var(--sacramento-green);
  border-radius: 24px;
  color: var(--sacramento-green);
  font-size: 18px;
  font-family: 'Livvic SemiBold', sans-serif;
  text-decoration: none;
  line-height: 28px;
}

.cta-contact:hover {
  background-color: var(--sacramento-green);
  color: var(--white);
}

/* Footer */
.site-footer {
  background: var(--dark-green);
  color: var(--white);
  padding: 48px 0;
  font-family: 'Livvic SemiBold', sans-serif;
}

.site-footer > .container {
  width: 100%;
  max-width: 1150px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 285px 1fr auto;
  min-height: 100px;
  align-items: start;
  gap: 0;
}

.footer-brand img {
  display: block;
  width: 160px;
  height: 40px;
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
  font-size: 18px;
  line-height: 28px;
}

.site-footer a:hover {
  color: var(--light-coral);
}

.site-footer address,
.site-footer p {
  font-family: 'Livvic SemiBold', sans-serif;
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  line-height: 25px;
  letter-spacing: 0;
  color: var(--white);
  opacity: 0.6;
  margin: 0;
}

.site-footer address {
  padding: 0;
}

.site-footer address::first-line {
  word-spacing: 2px;
}

.footer-end {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  text-align: right;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.footer-social img {
  display: block;
  width: 24px;
  height: 24px;
}

.footer-social a:hover img,
.footer-social a:focus-visible img {
  filter: brightness(0) saturate(100%) invert(65%) sepia(48%) saturate(1075%)
    hue-rotate(310deg) brightness(101%) contrast(93%);
}

/* Tablet */
@media (max-width: 1024px) {
  /* Navigation */
  nav,
  .nav-links,
  .header-links {
    gap: 40px;
  }

  /* Hero */
  .header-home {
    min-height: 700px;
  }

  #hero {
    padding: 112px 40px 256px;
    text-align: center;
  }

  #hero::before {
    display: none;
  }

  #hero::after {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 683px;
    margin: 0 auto;
  }

  .hero-content h1 {
    width: auto;
    font-size: 64px;
    line-height: 56px;
    max-width: 450px;
  }

  .hero-description {
    width: 100%;
    max-width: 457px;
  }

  .hero-description hr {
    display: none;
  }

  .hero-description p {
    margin-top: 0;
    font-size: 15px;
    line-height: 28px;
  }

  /* Features */
  #features {
    padding: 97.5px 0;
  }

  .features-content {
    flex-direction: column;
    gap: 64px;
    max-width: 573px;
    padding: 0;
  }

  .features-heading,
  .features-list {
    width: 573px;
    flex: none;
  }

  .features-list {
    margin-top: 0;
    gap: 32px;
  }

  .features-heading {
    max-width: 445px;
  }

  .features-text {
    width: auto;
  }

  #features h2 {
    margin-top: 32px;
    font-size: 32px;
    line-height: 32px;
  }

  .features-decoration {
    position: absolute;
    top: 0;
    right: 0;
  }
  .body-2 {
    font-size: 15px;
    line-height: 25px;
    width: 478px;
  }

  /* Testimonials */
  #testimonials {
    min-height: 1199px;
    padding: 100px 24px;
  }

  .testimonials-container {
    max-width: 573px;
    margin: 0 auto;
    padding: 0;
  }

  #testimonials h2 {
    max-width: 480px;
    font-size: 32px;
    line-height: 32px;
    margin: 0 auto 48px;
  }

  .testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }

  .testimonial-card {
    max-width: 573px;
    width: 100%;
  }

  .quote-text {
    margin-bottom: 16px;
  }

  .testimonial-card .role {
    font-family: 'Livvic Medium Italic', sans-serif;
    margin-bottom: 16px;
  }

  .testimonial-card .avatar {
    width: 62px;
    height: 62px;
  }

  /* CTA */
  #cta {
    height: 200px;
    overflow: hidden;
  }
  #cta .container {
    max-width: 573px;
    height: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    z-index: 1;
  }

  #cta h2 {
    font-size: 32px;
    line-height: 32px;
    margin: 0;
  }

  .cta-background {
    bottom: -22px;
    left: 0;
  }

  .cta-contact {
    width: 153px;
    height: 48px;
    padding: 9px 33px 11px 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  /* FOOTER */
  .site-footer {
    height: 271px;
    padding: 56px 40px;
  }

  .site-footer > .container {
    max-width: 688px;
    padding: 0;
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 32px;
  }

  .footer-brand {
    width: auto;
    height: auto;
  }

  .footer-brand img {
    width: 96px;
    height: 24px;
    margin-bottom: 53px;
  }

  .footer-links {
    gap: 24px;
  }

  .site-footer a {
    width: auto;
    font-size: 15px;
    line-height: 25px;
  }

  .site-footer address {
    text-align: right;
  }

  .footer-end {
    flex-basis: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: right;
  }
}

/* Mobile */
@media (max-width: 767px) {
  /* Header */
  .header-home {
    min-height: 567px;
  }

  #hero {
    min-height: 479px;
    padding: 80px 24px 100px;
    text-align: center;
  }

  #hero::before {
    display: none;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 327px;
    padding: 0;
    margin: 0 auto;
  }

  .hero-content h1 {
    width: auto;
    font-size: 40px;
    line-height: 40px;
    max-width: 327px;
    height: 80px;
  }

  .hero-description {
    width: 100%;
    min-width: min(327px, 100%);
    max-width: 327px;
    height: auto;
  }

  .hero-description hr {
    display: none;
  }

  .hero-description p {
    margin-top: 0;
    font-size: 15px;
    line-height: 28px;
  }

  /* Testimonials */
  #testimonials {
    min-height: 0;
    max-height: 1410px;
    padding: 140px 24px 164px;
  }

  #testimonials h2 {
    font-size: 32px;
    line-height: 32px;
    margin-bottom: 48px;
  }

  .testimonials-list {
    flex-direction: column;
    gap: 40px;
  }

  .testimonial-card .role {
    margin-bottom: 16px;
  }

  .testimonial-card .avatar {
    width: 66px;
    height: 66px;
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
  }

  /* CTA */
  #cta {
    height: auto;
    min-height: 302px;
    padding: 80px 24px;
  }

  #cta .container {
    position: relative;
    height: auto;
    margin-top: 3px;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    text-align: center;
    padding: 0;
  }

  #cta h2 {
    max-width: 260px;
  }

  .cta-contact {
    flex-shrink: 0;
  }

  /* Footer */
  .site-footer {
    height: auto;
    min-height: 432px;
    padding: 65px 24px;
  }

  .site-footer > .container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    padding: 0;
  }

  .footer-brand,
  .site-footer address,
  .site-footer p {
    width: auto;
    height: auto;
    text-align: center;
  }

  .footer-brand img {
    margin: 0 auto 24px;
  }

  .footer-links,
  .footer-social {
    justify-content: center;
  }

  .footer-end {
    flex-basis: auto;
    margin-top: 16px;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }

  .footer-social a {
    width: auto;
  }
}

@media (max-width: 374px) {
  #testimonials {
    max-height: none;
  }
}
