/* Milton Parc — rental apartments in Montreal */
:root {
  --bg: #fbfaf7;
  --ink: #16130f;
  --muted: #6e6557;
  --accent: #2f6f5e;
  --accent-soft: #dce8e3;
  --card: #ffffff;
  --line: #e4dcd0;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --header-h: 4.1rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h); /* clears the fixed header */
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 5vw;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.site-header .brand { color: var(--ink); }
.site-header .nav a { color: var(--ink); opacity: 0.75; }
.site-header .nav a:hover { opacity: 1; }

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav { display: flex; gap: 1.75rem; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav a:hover { opacity: 1; }

/* Logo band — full-width white strip under the nav */
.logo-band {
  width: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  padding: 2.2rem 5vw 2.6rem;
}
.logo-band-img {
  width: min(720px, 92vw);
  height: auto;
  display: block;
}

/* Hero — full-bleed photo below the logo band */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,16,13,0.44) 0%, rgba(8,16,13,0.34) 32%, rgba(8,16,13,0.66) 52%, rgba(8,16,13,0.8) 100%);
  z-index: -1;
}
.hero-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 6rem 5vw;
  width: 100%;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.hero-content .eyebrow { color: #d9ece5; }
.hero-content h1 {
  max-width: 22em;
}
.hero-content .lede {
  max-width: 42rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: #cfe3dc; }
.lede {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--muted);
}
.hero-cta { margin-top: 2.25rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: #16130f; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.btn-ghost { border: 1.5px solid #fff; color: #fff; background: rgba(255,255,255,0.26); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.38); }

/* Sections */
section { padding: 7rem 5vw; max-width: min(3400px, 96vw); margin: 0 auto; scroll-margin-top: 5rem; }
.section-head { margin-bottom: 3.5rem; }
.section-head h2,
.contact h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
#about, #location { padding-top: 4rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  max-width: 1300px;
  margin: 0 auto;
}
.about-text p { margin-bottom: 1.25rem; font-size: 1.05rem; }
.about-text .muted { color: var(--muted); }
.about-list { display: flex; flex-direction: column; gap: 1.25rem; }
.about-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  font-size: 1.02rem;
}
.about-num { font-family: var(--serif); color: var(--accent); font-size: 1.3rem; }

/* Listings */
.listings { background: #fff; }
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1500px;
  margin: 0 auto;
}
.listing-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.25s;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(22,19,15,0.1);
}
.thumb {
  aspect-ratio: 4 / 3;
  border-radius: 0.6rem;
  margin-bottom: 1rem;
}
.thumb-studio { background: linear-gradient(135deg, #bcd4cb, #4a7a68); }
.thumb-one { background: linear-gradient(135deg, #d8d0bf, #7a6f57); }
.thumb-two { background: linear-gradient(135deg, #c6ccd8, #4f5a72); }
.listing-type {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.listing-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.listing-desc { font-size: 0.92rem; color: var(--muted); }

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1500px;
  margin: 0 auto;
}
.location-item {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
}
.loc-label {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Contact */
.contact { text-align: center; padding-bottom: 8rem; }
.contact .btn { margin-top: 1.75rem; color: var(--bg); background: var(--ink); }
.contact .muted { margin-top: 0.75rem; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 5vw;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-content h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .listing-grid, .location-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .listing-grid, .location-grid { grid-template-columns: 1fr; }
  .nav { gap: 1rem; font-size: 0.8rem; }
}
@media (min-width: 2200px) { html { font-size: 20px; } }
@media (min-width: 3000px) { html { font-size: 24px; } }