/* ============================================================
   Denis Lefebvre — Royal LePage Tendance
   style.css — Premium Montreal Real Estate Website
   ============================================================ */

/* ─── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Custom Properties ──────────────────────────────────────── */
:root {
  --red: #C8102E;
  --red-dark: #a00d25;
  --red-light: #e8203e;
  --black: #1A1A1A;
  --black-soft: #2a2a2a;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-mid: #E8E8E8;
  --gray: #9a9a9a;
  --gray-dark: #555555;
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #888888;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --nav-height: 80px;
  --section-pad: 100px;
  --container-max: 1280px;
  --container-pad: clamp(20px, 5vw, 60px);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.16);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.16s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ─── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ─── Scroll Animations ──────────────────────────────────────── */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3,
.reveal-delay-4 {
  /* no stagger needed */
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.3);
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 24px rgba(200, 16, 46, 0.45);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.75);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.btn-outline-dark:hover {
  background: var(--black);
  color: var(--white);
}

.btn-centris {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  width: 100%;
  justify-content: center;
}

.btn-centris:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.35);
}

/* ─── Section Titles ─────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
  background: rgba(255,255,255,0.0);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.06);
}

.navbar.scrolled .nav-link {
  color: var(--black);
}

.navbar.scrolled .nav-brand-name {
  color: var(--black);
}

/* Over a dark section while scrolled (e.g. Contact) */
.navbar.scrolled.nav-over-dark {
  background: rgba(26,26,26,0.96);
  box-shadow: 0 2px 0 rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
}

.navbar.scrolled.nav-over-dark .nav-link {
  color: rgba(255,255,255,0.85);
}

.navbar.scrolled.nav-over-dark .nav-brand-name {
  color: var(--white);
}

.navbar.scrolled.nav-over-dark .lang-toggle {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}

.navbar.scrolled.nav-over-dark .lang-toggle:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.navbar.scrolled.nav-over-dark .hamburger span {
  background: var(--white);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.15));
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  transition: color var(--transition);
}

.nav-brand-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.navbar.scrolled .nav-link:hover {
  background: var(--gray-light);
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hide mobile-only nav items on desktop */
.nav-mobile-bottom {
  display: none;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.4);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  transition: all var(--transition);
  cursor: pointer;
  background: transparent;
}

.lang-toggle:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.navbar.scrolled .lang-toggle {
  border-color: rgba(26,26,26,0.3);
  color: var(--black);
}

.navbar.scrolled .lang-toggle:hover {
  border-color: var(--black);
  background: var(--gray-light);
}

.lang-toggle span {
  opacity: 0.55;
  transition: opacity var(--transition-fast);
}

.lang-toggle span.active {
  opacity: 1;
}

.lang-sep {
  opacity: 0.35;
  margin: 0 1px;
}

.nav-cta {
  padding: 10px 22px;
  font-size: 0.875rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.hamburger:hover {
  background: rgba(255,255,255,0.1);
}

.navbar.scrolled .hamburger:hover {
  background: var(--gray-light);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.navbar.scrolled .hamburger span {
  background: var(--black);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-overlay.visible {
  opacity: 1;
}

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.1s linear;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,26,26,0.88) 0%,
    rgba(26,26,26,0.70) 55%,
    rgba(200,16,46,0.22) 100%
  );
  z-index: 1;
}

/* Fallback pattern if image doesn't load */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(200,16,46,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(200,16,46,0.08) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease both;
}

.hero-eyebrow-line {
  width: 32px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.hero-eyebrow-text {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-heading em {
  font-style: italic;
  color: rgba(255,255,255,0.9);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 44px;
  font-weight: 400;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--white);
  border-radius: 1px;
}

.hero-scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── ABOUT ──────────────────────────────────────────────────── */
.about {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-col {
  position: relative;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--red) 0%, transparent 60%);
  z-index: -1;
  opacity: 0.6;
}

.about-headshot {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-badge-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.about-badge-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.35;
}

.about-badge-text span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.about-content-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-bio p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  border: 1px solid var(--gray-mid);
  transition: all var(--transition);
}

.stat-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Areas */
.about-areas {
  margin-top: 8px;
}

.about-areas-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area-tag {
  padding: 6px 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.area-tag:hover,
.area-tag.active {
  border-color: var(--red);
  color: var(--red);
  background: rgba(200,16,46,0.05);
  cursor: pointer;
}

/* ─── Area Popup Tooltip ──────────────────────────────────────── */
.about-areas {
  position: relative;
}

.area-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--gray-mid);
  padding: 1.25rem 1.5rem 1.25rem;
  z-index: 200;
  animation: popup-in 0.2s ease;
}

