/* Elms Studio - responsive HTML5/CSS site */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #BDFCC9;
  color: #1f2a22;
  font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: #1548a0;
}

a:hover,
a:focus {
  text-decoration-thickness: 2px;
}

/* Header */
.site-header {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(31, 42, 34, 0.16);
}

.site-name {
  display: block;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
}

.site-name a {
  color: inherit;
  text-decoration: none;
}

.site-tagline {
  display: block;
  margin: 12px 0 0;
  font-size: 1.15rem;
}

/* Main layout */
.page-layout {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  flex: 1;
}

.sidebar {
  width: 220px;
  flex: 0 0 220px;
  padding: 22px 20px;
  border-right: 1px solid rgba(31, 42, 34, 0.16);
}

.logo-link {
  display: block;
}

.logo {
  display: block;
  width: 152px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 24px;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-nav a {
  display: block;
  padding: 7px 8px;
  font-size: 1.08rem;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus {
  background: rgba(255, 255, 255, 0.34);
}

.facebook-link {
  display: inline-block;
  margin: 22px 8px 0;
}

.facebook-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* Page content */
.content {
  flex: 1;
  min-width: 0;
  padding: 28px 42px 45px;
  font-size: 1.08rem;
}

.content h1 {
  margin-top: 0;
  font-size: 2rem;
  line-height: 1.25;
}

.content h2 {
  margin-top: 1.7em;
  font-size: 1.35rem;
}

.content p {
  max-width: 850px;
}

.content li {
  margin-bottom: 5px;
}

.intro {
  font-size: 1.18em;
}

.links-list p {
  margin: 0 0 1.6rem;
}

.contact-details {
  margin-bottom: 25px;
}

.map {
  width: min(100%, 650px);
}

.map iframe {
  display: block;
  width: 100%;
  height: 350px;
  border: 0;
}

/* Footer */
.site-footer {
  min-height: 60px;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px max(24px, calc((100% - 1200px) / 2 + 24px));
  border-top: 1px solid rgba(31, 42, 34, 0.16);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

/* Tablet and phone layout */
@media (max-width: 720px) {
  .site-header {
    min-height: auto;
    padding: 22px 16px;
  }

  .site-name {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .site-tagline {
    margin-top: 10px;
  }

  .page-layout {
    display: block;
  }

  .sidebar {
    width: 100%;
    padding: 18px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(31, 42, 34, 0.16);
    text-align: center;
  }

  .logo {
    width: 120px;
    margin-bottom: 16px;
  }

  .site-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
  }

  .site-nav a {
    padding: 7px 9px;
  }

  .facebook-link {
    margin: 14px 0 0;
  }

  .content {
    padding: 26px 20px 38px;
    font-size: 1rem;
  }

  .map iframe {
    height: 300px;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
    padding: 16px;
  }
}
