/* 365 Property Partners — brand: blue #1E73BE, red #C43C2E, navy #0A2540 */
:root {
  --blue: #1e73be;
  --blue-dark: #155a97;
  --navy: #0a2540;
  --red: #c43c2e;
  --teal: #00bad0;
  --ink: #24313f;
  --muted: #5b6b7c;
  --line: #e3e9f0;
  --bg: #f5f7fa;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 37, 64, .06), 0 8px 24px rgba(10, 37, 64, .08);
  --shadow-lg: 0 2px 4px rgba(10, 37, 64, .08), 0 16px 40px rgba(10, 37, 64, .16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Raleway", -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  font-size: 16.5px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 800; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 800px; }
.center { text-align: center; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 700; font-size: .95rem;
  padding: .7em 1.4em; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .14); }
.btn-light { background: #fff; color: var(--navy); }
.btn-lg { font-size: 1.05rem; padding: .8em 1.7em; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand img { width: 150px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a:not(.btn) {
  color: var(--navy); font-weight: 600; font-size: .95rem;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.main-nav > a:not(.btn):hover { border-bottom-color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* hero */
.hero {
  background-size: cover; background-position: center;
  color: #fff; padding: 110px 0 120px;
}
.hero-inner { max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 18px; }
.hero p { font-size: 1.15rem; opacity: .93; margin-bottom: 30px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: 2rem; }
.section-head p { color: var(--muted); margin-top: 6px; }
.sold-head { margin-top: 64px; }

/* listing cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); color: inherit;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--bg); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-weight: 600; }
.card-sold .card-media img { filter: saturate(.55); }
.badge {
  position: absolute; top: 12px; left: 12px;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; padding: .35em .9em; border-radius: 999px;
}
.badge-sale { background: #1d9e50; }
.badge-new { background: var(--blue); }
.badge-coming { background: #d98b00; }
.badge-pending { background: #6b7a8c; }
.badge-sold { background: var(--red); }
.price-tag {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(10, 37, 64, .85); color: #fff;
  font-weight: 800; padding: .3em .8em; border-radius: 8px;
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.08rem; }
.card-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.card-more { color: var(--blue); font-weight: 700; font-size: .92rem; }

/* facts row */
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 20px; }
.facts li { display: flex; align-items: center; gap: 7px; color: var(--navy); font-weight: 600; font-size: .88rem; }
.facts svg { width: 19px; height: 19px; color: var(--blue); flex: none; }
.facts-lg { margin: 26px 0 8px; padding: 18px 22px; background: var(--bg); border-radius: var(--radius); gap: 16px 34px; }
.facts-lg li { font-size: 1rem; }
.facts-lg svg { width: 22px; height: 22px; }

/* why / points */
.why-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.why-grid h2 { font-size: 1.9rem; margin-bottom: 16px; }
.why-grid p { color: var(--muted); margin-bottom: 16px; }
.points { list-style: none; display: grid; gap: 14px; }
.points li {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: 10px; padding: 14px 18px; font-size: .95rem; color: var(--muted);
}
.points strong { color: var(--navy); display: block; margin-bottom: 2px; }

/* CTA band */
.cta-band { background: linear-gradient(115deg, var(--navy), var(--blue-dark)); color: #fff; padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: 1.9rem; margin-bottom: 10px; }
.cta-band p { opacity: .9; margin-bottom: 24px; }

/* page hero (interior pages) */
.page-hero { background: linear-gradient(115deg, var(--navy), var(--blue-dark)); color: #fff; padding: 64px 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-hero p { opacity: .9; margin-top: 8px; max-width: 620px; }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.step-num {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.15rem;
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .92rem; }

/* FAQs */
.faq { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 20px;
  list-style: none; position: relative; padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--blue); font-weight: 400;
}
.faq[open] summary::after { content: "–"; }
.faq[open] summary { background: var(--bg); }
.faq p { padding: 14px 20px 18px; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.contact-grid h2 { margin-bottom: 14px; }
.contact-grid p { color: var(--muted); margin-bottom: 16px; }
.contact-card { background: var(--bg); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { margin-bottom: 14px; }
.contact-card p { margin-bottom: 10px; }

/* listing detail */
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs span { color: var(--navy); font-weight: 600; }
.listing-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.listing-head .badge { position: static; display: inline-block; margin-bottom: 10px; }
.listing-head h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.listing-price { font-size: 1.7rem; font-weight: 800; color: var(--blue); }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
/* contain (not cover) so photos scale to fit without cropping detail */
.gallery-main img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.gal-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(10, 37, 64, .6); color: #fff; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem;
  transition: background .15s;
}
.gal-btn:hover { background: rgba(10, 37, 64, .85); }
.gal-prev { left: 14px; } .gal-next { right: 14px; }
.gal-count { position: absolute; right: 14px; bottom: 12px; background: rgba(10,37,64,.7); color: #fff; font-size: .8rem; font-weight: 600; padding: .25em .8em; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 6px; }
.thumb { flex: none; width: 96px; border: 2px solid transparent; border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer; background: none; opacity: .75; transition: .15s; }
.thumb img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.thumb.active, .thumb:hover { border-color: var(--blue); opacity: 1; }
.listing-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; margin-top: 34px; align-items: start; }
.listing-desc h2 { font-size: 1.4rem; margin-bottom: 12px; }
.listing-desc p { color: var(--muted); white-space: pre-line; }
.listing-ext { margin-top: 20px; }
.listing-cta { background: var(--bg); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.listing-cta h3 { margin-bottom: 8px; }
.listing-cta p { color: var(--muted); margin-bottom: 18px; }

/* about video */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; margin-bottom: 40px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wrap-narrow h2 { margin-bottom: 14px; }
.wrap-narrow > p, .wrap-narrow .section p { color: var(--muted); margin-bottom: 16px; }

.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; margin-top: 48px; }
.about-grid h2 { margin-bottom: 14px; }
.about-grid p { color: var(--muted); margin-bottom: 16px; }
.team-photo { margin: 0; }
.team-photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.team-photo figcaption { text-align: center; color: var(--muted); font-size: .85rem; font-weight: 600; margin-top: 12px; }
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; } }

/* lead form */
.lead-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px;
}
.lead-form h3 { font-size: 1.35rem; margin-bottom: 6px; }
.lead-form-blurb { color: var(--muted); margin-bottom: 22px; }
.lead-form label { display: block; font-weight: 700; font-size: .88rem; color: var(--navy); margin-bottom: 16px; }
.lead-form .req { color: var(--red); }
.lead-form input, .lead-form select {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-size: .95rem; color: var(--ink);
  padding: .65em .9em; border: 1.5px solid var(--line); border-radius: 9px; background: #fff;
}
.lead-form input:focus, .lead-form select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 115, 190, .18);
}
.lead-form input.invalid { border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.lead-form button { margin-top: 4px; }
.form-status { margin-top: 14px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #1d9e50; }
.form-status.err { display: block; color: var(--red); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 680px) { .form-row { grid-template-columns: 1fr; } }

/* lightbox */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 16, 28, .96);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img {
  max-width: 100vw; max-height: 100vh;
  max-height: 100dvh;
  object-fit: contain;
  user-select: none; -webkit-user-drag: none;
}
.lightbox .gal-btn { position: fixed; z-index: 2; }
.lightbox .gal-prev { left: 12px; }
.lightbox .gal-next { right: 12px; }
.lb-close {
  position: fixed; top: 14px; right: 14px; z-index: 3;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 1.9rem; line-height: 1; cursor: pointer;
  transition: background .15s;
}
.lb-close:hover { background: rgba(255, 255, 255, .3); }
.lb-count {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: .85rem; font-weight: 600; padding: .3em 1em; border-radius: 999px;
}
.no-scroll, .no-scroll body { overflow: hidden; }
.gal-expand {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(10, 37, 64, .7); color: #fff; border: 0; cursor: zoom-in;
  font: inherit; font-size: .8rem; font-weight: 600;
  padding: .35em .9em; border-radius: 999px;
  transition: background .15s;
}
.gal-expand:hover { background: rgba(10, 37, 64, .95); }
.gal-expand svg { width: 15px; height: 15px; }

/* footer */
.site-footer { background: var(--navy); color: #b9c6d4; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding: 56px 22px 40px; }
.footer-brand { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand span { color: #7fb3e3; font-weight: 700; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer a { display: block; color: #b9c6d4; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .92rem; }
.footer-phone { display: inline-flex !important; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 800; color: #fff !important; margin-bottom: 12px; }
.footer-phone svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; padding-bottom: 22px; font-size: .85rem; }

/* responsive */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .contact-grid, .listing-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 80px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 10px 22px 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-phone { margin-top: 14px; justify-content: center; }
}
