/* Reset & global layout protections */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  /* padding-top: 20px; */
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow-x: hidden;
}

.site-header .logo {
  height: 50px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 100%;
  overflow: hidden;
}

.site-nav a {
  color: #143052;
  text-decoration: none;
  font-weight: normal;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #43B02A;
}

header {
  background-color: #b1bdca;
  color: #ffffff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

main,
section,
.thank-you {
  padding-top: 30px;
}

.logo {
  height: 50px;
  width: auto;
}

.search-form {
  display: flex;
  width: 100%;
  max-width: 500px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  justify-content: center;
  margin-left: 3.5rem;
}

.search-box {
  flex: 1;
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.search-button {
  padding: 0.75rem 1rem;
  border: none;
  background-color: #143052;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

/* .search-box {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  font-size: .95rem;
  border: none;
  border-radius: 4px;
  margin-top: 1rem;
} */

.advanced-link {
  margin-top: 0.75rem;
  text-align: center;
}

.advanced-link a {
  color: #43B02A;
  text-decoration: none;
  font-weight: bold;
}

.advanced-link a:hover {
  text-decoration: underline;
}

.about {
  padding: 2rem 2rem;
  background-color: #cdd8e7;
  color: #143052;
}

.about-block {
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.about-block h3 {
  font-size: 2.0rem;
  margin-bottom: 0.5rem;
  color: #43B02A;
}

.about-block h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #43B02A;
}

.about-block p {
  font-size: 1.1rem;
  line-height: 1.6;
}

nav a {
  color: #143052;
  margin-left: 1rem;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

.hero-layout-home {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2rem;
  overflow: hidden;
}

.hero-image-home {
  position: fixed;
  top: 0;
  left: 0;
  width: 40%;
  height: 100vh;
  background-color: #143052;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  padding: 2rem;
  overflow: hidden;
  padding-top: 1.5rem;
}

.hero-content-home {
  margin-left: 40%;
  min-width: 300px;
  padding: 2rem;
  color: #143052;
}

@media (max-width: 768px) {
  .hero-layout-home {
    display: flex;
    flex-direction: column;
  }

  .hero-image-home {
    position: relative;
    width: 100%;
    height: auto;
    padding: 2rem;
    background-color: #143052;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }

  .hero-content-home {
    margin-left: 0;
    width: 100%;
    padding: 2rem;
    background-color: #ffffff;
  }

  .hero-image-home .hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
}

.hero {
  background: url('https://via.placeholder.com/1200x400') center/cover no-repeat;
  color: #ffffff;
  text-align: center;
  padding: 5rem 2rem;
  background-color: #b1bdca;
  display: flex;
  min-height: calc(100vh - 70px);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-image {
  width: auto;
  max-height: 50px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1100
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #43B02A;
  border-radius: 2px;
}

/* Slide-in menu */
.side-menu {
  position: fixed;
  top: 70px;
  left: -250px;
  width: 250px;
  max-width: 80vw; /* prevent it from overflowing small screens */
  height: 55%;
  background-color: rgba(20, 48, 82, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* For Safari */
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
  transition: left 0.3s ease-in-out, border-radius 0.9s ease;
  z-index: 999;
  overflow-x: hidden;
  border-top-right-radius: 180px;
  border-bottom-right-radius: 180px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.7);
}

.side-menu a {
  color: white;
  padding: 1rem;
  text-decoration: none;
  font-weight: bold;
}

.side-menu a:hover {
  background-color: #43B02A;
}

/* Active menu */
.side-menu.open {
  left: 0;
}

.cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #43B02A;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.cta:hover {
  background-color: #369a23;
}

.social-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #b1bdca;
  color: #ffffff;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
  }

  .site-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .logo {
    height: 40px;
  }

  main,
  section,
  .thank-you {
    padding-top: 0px; 
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 1rem;
  }

  .hero {
    flex-direction: column;
    margin-top: 0px;
  }

  .search-box {
    width: 100%;
  }

  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/*********  CONTACT US PAGE ***********/
.contact {
  margin: 60px auto;
  padding: 4rem 2rem;
  max-width: 600px;
  background: linear-gradient(to bottom right, #ffffff, #a5c5ec);
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.contact h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact-form button {
  background-color: #43B02A;
  color: white;
  padding: 0.75rem;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
  .contact {
    width: 95%;
  }
}

body {
  background-color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
}

.contact-form button:hover {
  background-color: #369a23;
}

/********* THANK YOU PAGE *********/
.thank-you-container {
  max-width: 600px;
  margin: 5rem auto;
  text-align: center;
  padding: 2rem;
  background-color: #f5faf7;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.thank-you-container h1 {
  color: #143052;
  margin-bottom: 1rem;
}

.thank-you-container p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background-color: #43B02A;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  background-color: #369a23;
}

.loader,
.loader:after {
  border-radius: 50%;
  width: 32px;
  height: 32px;
}
.loader {
  display: none;
  margin: 20px auto;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border: 6px solid rgba(0, 0, 0, 0.2);
  border-left-color: #43B02A;
  transform: translateZ(0);
  animation: spin 1.1s infinite linear;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/****** MAP SEARCH STYLING ******/
.search-page {
  max-width: 1900px;
  margin: 0 auto;
  padding: 1rem;
  background-color: #f9f9f9;
}

.search-header {
  text-align: center;
  margin-bottom: 1rem;
}

.search-header h1 {
  font-size: 2rem;
  color: #143052;
}

.search-header p {
  font-size: 1rem;
  color: #143052;
}

.map-search {
  position: relative;
  height: 1000px;
  width: 100%;
  margin-bottom: 1rem;
}

.iframe-wrapper {
  width: 100%;
  height: 750px;
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0;
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
}

.featured-sidebar {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  margin-top: 2rem;
}

.featured-sidebar h2 {
  font-size: 1.5rem;
  color: #143052;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .map-search {
    height: 500px;
  }

  .featured-sidebar {
    padding: 1rem;
    margin-top: 1rem;
  }

  .search-header h1 {
    font-size: 1.5rem;
  }

  .search-header p {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .iframe-wrapper {
    height: 700px;
  }

  .featured-sidebar {
    padding: 1rem;
  }

  .featured-sidebar h2 {
    font-size: 1.25rem;
  }
}


.map-search iframe {
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  display: block;
}


/****** MEET OUR TEAM *******/
/* --- Staggered Grid Styles --- */
.team-heading {
  text-align: center;
  font-size: 2rem;
  color: #143052;
  margin-top: 20px;
  margin-bottom: 2rem;
}

.grid-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.agent-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  background: linear-gradient(to bottom right, #ffffff, #a5c5ec);
  padding: 1.5rem;
  border-radius: 60px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
  flex-wrap: wrap;
}

.agent-card:hover {
  transform: translateY(-4px);
}

.agent-card img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 100px;
  margin: 0;
  flex-shrink: 0;
}

.agent-info {
  flex: 1;
  padding: 0.5rem 0;
}
.agent-info h3 {
  margin: 0 0 0.5rem;
  color: #143052;
}

.agent-info p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #444;
}

/* Stagger effect */
.agent-card.staggered {
  flex-direction: row-reverse;
}

/* Optional: smooth entrance animation */
@media (prefers-reduced-motion: no-preference) {
  .agent-card {
    opacity: 0;
    animation: fade-in-up 0.6s ease forwards;
  }

  .agent-card:nth-child(even) {
    animation-delay: 0.2s;
  }

  .agent-card:nth-child(odd) {
    animation-delay: 0.4s;
  }

  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
    }
  }
}
/* Added when changed up meet-our-team */
@media (max-width: 768px) {
  .team-heading {
    text-align: center;
    font-size: 2rem;
    color: #143052;
    margin-top: 40px;
    margin-bottom: 2rem;
  }

  .agent-card,
  .agent-card.staggered {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .agent-card img {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
  }

  .agent-info {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}


  @keyframes fade-in-up {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

/****** JOIN OUR TEAM ********/
.join-layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

/* Left image panel */
.image-panel {
  position: fixed;
  top: 69px; /* equal to header height */
  left: 0;
  width: 40%;
  height: calc(100vh - 70px);
  overflow: hidden;
  background-color: #143052;
}

.image-panel img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding-top: 0px;
  border-bottom-left-radius: 50px;
}

/* Scrollable right content */
.content-panel {
  margin-left: 40%;
  width: 60%;
  padding: 1rem 3rem;
  background-color: #ffffff;
}

.content-panel h2 {
  font-size: 2rem;
  color: #143052;
  margin-bottom: 1.5rem;
}

.content-panel p {
  font-size: 1rem;
  line-height: 1.6;
  color: #143052;
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  background-color: #43B02A;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #369024;
}

/* Responsive stack on mobile */
@media (max-width: 768px) {
  .join-layout {
    flex-direction: column;
    margin-top: 0px;
  }

  .image-panel {
    position: relative;
    width: 100%;
    height: auto;
    top: 0;
    margin-top: 0;
    padding-top: 0;
  }

  .image-panel img {
    width: 100%;
    height: auto;
    margin-top: 0;
    padding-top: 0;
    display: block;
  }

  .content-panel {
    margin-left: 0;
    width: 100%;
    padding: 0.5rem 1.25rem;
  } 

  .sticky-cta {
    right: 20px;
    bottom: 20px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 1025px) {
  .join-layout {
    margin-top: 0;
  }

  .content-panel {
    padding-top: 2rem; /* adjust this down from a larger value if needed */
  }

  .image-panel {
    padding-top: 0;
    margin-top: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.sticky-cta {
  position: fixed;
  bottom: 30px;
  right: 40px;
  background-color: #43B02A;
  color: #fff;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  font-weight: bold;
  z-index: 999;
  transition: background-color 0.3s ease;
}

.sticky-cta:hover {
  background-color: #369024;
}
