:root {
  --primary-color: #cdb4db;
  --secondary-color: #bfa0d1;
  --tertiary-color: #b4cadb;
  --antique-white: antiquewhite;
  --sea-blue: #a2d2ff;
  --background-color: #1c1f21;
  --black-text: #333;
  --box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  --border-bottom: 0.125rem solid var(--black-text);
}

* {
  padding: 0;
  margin: 0;
  font-family: "Rubik", sans-serif;
}

header {
  width: auto;
  height: auto;
  border-radius: 2rem;
  padding: 0.5rem;
}

header a {
  display: flex;
  justify-content: center;
}

header img {
  border-radius: 2rem;
  max-width: 200px;
  height: auto;
}

nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.8rem;
  background-color: var(--primary-color);
}

nav .menu {
  padding: 10px 15px;
  margin: 0;
  /* background-color: var(--primary-color); */
  color: var(--black-text);
  border: none;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 2rem;
  border: 1px solid var(--black-text);
  text-align: center;
}

nav a {
  text-decoration: none;
  color: var(--black-text);
  transition: 0.3s ease;
}

nav a:hover {
  background-color: var(--black-text);
  color: var(--primary-color);
}

.banner {
  display: flex;
  justify-content: center;
}

.banner img {
  max-width: 100%;
  height: auto;
  background-size: 100%;
}

.gallery {
  background-color: var(--primary-color);
}

.image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  padding: 1rem;
  gap: 1.875rem;
}

.image {
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  width: 300px;
  margin: 1rem;
}

.testimonial h1 {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}

.text-image {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  padding: 0.5rem;
}

.text-image h3 {
  padding: 0.5rem;
}

.text-image img {
  max-width: 100%;
  height: auto;
}

.text-container,
.image {
  flex: 1;
}

.before-after-container {
  /* background-color: var(--primary-color); */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.before-after-container h1 {
  margin: 0.5rem;
}

.big-container {
  display: flex;
  flex-direction: row;
}

.ba-container {
  /* background-color: var(--secondary-color); */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  /* box-shadow: var(--box-shadow); */
  /* border-radius: 2rem; */
  margin: 1rem;
}

.ba-container h2 {
  margin: 0.5rem;
}

.mini-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  box-shadow: var(--box-shadow);
  border-radius: 2rem;
  max-width: 800px;
}

.mini-container p {
  margin: 1rem;
}

.mini-container img {
  border: 1px solid var(--black-text);
}

.services {
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services h1 {
  margin: 0.5rem;
  text-align: center;
}

.services h2 {
  margin: 0.5rem;
  text-align: center;
}

.services p {
  text-align: center;
}

.services h3 {
  padding-top: 0.5rem;
  text-align: center;
}

.services-table {
  display: flex;
  justify-content: center;
}

.text-container {
  margin: 0.5rem;
  padding: 0.5rem;
}

table {
  margin: 1rem;
  border-radius: 2rem;
  box-shadow: var(--box-shadow);
  background-color: var(--secondary-color);
  border: none;
  padding: 1rem;
}

caption {
  font-weight: bold;
  padding: 0.5rem;
}

td {
  border: none;
  text-align: center;
  padding: 0.3rem;
}

.divider {
  border-bottom: var(--border-bottom);
}

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--primary-color);
  padding: 1rem;
}

form {
  width: 80%;
}

.form-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
}

form select,
form input,
form textarea {
  margin: 0.625rem 0;
  padding: 1.25rem;
  outline: none;
  background: var(--black-text);
  font-size: 1rem;
  text-align: center;
  border-radius: 0.625rem;
  width: 100%;
  color: var(--primary-color);
}

input::placeholder,
textarea::placeholder {
  color: var(--primary-color);
}

form button {
  padding: 0.9375rem;
  background: var(--black-text);
  color: var(--primary-color);
  border-radius: 1rem;
  margin-top: 0.625rem;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: 0.3s ease-in;
}

form button:hover {
  background: var(--tertiary-color);
  color: var(--black-text);
}

.map {
  width: 100%;
  border-radius: 1.25rem;
}

.contact-map {
  background-color: var(--black-text);
  padding: 3rem;
}

.contact-map h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1rem;
}

footer {
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

footer a {
  font-weight: 600;
  padding: 1rem 0 0.5rem;
}

footer a {
  margin: 0.5rem;
  text-decoration: none;
  color: var(--background-color);
  text-align: center;
}

.social-links {
  margin-top: 0.5rem;
}

.social-links a {
  padding: 0.5rem;
  border-radius: 2rem;
  transition: 0.3s ease;
}

.social-links a:hover {
  background-color: var(--black-text);
  color: var(--primary-color);
}

.links {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin-top: 0.5rem;
}

.links a {
  border-radius: 2rem;
  padding: 0.5rem;
  transition: 0.3s ease-in;
}

.links a:hover {
  background-color: var(--black-text);
  color: var(--primary-color);
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
  }

  nav .menu {
    width: 100%;
    margin-bottom: 5px;
  }

  footer a {
    flex-direction: column;
  }
}

@media (max-width: 830px) {
  .text-image {
    flex-direction: column;
  }
}

@media (max-width: 650px) {
  .links {
    flex-direction: column;
  }

  .mini-container {
    flex-direction: column;
  }
}
@media (max-width: 1050px) {
  .big-container {
    flex-direction: column;
  }
}
@media (max-width: 900px) {
  .services-table {
    flex-direction: column;
  }
}
