@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Public+Sans:wght@400;500;600;700&display=swap');

/* S&S Development Group — company palette: blue, gray, white */
:root{
  color-scheme: light dark;
  --bg:#f4f6f9; --surface:#ffffff; --surface-alt:#eef2f7;
  --text:#16222f; --dim:#5b6b82; --border:#d5dce4;
  --accent:#17548f; --accent-strong:#1d66ad;
  --navy-950:#0a1e33; --navy-900:#0f2c4c; --navy-800:#143a63;
  --blue-700:#17548f; --blue-600:#1d66ad; --blue-500:#2f7fc4;
  --blue-100:#dbe9f6; --blue-50:#eef4fa; --slate-550:#5b6b82;
  --font-display:"Playfair Display",Georgia,"Times New Roman",serif;
  --font-sans:"Public Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0a141f; --surface:#101e2e; --surface-alt:#16283d;
    --text:#eef2f7; --dim:#9db0c4; --border:#26394f;
    --accent:#5ea3dd; --accent-strong:#7db6e8;
  }
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font-sans);background:var(--bg);color:var(--text);font-size:16px;line-height:1.5}
img{max-width:100%}
a{color:inherit}
button,[role="button"],select,input:not([type="checkbox"]){min-height:2rem}
.font-display{font-family:var(--font-display)}
.wrap{max-width:72rem;margin:0 auto;padding:0 1rem}
@media(min-width:640px){.wrap{padding:0 1.5rem}}
@media(min-width:1024px){.wrap{padding:0 2rem}}
section{scroll-margin-top:5rem}
.eyebrow{font-size:.875rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin:0}
.h2{font-family:var(--font-display);font-size:2.25rem;font-weight:600;margin:.5rem 0 0;line-height:1.15}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.875rem 1.5rem;font-weight:600;text-decoration:none;border:none;cursor:pointer;font-size:1rem;font-family:inherit}
.btn-primary{background:var(--blue-600);color:#fff}
.btn-primary:hover{background:var(--blue-700)}
.btn-outline{border:1px solid rgba(255,255,255,.6);color:#fff;background:transparent}
.btn-outline:hover{background:rgba(255,255,255,.1)}
.btn-block{width:100%}
input,select,textarea{width:100%;border:1px solid var(--border);background:var(--surface);color:var(--text);padding:.625rem .75rem;font:inherit}
label.lbl{display:block;font-size:.875rem;font-weight:600;margin-bottom:.25rem}
label.lbl .opt{font-weight:400;color:var(--dim)}
.form-error{color:#b91c1c;font-weight:500}
@media (prefers-color-scheme: dark){.form-error{color:#f87171}}

/* Header */
header.site{position:sticky;top:0;z-index:40;border-bottom:1px solid var(--border);background:var(--surface)}
header.site .bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 0}
header.site .logo{height:3.5rem;width:auto}
@media(min-width:640px){header.site .logo{height:4rem}}
header.site nav{display:none;gap:1.5rem;font-size:.875rem;font-weight:500}
header.site nav a{text-decoration:none}
header.site nav a:hover{color:var(--accent)}
@media(min-width:768px){header.site nav{display:flex;align-items:center}}
.call-btn{display:inline-flex;align-items:center;gap:.5rem;background:var(--blue-600);color:#fff;padding:.625rem 1rem;font-size:.875rem;font-weight:600;text-decoration:none}
.call-btn:hover{background:var(--blue-700)}
.call-btn .full{display:none}
@media(min-width:640px){.call-btn .full{display:inline}.call-btn .short{display:none}}

/* Hero */
.hero{position:relative;background:var(--navy-950);color:#fff;overflow:hidden}
.hero img.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.45}
.hero .shade{position:absolute;inset:0;background:rgba(10,30,51,.45)}
.hero .inner{position:relative;padding:5rem 0}
@media(min-width:640px){.hero .inner{padding:7rem 0}}
.hero h1{font-family:var(--font-display);font-size:2.25rem;line-height:1.15;font-weight:600;max-width:48rem;margin:0}
@media(min-width:640px){.hero h1{font-size:3rem}}
.hero p{margin-top:1.25rem;max-width:42rem;font-size:1.125rem;line-height:1.7;color:var(--blue-50)}
.hero .ctas{margin-top:2rem;display:flex;flex-direction:column;gap:.75rem}
@media(min-width:640px){.hero .ctas{flex-direction:row}}

/* Services */
.services{background:var(--surface);padding:4rem 0}
.services .grid{margin-top:2.5rem;display:grid;gap:2.5rem 2.5rem}
@media(min-width:768px){.services .grid{grid-template-columns:1fr 1fr}}
@media(min-width:1024px){.services .grid{grid-template-columns:1fr 1fr 1fr}}
.service{border-top:2px solid var(--blue-600);padding-top:1.25rem}
.service .top{display:flex;align-items:center;justify-content:space-between}
.service .num{font-family:var(--font-display);font-size:1.125rem;color:var(--dim)}
.service h3{font-family:var(--font-display);font-size:1.5rem;font-weight:600;margin:.75rem 0 0}
.service .tag{font-size:.875rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--accent);margin:.25rem 0 0}
.service p.body{margin:.5rem 0 0;line-height:1.7;color:var(--dim)}
.ico{width:1.75rem;height:1.75rem;color:var(--accent);flex:none}

/* Build & upgrade band */
.band{background:var(--navy-900);color:#fff}
.band .grid{display:grid}
@media(min-width:1024px){.band .grid{grid-template-columns:1fr 1fr}}
.band .photo{position:relative;min-height:16rem}
.band .photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.band .copy{padding:3.5rem 1rem}
@media(min-width:640px){.band .copy{padding:3.5rem 1.5rem}}
@media(min-width:1024px){.band .copy{padding:3.5rem 2.5rem}}
.band .eyebrow{color:var(--blue-100)}
.band h2{font-family:var(--font-display);font-size:1.875rem;font-weight:600;margin:.5rem 0 0;line-height:1.2}
@media(min-width:640px){.band h2{font-size:2.25rem}}
.band p{margin-top:1rem;line-height:1.7;color:var(--blue-50)}
.band a.more{display:inline-flex;gap:.5rem;margin-top:1.5rem;font-weight:600;color:#fff;text-decoration:underline;text-decoration-color:var(--blue-500);text-decoration-thickness:2px;text-underline-offset:4px}

/* Listings */
.listings{padding:4rem 0}
.listings .head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:1rem}
.listings .call-link{display:inline-flex;gap:.5rem;font-weight:600;color:var(--accent);text-decoration:none;align-items:center}
.filters{margin-top:2rem;display:flex;flex-direction:column;gap:.75rem}
@media(min-width:640px){.filters{flex-direction:row;flex-wrap:wrap;align-items:center}}
.filters .search{position:relative;flex:1;min-width:14rem}
.filters .search input{padding-left:2.5rem}
.filters .search svg{position:absolute;top:50%;left:.75rem;transform:translateY(-50%);width:1rem;height:1rem;color:var(--dim)}
.status-group{display:flex;gap:.5rem;flex-wrap:wrap}
.status-group button{padding:.5rem .875rem;font-size:.875rem;font-weight:600;cursor:pointer;font-family:inherit}
.status-group button.on{background:var(--navy-900);color:#fff;border:1px solid var(--navy-900)}
.status-group button.off{border:1px solid var(--border);background:var(--surface);color:var(--text)}
.cards{margin-top:2rem;display:grid;gap:1.5rem}
@media(min-width:640px){.cards{grid-template-columns:1fr 1fr}}
@media(min-width:1024px){.cards{grid-template-columns:1fr 1fr 1fr}}
.card{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border);background:var(--surface)}
.card .thumb{position:relative;aspect-ratio:16/10;background:var(--navy-900);border:none;padding:0;width:100%;cursor:pointer;text-align:left}
.card .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.card .thumb .nophoto{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;color:var(--blue-100)}
.badge{position:absolute;top:.75rem;left:.75rem;padding:.25rem .625rem;font-size:.75rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:#fff}
.badge.available{background:var(--blue-600)}
.badge.under_contract{background:var(--slate-550)}
.badge.sold{background:var(--navy-950)}
.featured-tag{position:absolute;top:.75rem;right:.75rem;background:#fff;color:var(--navy-900);padding:.25rem .625rem;font-size:.75rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.card .body{padding:1.25rem 1.25rem 0;text-align:left;background:none;border:none;cursor:pointer;font:inherit;color:inherit;width:100%}
.card .ind{font-size:.75rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin:0}
.card h3{font-family:var(--font-display);font-size:1.25rem;font-weight:600;margin:.375rem 0 0;line-height:1.3}
.card .loc{margin:.25rem 0 0;font-size:.875rem;color:var(--dim)}
.card .price{margin:.75rem 0 0;font-size:1.5rem;font-weight:700}
.card dl{margin:.75rem 0 0;display:grid;grid-template-columns:1fr 1fr;gap:.75rem;border-top:1px solid var(--border);padding-top:.75rem;font-size:.875rem}
.card dl dt{color:var(--dim)}
.card dl dd{margin:0;font-weight:600}
.card .foot{margin-top:auto;padding:1rem 1.25rem 1.25rem}
.card .foot button{background:none;border:none;color:var(--accent);font-weight:600;cursor:pointer;font-size:1rem;padding:0;font-family:inherit}
.empty-box{margin-top:2.5rem;border:1px solid var(--border);background:var(--surface);padding:2rem;text-align:center}
.empty-box h3{font-family:var(--font-display);font-size:1.5rem;font-weight:600;margin:1rem 0 0}
.empty-box p{margin:.5rem auto 0;max-width:36rem;color:var(--dim)}

/* Modal */
.modal-back{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center;background:rgba(10,30,51,.7)}
@media(min-width:640px){.modal-back{align-items:center;padding:1.5rem}}
.modal{background:var(--surface);width:100%;max-width:42rem;max-height:92vh;overflow-y:auto;box-shadow:0 25px 50px rgba(0,0,0,.35)}
.modal .mthumb{position:relative;aspect-ratio:16/9;background:var(--navy-900)}
.modal .mthumb img{width:100%;height:100%;object-fit:cover;display:block}
.modal .mthumb .nophoto{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;color:var(--blue-100)}
.modal .mthumb .badge{top:auto;bottom:.75rem}
.modal .close{position:absolute;top:.75rem;right:.75rem;width:2.5rem;height:2.5rem;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.95);color:var(--navy-900);border:none;cursor:pointer;font-size:1.1rem}
.modal .mbody{padding:1.5rem}
.modal h3{font-family:var(--font-display);font-size:1.875rem;font-weight:600;margin:.25rem 0 0}
.modal .mprice{margin-top:1rem;font-size:1.875rem;font-weight:700}
.modal dl{margin-top:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:1rem 0}
.modal dl dt{font-size:.875rem;color:var(--dim)}
.modal dl dd{margin:0;font-size:1.125rem;font-weight:600}
.modal .desc{margin-top:1rem;line-height:1.7;white-space:pre-line}
.modal h4{font-size:.875rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--dim);margin:1.25rem 0 .5rem}
.modal ul.hl{list-style:none;margin:0;padding:0}
.modal ul.hl li{display:flex;gap:.5rem;margin-top:.375rem}
.modal .fineprint{margin-top:1.25rem;font-size:.875rem;color:var(--dim)}
.modal .mactions{margin-top:1.5rem;display:flex;flex-direction:column;gap:.75rem}
@media(min-width:640px){.modal .mactions{flex-direction:row}}
.modal .mactions>*{flex:1}
.btn-outline-dark{border:1px solid var(--border);color:var(--text);background:transparent}
.btn-outline-dark:hover{background:var(--surface-alt)}

/* Process */
.process{background:var(--surface);padding:4rem 0}
.process .grid{margin-top:2.5rem;display:grid;gap:2rem}
@media(min-width:640px){.process .grid{grid-template-columns:1fr 1fr}}
@media(min-width:1024px){.process .grid{grid-template-columns:repeat(4,1fr)}}
.step .top{display:flex;align-items:center;gap:.75rem}
.step .n{font-family:var(--font-display);font-size:2.25rem;font-weight:600;color:var(--blue-600)}
.step .rule{height:1px;flex:1;background:var(--border)}
.step h3{font-size:1.125rem;font-weight:600;margin:.75rem 0 0}
.step p{margin:.375rem 0 0;line-height:1.7;color:var(--dim)}

/* Sell band */
.sellband{position:relative;background:var(--navy-950);color:#fff;overflow:hidden}
.sellband img.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.35}
.sellband .shade{position:absolute;inset:0;background:rgba(10,30,51,.4)}
.sellband .inner{position:relative;padding:4rem 0;max-width:42rem}
.sellband h2{font-family:var(--font-display);font-size:1.875rem;font-weight:600;margin:0;line-height:1.2}
@media(min-width:640px){.sellband h2{font-size:2.25rem}}
.sellband p{margin-top:.75rem;line-height:1.7;color:var(--blue-50)}
.sellband .ctas{margin-top:1.5rem;display:flex;flex-direction:column;gap:.75rem}
@media(min-width:640px){.sellband .ctas{flex-direction:row}}

/* Contact */
.contact{padding:4rem 0}
.contact .grid{display:grid;gap:2.5rem}
@media(min-width:1024px){.contact .grid{grid-template-columns:1fr 1.4fr}}
.contact .phone-big{display:block;margin-top:1.5rem;font-family:var(--font-display);font-size:1.875rem;font-weight:600;color:var(--accent);text-decoration:none}
@media(min-width:640px){.contact .phone-big{font-size:2.25rem}}
.contact .sub{margin-top:.5rem;font-size:.875rem;color:var(--dim)}
.form-card{border:1px solid var(--border);background:var(--surface);padding:1.5rem}
@media(min-width:640px){.form-card{padding:2rem}}
.form-grid{display:grid;gap:1rem}
@media(min-width:640px){.form-grid{grid-template-columns:1fr 1fr}}
.form-grid .span2{grid-column:1/-1}
.sent-box{border:1px solid var(--border);background:var(--surface);padding:2rem;text-align:center}
.sent-box h3{font-family:var(--font-display);font-size:1.5rem;font-weight:600;margin:1rem 0 0}
.sent-box p{margin:.5rem auto 0;max-width:28rem;color:var(--dim)}
.link-btn{background:none;border:none;color:var(--accent);font-weight:600;cursor:pointer;font:inherit;padding:0}

/* Footer */
footer.site{background:var(--navy-950);color:var(--blue-100);padding:2.5rem 0}
footer.site .cols{display:flex;flex-direction:column;gap:1.5rem}
@media(min-width:640px){footer.site .cols{flex-direction:row;align-items:flex-start;justify-content:space-between}}
footer.site .plate{display:inline-block;background:#fff;padding:.5rem}
footer.site .plate img{height:3.5rem;width:auto;display:block}
footer.site .blurb{margin-top:.75rem;max-width:24rem;font-size:.875rem;color:rgba(219,233,246,.8)}
footer.site nav{display:flex;flex-direction:column;gap:.5rem;font-size:.875rem}
footer.site nav a{text-decoration:none}
footer.site nav a:hover{color:#fff}
footer.site nav a.tel{font-weight:600;color:#fff}
footer.site .manage-link{margin-top:.5rem;text-align:left;color:rgba(219,233,246,.7);text-decoration:none}
footer.site .manage-link:hover{color:#fff;text-decoration:underline}
footer.site .fine{margin:2rem auto 0;border-top:1px solid rgba(255,255,255,.15);padding-top:1rem;font-size:.75rem;color:rgba(219,233,246,.6);max-width:72rem}

/* Manage page */
.manage-head{border-bottom:1px solid var(--border);background:var(--surface)}
.manage-head .bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 0}
.manage-head .brand{display:flex;align-items:center;gap:.625rem;font-family:var(--font-display);font-size:1.125rem;font-weight:600}
.manage-head .brand img{height:2.5rem;width:auto}
.login-card{max-width:26rem;margin:4rem auto;border:1px solid var(--border);background:var(--surface);padding:2rem}
.admin-list{margin-top:1rem;border:1px solid var(--border);background:var(--surface);list-style:none;padding:0}
.admin-list li{display:flex;align-items:center;gap:.75rem;padding:1rem;border-top:1px solid var(--border)}
.admin-list li:first-child{border-top:none}
.admin-list .thumb{width:5rem;height:3.5rem;object-fit:cover;flex:none}
.admin-list .nothumb{width:5rem;height:3.5rem;flex:none;display:flex;align-items:center;justify-content:center;background:var(--navy-900);color:var(--blue-100);font-size:.75rem}
.admin-list .meta{min-width:0;flex:1}
.admin-list .meta .t{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-list .meta .s{font-size:.875rem;color:var(--dim)}
.icon-btn{width:2.5rem;height:2.5rem;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);background:transparent;color:var(--text);cursor:pointer;flex:none}
.btn-danger{background:#b91c1c;color:#fff;padding:.5rem .75rem;font-size:.875rem;font-weight:600;border:none;cursor:pointer;font-family:inherit}
.btn-small{padding:.5rem .75rem;font-size:.875rem}
.editor{margin-top:1.5rem;border:1px solid var(--border);background:var(--surface);padding:1.5rem}
.inq-list{list-style:none;margin:1rem 0 0;padding:0;display:flex;flex-direction:column;gap:.75rem}
.inq-list li{border:1px solid var(--border);background:var(--surface);padding:1.25rem}
.inq-list li.handled{opacity:.7}
.tag{display:inline-block;background:var(--blue-50);color:var(--blue-700);padding:.125rem .5rem;font-size:.75rem;font-weight:600;margin-left:.5rem}
@media (prefers-color-scheme: dark){.tag{background:var(--navy-800);color:var(--blue-100)}}
.count-badge{background:var(--blue-600);color:#fff;padding:.125rem .625rem;font-size:.875rem;font-weight:600;margin-left:.5rem}
.checkrow{display:flex;align-items:center;gap:.625rem;min-height:2.75rem}
.checkrow input{width:1.25rem;height:1.25rem}
.hidden{display:none!important}
