/* ===== BASE LAYOUT ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #fff;
  color: #333;
}

.page-wrapper {
  max-width: 1920px;
  margin: 0 auto;
  background-color: #ffffff;
}

/* ===== TOP SECTION (HEADER + HERO) ===== */
.top-section {
  position: relative;
  min-height: 65vh;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: url("../images/homes-desktop.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* offset for fixed header so hero isn't hidden behind it */
  padding-top: 110px;
}

.section-top {
  position: relative;
  width: 100%;
  background-color: #21618c;
  color: #ffffff;
  padding-top: 90px;          /* desktop spacing */
}
  
/* Style for the ® next to 'Realtors' */
.reg-markh1 {
  font-size: 0.55em;        /* makes the ® smaller */
  vertical-align: super;    /* raises it slightly */
  margin-left: 2px;         /* spacing from last letter */
  opacity: 0.85;            /* optional: softens it slightly */
}

.reg-mark {
  font-size: 0.95em;        /* makes the ® smaller */
  vertical-align: top;      /* raises it slightly */
  margin-left: 1px;         /* spacing from last letter */           
}

.tabletMobileImg {
  display: none;
}

@media (min-width: 1024px) {
  .top-section {
    min-height: 80vh;
  }  
}

/* TABLET: 601px–1023px (overrides desktop) */
@media (max-width: 1023px) {
  .section-top {
    padding-top: 60px;        /* tablet spacing */
  }
  
  .nav-links li a,
  .nav-links li a:hover,
  .nav-links li a:focus {
    text-decoration: none !important;
  }
}

@media (max-width: 768px) {	
  .tabletMobileImg {
    display: block;
    width: 100%;
  }
  
  .mobileImg {
    display: block;
    width: 100%;
  }
  
  .top-section {  
  background-image: url("../images/homes.jpg");  
}

.left-section {
  width: 100%;
  padding: 0;  /* container only */
}

.right-section {
  width: 100%;
  padding: 0;  /* container only */
}

}

/* MOBILE: reduce background height slightly */
@media (max-width: 600px) {
  .top-section {
    min-height: calc(70vh - 1px);
  }    
}

/* ===== HEADER (FIXED, SHADE ON SCROLL) ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1920px;
  z-index: 1000;

  padding: 12px 4vw 8px;

  /* start transparent – shade only when scrolled */
  background-color: transparent;
  backdrop-filter: none;
  box-shadow: none;

  transition:
    background-color 0.25s ease,
    backdrop-filter 0.25s ease,
    box-shadow 0.25s ease;
}

