@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root {
  --color-primary: #2b3340;
  --background-color-primary: #fcf4f4;
  --color-secondary: #e6dddd;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: 'Lato', sans-serif;
  color: var(--color-primary);
  font-size: 1em;
  position: relative;
  background-color: var(--background-color-primary);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}

header {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  width: 100%;
  padding: 0 24px;
}

main {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 1.96em;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

a {
  text-decoration: none;
  color: inherit;
}

main > h1 {
  margin-top: 24px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 0 0;
  width: 100%;
  margin: 0 auto;
}

.logo-container {
  width: 144px;
}

.logo-container a {
  width: 100%;
}

.logo-container img {
  width: 100%;
}

.navbar-container {
  margin: 0;
  padding: 0;
  width: 320px;
  max-width: 66%;
  position: fixed;
  z-index: 1000;
  background-color: var(--background-color-primary);
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  translate: -100%;
}
.navbar-close-button {
  background-color: unset;
  border: unset;
  cursor: pointer;
  margin: 16px 16px 0 0;
  align-self: flex-end;
}

.navbar-close-button svg {
  width: 32px;
  padding: 8px;
}

.navbar {
  margin: 0;
  padding: 0;
}

.navbar-item {
  list-style: none;
  margin: 0;
  display: flex;
  align-items: center;
}

.navbar-item.active {
  background-color: var(--color-primary);
  color: var(--background-color-primary);
}

.navbar-item a {
  width: 100%;
  padding: 16px;
}

.navbar-item.active a {
  color: var(--background-color-primary);
}

nav .navbar-hamburger-menu-button {
  border: solid;
  border-width: 0px;
  border-radius: 8px;
  color: #fcf4f4;
  background-color: #2b3340;
  fill: #fcf4f4;
  width: 32px;
  height: 32px;
  padding: 8px;
  cursor: pointer;
}

.overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-color: black;
  opacity: 0;
  transition: 0.4s;
  visibility: hidden;
}

.overlay.visible {
  visibility: initial;
  display: block;
  transition: 0.4s;
}

.quote {
  font-family: 'Jost', sans-serif;
  font-size: 3.5em;
  font-weight: 500;
  line-height: 1.1;
  vertical-align: baseline;
}

.home-content {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 128px;
}

.link-to-appointment {
  display: block;
  background-color: var(--color-primary);
  color: var(--background-color-primary);
  padding: 16px 54px;
  font-family: 'Lato';
  font-size: 1em;
  font-weight: bold;
  line-height: 1.5;
  width: 100%;
  text-align: center;
}

.specialisations-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.specialization * {
  margin: 0;
}

.specialization h2 {
  font-size: 1em;
}

.specialization {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-member h2,
.contact-container h2 {
  font-size: 1.4em;
  font-weight: 400;
}

.team-member h2 {
  margin: 24px 0 12px 0;
}

.member-info {
  display: flex;
  flex-direction: column;
  gap: 1.12em;
}

.team-members .team-member .filler {
  display: none;
}

.team-members .team-member .profile-picture img {
  max-width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
}

.divider {
  border-bottom: 2px solid var(--color-primary);
  margin: 24px 0;
}

.sub-banner-container {
  background-color: white;
  margin: 0;
  padding: 24px 12px;
}

.sub-banner {
  display: flex;
  gap: 32px;
  margin: 0 auto;
  max-width: var(--max-width);
  justify-content: space-between;

  flex-direction: column;
}

.sub-banner-item {
  display: flex;
  gap: 8px;
}

.sub-banner-item-content > span {
  display: block;
}

span + span {
  margin-top: 4px;
}

.sub-banner-item i {
  font-size: 3rem;
}

.footer-container {
  margin-top: auto;
  padding: 32px 16px 16px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

#map-container {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-container address {
  all: unset;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.appointments-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}

.appointments-container .phone-number {
  font-size: 1.3em;
}

.appointments-container a:hover,
.sub-banner-item a:hover,
.contact-container address a:hover {
  text-decoration: underline;
}

.contact-container h2 {
  margin: 0 0 8px 0;
  padding: 0 0 0 8px;
}

table {
  table-layout: fixed;
  border-collapse: collapse;
  background-color: white;
  width: 100%;
  border-radius: 8px;
}

thead {
  border-bottom: 2px solid var(--color-secondary);
}

th,
td {
  padding: 8px;
}

th:first-child,
td:first-child {
  width: 100px;
}

th:first-child {
  text-align: left;
}

td:nth-child(2),
td:nth-child(3) {
  text-align: center;
}

.social-links-list {
  margin: 8px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-links-list li {
  list-style: none;
  padding: 0;
}

.social-link {
  color: inherit;
}

/* DESKTOP */

@media (width >= 876px) {
  .navbar-close-button,
  .navbar-hamburger-menu-button {
    display: none;
  }

  .navbar-container {
    all: unset;
    transition: none;
    translate: none;
    display: flex;
    flex-direction: row;
    gap: 8px;
  }

  .navbar {
    display: flex;
  }

  .navbar-item.active {
    background-color: unset;
    border-bottom: 4px solid var(--color-primary);
  }

  .navbar-item.active a {
    color: var(--color-primary);
  }

  .sub-banner-container {
    padding: 24px 0;
  }

  .sub-banner {
    flex-direction: row;
    gap: 8px;
    padding: 0 24px;
  }

  .home-content {
    width: 66%;
  }

  main {
    padding: 0 24px;
  }

  .quote {
    font-size: 4.6em;
  }

  .link-to-appointment {
    width: fit-content;
  }

  .team-members {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .overlay {
    display: none;
    z-index: 900;
  }

  .overlay.overlay.visible {
    display: none;
  }

  .team-member {
    display: grid;
    grid-template-columns: minmax(100px, 320px) 1fr;
    gap: 24px;
  }

  .team-member .filler {
    display: block;
    grid-column-start: 1;
    grid-column-end: 2;
  }

  .team-member .profile-picture {
    grid-row-start: 2;
    grid-row-end: auto;
  }

  .team-member h2 {
    margin: 0;
    grid-column-start: 2;
    grid-column-end: auto;
  }

  .team-member .member-info {
    grid-row-start: 2;
    grid-row-end: auto;
  }

  .member-info * {
    margin: 0;
  }

  .team-members .team-member .profile-picture img {
    max-width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
  }

  .divider {
    margin: 0;
  }

  .social-links-list {
    flex-direction: row;
  }
}

@keyframes slide-in {
  from {
    translate: -100%;
  }

  to {
    translate: 0;
  }
}

@keyframes slide-out {
  0% {
    translate: 0;
  }

  100% {
    translate: -100%;
  }
}

.navbar-container.close {
  animation: 0.4s slide-out;
  translate: -100%;
  transition: translate 0.4s;
}

.overlay.visible {
  opacity: 0.6;
  transition: 0.4s;
}

.navbar-container.visible {
  translate: 0;
}
