:root {
  --color-red: #E21B22;
  --color-white: #ffffff;
  --max-width: 1200px;
}

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

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  background-color: var(--color-white);
  color: #1a1a1a;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem;
  background-color: var(--color-white);
  flex-direction: column;
  padding-bottom: 1rem;
}

.logo {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
}

.site-tagline {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 1rem auto 0;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.menu-section img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-section {
  margin-top: 3rem;
  padding: 0 1.5rem 1rem;
}

.contact-section__heading {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #1a1a1a;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 900px) {
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

@media (min-width: 769px) and (max-width: 899px) {
  .contact-card:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
    width: calc((100% - 1rem) / 2);
    justify-self: center;
  }
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background-color: #f5f5f5;
  border-radius: 12px;
}

.contact-card__content {
  min-width: 0;
}

.contact-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

.contact-card__phone {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #666666;
  text-decoration: none;
}

.contact-card__phone:hover {
  color: var(--color-red);
}

.contact-card__action {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--color-red);
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-card__action:hover {
  opacity: 0.9;
}

.contact-card__action--muted {
  background-color: #dddddd;
  color: #888888;
}

.site-footer {
  width: 100%;
  margin-top: 2rem;
  background-color: var(--color-red);
  color: var(--color-white);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.3;
}

.footer-social:hover {
  opacity: 0.9;
}

.social-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: #000000;
}

.social-icon i {
  font-size: 1.1rem;
  color: var(--color-red);
}

@media (max-width: 768px) {
  .site-header {
    padding: 2rem 1rem;
  }

  .logo {
    max-width: 240px;
  }

  .contact-section {
    margin-top: 2rem;
    padding: 0 1rem 0.5rem;
  }

  .contact-section__heading {
    font-size: 1.5rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-card:last-child:nth-child(2n + 1) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }

  .footer-social-links {
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
  }

  .footer-social {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 1.5rem 1rem;
  }

  .site-footer {
    padding: 1.5rem 1rem;
  }

  .footer-social span:last-child {
    word-break: break-word;
  }
}