/* shaded background ONLY after scroll */
.site-header.header-scrolled {
  background-color: rgba(33, 97, 140, 0.70);   /* #21618C transparent */
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.header-center {
  flex: 1;
  text-align: center;
}

.header-tagline {
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
  color: #e7f2f9;
}

.header-right {
  white-space: nowrap;
}

.header-phone {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.body-phone {
  font-size: 1.05rem;
  font-weight: 600;
  color: #21618c;
  text-decoration: none;  
}

.body-phone a {  
  color: #21618c;
  text-decoration: none;  
}

/* ===== NAVIGATION (DESKTOP) ===== */
.main-nav {
  margin-top: 8px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 36px;
}

.nav-links li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav-links li a:hover,
.nav-links li a:focus {
  border-bottom-color: #f1c40f;
}

/* ===== MOBILE NAV TOGGLE (HAMBURGER) ===== */
.nav-toggle {
  display: none; /* visible only on ≤1023px */
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;   
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background-color: #ffffff;     
}

/* ===== HERO ===== */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 24px 4vw 56px;  /* 4vw left = aligns with header-left */
}

.hero-inner {
  max-width: 720px;
  margin-top: -10px; /* moved down 10px from previous -40px */
}

.hero-title {
  font-size: 2.6rem;
  margin: 0 0 12px 0;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  margin: 4px 0;
  font-size: 1.35rem;
  font-weight: 500;
  color: #eaf6ff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Hero phone line */
.hero-call {
  margin-top: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #000000;
}

.hero-call a {
  color: #000000;
  text-decoration: none;
  font-weight: 700;
}

.hero-call a:hover,
.hero-call a:focus {
  text-decoration: none;
}

/* ===== HERO CALL — BUTTON STYLE ===== */
.hero-call {
  display: inline-block;
  background-color: #21618C;
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  margin-top: 25px;
}

.hero-call a {
  color: #ffffff !important;
  text-decoration: none;
}

.hero-call:hover {
  background-color: #1b4f6d;
  cursor: pointer;
}

/* ===== DESKTOP HERO (RAISED) ===== */
@media (min-width: 1024px) {
  .hero {
    align-items: flex-start;
    padding-top: 0;        /* was 50px originally -> 25 higher -> +25 higher again = 0 */
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-subtitle {
    font-size: 1.6rem;
  }

  .hero-call {
    font-size: 1.7rem;
  }  
}

/* ===== TABLET & MOBILE (≤1023px) ===== */
@media (max-width: 1023px) {

  /* Hide tagline + header phone; show hamburger */
  .header-center {
    display: none;
  }

  .header-right {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .header-inner {
    justify-content: space-between;
  }

  .main-nav {
    margin-top: 8px;
    position: relative;          /* so dropdown is positioned relative to nav */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;                      /* we’ll control spacing via li padding */
    padding: 18px 0 10px;        /* vertical padding only; sides handled by li */
    background-color: #21618c;   /* gray background */
    border-radius: 10px;

    /* position dropdown lower under header */
    position: absolute;
    top: 58px;                   /* adjust to change distance below header */
    left: 0;
    width: 100%;
    z-index: 9999;
  }

  .nav-links.nav-open {
    display: flex;
  }

  /* full-width items + dividers */
  .nav-links li {
    width: 100%;
    padding: 12px 18px;          /* more spacing around items */
    border-bottom: 1px solid #cccccc; /* divider line */
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links li a {
    font-size: 1.3rem;
    padding: 8px 0;              /* vertical spacing inside the row */
    text-decoration: none;
    width: 100%;
    display: block;              /* entire row clickable */
    color: #ffffff !important;
  }
  
  .nav-links li a,
  .nav-links li a:hover,
  .nav-links li a:focus {
    text-decoration: none !important;
    border-bottom: none !important;  /* removes desktop-style underline */
  }

  .hero {
    align-items: flex-start;
    padding-top: 0;       /* keep 0 so header offset handles spacing */
    padding-bottom: 32px;
    padding-left: 4vw;
    padding-right: 6vw;
  }

  /* RAISE HERO TEXT (adjusted) ON TABLET & MOBILE */
  .hero-inner {
    margin-top: -30px;  /* down 10px from previous -40px */
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
}

/* ===== SMALL MOBILE (≤600px) ===== */
@media (max-width: 600px) {
  /* Equal top/bottom padding so header content feels centered vertically */
  .site-header {
    padding: 12px 4vw;    /* equal top & bottom on small mobile */
  }

  .site-title {
    font-size: 1.25rem;
  }

  .hero {
    padding-top: 0;       /* stay at 0 so header offset handles spacing */
    padding-bottom: 24px;
    padding-left: 4vw;
    padding-right: 6vw;
  }

  /* Lift hero text further for very small screens (adjusted) */
  .hero-inner {
    margin-top: -35px;  /* down 5px from previous -40px */
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  /* Slightly more padding + larger text on small phones */
  .nav-links li {
    padding: 14px 20px;
  }

  .nav-links li a {
    font-size: 1.4rem;
  }

  /* Slightly tighten dropdown offset on very small screens */
  .nav-links {
    top: 52px;    /* override 58px from tablet for small phones */
  }
}

/* ========================================================= */
/* =====  BOTTOM / CONTENT / FOOTER SECTIONS  ===== */
/* ========================================================= */

.bottom-section {
  width: 100%;
  padding: 0;  /* container only */
}

/* Use ONLY content-white for all sections */
.content-white {
  width: 100%;
  background-color: #ffffff;
  padding: 0px 4vw;  /* reduced top/bottom padding */
  font-size: 1.1rem;
  line-height: 1.6; 
  text-align:justify;
}

.content-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.content-white h1 {  
  color: #000;
  font-weight:600;
  text-align:left;
  line-height: 1.3;
  font-size: 1.8rem;
}

.content-white h2 {  
  color: #21618C;
  font-weight:600;
  text-align:left;
  line-height: 1.3;
  font-size: 1.6rem;
}	

.content-white h3 {  
  color: #21618C;
  font-weight:600;
  text-align:center;
  line-height: 1.3;
  font-size: 1.6rem;
}	

.content-white .content-inner ul {
  margin-left: 0;
  padding-left: 0;
  list-style-position: inside; /* keeps bullets aligned */
}

.content-white .content-inner ul li {  
  padding-bottom: 10px;
  text-align: left;

  /* --- Hanging Indent --- */
  padding-left: 20px;   /* space for indent on wrapped lines */
  text-indent: -20px;   /* pulls first line back so bullet stays aligned */
}

boldText {
	font-weight:600;
}

boldTextLi {
	font-weight:600;
}

/* Gray separator bar you can drop anywhere inside content-white */
.section-divider {
  width: 100%;
  height: 3px;
  background-color: #cccccc;
  border-radius: 4px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.section-divider-white {
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 1px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* FOOTER */
.site-footer {
  width: 100%;
  background-color: #21618c;
  color: #ffffff;
  padding: 30px 4vw;
  text-align: center;
}

.site-footer a {
      text-decoration: none;
      color: #fff;
      margin: 15px;
    }	

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Center wrapper for Savings Calculator */
.calc-center {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.calc-center h1 {
  text-align: center;  
  color: #21618c;
}

.calc-center p {
  text-align: center;  
  color: #21618c;
}

/* Price & Savings text: centered + #21618C */
.price,
.savings {
  font-size: 1.4rem;
  font-weight: 700;
  color: #21618C;
  text-align: center;
}

.savings {
	padding-top:10px;
}

/* Slider – centered & stylish */
input[type=range] {
  width: 80%;
  max-width: 500px;
  margin: 18px auto 8px;
  display: block;
  -webkit-appearance: none;
  height: 10px;
  background: #e0e0e0;
  border-radius: 999px;
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #21618C, #4b86b4);
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #21618C;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
  margin-top: -6px; /* centers thumb on track */
}

/* Firefox slider */
input[type=range]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #21618C, #4b86b4);
}

input[type=range]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #21618C;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
}