/* ===========================================================
   Bèl-Afè — Design tokens
   Navy = structure/trust (the house). Crimson = energy (the road/A).
   Cream paper ground evokes a listing sheet, not a cold screen.
=========================================================== */
:root{
  --navy: #16324F;
  --navy-deep: #0D2136;
  --crimson: #9C1C36;
  --crimson-deep: #7A1329;
  --cream: #F7F2E9;
  --paper: #FCFAF5;
  --ink: #1C1B19;
  --ink-soft: #514D46;
  --gold: #B4863A;
  --line: rgba(28,27,25,0.12);
  --line-strong: rgba(28,27,25,0.22);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 4px;
  --shadow-card: 0 1px 2px rgba(13,33,54,0.06), 0 8px 24px -12px rgba(13,33,54,0.18);
  --shadow-lift: 0 4px 8px rgba(13,33,54,0.08), 0 20px 40px -16px rgba(13,33,54,0.28);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{margin:0;padding:0;list-style:none;}
button{font-family:inherit;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
}

:focus-visible{
  outline:2px solid var(--crimson);
  outline-offset:3px;
}

.container{
  max-width:1220px;
  margin:0 auto;
  padding:0 28px;
}

h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:600;
  line-height:1.1;
  margin:0;
  color:var(--navy-deep);
  letter-spacing:-0.01em;
}

.eyebrow{
  font-family:var(--mono);
  font-size:12.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--crimson);
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:22px;
  height:1px;
  background:var(--crimson);
  display:inline-block;
}

/* ---------- Ribbon divider — echoes the two-tone flag ribbon in the mark ---------- */
.ribbon{
  height:4px;
  width:74px;
  border-radius:2px;
  background:linear-gradient(90deg, var(--navy) 0 46%, var(--paper) 46% 54%, var(--crimson) 54% 100%);
}
.ribbon.center{margin-inline:auto;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 24px;
  border-radius:var(--radius);
  font-family:var(--sans);
  font-weight:600;
  font-size:14.5px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--crimson);
  color:var(--paper);
  box-shadow:0 1px 0 rgba(0,0,0,0.08);
}
.btn-primary:hover{background:var(--crimson-deep); transform:translateY(-1px);}
.btn-navy{
  background:var(--navy);
  color:var(--paper);
}
.btn-navy:hover{background:var(--navy-deep); transform:translateY(-1px);}
.btn-outline{
  background:transparent;
  border-color:var(--line-strong);
  color:var(--navy-deep);
}
.btn-outline:hover{border-color:var(--navy); background:rgba(22,50,79,0.05);}
.btn-ghost{
  background:transparent;
  color:var(--navy-deep);
  padding:13px 6px;
}
.btn-block{width:100%;}
.btn-lg{padding:16px 30px; font-size:15.5px;}
.btn-sm{padding:9px 16px; font-size:13px;}

