:root {
  color-scheme: light dark;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  transform: translate3d(0,0,0);
  text-align: center;
  max-width: 100%;
  height: auto;
  overflow-x: none;
  font-size: 1.125rem;
  line-height: 1.6;
  transition: color 1.5s ease-in-out;
  display: flex;
  flex-direction: column;
  background-color: light-dark(#fff, #444);
  color: light-dark(#000000, #fff);
}

.logo {
  position: absolute;
  left: 5rem;
  width: 15rem;
  height: auto;
  margin-top: -1rem;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 5rem;
}

.animated-text-container {
  position: relative;
}

.animated-text-container:before {
  content: "";
  display: block;
  background-color: light-dark(#fff, #444);
  color: light-dark(#000000, #fff);
  width: 100%;
  height: 6.5rem;
  position: absolute;
  z-index: 1;
  top: 7.5rem;
}

.headline-mobile {
  display: none;
}

.headline-desktop {
  display: block;
}

.headline-desktop .animated-text-container:nth-child(1) {
  z-index: 1;
}

.headline-desktop .animated-text-container:nth-child(2) {
  z-index: 2;
}

.headline-mobile .animated-text-container:nth-child(1) {
  z-index: 1;
}

.headline-mobile .animated-text-container:nth-child(2) {
  z-index: 2;
}

.headline-mobile .animated-text-container:nth-child(3) {
  z-index: 3;
}

.animated-text {
  transition: all .5s ease;
}

.animated-text.concealed {
  transform: translateY(7rem);
  -webkit-transform: translateY(7rem);
}

.logo.loaded {
  opacity: 1;
}

.feedback-section {
  padding: 2rem 1rem;
  margin-top: 2rem;
  font-family: 'Montserrat', sans-serif;
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background-color: light-dark(#c4c4c4, #1e1e1e);
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
  border-left: 0.25rem solid #007cce;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}
.review-card.visible{
  opacity: 1;
  transform: translateY(0);
}

.review-card:hover {
  transform: translateY(-0.25rem);
}

.review-card p {
  margin: 0.5rem 0;
  line-height: 1.5;
  font-size: 1rem;
}

.review-title {
  display: block;
  font-weight: 600;
  color: #007cce;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.review-author {
  font-style: italic;
  text-align: right;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #007cce;
}

.review-card p:first-of-type::before {
  content: '«';
}

.review-card p:first-of-type::after {
  content: '»';
}


.review-form-section {
  padding: 2rem 1rem;
  max-width: 50rem;
  margin: 4rem auto;
  font-family: 'Montserrat', sans-serif;

}

.review-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-row input,
.form-row textarea {
  padding: 1rem;
  border: 1px solid #007cce;
  border-radius: 0.5rem;
  font-size: 1rem;
  flex: 1;
  min-width: 10rem;
}

.form-row textarea {
  width: 100%;
  resize: vertical;
}

.review-form-grid button {
  padding: 1rem 4rem;
  background-color: #007cce;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.review-form-grid button:hover {
  background-color: #005fa3;
}

.review-form-grid button.success {
  background-color: #28a745 !important;
}
.review-form-grid button.success:hover {
  background-color: #218838 !important;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  max-width: 25rem;
  margin: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.modal-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #007cce;
}

.modal-content button {
  padding: 0.8rem 1.2rem;
  background-color: #007cce;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #005fa3;
}


.footer {
  background-color: #c4c4c4;
  color: #000;
}

.footer-content {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
}

.footer-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.footer-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  text-align: left;
}

.footer-item {
  min-width: 200px;
}

.footer p {
  font-family: 'Montserrat', sans-serif;
  margin: 0.3rem 0;
  line-height: 1.4;
}

.footer a {
  color: #000;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}