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

body {
  background: #b7e6c4;
  color: black;
  font-family: Verdana, sans-serif;
}


/* Navigation Bar
 ****************/
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.2rem;
  background: #60739c;
}

header h1 {
  text-align: center;
  font-size: 1.4rem;
  color: white;
}
@media screen and (min-width: 600px) {
  header h1 {
    font-size: 1.8rem;
  }
}


/* Content
 *********/
.logo {
	grid-area: logo;
}
.description {
  grid-area: description;
}
.locations {
  grid-area: locations;
}
.contact {
  grid-area: contact;
}

main {
  display: grid;
	grid-auto-rows: minmax(30px, auto);
  grid-template-columns: 1fr;
	grid-gap: 1rem;
	grid-template-areas:
		"logo"
		"description"
    "locations"
    "contact";
}

@media screen and (min-width: 1000px) {
	main {
		grid-template-columns: 50% auto;
		grid-template-areas:
			"logo        description"
			"locations   locations"
      "contact     contact"
	}
}

main > * {
  min-width: 0;
}

.logo {
  max-width: 100%;
  overflow: hidden;
}

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

.description {
  margin: auto 1rem;
}

.description h2 {
  font-size: 1.8rem;
  text-align: center;
}
@media screen and (min-width: 1000px) {
  .description h2 {
    font-size: 1.7rem;
    text-align: left;
    padding: 1rem 0;
  }
}

.description p {
  padding: 1.5rem 0;
  font-size: 1.3rem;
  text-align: center;
}
@media screen and (min-width: 1000px) {
  .description p {
    padding: 1rem 0;
    font-size: 1.5rem;
    text-align: left;
  }
}

.locations__title {
  padding: 1rem 0;
}

.locations__title p {
  text-align: center;
  font-size: 1.8rem;
}
@media screen and (min-width: 1000px) {
  .locations__title p {
    font-size: 2.5rem;
  }
}

.locations_cards {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;              /* center the layout */
  gap: 24px;                   /* space between cards */
  padding: 16px;
  box-sizing: border-box;
  justify-content: center;
}

.location_card {
  box-sizing: border-box;
  background: rgb(119 162 231);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.location_card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.location_card p {
  margin: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.contact {
  margin: 0 0.25rem;
}
@media screen and (min-width: 1000px) {
  .contact {
    margin: 0;
  }
}

.contact__title {
  padding: 1rem 0;
}

.contact__title p {
  text-align: center;
  font-size: 1.8rem;
}
@media screen and (min-width: 1000px) {
  .contact__title p {
    font-size: 2.5rem;
  }
}

.contact__details {
  padding: 1rem 0;
}

.contact__details p {
  text-align: center;
  font-size: 1.2rem;
}
@media screen and (min-width: 1000px) {
  .contact__details p {
    font-size: 1.5rem;
  }
}

/* Footer
 ********/
footer {
  text-align: center;
  padding: 1.5rem 0;
  border-radius: 0.2rem;
  background: #60739c;
  color: white;
}

footer a {
  text-decoration: none;
}
