:root {
  --color-white: #ffffff;
  --color-black: #000000;
  --color-red: #f91d06;
  --color-cyan: #27c8f7;
  --color-muted: #404040;
  --site-width: 980px;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 15px;
  line-height: 1.875em;
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--site-width), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--color-white);
  padding-top: 30px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 18px;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: 213px;
  height: 160px;
  object-fit: contain;
}

.tagline {
  max-width: 423px;
  font-size: 15px;
  line-height: 1.875em;
  font-weight: 200;
  margin: 0;
  text-align: right;
}

.header-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
  margin: 0 80px 67px;
}

/* Hero */
.hero {
  background: var(--color-white);
  padding: 0 0 10px;
}

.hero-image {
  width: 100%;
  max-width: 940px;
  height: 440px;
  object-fit: cover;
  margin: 0 auto;
}

/* About */
.about {
  background: var(--color-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  padding: 80px 0;
  min-height: 420px;
}

.about .container {
  width: min(var(--site-width), calc(100% - 40px));
}

.about h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.75em;
  margin: 0 0 31px;
}

.about p {
  margin: 0 0 1em;
  max-width: 940px;
  font-weight: 200;
}

.about p:last-child {
  margin-bottom: 0;
}

/* Services */
.services {
  background: var(--color-white);
  padding: 124px 0 10px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35em;
  text-align: center;
  margin: 0 0 28px;
}

.section-title--red {
  color: var(--color-red);
}

.section-intro {
  text-align: center;
  font-weight: 200;
  max-width: 940px;
  margin: 0 auto 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 980px;
  margin: 0 auto;
}

.service-card {
  text-align: center;
}

.service-image {
  width: 340px;
  height: 340px;
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 57px;
  border: 2px solid var(--color-white);
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.41em;
  color: var(--color-red);
  margin: 0 0 33px;
}

.service-card p {
  margin: 0 0 0.5em;
  line-height: 1.875em;
}

.service-card .quote {
  font-style: italic;
  font-weight: 200;
}

.service-card .author {
  font-weight: 200;
}

.service-card .resources {
  font-style: italic;
  font-weight: 200;
}

/* Testimonials */
.testimonials {
  background: var(--color-cyan);
  color: var(--color-white);
  padding: 124px 0 10px;
}

.testimonials .section-title {
  color: var(--color-white);
  margin-bottom: 60px;
}

.testimonial {
  max-width: 760px;
  margin: 0 auto 60px;
  font-style: italic;
  font-size: 15px;
  line-height: 1.875em;
}

.testimonial:last-child {
  margin-bottom: 10px;
}

/* Contact */
.contact {
  background: var(--color-white);
  padding: 124px 0 60px;
}

.contact-phone {
  text-align: center;
  margin: 0 0 21px;
  font-size: 22px;
  font-weight: 200;
  line-height: 1.5;
}

.contact-phone a:hover {
  text-decoration: underline;
}

.contact-form {
  max-width: 780px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 15px;
  line-height: 1.875em;
  padding: 8px 12px;
  border: 1px solid var(--color-black);
  background: transparent;
  color: var(--color-black);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-muted);
}

.contact-form textarea {
  height: 126px;
  resize: vertical;
  margin-bottom: 36px;
}

.contact-form .full-width {
  grid-column: 1 / -1;
}

.submit-btn {
  width: 100%;
  height: 50px;
  background: var(--color-black);
  color: var(--color-white);
  border: 2px solid var(--color-black);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.4s ease;
}

.submit-btn:hover {
  opacity: 0.85;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-error {
  text-align: center;
  font-size: 15px;
  color: var(--color-red);
  margin-top: 19px;
}

.form-error:empty {
  display: none;
}

.form-success {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin-top: 19px;
}

.form-success[hidden] {
  display: none;
}

/* Footer */
.site-footer {
  background: var(--color-white);
  text-align: center;
  padding: 48px 0 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.footer-brand {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.41em;
  margin: 0 0 28px;
}

.footer-brand a:hover {
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 36px;
}

.footer-contact a {
  font-size: 15px;
  line-height: 1.875em;
  font-weight: 200;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-address {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.875em;
  font-weight: 200;
  color: var(--color-black);
}

.footer-copyright {
  font-size: 14px;
  line-height: 1.79em;
  font-weight: 200;
  color: var(--color-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .tagline {
    text-align: center;
    max-width: 100%;
  }

  .logo img {
    width: 180px;
    height: auto;
  }

  .header-divider {
    margin: 0 24px 40px;
  }

  .hero-image {
    height: auto;
    min-height: 200px;
    max-height: 50vh;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .service-image {
    width: min(280px, 80vw);
    height: min(280px, 80vw);
  }

  .section-title {
    font-size: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about {
    min-height: auto;
    padding: 80px 0;
  }

  .services,
  .testimonials,
  .contact {
    padding-top: 80px;
  }

  .contact {
    padding-bottom: 48px;
  }

  .testimonial {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 24px);
  }

  .header-divider {
    margin: 0 12px 32px;
  }

  .logo img {
    width: 150px;
  }

  .tagline {
    font-size: 14px;
  }

  .section-title {
    font-size: 28px;
  }

  .about h2 {
    font-size: 16px;
  }

  .site-footer {
    padding: 36px 0 28px;
  }
}
