/* ============================================
   RÉSIDENCES MONTRÉAL — Design System v2
   ============================================ */

:root {
  --navy:     #1a2f4e;
  --blue:     #2563eb;
  --blue-dk:  #1d4ed8;
  --blue-lt:  #eff6ff;
  --green:    #059669;
  --green-lt: #ecfdf5;
  --gold:     #f59e0b;
  --bg:       #f7f9fc;
  --card:     #ffffff;
  --text:     #1a2f4e;
  --muted:    #64748b;
  --border:   #e2e8f0;
  --sh:       0 1px 3px rgba(0,0,0,.06), 0 4px 20px rgba(26,47,78,.07);
  --sh-lg:    0 4px 8px rgba(0,0,0,.06), 0 12px 40px rgba(26,47,78,.13);
  --r:        16px;
  --r-sm:     10px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: .95rem; font-weight: 700; }
p  { color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
a  { color: var(--blue); }
ul, ol { padding-left: 1.25rem; }
li { color: var(--muted); margin-bottom: .35rem; line-height: 1.6; }
table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
th { background: var(--navy); color: #fff; padding: .75rem; text-align: left; font-size: .9rem; }
td { padding: .75rem; border: 1px solid var(--border); color: var(--muted); font-size: .92rem; }
tr:nth-child(even) td { background: var(--blue-lt); }
/* override any inline table styles from content pages */
main.container table th[style] { background: var(--navy) !important; color: #fff !important; }
img { max-width: 100%; border-radius: 12px; display: block; }

/* ─── NAV ─── */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 2px 12px rgba(0,0,0,.2);
}
nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 2px;
}
nav a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: .87rem;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
nav a:hover { color: #fff; background: rgba(255,255,255,.1); }

/* Brand = uses class='cta' in canonical nav markup */
nav a.cta {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-right: auto;
  padding: 0;
  background: none;
  box-shadow: none;
}
nav a.cta:hover { background: none; transform: none; box-shadow: none; }

/* Language toggle */
nav a.lang {
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  letter-spacing: .06em;
  font-weight: 600;
  margin-left: auto;
}

/* Contact link — highlighted */
nav a[href='contact.html'] {
  background: var(--blue);
  color: #fff;
  padding: 8px 18px;
  font-weight: 700;
  margin-left: 6px;
  border-radius: 8px;
}
nav a[href='contact.html']:hover { background: var(--blue-dk); }

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
section { padding: 80px 0; }

/* ─── CONTENT PAGES (main.container wraps article-style pages) ─── */
main.container {
  padding-top: 52px;
  padding-bottom: 80px;
}
main.container h1 { margin-bottom: 1.25rem; }
main.container h2 { margin-top: 2.5rem; margin-bottom: .6rem; color: var(--text); }
main.container h3 { margin-top: 1.5rem; margin-bottom: .4rem; color: var(--text); }
main.container p  { margin-bottom: .9rem; }
main.container ul,
main.container ol { margin-bottom: 1rem; }
main.container section { padding: 0; margin-top: 2.5rem; }

/* ─── HERO (legacy two-col layout) ─── */
.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}

/* ─── CARDS ─── */
.card {
  background: var(--card);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--sh);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.card h2, .card h3 { color: var(--text); }

/* ─── GRID ─── */
.grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

/* ─── BUTTONS ─── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff !important;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(37,99,235,.28);
}
.cta:hover { background: var(--blue-dk); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(37,99,235,.38); }

.cta-white {
  background: #fff;
  color: var(--navy) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.cta-white:hover { background: #f0f4ff; box-shadow: 0 4px 20px rgba(0,0,0,.2); }

.cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--blue) !important;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid var(--blue);
  transition: background .15s, transform .15s;
}
.cta-outline:hover { background: var(--blue-lt); transform: translateY(-1px); }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.85) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 20px;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(255,255,255,.3);
  transition: background .15s, color .15s;
}
.cta-ghost:hover { background: rgba(255,255,255,.1); color: #fff !important; }

button.cta { width: 100%; justify-content: center; font-size: 1rem; padding: 14px 28px; }

/* ─── BADGE ─── */
.badge {
  display: inline-block;
  background: var(--green-lt);
  color: #065f46;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.badge-blue { background: var(--blue-lt); color: var(--blue-dk); }
.badge-gold { background: #fffbeb; color: #92400e; }

/* ─── FORMS ─── */
label { display: block; font-weight: 600; font-size: .9rem; color: var(--text); margin-bottom: .3rem; }
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 14px;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* ─── HOMEPAGE — HERO SECTION ─── */
.hero-section {
  background: linear-gradient(135deg, #1a2f4e 0%, #1e4080 55%, #2563eb 100%);
  padding: 80px 0 72px;
  overflow: hidden;
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-text { color: #fff; }
.hero-text h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-text p  { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-badges span {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-trust span { color: rgba(255,255,255,.65); font-size: .83rem; display: flex; align-items: center; gap: 5px; }
.hero-trust span::before { content: '✓'; color: #34d399; font-weight: 800; }
.hero-img-wrap { position: relative; }
.hero-img-wrap img { border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.hero-img-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--sh-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}
.hero-img-float .float-num { font-size: 1.6rem; font-weight: 800; color: var(--blue); }
.hero-img-float .float-label { font-size: .8rem; color: var(--muted); line-height: 1.3; }

/* ─── STATS STRIP ─── */
.stats-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.stats-strip section { padding: 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.stat-item {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num  { display: block; font-size: 2.2rem; font-weight: 800; color: var(--blue); letter-spacing: -.04em; }
.stat-label{ display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; font-weight: 500; }

/* ─── SECTION HEADER ─── */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-header h2 { color: var(--text); margin-bottom: .75rem; }
.section-header p  { font-size: 1.05rem; margin: 0; }

/* ─── STEPS ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-lt), var(--blue), var(--blue-lt));
}
.step-card {
  background: #fff;
  border-radius: var(--r);
  padding: 36px 28px 28px;
  box-shadow: var(--sh);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
}
.step-num {
  width: 52px;
  height: 52px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.step-card h3 { color: var(--text); margin-bottom: .5rem; }

/* ─── ADVISOR SPLIT ─── */
.advisor-split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: center;
}
.advisor-portrait {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
}
.advisor-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.advisor-text { }
.advisor-text h2 { color: var(--text); margin: 12px 0 16px; }
.check-list { list-style: none; padding: 0; margin-bottom: 28px; }
.check-list li {
  color: var(--text);
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.check-list li:last-child { border-bottom: none; }

/* ─── NEIGHBORHOOD CARDS ─── */
.nbh-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .2s, box-shadow .2s;
}
.nbh-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.nbh-icon { font-size: 2rem; margin-bottom: 4px; }
.nbh-card h3 { color: var(--text); }
.nbh-card p  { font-size: .88rem; margin: 0; flex: 1; }
.nbh-price {
  display: inline-block;
  background: var(--blue-lt);
  color: var(--blue-dk);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: .8rem;
  font-weight: 700;
  margin-top: 8px;
}

/* ─── TESTIMONIALS ─── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial .stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial .quote { color: var(--text); font-size: .95rem; line-height: 1.65; font-style: italic; margin-bottom: 16px; }
.testimonial .quote::before { content: '\201C'; color: var(--blue); font-size: 2rem; line-height: .5; vertical-align: -12px; margin-right: 3px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-author strong { display: block; font-size: .9rem; color: var(--text); }
.t-author span    { font-size: .8rem; color: var(--muted); }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}

/* ─── TRUST FEATURES GRID ─── */
.trust-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.trust-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trust-feat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 20px;
}
.trust-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.trust-feat h4 { color: var(--text); margin-bottom: 4px; font-size: .9rem; }
.trust-feat p  { font-size: .83rem; margin: 0; line-height: 1.5; }
.cta-link { color: var(--blue); font-weight: 600; text-decoration: none; font-size: .95rem; }
.cta-link:hover { text-decoration: underline; }

/* ─── FINAL CTA BAND ─── */
.cta-band {
  background: linear-gradient(135deg, #1a2f4e, #2563eb);
  text-align: center;
  color: #fff;
  padding: 80px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.cta-band p  { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 500px; margin: 0 auto 2.5rem; }
.cta-band .sub { color: rgba(255,255,255,.45); font-size: .82rem; margin-top: 1.5rem; }

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.5);
  padding: 28px 24px;
  text-align: center;
  font-size: .85rem;
}
footer a { color: rgba(255,255,255,.6); text-decoration: none; }
footer a:hover { color: #fff; }
footer p { color: rgba(255,255,255,.5); margin: 0; }

/* ─── ARTICLE PAGES (for content pages like RPA guides) ─── */
.intro { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.7; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .advisor-split { grid-template-columns: 1fr; gap: 40px; }
  .advisor-portrait { aspect-ratio: 4/3; max-width: 440px; }
  .trust-split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-img-wrap { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .trust-features { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  section { padding: 56px 0; }
  nav a:not(.cta):not(.lang):not([href='contact.html']) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero img { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas a { width: 100%; justify-content: center; }
}
