
:root{
  --navy:#1e2a38;
  --ink:#202124;
  --muted:#667085;
  --line:#e7e3dc;
  --cream:#f7f3ed;
  --gold:#c7a26a;
  --white:#ffffff;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.65;
}

h1,h2,h3{
  font-family:'Playfair Display',Georgia,serif;
  line-height:1.12;
  margin:0 0 18px;
  color:var(--ink);
}

p{margin:0 0 18px}
a{color:inherit}

/* Skip navigation link */
.skip-link{
  position:absolute;
  left:-9999px;
  top:8px;
  background:var(--navy);
  color:#fff;
  padding:10px 16px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  z-index:200;
  text-decoration:none;
}
.skip-link:focus{left:16px}

/* Focus visible styles */
:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
  border-radius:4px;
}

/* Active nav state */
.nav a[aria-current="page"]{
  color:var(--gold);
  border-bottom:2px solid var(--gold);
  padding-bottom:2px;
}

/* Eyebrow/role text: darken gold for WCAG AA contrast on white */
.eyebrow,.team-role{
  color:#9a7535;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.header-inner{
  max-width:1180px;
  margin:0 auto;
  padding:14px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.logo img{
  height:42px;
  width:auto;
  display:block;
  opacity:.88;
}

.nav{
  display:flex;
  align-items:center;
  gap:24px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.01em;
}

.nav a{
  text-decoration:none;
  color:#333;
}

.nav a:hover{color:var(--gold)}

.nav .mls-link{
  background:var(--navy);
  color:#fff;
  padding:10px 16px;
  border-radius:999px;
}

.nav .mls-link:hover{
  background:#101821;
  color:#fff;
}

.hero{
  min-height:74vh;
  background:
    linear-gradient(90deg,rgba(14,22,31,.72),rgba(14,22,31,.25)),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  display:flex;
  align-items:center;
}

.hero-inner{
  max-width:1180px;
  width:100%;
  margin:0 auto;
  padding:84px 24px;
}

.hero-card{
  max-width:660px;
  color:#fff;
}

.eyebrow{
  text-transform:uppercase;
  letter-spacing:.15em;
  font-size:12px;
  font-weight:700;
  color:var(--gold);
  margin-bottom:14px;
}

.hero h1{
  color:#fff;
  font-size:clamp(42px,6vw,74px);
  letter-spacing:-.03em;
}

.hero p{
  max-width:620px;
  font-size:20px;
  color:rgba(255,255,255,.92);
}

.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:28px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 22px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  border:1px solid transparent;
  transition:.2s ease;
}

.btn-primary{
  background:var(--gold);
  color:#171717;
}

.btn-primary:hover{
  transform:translateY(-1px);
  background:#d6b37d;
}

.btn-secondary{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.6);
  color:#fff;
}

.btn-secondary:hover{
  background:#fff;
  color:var(--navy);
}

.page-hero{
  background:var(--navy);
  color:#fff;
  padding:86px 24px;
  text-align:center;
}

.page-hero h1{
  color:#fff;
  font-size:clamp(38px,5vw,62px);
}

.page-hero p{
  max-width:760px;
  margin:0 auto;
  color:rgba(255,255,255,.86);
  font-size:19px;
}

.section{
  max-width:1180px;
  margin:0 auto;
  padding:78px 24px;
}

.section.narrow{max-width:900px}

.split{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:46px;
  align-items:center;
}

.panel{
  background:var(--cream);
  border:1px solid var(--line);
  border-radius:24px;
  padding:34px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(245px,1fr));
  gap:22px;
}

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:26px;
  box-shadow:0 12px 30px rgba(30,42,56,.06);
}

.card h3{
  font-size:24px;
}

.card .small{
  color:var(--muted);
  font-size:14px;
}

.icon{
  width:42px;
  height:42px;
  border-radius:14px;
  background:var(--cream);
  color:var(--gold);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  margin-bottom:18px;
}

.band{
  background:var(--cream);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.testimonials{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:22px;
}

.quote{
  font-size:18px;
}

.team-card a{
  color:var(--navy);
  text-decoration:none;
  font-weight:700;
}

.team-card a:hover{color:var(--gold)}

.socials{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  margin-top:22px;
}

.social-icon{
  width:44px;
  height:44px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  color:var(--navy);
  text-decoration:none;
  font-weight:900;
  border:1px solid var(--line);
}

.social-icon:hover{
  background:var(--gold);
  color:#111;
}

.form{
  display:grid;
  gap:14px;
}

.form-label{
  font-size:13px;
  font-weight:600;
  color:var(--ink);
  margin-bottom:2px;
}

.form-label span{
  color:var(--muted);
}

/* Utility classes replacing scattered inline styles */
.text-center{text-align:center}
.mt-30{margin-top:30px}
.btn-navy{border-color:var(--navy)!important;color:var(--navy)!important}

.form input,.form textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px 16px;
  font:inherit;
  background:#fff;
}

.form textarea{min-height:150px;resize:vertical}

.form button{
  border:none;
  cursor:pointer;
  font:inherit;
}

.hidden-field{
  position:absolute;
  left:-9999px;
  opacity:0;
}

.checkbox-line{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:14px;
  color:var(--muted);
}

