/* === Base mobile overrides (<=700px only) === */

/* Prevent sideways scroll and account for your fixed header */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; padding-top: 110px; } /* adjust if your header is taller */
#home, #about, #rentals, #contact { scroll-margin-top: 120px; }

/* Header: tighter, wraps, vertical-ish nav on phones */
.top-bar { 
  padding: 12px 16px; 
  display: flex; 
  flex-wrap: wrap; 
  align-items: center; 
  gap: 10px; 
}
.top-bar .logo img { height: 48px; margin: 0; }
.top-bar nav { 
  margin-left: 0; 
  width: 100%;                /* put nav on its own line */
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  justify-content: center;
}
.top-bar nav a { 
  margin: 0; 
  padding: 8px 10px; 
  border-radius: 8px; 
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}

/* HERO (home): make it a clean centered block with image covering */
.home_background { 
  position: relative; 
  min-height: 65vh; 
  display: grid; 
  place-items: center; 
  overflow: hidden; 
}
.home_background > img {
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%;
  object-fit: cover;          /* fill the area nicely */
  z-index: 0;
}
.home_background .overlay { 
  position: absolute; inset: 0; 
  background: rgba(0,0,0,0.35); 
  z-index: 1; 
}
.home_content {
  position: relative; 
  z-index: 2; 
  text-align: center; 
  color: #fff; 
  padding: 16px;
}
.home_logo { width: 160px; height: auto; margin: 0 auto 14px; }
.home_title { font-size: 28px; margin-bottom: 8px; }
.home_subtitle { font-size: 16px; }

.rentals_button, .pay_button {
  display: inline-block;
  font-size: 16px;
  padding: 12px 16px;
  margin-top: 12px;
  border-radius: 8px;
}

/* ABOUT: stack columns and remove big side margins */
.about_container { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
  padding: 16px; 
}
.profile_column { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 12px; 
  margin: 0; 
}
.profile1, .profile2 { 
  width: 100%; 
  height: auto; 
  border-radius: 8px; 
}
.about_text { 
  margin: 0; 
  padding: 16px; 
  border-radius: 8px; 
}

/* CONTACT: simple centered block */
#contact { padding: 32px 16px; }
.contact_container { padding: 0; max-width: 100%; }

/* RENTALS: hide on mobile as requested */
#rentals { display: none; }