.area-popup.visible {
  display: block;
}

@keyframes popup-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.area-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.15s;
}
.area-popup-close:hover { color: var(--text-primary); }

.area-popup-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
  padding-right: 1.5rem;
}

.area-popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
}

@media (max-width: 540px) {
  .area-popup-grid { grid-template-columns: 1fr; }
}

.area-popup-item-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2px;
}

.area-popup-item-value {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* small arrow pointing down toward the tags */
.area-popup::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 32px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-right: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
  transform: rotate(45deg);
}

/* ─── PROPERTIES ─────────────────────────────────────────────── */
.properties {
  padding: var(--section-pad) 0;
  background: var(--gray-light);
}

/* Filters */
.properties-filters {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 6px;
  background: var(--white);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-mid);
}

.filter-btn {
  padding: 9px 20px;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  border: none;
  background: transparent;
  cursor: pointer;
}

.filter-btn:hover {
  color: var(--black);
  background: var(--gray-light);
}

.filter-btn.active {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(200,16,46,0.3);
}

.filter-select-wrap {
  position: relative;
}

.filter-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--gray-dark);
  pointer-events: none;
}

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 40px 10px 16px;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--transition-fast);
  min-width: 200px;
}

.filter-select:hover, .filter-select:focus {
  border-color: var(--red);
  outline: none;
}

