
:root{
  --blue:#0B2B8F;
  --gray:#6B7280;
  --grayLight:#E5E7EB;
  --bg:#FFFFFF;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:#0f172a;
  background:var(--bg);
}


body::before{
  content:"";
  position:fixed; inset:0;
  background:url('assets/ProCloseLogo.jpg') no-repeat center center fixed;
  background-size: 900px auto;
  opacity:1;
  transition:opacity .6s ease;
  z-index:-1;
  pointer-events:none;
}
body.scrolled::before{ opacity:.08; }

.container{max-width:1100px;margin:0 auto;padding:0 16px}
.section{padding:56px 0}
.box{background:#ffffffcc;border:1px solid var(--grayLight);border-radius:16px;padding:20px;backdrop-filter:saturate(180%) blur(6px)}

h1,h2{color:var(--blue);margin:0 0 12px 0}
.hero p{margin:0;color:#111;max-width:900px}


.listings h2{margin-bottom:12px}
.idx-embed{height:80vh;min-height:70vh;border:1px solid var(--grayLight);border-radius:16px;overflow:hidden;background:#fff}
.idx-embed iframe{width:100%;height:100%;display:block;border:0}


.grid{display:grid;gap:20px}
.grid.two{grid-template-columns:1fr}
@media(min-width:900px){.grid.two{grid-template-columns:1fr 1fr}}

.label{display:block;margin:8px 0 6px 0;font-weight:600}
input,textarea{width:100%;padding:11px;border:1px solid var(--grayLight);border-radius:12px;font:inherit;background:#fff}
textarea{min-height:120px;resize:vertical}
small.muted{color:var(--gray)}
.btn{display:inline-block;background:var(--blue);color:#fff;padding:12px 16px;border-radius:14px;font-weight:700}


.map{width:100%;height:320px;border:1px solid var(--grayLight);border-radius:16px}


footer{background:#fff;border-top:1px solid var(--grayLight);padding:28px 0 40px 0}
.footer-grid{display:grid;gap:20px;grid-template-columns:1fr}
.footer-col h4{margin:0 0 10px 0;color:var(--blue)}
.footer-col a{color:inherit;text-decoration:none}
.footer-blurb{color:#374151}
@media(min-width:900px){.footer-grid{grid-template-columns:2fr 1fr 1fr 2fr}}
.footer-bottom{margin-top:10px;color:var(--gray);text-align:center}
.link{color:var(--blue);text-decoration:none}

.hero { 
  padding-top: 500px; 
}

.hero {
  padding-top: 150px;
  padding-bottom: 150px;
  background: linear-gradient(#0B2B8F, white);
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}
.hero p {
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto;
  color: white;
}


body{padding-top:600px}



.hero .box {
  border: none;
  background: transparent;
  opacity: 1;
}



.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.3);
}



.hero .box, .hero-content {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}



.hero {
  padding-top: 0; 
}
.hero .hero-content {
  margin-top: -100px;
}



.hero p {
  margin-top: 20px;
}



.hero {
  padding-bottom: 40px;
}












body






/* Sticky header that appears after 3s */
.topheader{ position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--grayLight);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
body.header-ready .topheader{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.topheader-row{display:flex;gap:12px;align-items:center;justify-content:center;padding:10px 0}
.topbtn{
  display:inline-block;
  padding:10px 14px;
  border-radius:999px;
  border:2px solid #0B2B8F; /* brand blue */
  text-decoration:none;
  color:#0B2B8F;
  font-weight:700;
  background: transparent;
}
.topbtn:hover{ color:#1e3a8a; border-color:#1e3a8a }

.topheader-spacer{ height: 56px; }


/* Move hero section down on all pages */
.hero {
  margin-top: 110px;
}


/* === Smooth mobile menu animation === */
.toplinks{
  display:flex;
  gap:12px;
  overflow:hidden;
  max-height:0;
  opacity:0;
  transition:max-height .35s ease, opacity .25s ease;
}
.toplinks.open{
  opacity:1;
  max-height: 320px;
}
@media (min-width: 641px){
  .toplinks{ opacity:1; max-height:none; }
}

/* === Device-tuned IDX panel heights === */
@media (min-width: 1024px){ .idx-embed{ height: 92vh; } }
@media (min-width: 640px) and (max-width: 1023px){ .idx-embed{ height: 75vh; } }
@media (max-width: 639px){ .idx-embed{ height: 65vh; } }

/* === Hero spacing on small phones === */
@media (max-width: 480px){ .hero{ margin-top: 60px; } }

/* Ensure header buttons wrap nicely */
.topheader-row{ flex-wrap: wrap; gap: 8px 12px; }

/* Touch target sizing */
.topbtn, .btn{ min-height:44px; padding:12px 16px; }


.hidden{display:none}


/* === About Us section === */
.about{ background:#fff; }
.about-grid{ display:grid; gap:24px; align-items:center; }
.about-photo img{ width:100%; height:auto; border-radius:16px; display:block; background:#fff; }
.about-copy h2{ margin:0 0 8px 0; color:var(--blue); }
.about-copy h3{ margin:0 0 12px 0; color:#111827; font-weight:800; }
.about-copy p{ margin:0 0 12px 0; color:#111827; }
@media (min-width: 900px){
  .about-grid{ grid-template-columns: 420px 1fr; }
}


/* === Mobile background focus & header removal === */
@media (max-width: 640px){
  /* Show the logo at the very top */
  body::before{
    background-position: top center !important;
  }
  /* Reveal more background before content appears */
  .hero{
    margin-top: 280px !important;
    background: transparent !important; /* ensure hero doesn't cover the background */
  }
  /* Remove header buttons on mobile */
  .topheader, .subheader{
    display: none !important;
  }
}







@media (max-width: 640px){
  .hero{
    background: linear-gradient(#0B2B8F, white) !important;
    background-position: center top;
    background-size: cover;
  }
}



@media (max-width: 640px){
  body::before{
    background-position: top center !important;
    background-size: 90vw auto !important; /* smaller so it doesn't exceed screen width */
  }
}



@media (max-width: 640px){
  .hero{
    margin-top: 20px !important; /* bring it up */
  }
}






@media (max-width: 768px) {
  .hero {
    margin-top: -250px !important; /* Moves up the hero by 250px */
  }
}


/* === Mobile: header above logo; logo moved down by header height === */
@media (max-width: 640px){
  :root{ --mobile-header-h: 56px; } /* default; will be updated by JS */
  .topheader, header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: block;
  }
  /* Shift background logo down exactly by header height */
  body::before{
    transform: translateY(var(--mobile-header-h)) !important;
    background-position: top center !important;
  }
}