/* ---------- Nav ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(247,242,233,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 28px;
  max-width:1220px;
  margin:0 auto;
  gap:24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand img{height:40px; width:auto;}
.brand-word{
  font-family:var(--serif);
  font-weight:600;
  font-size:20px;
  color:var(--navy-deep);
  letter-spacing:-0.01em;
}
.brand-word span{color:var(--crimson);}

.nav-links{
  display:flex;
  align-items:center;
  gap:2px;
  flex:1;
  justify-content:center;
}
.nav-links a{
  padding:10px 14px;
  font-size:14px;
  font-weight:500;
  color:var(--ink-soft);
  border-radius:3px;
  transition:color .15s ease, background .15s ease;
  position:relative;
}
.nav-links a:hover{color:var(--navy-deep);}
.nav-links a.active{color:var(--navy-deep); font-weight:600;}
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:14px; right:14px; bottom:3px;
  height:2px;
  background:var(--crimson);
  border-radius:2px;
}
.nav-actions{display:flex; align-items:center; gap:10px;}
.nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--line-strong);
  border-radius:4px;
  width:40px; height:40px;
  align-items:center;
  justify-content:center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:"";
  display:block;
  width:18px; height:2px;
  background:var(--navy-deep);
  position:relative;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{position:absolute; top:-6px;}
.nav-toggle span::after{position:absolute; top:6px;}

@media (max-width: 900px){
  .nav-links{
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--paper);
    flex-direction:column;
    align-items:stretch;
    padding:8px 20px 18px;
    border-bottom:1px solid var(--line);
    display:none;
  }
  .nav-links.open{display:flex;}
  .nav-links a{padding:12px 8px; border-bottom:1px solid var(--line);}
  .nav-toggle{display:flex;}
  .nav-actions .btn-ghost{display:none;}
}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy-deep);
  color:rgba(247,242,233,0.75);
  margin-top:90px;
}
.footer-top{
  padding:64px 28px 40px;
  max-width:1220px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:40px;
}
.footer-top h4{color:var(--paper); font-family:var(--sans); font-size:13px; letter-spacing:.08em; text-transform:uppercase; font-weight:600; margin-bottom:16px;}
.footer-top a{display:block; padding:6px 0; font-size:14px; color:rgba(247,242,233,0.7); transition:color .15s ease;}
.footer-top a:hover{color:var(--paper);}
.footer-brand .brand-word{color:var(--paper);}
.footer-brand p{font-size:14px; line-height:1.7; max-width:340px; color:rgba(247,242,233,0.65); margin-top:14px;}
.footer-brand-cta{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px;}
.footer-bottom{
  border-top:1px solid rgba(247,242,233,0.14);
  padding:20px 28px;
  max-width:1220px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  font-size:12.5px;
  color:rgba(247,242,233,0.5);
}
@media (max-width: 800px){
  .footer-top{grid-template-columns:1fr 1fr; gap:32px 24px;}
}

/* ---------- Property Card (signature element: folded price tag) ---------- */
.card-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
}
@media (max-width:980px){ .card-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .card-grid{grid-template-columns:1fr;} }

.property-card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-card);
  transition:transform .2s ease, box-shadow .2s ease;
  display:flex;
  flex-direction:column;
}
.property-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-lift);}
.property-media{
  position:relative;
  aspect-ratio:4/3;
  background:linear-gradient(135deg, #dfe6ec, #c7d2db);
  overflow:hidden;
}
.property-media img{width:100%; height:100%; object-fit:cover;}
.property-tag{
  position:absolute;
  top:14px; left:0;
  font-family:var(--mono);
  font-size:12px;
  font-weight:600;
  letter-spacing:.03em;
  color:var(--paper);
  padding:6px 14px 6px 12px;
  clip-path:polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.property-tag.sale{background:var(--navy);}
.property-tag.rent{background:var(--crimson);}
.property-badge{
  position:absolute;
  top:14px; right:14px;
  background:rgba(252,250,245,0.94);
  color:var(--gold);
  font-family:var(--mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.05em;
  text-transform:uppercase;
  padding:5px 9px;
  border-radius:3px;
  border:1px solid rgba(180,134,58,0.35);
}
.property-body{padding:18px 20px 20px; display:flex; flex-direction:column; gap:10px; flex:1;}
.property-price{
  font-family:var(--serif);
  font-size:22px;
  font-weight:600;
  color:var(--navy-deep);
}
.property-price small{font-family:var(--sans); font-size:12px; font-weight:500; color:var(--ink-soft);}
.property-title{font-size:15.5px; font-weight:600; color:var(--ink);}
.property-loc{
  font-size:13px;
  color:var(--ink-soft);
  display:flex; align-items:center; gap:6px;
}
.property-specs{
  display:flex;
  gap:14px;
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid var(--line);
  font-family:var(--mono);
  font-size:12px;
  color:var(--ink-soft);
}

/* ---------- Section scaffolding ---------- */
section{padding:90px 0;}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-bottom:40px;
}
.section-head h2{font-size:clamp(28px,3.4vw,38px);}
.section-head p{color:var(--ink-soft); max-width:480px; margin-top:10px; font-size:15px;}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 14px;
  border-radius:100px;
  border:1px solid var(--line-strong);
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  background:var(--paper);
  transition:all .15s ease;
}
.pill:hover{border-color:var(--navy);}
.pill.active{background:var(--navy); border-color:var(--navy); color:var(--paper);}

.tag-line{
  font-family:var(--mono);
  font-size:12px;
  color:var(--ink-soft);
}

/* Utility */
.text-center{text-align:center;}
.mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-40{margin-top:40px;}
