/* ── RESET & TOKENS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* --gold: #fdd16a; */
  --gold: #e9aa17;
  --gold-light: #dea625;
  --gold-pale: #fdf6e3;
  --gold-dark: #c9a84c;
  --dark: #1a1a1a;
  --dark2: #2a2a2a;
  --light: #ffffff;
  --text: #2c2c2c;
  --text-muted: #3a3a3a;
  --white: #fff;
  --radius: 12px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --black: #000;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;   /* clears the ~94px fixed navbar on anchor jumps */
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── SCROLL REVEAL ── */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.reveal        { transform: translateY(40px); }
.reveal-left   { transform: translateX(-50px); }
.reveal-right  { transform: translateX(50px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(253,209,106,0.25);
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
#navbar.scrolled {
  padding: 0.6rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.nav-inner {
  margin: 0 3%;
  padding-right: 0.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; flex-shrink: 0;
}
.logo img { height: 65px; width: auto; object-fit: contain; }
.logo-remax { height:55px !important;opacity: 0.9; border-right: 1px solid rgba(253,209,106,0.3); padding-right: 0.6rem; margin-right: 0.2rem; }
.logo-name-img { height: 32px; width: auto; object-fit: contain; }
.nav-links { list-style: none; display: flex; gap: 1.8rem; align-items: center; margin: 0 30px}
.nav-links a {
  color: var(--dark); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.btn-nav {
  background: var(--gold); color: var(--white) !important;
  padding: 0.5rem 1.2rem; border-radius: 50px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.btn-nav:hover { background: var(--gold-light) !important; transform: translateY(-1px); }
.social-icons { display: flex; gap: 0.4rem; align-items: center; }
.social-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  color: var(--gold);
  /* background: rgba(253,209,106,0.1); */
  background: #fff;
  border: 1px solid rgba(253,209,106,0.3);
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}
.social-icons a:hover { transform: translateY(-3px); }
.social-icons a.si-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #dc2743; color: #fff; }
.social-icons a.si-tiktok:hover    { background: #010101; border-color: #010101; color: #fff; }
.social-icons a.si-youtube:hover   { background: #ff0000; border-color: #ff0000; color: #fff; }
.social-icons a.si-facebook:hover  { background: #1877f2; border-color: #1877f2; color: #fff; }
.social-icons a.si-linkedin:hover  { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.social-icons svg { width: 20px; height: 20px; }
.hamburger { display: none; background: none; border: none; color: var(--dark); font-size: 1.5rem; cursor: pointer; }
.mobile-social { display: none; }

/* ── HERO SLIDER ── */
#top {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 80px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  text-align: center;
}
.slider {
  position: absolute; inset: 0;
  z-index: 0;
}
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center center; background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s cubic-bezier(0.4,0,0.2,1);
  will-change: transform, opacity;
}
.slide.active {
  opacity: 1;
  animation: kenBurns 8s ease-in-out both;
}
.slide.prev {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4,0,0.2,1);
  animation-fill-mode: both;
}
@keyframes kenBurns {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.18) translate(-2%, -1.5%); }
}
@keyframes kenBurns2 {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.18) translate(2%, -1%); }
}
@keyframes kenBurns3 {
  0%   { transform: scale(1.08) translate(1.5%, 0); }
  100% { transform: scale(1.18) translate(-1%, -2%); }
}
.slide:nth-child(2).active  { animation-name: kenBurns2; animation-duration: 8s; }
.slide:nth-child(3).active  { animation-name: kenBurns3; animation-duration: 8s; }
.slide:nth-child(4).active  { animation-name: kenBurns;  animation-duration: 8s; }
.slide:nth-child(5).active  { animation-name: kenBurns2; animation-duration: 8s; }
.slide:nth-child(6).active  { animation-name: kenBurns3; animation-duration: 8s; }
.slide:nth-child(7).active  { animation-name: kenBurns;  animation-duration: 8s; }
.slide:nth-child(8).active  { animation-name: kenBurns2; animation-duration: 8s; }
.slide:nth-child(9).active  { animation-name: kenBurns3; animation-duration: 8s; }
.slide:nth-child(10).active { animation-name: kenBurns;  animation-duration: 8s; }
.slide:nth-child(11).active { animation-name: kenBurns2; animation-duration: 8s; }
.slide:nth-child(12).active { animation-name: kenBurns3; animation-duration: 8s; }
.slider-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
}
.banner-content {
  position: relative; z-index: 3;
  max-width: 780px; padding: 0 2rem;
}
.hero-tag {
  display: inline-block;
  background: rgba(253,209,106,0.15);
  border: 1px solid rgba(253,209,106,0.5);
  color: var(--gold);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 0.4rem 1.2rem; border-radius: 50px; margin-bottom: 1.5rem;
}
.banner-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--white); line-height: 1.1; margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.banner-content h1 em { color: var(--gold); font-style: normal; }
.banner-content p {
  color: rgba(255,255,255,0.82); font-size: 1.1rem;
  max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.banner-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
/* Slider dots */
.slider-dots {
  position: absolute; bottom: 5rem; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; gap: 0.6rem; align-items: center;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: none; cursor: pointer; padding: 0;
  transition: background 0.3s, transform 0.3s, width 0.3s;
}
.slider-dot.active {
  background: var(--gold); width: 24px; border-radius: 4px; transform: none;
}
/* Slider arrows */
.slider-arrows {
  position: absolute; bottom: 4.6rem; right: 2rem;
  z-index: 4; display: flex; gap: 0.5rem;
}
.slider-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
}
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); transform: scale(1.1); }

