:root {
  --momentum-color-primary: #fff6ea;
  --momentum-color-secondary: #01103e;
  --momentum-color-alternative: #38b6ff;

  --text-dark: #0f172a;
  --text-light: #ffffff;
  --gray-light: #f3f4f6;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--momentum-color-primary);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

nav {
  background: var(--momentum-color-secondary);
}

section {
  padding: 5rem 0;
}

.nav-wrapper {
  display: flex;
  height: max-content;
  gap: 1rem;
  color: white;
  align-items: center;
}

.nav-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  width: 100%;
}

.nav-info > a > p {
  text-decoration: underline;
  color: white;
}

.nav-info > a:hover > p {
  color: blue;
}

.logo {
  color: var(--text-light);
  font-weight: bold;
  letter-spacing: 1px;
  height: 10rem;
  width: 10rem;
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(1, 16, 62, 0.75), rgba(1, 16, 62, 0.75)),
    url("miller_flooring.jpg") center/cover no-repeat;

  color: white;
}

.hero-content {
  display: flex;
  flex-direction: column;
  max-width: 650px;
  padding: 2rem;
  gap: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.service-card {
  display: flex;
  flex-direction: row;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.3s;
  height: 10rem;
  width: auto;
}

.service-img {
  width: 50%;
  height: 100%;
  border-radius: 12px 0 0 12px;
  background: var(--momentum-color-alternative);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.service-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-align: center;
  width: 50%;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000924;
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
  gap: 2rem;
}

.footer-info > a > p {
  text-decoration: underline;
  color: white;
}

.footer-info > a:hover > p {
  color: blue;
}

.footer-wrapper {
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: row;
  gap: 1rem;
}

.footer-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-links {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .nav-wrapper {
    font-size: 0.5rem;
  }

  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
