/* Basic styling for the bilingual rental management site */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  line-height: 1.6;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation bar */
.navbar {
  background: #ffffff;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #d82d2d; /* red accent */
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links li a {
  padding: 0.5rem;
  transition: color 0.3s ease;
}
.nav-links li a:hover {
  color: #d82d2d;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Language toggle */
.lang-toggle {
  margin-left: auto;
}
.lang-toggle button {
  background: transparent;
  border: 1px solid #d82d2d;
  color: #d82d2d;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.lang-toggle button:hover {
  background: #d82d2d;
  color: #fff;
}

/* Hero section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;

  /* Add a horizontal pan animation to create a left-to-right scrolling effect */
  animation: heroPan 30s linear infinite;
}

/* Keyframes for hero section background pan effect */
@keyframes heroPan {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.hero p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Sections */
.services-section,
.why-section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.service-item {
  background: #f9f9f9;
  padding: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.service-item:hover {
  transform: translateY(-4px);
}
.service-item h3 {
  color: #d82d2d;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.service-item h4 {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #555;
}

.why-section ul {
  list-style: disc;
  margin-left: 1.5rem;
  line-height: 1.4;
}
.why-section li {
  margin-bottom: 0.8rem;
}

/* Rent assessment call-to-action button styling */
.rent-assess-cta {
  margin-top: 2rem;
  text-align: center;
}
.cta-link {
  display: inline-block;
  margin: 0 0.75rem;
  padding: 1.2rem 2.4rem;
  background-color: #d82d2d;
  color: #ffffff;
  border-radius: 40px;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-link:hover {
  background-color: #b32020;
  transform: scale(1.05);
}

/* Assessment page styles */
.assessment-section {
  padding: 3rem 0;
}
.assessment-form {
  max-width: 700px;
  margin: 0 auto;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #333;
  font-weight: bold;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}
.form-group textarea {
  resize: vertical;
}
.form-actions {
  text-align: center;
  margin-top: 1.5rem;
}
.submit-btn {
  background-color: #d82d2d;
  color: #fff;
  border: none;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  margin: 0 0.5rem;
  transition: background-color 0.3s ease;
}
.submit-btn:hover {
  background-color: #b32020;
}

/* Footer */
.footer {
  background: #333;
  color: #ffffff;
  padding: 2rem 0;
  margin-top: 2rem;
}

/* Footer info row styling */
.footer-info-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}
.footer-item {
  flex: 1;
  min-width: 150px;
}
.footer-item h4 {
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #f9f9f9;
}
.footer-item p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.footer-item.qr img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 6px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.footer h3 {
  color: #f9f9f9;
  margin-bottom: 1rem;
}
.footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.footer-social a {
  margin-right: 0.5rem;
}
.footer-social img {
  width: 24px;
  height: 24px;
  filter: invert(1);
  transition: opacity 0.3s ease;
}
.footer-social img:hover {
  opacity: 0.7;
}
.disclaimer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #ccc;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .hero h2 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
}