/******************************************/
/* RESET
/*******************************************/

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

html {
  box-sizing: border-box;
  font-size: 62.5%;
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;

  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;

  color: var(--dark);
}

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

/******************************************/
/* VARIABLES
/*******************************************/

:root {
  --cream: #f5f4c6;
  --green: #2aa77f;
  --light-gray: #edeff2;
  --dark: #192024;
  --blue: #3b99d9;
  --gray-text: #676770;
  --white: #ffffff;
  --border: #dcebf7;
}

/******************************************/
/* GLOBAL STYLES
/*******************************************/

section {
  padding: 8rem 2rem;
}

.container {
  width: 100%;
  max-width: 110rem;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4.8rem;
}

.section-title {
  margin: 0 0 1.6rem;

  font-family: "Oswald", sans-serif;
  font-size: 3.2rem;
  letter-spacing: 0.3rem;
  line-height: 1.2;

  color: var(--gray-text);
}

.section-subtitle {
  margin: 0;

  letter-spacing: 0.2rem;
  line-height: 1.5;
  font-family: "Inter", sans-serif;
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 4.8rem;

  padding: 1.2rem 3rem;
  margin-top: 4rem;
  font-family: "Inter", sans-serif;
  background-color: var(--green);

  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.2rem;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/******************************************/
/* LAYOUT
/*******************************************/

.wrapper {
  display: flex;
  flex-direction: column;
}

/******************************************/
/* HEADER / NAVBAR
/*******************************************/

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;

  background-color: var(--cream);
  border-bottom: 0.1rem solid rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-link {
  display: flex;
  align-items: center;

  text-decoration: none;
}

.nav-logo {
  width: 100%;
  max-width: 15rem;
  height: auto;

  object-fit: contain;
}

.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 3.2rem;

  margin: 0;
  padding: 0;

  list-style: none;
}

.nav-list a {
  position: relative;

  color: var(--dark);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05rem;

  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: var(--green);
}

.nav-list a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -0.6rem;

  width: 0;
  height: 0.2rem;

  background-color: var(--green);

  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 4.4rem;

  padding: 1rem 2rem;

  background-color: var(--green);

  color: var(--white);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.1rem;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.nav-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;

  background: none;
  border: none;
  cursor: pointer;

  font-size: 3rem;
  color: var(--dark);
}

/******************************************/
/* MOBILE NAV
/*******************************************/

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    align-items: center;
  }

  .menu-toggle {
    display: block !important;
    font-size: 3.5rem;
    color: black;
    padding: 0.5rem 1rem;
    z-index: 9999;
  }

  .main-nav {
    order: 3;

    width: 100%;
    margin-left: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;

    gap: 2rem;

    padding-top: 2rem;
    padding-left: 2rem;
    padding-bottom: 2rem;
  }

  .nav-btn {
    display: none;
  }

  .nav-logo {
    max-width: 18rem;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.active {
    display: block;
  }
}

/******************************************/
/* HERO
/*******************************************/

#hero {
  display: flex;
  align-items: center;

  min-height: 72rem;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6)),
    url("../images/fraem-gmbh-rBY5Ek86oOI-unsplash.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 96rem;
}

.hero-content .section-subtitle {
  color: var(--cream);
  font-family: "Oswald", sans-serif;
}

.hero-content h1 {
  margin: 2rem 0;

  font-size: 7.6rem;
  line-height: 1.2;
  letter-spacing: 0.3rem;
  color: var(--white);
  font-family: "Merriweather", serif;
  font-optical-sizing: auto;
  font-weight: 300;
}

.hero-content p {
  max-width: 94rem;

  color: var(--cream);
  font-size: 1.7rem;
  line-height: 1.8;
}

/******************************************/
/* SERVING
/*******************************************/

#serving {
  background-color: var(--light-gray);
  font-family: "Oswald", sans-serif;
}

.card-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.card {
  width: 100%;
  max-width: 30rem;

  padding: 2.7rem;

  background-color: var(--white);
  border: 0.5rem solid var(--border);
}

.card img {
  height: 16.5rem;
  object-fit: cover;
  margin-bottom: 2rem;
}

.card h3 {
  margin: 0 0 1.6rem;

  font-family: "Oswald", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.2rem;

  color: var(--green);
}

.card p,
.card li {
  font-size: 1.4rem;
}

.card nav {
  margin-bottom: 2rem;
}

.card nav:last-of-type {
  margin-bottom: 0;
}

.card ul {
  margin: 0;
  padding-left: 2rem;
}

