/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Overall */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

html {
  scrollbar-gutter: stable;
}

html,
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background-color: #eee;
  color: rgb(0, 0, 0);
  padding: 20px;
  position: relative;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  overflow: hidden;
}

#logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#logo img {
  width: 120px;
  height: auto;
}

.brand-name h1 {
  font-size: 3rem;
  margin: 0;
  font-family: "Fredoka", sans-serif;
  text-shadow: 2px 2px 0 rgba(100, 100, 100, 0.5);
  margin-bottom: 0.2rem;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.brand-name h2.tagline {
  font-size: 1.8rem;
  margin: 0;
  line-height: 1.2;
  font-family: "Fredoka", sans-serif;
  text-shadow: 2px 2px 0 rgba(100, 100, 100, 0.5);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

h1,
h2 {
  line-height: 1.1;
  font-weight: 800;
}

#hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

/* Navbar */
#navbar {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  flex-grow: 1;
  justify-content: flex-end;
  flex-shrink: 1;
  margin-left: auto;
  transition: max-height 0.3s ease;
  overflow: visible;
}

#navbar a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
  display: inline-block;
  transform-origin: center;
  max-width: 100%;
  overflow: visible;
}

#navbar span {
  padding: 6px 10px;
  border-radius: 50px;
  transition: background-color 0.3s ease;
  font-family: "Fredoka", sans-serif;
  font-size: 1.2rem;
}

#navbar a.active-nav span {
  background-color: #ccc;
  border-radius: 50px;
  padding: 6px 10px;
}

#navbar a:hover {
  transform: scale(1.2);
}

#navbar a:hover #home {
  background-color: #ff1e1e;
}

#navbar a:hover #rentals {
  background-color: #00b8ff;
}

#navbar a:hover #buy {
  background-color: #33dd00;
}

#navbar a:hover #find {
  background-color: #ffff00;
}

#navbar a:hover #contact {
  background-color: #8a2be2;
}

.active {
  text-decoration: none;
}

/* Body */
main {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
}

section {
  margin-bottom: 40px;
}

/* About Section */
.welcome-heading {
  font-family: "Fredoka", sans-serif;
  font-size: 2.5rem;
  text-align: center;
  padding-bottom: 0;
  padding-top: 4rem;
}

.welcome-subheading {
  font-family: "Fredoka", sans-serif;
  font-size: 1.5;
  text-align: center;
  padding-bottom: 2rem;
  color: #666;
}

.welcome-p {
  font-family: "Fredoka", sans-serif;
  font-size: 1.3rem;
  text-align: center;
  line-height: 1.7;
  font-weight: 500;
  padding-bottom: 2rem;
}

/* Buttons */
button {
  background-color: #00b8ff;
  color: #333;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

button a {
  color: #333;
}

button:hover {
  background-color: #8a2be2;
  transform: scale(1.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}
/* Featured */
.homepage-cards {
  max-width: 900px;
  margin: 8rem auto 4rem;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex: 1 1 45%; /* flexible width, but roughly half */
  max-width: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  font-family: "Fredoka", sans-serif;
  color: #333;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.card-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
}

.btn-link {
  align-self: flex-start;
  padding: 10px 20px;
  background-color: #00b8ff;
  color: #333;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-link:hover {
  background-color: #8a2be2;
  transform: scale(1.1);
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .homepage-cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    max-width: 100%;
    flex: none;
  }
}

/* Featured buttons home page */
.home-rent {
  background-color: #33dd00;
}

.home-rent:hover {
  background-color: #ff69b4;
}

.home-buy {
  background-color: #ffa000;
}

.home-buy:hover {
  background-color: #ff1e1e;
}

/* Footer */
footer {
  text-align: center;
  padding: 8px 15px;
  background-color: #eee;
  font-size: 0.85rem;
}

footer a:hover .fa-facebook-f {
  color: #3b5998;
}

footer a:hover .fa-whatsapp {
  color: #25d366;
}

.footer-info {
  margin-top: 10px;
}

.footer-info p {
  font-size: 0.9rem;
  color: #666;
  margin: 5px 0;
}

.footer-info a {
  color: #666;
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
}

.social-links a:hover .fa-facebook-f {
  color: #3b5998;
}

.social-links a:hover .fa-whatsapp {
  color: #25d366;
}

.social-links {
  text-align: center;
  margin-bottom: 10px;
}

.social-links a {
  color: #666;
  font-size: 24px;
  margin: 0 10px;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-info-row {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 0.9rem;
  color: #666;
}

.footer-info p,
.footer-left,
.footer-right {
  margin: 2px 0;
}

.footer-left,
.footer-right {
  margin: 5px 0;
  color: #999;
}

.footer-right a {
  color: #666;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* Responsive  */
@media (max-width: 480px) {
  .footer-info-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
  }
}

/* Responsive Media Queries */

@media (max-width: 1260px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  #navbar {
    flex-direction: column;
    width: 100%;
    overflow: visible;
  }

  /* Fix hover issue on medium screens */
  #navbar a {
    overflow: visible;
    width: fit-content;
  }
}

@media (max-width: 768px) {
  /* Scale down logo and text for small screens */
  #logo img {
    width: 80px;
  }

  .brand-name h1 {
    font-size: 2rem;
  }

  .brand-name h2.tagline {
    font-size: 1.2rem;
  }

  .header-content {
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
  }

  #hamburger {
    display: block;
  }

  #navbar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #eee;
    flex-direction: column;
    width: 100%;
    margin-top: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  #navbar.show {
    display: flex;
    max-height: 500px;
    padding: 10px 0;
  }

  #navbar a {
    padding: 15px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #ddd;
  }

  #navbar a:last-child {
    border-bottom: none;
  }

  #navbar a:hover {
    transform: none;
    background-color: #f0f0f0;
  }
}

@media (max-width: 480px) {
  /* Further scale down for very small screens */
  #logo img {
    width: 60px;
  }

  .brand-name h1 {
    font-size: 1.5rem;
  }

  .brand-name h2.tagline {
    font-size: 1rem;
  }

  .container {
    padding: 0 10px;
  }

  header {
    padding: 15px;
  }
}