/* ── SLIDER CTA BAR (over slider; shows while user is viewing slider) ── */
.slider-cta-bar {
  position: absolute; /* sits over slider while visible */
  left: 0; right: 0; bottom: 0;
  z-index: 6; display: flex; justify-content: center; pointer-events: auto;
  transition: opacity 0.32s var(--transition), transform 0.32s var(--transition), box-shadow 0.3s var(--transition);
  opacity: 1;
}
.slider-cta-bar.hidden {
  opacity: 0; transform: translateY(8px); pointer-events: none; will-change: opacity, transform;
}
.slider-cta-inner {
  max-width: none !important;
  width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  padding: 0.75rem 1.25rem !important;
}
.slider-cta-left,
.slider-cta-right {
  text-decoration: none; color: var(--dark); font-weight: 700; font-size: 0.95rem;
}
.slider-cta-left { text-transform: none; }
.slider-cta-right { text-transform: uppercase; letter-spacing: 0.6px; }

/* When attached to navbar, make bar fixed and sit just under navbar (kept for backward compatibility)
   Note: the current behavior hides the bar when slider is not visible, so attachment is rarely used. */
.slider-cta-bar.attached {
  position: fixed; bottom: auto; left: 0; right: 0; box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.slider-cta-bar.attached .slider-cta-inner { transform: translateY(0); }

/* Responsive: stack on small screens handled in 640px breakpoint below */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 4;
}
.scroll-hint span {
  display: block; width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── SHARED ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section {
  padding: 6rem 0;
  scroll-margin-top: 100px;   /* match navbar height so anchors don't hide under it */
}
.section-tag {
  display: inline-block; color: var(--gold);
  font-size: 1.25rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--dark); line-height: 1.2;
}
.section-sub { color: var(--text-muted); margin-top: 0.5rem; }
.split { display: grid; gap: 5rem; align-items: center; }
#about .split  { grid-template-columns: 1fr 1fr; }
#contact .split { grid-template-columns: 1fr 1fr; }
.btn-primary {
  background: var(--gold); color: var(--white);
  padding: 0.85rem 2rem; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(253,209,106,0.35);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(253,209,106,0.5); }
.btn-outline {
  background: transparent; color: var(--dark);
  padding: 0.85rem 2rem; border-radius: 50px;
  font-weight: 500; font-size: 0.95rem; text-decoration: none;
  border: 1px solid rgba(253,209,106,0.5);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── ABOUT ── */
#about { background: var(--light); }
#about h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 1.2rem; color: var(--dark); }
#about p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.2rem; }
.about-cta-line { font-family: var(--font-serif); font-size: 1.05rem; color: #e3a508 !important; font-style: italic; margin-top: 1rem; }
.about-photo { position: relative; }
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.photo-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.stack-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.stack-img.active { opacity: 1; }
.photo-badge {
  position: absolute; bottom: -1rem; left: -1rem;
  background: var(--gold); color: var(--dark);
  font-weight: 700; font-size: 0.85rem; padding: 0.75rem 1.25rem;
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(253,209,106,0.4);
}

/* ── SERVICES ── */
#services { background: var(--light); }
#services .section-header h2 { color: var(--dark); }
.cards {
  display: flex;             /* Changed from grid to flex */
  flex-wrap: wrap;           /* Allows cards to move to the next row */
  justify-content: center;   /* Centers the 2 cards on the second row */
  gap: 1.5rem;
}

.card {
  flex: 1 1 300px;           /* Replaces minmax(300px, 1fr) */
  max-width: calc(33.333% - 1rem); /* Prevents 2 cards from stretching too wide */

  background: var(--black);
  /* border: 1px solid rgba(253,209,106,0.2); */
  border: 4px solid; border-color: var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 12px 40px rgba(253,209,106,0.15); }
.card-icon {
  border-radius: 12px;
  border: 1px solid var(--gold);
  display: flex; align-items: center;
  margin-bottom: 1.2rem;
  color: var(--gold);
  transition: background 0.3s, border-color 0.3s;
  overflow: hidden;
}
.card-icon h3 { margin-left: 10px; font-size: 1.2rem; }
.card:hover .card-icon { background: var(--gold); border-color: var(--gold); color: var(--white); }
.card-img { height: 200px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; margin: -2rem -2rem 1.5rem; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--transition); }
.card:hover .card-img img { transform: scale(1.06); }
.card h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.6rem; }
.card p { color: var(--white); font-size: 0.9rem; line-height: 1.7; }
.card:hover h3 { color: var(--white); }

/* ── MARKETS ── */
#markets { background: var(--white); }
.markets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.markets-grid2 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; width:40%; margin:0 auto; }