.card li {
  margin-bottom: 0.8rem;
}

/******************************************/
/* ABOUT
/*******************************************/

#about {
  background-color: var(--dark);
}

#about .section-title {
  color: var(--green);
  font-family: "Oswald", sans-serif;
}

.about-grid {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.about-image-wrapper {
  flex: 0 1 43.4rem;

  width: 100%;
  max-width: 43.4rem;

  height: 64rem;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  border: 0.4rem solid var(--green);
}

.about-content {
  flex: 1.2;
  min-width: 30rem;
}

.about-content p,
.features-list li {
  color: #d1d1d1;
}

.about-content p {
  margin-top: 0;
  margin-bottom: 2rem;
}

.features-list {
  margin: 0 0 3rem;
  padding: 0;

  list-style: none;
}

.features-list li {
  position: relative;

  padding-left: 2rem;
  margin-bottom: 1rem;
}

.features-list li::before {
  content: "•";

  position: absolute;
  left: 0;

  color: var(--green);
}

.mission-statement {
  font-style: italic;
}

/******************************************/
/* OWNER
/*******************************************/

#owner {
  background-color: #60b889;
  padding: 2rem;
  font-family: "Inter", sans-serif;
}

.owner-quote {
  margin: 0;

  text-align: center;
}

.owner-quote p {
  margin-bottom: 1rem;

  font-size: 2rem;
}

.owner-quote cite {
  font-style: normal;
  font-weight: 700;
}

/******************************************/
/* SERVICES
/*******************************************/

#services {
  background-color: var(--white);
}

#services .section-title {
  color: var(--dark);
}

.services-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;

  margin-bottom: 5rem;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 16rem;
  min-height: 4.5rem;

  padding: 1rem 2rem;

  background-color: var(--blue);

  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.1rem;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.service-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.service-btn.active {
  background-color: var(--green);
}

.services-content {
  display: flex;
  gap: 4rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.services-text {
  flex: 1;
  min-width: 30rem;
  max-width: 42rem;
}

.services-text p {
  margin-top: 0;
  margin-bottom: 2rem;

  font-size: 1.5rem;
  line-height: 1.8;

  color: var(--gray-text);
}

.services-image-wrapper {
  flex: 1;
  min-width: 30rem;
  max-width: 45rem;
}

.services-image-wrapper img {
  height: 32rem;
  object-fit: cover;
}

/******************************************/
/* CONTACT
/*******************************************/

#contact-info {
  background-color: var(--cream);
}

.contact-grid {
  display: flex;
  justify-content: space-between;
  gap: 6rem;
  flex-wrap: wrap;
}

.contact-about,
.contact-details {
  flex: 1;
  min-width: 30rem;
}

.logo-wrapper {
  width: 28rem;
  height: 10rem;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.footer-logo {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.contact-about p,
.contact-details p {
  margin-top: 0;
  margin-bottom: 1.6rem;

  color: var(--gray-text);
}

.contact-details h3 {
  margin-top: 0;
  margin-bottom: 2.4rem;

  font-family: "Oswald", sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.2rem;

  color: var(--green);
}

.contact-details .btn{
  color: var(--white);
}

/******************************************/
/* FOOTER
/*******************************************/

.site-footer {
  padding: 2rem;

  background-color: #383838;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-content p,
.footer-content a {
  margin: 0;

  color: var(--cream);
  font-size: 1.4rem;
  text-decoration: none;
}

.footer-content a:hover {
  opacity: 0.8;
}

/******************************************/
/* MOBILE
/*******************************************/

@media (max-width: 768px) {
  section {
    padding: 6rem 2rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 3.8rem;
  }

  .btn {
    width: 100%;
  }

  .card,
  .services-text,
  .services-image-wrapper,
  .contact-about,
  .contact-details {
    max-width: 100%;
  }

  .card h3,
  .card p,
  .card nav {
    text-align: center;
  }

  .card ul {
    display: inline-block;
    text-align: left;
    list-style-position: inside;
  }

  .about-grid,
  .services-content,
  .contact-grid,
  .footer-content {
    flex-direction: column;
  }

  .about-image-wrapper {
    display: none;
  }

  .about-image-wrapper img {
    display: none;
  }

  .about-content .btn {
    text-align: center;
  }

  .services-content {
    text-align: center;
  }

  .contact-about img {
    margin-left: 4rem;
  }

  .contact-about p {
    text-align: center;
  }

  .contact-details {
    text-align: center;
  }

  .footer-content {
    text-align: center;
  }
}