.map-wrap{
  border-radius:26px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 18px 40px rgba(30,42,56,.10);
}

#map{
  height:590px;
  width:100%;
}

.town-list{
  columns:3;
  column-gap:34px;
  margin-top:28px;
  color:var(--muted);
}

.town-list span{
  display:block;
  break-inside:avoid;
  margin-bottom:7px;
}

.site-footer{
  position:relative;
  overflow:hidden;
  background:#111;
  color:#fff;
  text-align:center;
  padding:60px 24px 76px;
}

.site-footer p{
  margin:6px 0;
  color:rgba(255,255,255,.82);
}

.site-footer::before{
  content:"Ensuring your properties make more than cents";
  position:absolute;
  left:50%;
  bottom:8px;
  transform:translateX(-50%);
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(28px,5vw,70px);
  white-space:nowrap;
  opacity:.055;
  pointer-events:none;
}

@media(max-width:780px){
  .header-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .nav{
    width:100%;
    overflow-x:auto;
    gap:16px;
    padding-bottom:4px;
  }
  .split{grid-template-columns:1fr}
  .hero{min-height:auto}
  .town-list{columns:1}
  #map{height:480px}
}


.social-icon svg{
  width:20px;
  height:20px;
  display:block;
}

.confirm-note{
  margin-top:12px;
  padding:12px 14px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:14px;
}

.license-line{
  font-size:13px;
  color:rgba(255,255,255,.68)!important;
}


.idx-frame-wrap{
  max-width:1180px;
  margin:0 auto;
  padding:40px 24px 78px;
}

.idx-frame-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(30,42,56,.10);
}

.idx-frame{
  width:100%;
  height:980px;
  border:0;
  display:block;
  background:#fff;
}

.idx-fallback{
  margin-top:18px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}

@media(max-width:780px){
  .idx-frame{
    height:1050px;
  }
}


.search-choice{
  max-width:920px;
  margin:0 auto;
  text-align:center;
}

.search-choice .card{
  padding:42px;
}

.search-choice h2{
  font-size:clamp(34px,4vw,54px);
}

.utility-note{
  color:var(--muted);
  max-width:720px;
  margin:18px auto 0;
}

.link-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:22px;
  margin-top:28px;
}

.link-card{
  text-align:left;
}

.link-card .btn{
  margin-top:8px;
}


/* Refined Team Section */
.team-feature-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:28px;
  margin-top:34px;
}

.team-feature-card{
  overflow:hidden;
  padding:0;
}


.team-photo-wrap{
  height:300px;
  background:var(--cream);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.team-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 16%;
  display:block;
}






.team-content{
  padding:26px;
}

.team-role{
  text-transform:uppercase;
  letter-spacing:.13em;
  color:var(--gold);
  font-size:12px;
  font-weight:800;
  margin-bottom:14px;
}

.team-contact-line{
  margin-top:18px;
  color:var(--muted);
}

.team-contact-line a{
  color:var(--navy);
  font-weight:700;
  text-decoration:none;
}

.team-contact-line a:hover{
  color:var(--gold);
}




/* --- Mobile and Agent Layout Fixes --- */

/* Representative Sales */
.sales-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
  margin-top:26px;
}

.sale-card{
  overflow:hidden;
  padding:0;
  display:flex;
  flex-direction:column;
}

.sale-image-wrap{
  width:100%;
  aspect-ratio:16 / 10;
  max-height:230px;
  background:var(--cream);
  overflow:hidden;
}

.sale-image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .25s ease;
}

.sale-card:hover .sale-image{
  transform:scale(1.03);
}

.sale-content{
  padding:22px 24px 24px;
}

.sale-content h3{
  margin-bottom:8px;
  font-size:23px;
}

.sale-price{
  color:var(--navy);
  font-weight:800;
  margin-bottom:6px;
}

.sale-date{
  color:var(--muted);
  font-size:14px;
  margin-bottom:0;
}

/* Team cards: all agents use the same layout, whether they have a photo yet or not */
.team-feature-grid,
.full-team-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
  margin-top:34px;
  align-items:stretch;
}

.team-feature-card,
.team-card.standard-agent-card{
  overflow:hidden;
  padding:0;
  display:flex;
  flex-direction:column;
  height:100%;
}

.team-photo-wrap,
.team-placeholder{
  width:100%;
  aspect-ratio:4 / 3;
  max-height:280px;
  min-height:220px;
  background:linear-gradient(135deg,var(--cream),#ffffff);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid var(--line);
}

.team-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 18%;
  display:block;
}

.team-placeholder span{
  font-family:'Playfair Display',Georgia,serif;
  font-size:58px;
  color:rgba(30,42,56,.22);
}

.team-content{
  padding:24px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.team-content p:last-child{
  margin-top:auto;
}

/* Phone-specific tightening */
@media(max-width:780px){
  .sales-grid,
  .team-feature-grid,
  .full-team-grid{
    grid-template-columns:1fr;
    gap:20px;
  }

  .sale-image-wrap{
    aspect-ratio:16 / 11;
    max-height:240px;
  }

  .team-photo-wrap,
  .team-placeholder{
    aspect-ratio:4 / 3;
    max-height:260px;
    min-height:210px;
  }

  .team-content,
  .sale-content{
    padding:20px;
  }
}
