:root {
  --hair-haven-green: #113325;
  --black-ish: #2a2a2a;
  --accent-color: #c1a57b;  
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  background-color: var(--hair-haven-green);
  color: var(--black-ish);
  text-align: center;
  font-size: 1.1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: darkolivegreen;
  text-decoration: underline;
}

.fa {
  font-size: 1.25rem;
  color: #456;
}

.x3-me {
  font-size: 3rem;
}

.x4-me {
  font-size: 4rem;
}

.x5-me {
  font-size: 5rem;
}


.block-me p {
  text-align: center;      /* centers both */
}

.block-me i {
  display: block;          /* forces icon on its own line */
  margin-bottom: 0.5rem;   /* spacing between icon and link */
}

.block-me a {
  display: inline-block;   /* keeps link on its own line */
}


.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 1.25rem;
}

.logomark {
  height: 20rem;
  width: auto;
  object-fit: contain;
}

.logotype {
  font-family: "Alex Brush", cursive;
  font-size: 5rem;
  margin: 0;
}

.tagline {
  font-family: "EB Garamond", serif;
  font-size: 2.5rem;
  color: #f1e5ab;
  margin: 1rem;
}

h1, h2, h3 {
  font-family: "EB Garamond", serif;
  font-weight: 400;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

header h1 {
  font-size: 2.5rem;
  margin: 0.6rem 0;
}

main {
  padding: 0.625rem 2.5rem;
}

section {
  margin-bottom: 2.5rem;
  padding: 1rem;
  background-color: #fffefb;
}

.intro {
  font-size: 1.2rem;
}

.services h2,
.hours h2 {
  margin-bottom: 2rem;
  text-align: center;
  color: #111;
}

.service-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
  padding-top: 0.6rem;
}

.has-subitem {
  border-bottom: none;
  padding-bottom: 0.2rem;
}

.service-item h3,
.service-item h4 {
  margin: 0;
  font-weight: normal;
  color: #333;
}

.service-item h3 {
  font-size: 1.4rem;
}

.service-item h4 {
  font-size: 1rem;
}

.service-item p {
  margin: 0;
  font-weight: bold;
  color: #444;
}

.service-subitem {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
  padding-left: 1rem;
  font-size: 0.95rem;
  color: #555;
}

.service-subitem h4 {
  margin: 0;
  font-weight: normal;
}

.service-subitem p {
  margin: 0;
}

.hours-list {
  list-style: none;
  padding: 0;
  max-width: 20rem;
  margin: 0 auto;
  font-size: 1.1rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  padding: 0.5rem 0;
}

.hours-list li span {
  font-weight: bold;
  color: #444;
}

.location p {
  font-size: 1.1rem;
}

iframe {
  border: 0;
  width: 90%;
  max-width: 37.5rem;
  height: 18.75rem;
  margin-top: 0.9375rem;
}

footer {
  background-color: #2a2a2a;
  color: #b3cec1;
  padding: 1.25rem 0;
  font-size: 0.9rem;
}

@media (max-width: 500px) {

  .logomark {
    max-width: 450px;
  }

  .tagline {
    font-size: 1.5rem;
  }

  .service-item, .service-subitem {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-item p {
    margin-top: 0.2rem;
  }

  iframe {
    width: 100%;
  }

}
