html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  margin: 0 auto;
  font-family: "LXGW WenKai TC";
  font-size: 18px;
  text-align: justify;
}

h1 {
  font-size: 1.4em;
  text-align: center;
  font-family: "LXGW WenKai TC";
}

h2 {
  font-size: 1.2em;
  text-align: center;
  font-family: "LXGW WenKai TC";
  margin-top: 50px;
}

h3 {
  font-size: 1.1em;
  text-align: center;
}

header {
  position: relative;
  height: 100vh;
}

.container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  position: absolute;
  z-index: 20;
}

#logo img {
  width: 150px;
  margin: 0 20px;
  margin-top: 80px;
}

.top-bar {
  display: flex;
  position: fixed;
  justify-content: center;
  width: 100%;
  z-index: 30;
  top: 0;
  background: #f3dbb9;
  opacity: 0.75;
}

.top-bar ul {
  padding: 0;
  margin: 20px 0;
}

.top-bar li {
  display: inline-flex;
  padding: 0 10px;
}

.top-bar a {
  color: #000;
  text-decoration: none;
}

#phone {
  position: absolute;
  left: 0;
  margin: 20px;
}

#callButton {
  display: none;
}

#phone span {
  margin-left: 10px !important;
}

button {
  color: #4c5261;
  border: 1px solid #4c5261;
  background: transparent;
  font-weight: bold;
  padding: 15px 32px;
  margin: 20px;
  border-radius: 3px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: 0.5s linear;
}

button a {
  color: #4c5261;
  text-decoration: none;
}

button:hover {
  background-color: #4c5261;
  box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.25);
}

button:hover a {
  color: #fff;
  text-decoration: none;
}

.intro-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  top: 0px;
}

.intro-text {
  z-index: 20;
  position: absolute;
  bottom: 0;
  left: 50%;
  margin: 40px;
  background: rgb(255, 255, 255, 0.75);
  padding: 20px 40px;
  border-radius: 5px;
}

.presentation {
  display: flex;
  background: #f3dbb9;
  padding: 20px;
  margin-top: -50px;
}

.reviews {
  padding: 20px;
  margin-top: -30px;
}

.services {
  flex-direction: column;
  padding: 20px;
}

.office {
  display: flex;
  flex-direction: row;
  padding-top: 20px;
  justify-content: space-between;
}

.office img {
  width: 33%;
  object-fit: cover;
  height: 500px;
}

#separator {
  height: 60px;
}

table {
  margin-bottom: 20px;
  border-radius: 5px;
}

td {
  padding-right: 20px;
}

td:last-child {
  padding-right: 0;
}

#expandable-content {
  height: 800px; /* Adjust this to your desired initial height */
  overflow: hidden; /* Hide content that overflows the initial height */
  transition: height 0.5s ease; /* Smooth transition on height change */
}

#expandable-content.expanded {
  height: auto; /* Allow content to expand to its natural height */
}

#expand-button {
  margin: 30px auto;
}

#expand-button:hover {
  color: #fff;
}

.button-container {
  text-align: center;
}

#map {
  height: 450px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  background: #f3dbb9;
  margin-top: auto;
  justify-content: space-between;
  align-items: center;
}

footer p {
  text-align: center;
}

footer section {
  width: 48%;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 30px 0;
}

footer section:first-child {
  border-right: 1px solid #c7b090;
}

footer img {
  height: 135px;
}

footer div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 30px;
  background: #fff;
  border-top: 1px solid #c7b090;
}

.lxgw-wenkai-tc-regular {
  font-family: "LXGW WenKai TC", cursive;
  font-weight: 400;
  font-style: normal;
}

@media only screen and (max-width: 960px) {
  .intro-text {
    left: 0;
    margin: 0;
  }
  .intro-image {
    object-fit: cover;
    height: 100vh;
    object-position: 15%;
  }
  .office {
    flex-direction: column;
    row-gap: 20px;
  }
  .office img {
    width: 100%;
  }
  footer {
    flex-direction: column;
  }
  footer section {
    width: 100%;
  }
  footer section:first-child {
    border-right: none;
  }
  footer div {
    border-top: none;
  }
}

@media only screen and (max-width: 768px) {
  #phone {
    display: none;
  }
  #callButton {
    display: block;
    position: absolute;
    left: 0;
    border: none;
    margin: 10px;
    padding: 7px 14px;
    border-radius: 3px;
    color: #fff;
    background: #7d1b25;
    font-size: 24px;
  }
}

@media only screen and (max-width: 500px) {
  body {
    font-size: 14px;
  }
  header {
    height: auto;
  }

  .top-bar {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .top-bar li {
    padding: 0;
    padding-right: 7px;
  }

  #callButton {
    font-size: 24px;
    padding: 4px 10px;
  }

  #phone {
    width: 100%;
    position: unset;
    text-align: center;
  }

  #logo img {
    width: 100px;
  }
  .intro-image {
    object-fit: cover;
    object-position: 15%;
    position: relative;
  }
  .intro-text {
    left: 0;
    margin: 0;
    position: relative;
    padding: 20px;
    background: rgb(255, 255, 255, 1);
  }
  .services {
    padding: 10px 0;
  }
  #separator {
    height: 56px;
  }
}