/* Properties Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* CTA Card (replaces broken-image property cards) */
.cta-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Theme: Contact — deep red */
.cta-theme-contact {
  background: linear-gradient(135deg, #c0392b 0%, #7b1a1a 100%);
}

/* Theme: Valuation — dark slate blue */
.cta-theme-valuation {
  background: linear-gradient(135deg, #1a2c4e 0%, #0f1c32 100%);
}

/* Theme: Buyer — warm forest green */
.cta-theme-buyer {
  background: linear-gradient(135deg, #1e4d35 0%, #0f2e1e 100%);
}

/* Theme: Tips — charcoal with gold accent */
.cta-theme-tips {
  background: linear-gradient(135deg, #2c2c2c 0%, #111 100%);
}

/* Theme: Stats / credibility — rich burgundy */
.cta-theme-stats {
  background: linear-gradient(135deg, #6b2d3e 0%, #3d1322 100%);
}

/* Theme: Investment — deep teal */
.cta-theme-invest {
  background: linear-gradient(135deg, #0f3d3d 0%, #062626 100%);
}

.cta-card-inner {
  padding: 2rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.cta-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.cta-icon {
  font-size: 2rem;
  line-height: 1;
  margin: 0.25rem 0;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.cta-sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.72);
  margin: 0;
  line-height: 1.55;
}

.cta-btn {
  margin-top: 0.75rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.cta-btn:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

/* Property Card */
.property-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  opacity: 1;
}

.property-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.card-image-link {
  display: block;
  overflow: hidden;
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.property-card:hover .card-image {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-condo {
  background: rgba(200,16,46,0.9);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.badge-maison {
  background: rgba(26,26,26,0.85);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-neighborhood {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-address {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

.card-price {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}

/* No results */
#no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1rem;
  width: 100%;
  grid-column: 1 / -1;
}

/* ─── SERVICES ───────────────────────────────────────────────── */
.services {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--gray-mid);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.service-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(200,16,46,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(200,16,46,0.15);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--red);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 14px;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ─── CONTACT ────────────────────────────────────────────────── */
.contact {
  padding: var(--section-pad) 0;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,16,46,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.contact .section-label {
  color: rgba(200,16,46,0.9);
}

.contact .section-title {
  color: var(--white);
}

.contact .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Form */
.contact-form-wrap {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255,255,255,0.11);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 15px 28px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(200,16,46,0.35);
}

.btn-submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(200,16,46,0.5);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
  color: #86efac;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-success.visible {
  display: block;
}

/* Contact Info */
.contact-info {
  padding-top: 8px;
}

.contact-info-title {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,16,46,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  color: var(--red);
}

.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.contact-info-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}

.contact-info-value a {
  color: rgba(255,255,255,0.88);
  transition: color var(--transition-fast);
}

.contact-info-value a:hover {
  color: var(--red);
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.contact-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.contact-social-link:hover {
  color: var(--white);
}

.contact-social-link svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.contact-headshot-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
}

.contact-headshot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--red);
}

.contact-headshot-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-headshot-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
}

.contact-headshot-role {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: #111111;
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-headshot-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--red);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--red);
  color: var(--white);
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--white);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-list li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.footer-contact-list a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}

.footer-contact-list a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

.footer-oaciq {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  :root {
    --section-pad: 72px;
  }

  .about-grid {
    gap: 48px;
  }

  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
    --section-pad: 56px;
    --container-pad: 20px;
  }

  /* Nav Mobile */
  .hamburger {
    display: flex;
  }

  .nav-overlay {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + 24px) 24px 40px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
    box-shadow: -8px 0 32px rgba(0,0,0,0.2);
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    color: var(--black) !important;
    font-size: 1rem;
    padding: 12px 16px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-right {
    display: none;
  }

  .nav-mobile-bottom {
    margin-top: auto;
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid var(--gray-mid);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Hero Mobile */
  .hero-content {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
  }

  .hero-heading {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  /* About Mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-col {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }

  .about-badge {
    bottom: -12px;
    right: -8px;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Properties Mobile */
  .properties-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .filter-select {
    min-width: unset;
    width: 100%;
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }

  /* Services Mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Contact Mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrap {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 18px 20px;
  }

  .stat-number {
    font-size: 1.875rem;
    margin-bottom: 0;
    min-width: 70px;
  }
}

/* ─── NAV BRAND LOGO ─────────────────────────────────────────── */
.nav-brand-logo {
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: filter var(--transition), opacity var(--transition);
}

.navbar.scrolled .nav-brand-logo {
  filter: none;
  opacity: 1;
}

/* ─── CARD FOOTER ────────────────────────────────────────────── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.card-btn-details {
  flex: 1;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.875rem;
}

.card-btn-contact {
  flex: 1;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.875rem;
}

/* ─── PROPERTY DETAIL MODAL ──────────────────────────────────── */
.prop-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 20px;
}

.prop-modal-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.prop-modal-inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1100px;
  position: relative;
  overflow: hidden;
  margin: auto;
  box-shadow: var(--shadow-lg);
}

.prop-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.prop-modal-close:hover {
  background: var(--red);
}

.prop-modal-body {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 500px;
}

/* Gallery */
.prop-gallery-col {
  background: #111;
  display: flex;
  flex-direction: column;
}

.prop-gallery-main {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 360px;
}

.prop-gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.prop-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  z-index: 2;
}

.prop-gallery-nav:hover { background: var(--red); }
.prop-gallery-prev { left: 12px; }
.prop-gallery-next { right: 12px; }

.prop-gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.prop-gallery-thumbs {
  display: flex;
  gap: 4px;
  padding: 8px;
  overflow-x: auto;
  background: #1a1a1a;
  scrollbar-width: thin;
}

.prop-gallery-thumb {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity var(--transition-fast), outline var(--transition-fast);
  border: 2px solid transparent;
}

.prop-gallery-thumb:hover { opacity: 0.85; }
.prop-gallery-thumb.active { opacity: 1; border-color: var(--red); }

/* Detail column */
.prop-detail-col {
  padding: 32px 28px;
  overflow-y: auto;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prop-detail-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.prop-detail-type {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--red);
  color: white;
}

.prop-detail-neighborhood {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--gray-light);
  color: var(--text-secondary);
  border: 1px solid var(--gray-mid);
}

.prop-detail-address {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.25;
  margin-bottom: 6px;
}

.prop-detail-price {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--red);
}

.prop-detail-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-top: 16px;
  border-top: 1px solid var(--gray-mid);
}

/* Contact form inside modal */
.prop-contact-wrap {
  padding-top: 20px;
  border-top: 1px solid var(--gray-mid);
  margin-top: auto;
}

.prop-contact-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.prop-contact-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.prop-contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prop-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.prop-contact-form input,
.prop-contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition-fast);
  outline: none;
}

.prop-contact-form input:focus,
.prop-contact-form textarea:focus {
  border-color: var(--red);
}

.prop-contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.prop-form-submit {
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.prop-form-submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,16,46,0.35);
}

.prop-form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.prop-form-status {
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 20px;
}

.prop-form-status.success { color: #2e7d32; }
.prop-form-status.error   { color: var(--red); }

/* Responsive modal */
@media (max-width: 900px) {
  .prop-modal-body {
    grid-template-columns: 1fr;
  }
  .prop-gallery-main {
    min-height: 260px;
  }
  .prop-detail-col {
    max-height: none;
    padding: 24px 20px;
  }
}

@media (max-width: 600px) {
  .prop-modal-overlay {
    padding: 0;
  }
  .prop-modal-inner {
    border-radius: 0;
    min-height: 100vh;
  }
  .prop-form-row {
    grid-template-columns: 1fr;
  }
}