.market-card {
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: default;
  transition: transform 0.4s var(--transition);
  transition-delay: calc(var(--i) * 0.08s);
}
.market-card:hover { transform: scale(1.03); }
.market-img {
  height: 200px;
  background-size: cover; background-position: top;
  transition: transform 0.5s var(--transition);
}
.market-card:hover .market-img { transform: scale(1.06); }
.oakville   { background-color: #1a2d3d; background-image: linear-gradient(135deg, #1a2d3d, #2980b9); }
.milton     { background-color: #1a3a2a; background-image: linear-gradient(135deg, #1a3a2a, #27ae60); }
.georgetown { background-color: #3d2d1a; background-image: linear-gradient(135deg, #3d2d1a, #e67e22); }
.market-card h3 {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1rem 1rem;
  /* background: linear-gradient(to top, rgba(0,0,0,0.75), transparent); */
  color: var(--white); font-size: 1rem; font-weight: 600;
}

/* ── LISTINGS ── */
#listings { background: var(--light); }
.widget-placeholder {
  /* Plain wrapper now — the golden border lives on the iframe itself so it
     always hugs the exact widget size. */
  line-height: 0;
  font-size: 0;
}
.widget-inner { width: 100%; line-height: 0; }
/* Golden frame applied directly to the widget iframe */
.widget-inner iframe {
  display: block;
  width: 100%;
  border: 4px solid var(--gold);
  border-radius: var(--radius);
  background: #fff;         /* match the widget's white content so empty area isn't black */
  box-sizing: border-box;   /* border drawn inside the iframe's own box */
}
.widget-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.widget-inner code {
  background: rgba(0,0,0,0.07); padding: 0.2rem 0.5rem;
  border-radius: 4px; font-size: 0.8rem;
}

/* ── CONTACT ── */
#contact { background: var(--light); }
.contact-split { gap: 4rem; }
.contact-info .section-tag { display: block; }
.contact-info h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--dark); margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; }
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.contact-detail-link {
  display: flex; align-items: center; gap: 0.9rem;
  text-decoration: none; color: var(--text);
  font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s;
}
.contact-detail-link:hover { color: var(--gold); }
.contact-detail-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  color: var(--white);
  background: var(--gold);
  border: 1px solid var(--gold);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.contact-detail-link:hover .contact-detail-icon {
  background: var(--gold); color: var(--white); border-color: var(--gold);
}
.contact-social { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.about-social-mobile {
  display: none;
  gap: 0.4rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.about-social-mobile a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  color: var(--gold);
  background: #fff;
  border: 1px solid rgba(253,209,106,0.3);
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}
.about-social-mobile a:hover { transform: translateY(-3px); }
.about-social-mobile a.si-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #dc2743; color: #fff; }
.about-social-mobile a.si-tiktok:hover    { background: #010101; border-color: #010101; color: #fff; }
.about-social-mobile a.si-youtube:hover   { background: #ff0000; border-color: #ff0000; color: #fff; }
.about-social-mobile a.si-facebook:hover  { background: #1877f2; border-color: #1877f2; color: #fff; }
.about-social-mobile a.si-linkedin:hover  { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.about-social-mobile svg { width: 20px; height: 20px; }
.about-instagram { display: flex; gap: 0.5rem; align-items: center; margin-top: 1.5rem; }
.about-instagram a {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--gold); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  padding: 0 1rem;
  width: auto; height: 38px; border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(253,209,106,0.3);
  justify-content: center;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.about-instagram a:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #dc2743; color: #fff; transform: translateY(-3px); }
.about-instagram svg { width: 20px; height: 20px; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--white);
  border: 1px solid rgba(253,209,106,0.3);
  border-radius: 8px; padding: 0.85rem 1rem;
  color: var(--dark); font-family: var(--font-sans); font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form select { color: var(--text-muted); }
.contact-form select option { background: var(--white); color: var(--dark); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--gold); }
.contact-form textarea { resize: vertical; }
input[type="checkbox"] {
  transform: scale(1.5); /* Makes the checkbox 1.5x larger */
  margin: 10px;
  cursor: pointer;
}
.contact-form label { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }


/* ── FOOTER ── */
footer { background: var(--dark); padding: 1rem 0; text-align: center; border-top: 2px solid rgba(253,209,106,0.4); }
.footer-inner { display: flex; align-items: center; justify-content: space-between }
.footer-remax { flex-shrink: 0; }
.footer-remax img { height: 50px; width: auto; opacity: 0.9; }
.footer-text { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer-name-img { height: 70px; width: auto; object-fit: contain;
  margin-bottom: 0.3rem; display: block; margin: 0 auto 0.3rem; }
.footer-brokerage { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 1.5rem; }
.footer-disclaimer { color: rgba(255,255,255,0.3); font-size: 0.75rem; max-width: 600px; margin: 0 auto 1rem; line-height: 1.6; }
.footer-copy { color: #fff; font-size: 0.8rem; margin-top: 0.5rem; }
.footer-name { display: flex; gap: 10px}

/* ── RESPONSIVE ── */
