/* colors
brown : rgb(103, 70, 54);
cream : rgb(248, 227, 189);
light blue : rgb(147,174,211);
soft main : #faf7f3;
warm main : #f0e7db;
dark : #1b1a1a
*/

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  background:#f0e7db;
  padding: 0;
}

/* Header and Navbar */

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

#site-header .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.3rem;
  position: relative; /* to contain absolute dropdown */
  z-index: 1000;
  border-bottom: 3px solid rgb(103, 70, 54);
  box-shadow: 0 3px 9px rgba(0,0,0,0.3);
  background: #faf7f3;
   /* background: rgb(174, 148, 130); */
}


#site-header .nav-links {
  list-style: none;
  display: flex;
}

#site-header .nav-links li {
  /* margin-left: 1.5rem; */
  padding: 0rem 2rem 0rem 2rem;
  border-right: 2px solid rgb(103, 70, 54);
  &:last-child{
    border-right: none;
  }
}

#site-header .nav-links a {
  color: black;
  text-decoration: none;
  font-size: larger;
  &:hover {
    color: rgb(103, 70, 54);
  }
}


#site-header .hamburger {
  display: none;
  font-size: 3.5rem;
  color: rgb(53, 53, 53);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  #site-header .nav-links {
    display: none;
    flex-direction: column;
    width: 50%;
    background: #faf7f3;
    position: absolute;
    top: 100%;
    right: 1px;
    border: 1px solid rgb(103, 70, 54);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }

  #site-header .nav-links li {
    margin: 0;
    border-top: 1px solid rgb(103, 70, 54);;
    padding: 0.5rem;
    
  }

  
  #site-header .hamburger {
    display: block;
  }
  
  .hamburger span {
  display: block;
  width: 28px;          /* line length */
  height: 2px;          /* line thickness */
  margin: 6px 0;        /* space between lines */
  background-color: #333;
  border-radius: 2px;   /* rounded line ends */
  transition: 0.3s;     /* smooth animation */
}

  #site-header .nav-links.active {
    display: flex;
  }
}

/* header and logo */
#main-logo {
  max-width: 75%;
  height: auto; 
  display: block; 
}

#main-logo.logo-divider {
  max-width: 100%;
  height: auto;
  display: block; 
  width: 3rem;
}

.divider-container{
  display: flex;
  justify-content: center;
}

.logo {
  max-width: 120px; /* desktop size */
}

@media (max-width: 768px) {
  .logo {
    max-width: 80px; /* tablet/mobile size */
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 60px; /* smaller mobile size */
  }
}



/* Hero Section */
.hero {
  padding-top: 1rem;
  padding-bottom: 1rem;
  line-height: 1.8;
  font-family: 'Source Sans Pro', sans-serif;
  text-align: center;
  position: relative;

}

.hero-text {
  /* position: absolute; */
  top: 50%;
  left: 50%;
  /* transform: translate(-50%, -50%);  */
  text-align: center;
  width: 85%;
  /* background-color: rgba(0, 0, 0, 0.3); */
  padding: 1rem;
  border-radius: 0.5rem; 
  /* box-shadow: 0 0 10px 15px rgba(0,0,0,0.3); */
  
  display: inline-block;
  padding: 0.5rem 1rem;
}

#t4rent-town {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#t4rent-town.visible {
  opacity: 0.7;
}

.hero-text h1 {
  font-weight: 900;
  /* font-size: 60px; */
  font-size: 4vw;
  line-height: 72px;
  color: white;
}

.hero-text p {
  color: black;
  font-size: 2vw;
  font-weight: 900;
}

.hero img {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .hero-text {
    position: static;       
    transform: none;       
    display: block;         
    max-width: 100%;        
    margin: 1rem auto 0;   
    background-color: transparent; 
    box-shadow: none;      
    padding: 0;            
  }

  .hero-text h1 {
    font-size: 8vw;         
    line-height: 1.2;
    color: #1b1a1a;          
  }

  .hero-text p {
    font-size: 5vw;
    color: #1b1a1a;
  }

  .hero img {
    opacity: 0.8;
  }
}

/* Footer */
#site-footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  /* position: fixed; */
  width: 100%;
  bottom: 0;
  left: 0;
  font-size: 0.9rem;
  z-index: 999;
}



main {
  position: relative;
  min-height: 100vh;
  overflow: visible;
  padding-bottom: 5rem;
  /* background-color: #faf7f3; */
  /* background-color: #f0e7db; */
  /* make background image opacity as 0.5 */
  background-image: url('../img/brick-white.jpg');
}



/* feature properties sectino */

#resedential-list.featured-properties{
  padding-top: 3rem;
}

.image-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.image-row img {
  max-width: 40%;
  opacity: 0;
  filter: brightness(200%);
  animation: fadeInFromWhite 1.5s ease forwards;
}

/* Fade-in effect from white */
@keyframes fadeInFromWhite {
  0% {
    opacity: 0;
    filter: brightness(200%);
  }
  100% {
    opacity: 1;
    filter: brightness(100%);
  }
}

/* 
CALL TO ACTION BUTTON
 */
.cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cta-btn.secondary {
  background-color: #654b3b; /* brown from your palette */
}

.cta-btn.secondary:hover {
  background-color: #513b2d;
}

.cta-btn {
  display: inline-block;
  background-color: #2a5b84;   /* main brand color */
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.cta-btn:hover {
  background-color: #1e4a6c;   /* slightly darker on hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}

.cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}



/* Mobile responsiveness commented while doing home styles test
@media (max-width: 768px) {
  .image-row {
    flex-direction: column;
    gap: 10px;
  }

  .image-row img {
    max-width: 90%;
  }

} */


/* Sub Menu */
.sub-menu {
  text-align: center;
  margin: 0;
}

.filter-btn {
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  background: #444;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

.filter-btn:hover {
  background: #666;
}


.property-button-container{
  display: flex;
  justify-content: flex-end;
  gap: 3rem;
  padding-right: 4rem;
}

/* Global Button Styles - Modern Palette */
.property-button-container button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: rgb(255, 255, 255);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  & a {
    text-decoration: none;
  }
}

button:hover {
  background-color: #4b90ff;      /* bright blue accent on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.style-test{
  padding-left: 4rem;
}


#nav-bar-text{
  font-family: "Merriweather", serif;
  color: rgb(10, 10, 10);
  flex: 1;
  font-weight: 100;
  font-size: 12px;
  h1{
    font-weight: 100;
  }
}


/* Mobile responsiveness */
@media (max-width: 768px) {
  .image-row {
    flex-direction: column;
    gap: 10px;
  }

  .image-row img {
    max-width: 90%;
  }

}


@media (max-width: 768px) {
  #nav-bar-text{
    display: block;
    opacity: 0.8;
  }
  .property-button-container{
    justify-content: center;
    padding-right: 0;
  }
}

/* 
HOME 3 TEST STYLES
*/