/* Reset CSS */
@import "./reset.css";

/* Variables */
:root {
  --bg-color-dark: #333333;
  --bg-color-light: #eaeaea;
  --bg-color-blue: #2690d4;

  --font-color-light: #ffffff;
  --font-size-h1: 35.2px;
  --font-size-h2: 26.4px;
  --font-size-h3: 20px;
  --font-size-p: 17.6px;

  --padding-xl: 35.2px;
  --padding-l: 26.4px;
  --padding-m: 20px;
  --padding-s: 17.6px;
}

/* Common styles */
.container {
  max-width: 880px;
  padding: 0 var(--padding-l);
  margin: 0 auto;
}

@media screen and (max-width: 700px) {
  .container {
    padding: 0 var(--padding-m);
  }
}

body {
  line-height: 1.5;
  text-align: center;
}

main {
  background-color: var(--bg-color-light);
}

/* === HEADER === */
.header {
  min-height: 450px;
  background-color: var(--bg-color-dark);
  background-image: linear-gradient(
      rgba(51, 51, 51, 0.5),
      rgba(51, 51, 51, 0.5)
    ),
    url("../images/header-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: var(--bg-color-light);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
  gap: 20px;
}

.header h1 {
  font-size: var(--font-size-h1);
  font-weight: bold;
}

.header p {
  font-size: var(--font-size-p);
}

.header-btn {
  font-size: var(--font-size-p);
  background-color: var(--bg-color-dark);
  margin: 20px 0 60px;
  padding: 18px 35px;
  border: 1px solid #666;
}

.header-btn:hover {
  background-color: var(--bg-color-light);
  color: black;
}

/* === Section A === */
.about-section {
  padding-top: var(--padding-l);
  padding-bottom: var(--padding-xl);
  background-color: var(--bg-color-light);
}

.about-section-container {
  display: flex;
  flex-direction: column;
  gap: 26.4px;
}

.about-section h2 {
  font-size: var(--font-size-h2);
  font-weight: bold;
}

.about-section-content-wrapper {
  columns: 2 auto;
  column-gap: 20px;
}

.about-section p {
  font-size: var(--font-size-p);
}

@media screen and (max-width: 700px) {
  .about-section-content-wrapper {
    columns: 1 auto;
  }
}

/* === SECTION B === */
.services-section {
  background-color: var(--bg-color-dark);
  padding: var(--padding-xl) 0;
}

.services-section-list {
  display: flex;
  justify-content: space-between;
}

.services-list-item {
  max-width: 31.5%;
  display: flex;
  flex-direction: column;
  background-color: var(--font-color-light);
}
.services-list-item-content-wrapper {
  padding: 44px var(--padding-s);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 38px;
}

.services-list-item-content-wrapper h3 {
  font-size: var(--font-size-h3);
  font-weight: bold;
}

.services-list-item-content-wrapper p {
  font-size: var(--font-size-p);
}

@media screen and (max-width: 700px) {
  .services-section-list {
    flex-direction: column;
    gap: 20px;
  }
  .services-list-item {
    max-width: 100%;
  }
}

/* === SECTION C === */
.benefits-section {
  padding: var(--padding-xl) 0;
  background-color: var(--font-color-light);
}

.benefits-section-container {
  padding-top: var(--padding-l);
  padding-bottom: var(--padding-s);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 44px;
}

.benefits-section h2 {
  font-size: var(--font-size-h2);
  font-weight: bold;
}

.benefits-section p {
  font-size: var(--font-size-p);
  max-width: 920px;
  padding: 0 var(--padding-m);
}

/* === SECTION D === */
.contact-section-list {
  display: flex;
}

.contact-section-list-item-blue,
.contact-section-list-item-black {
  display: flex;
  flex-direction: column;
  width: 50%;
  padding: 63px var(--padding-xl) 53px;
  color: var(--font-color-light);
  gap: 44px;
}

.contact-section-list-item-blue {
  background-color: var(--bg-color-blue);
}

.contact-section-list-item-blue > p:last-of-type {
  margin-top: -8.8px;
}

.contact-section-list-item-black {
  background-color: var(--bg-color-dark);
}

.contact-section h2 {
  font-size: var(--font-size-h2);
  font-weight: bold;
}

.contact-section p {
  font-size: var(--font-size-p);
}

@media screen and (max-width: 700px) {
  .contact-section-list {
    flex-direction: column;
  }
  .contact-section-list-item-blue,
  .contact-section-list-item-black {
    width: 100%;
  }
}

/* === FOOTER === */
.footer {
  background-color: black;
  padding: var(--padding-xl) 0;
  color: var(--font-color-light);
  display: flex;
  font-size: var(--font-size-p);
}

.footer-link,
.footer-logo {
  width: 50%;
}

.footer-link {
  padding-right: var(--padding-xl);
}

.footer-logo {
  padding-left: var(--padding-xl);
}

.footer-link a {
  color: var(--bg-color-blue);
}

@media screen and (max-width: 700px) {
  .footer {
    flex-direction: column;
    gap: 10px;
  }

  .footer-link,
  .footer-logo {
    width: 100%;
    padding: 0;
  }
}
