﻿/* â”€â”€ RESET & TOKENS â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #fdd16a;
  --gold-light: #fde48e;
  --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: 50px;
}

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: 50px;
}
.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; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.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; }
.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;
}
.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 {
  /* border: 6px solid rgba(253,209,106,0.4); */
  border: 4px solid; border-color: var(--gold);
  border-radius: var(--radius);
  min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
}
.widget-inner { text-align: center; color: var(--text-muted); }
.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-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 â”€â”€ */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .markets-grid2 { width: 60%; }
  .about-photo { max-width: 480px; margin: 0 auto; }
  .social-icons { display: none; }
  .card { max-width: calc(50% - 0.75rem); }
  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-remax img { height: 70px; }
  .contact-split { gap: 2.5rem; }
}

@media (max-width: 640px) {
  /* Navbar */
  .nav-inner { padding: 0; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(253,209,106,0.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  /* Social icons row inside mobile menu */
  .nav-links.open + .social-icons,
  .mobile-social { display: flex !important; gap: 0.4rem; padding: 0.75rem 0 0; border-top: 1px solid rgba(253,209,106,0.2); margin-top: 0.5rem; }
  .hamburger { display: block; z-index: 400; margin-left: auto; font-size: 1.6rem; }

  /* Containers */
  .container { max-width: 100%; width: 100%; padding: 0 1rem; }
  section { padding: 3.5rem 0; }

  /* Logos */
  .logo { gap: 0.4rem; }
  .logo img { height: 36px; }
  .logo-remax { height: 32px !important; padding-right: 0.4rem; margin-right: 0.2rem; }
  #logo-img { height: 32px; }
  .logo-name-img { height: 24px; }

  /* About */
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { max-width: 100%; }
  .photo-stack { aspect-ratio: 4/5; }

  /* Services */
  .cards { gap: 1rem; }
  .card { flex: 1 1 100%; max-width: 100%; }

  /* Markets */
  .markets-grid { grid-template-columns: 1fr 1fr; }
  .markets-grid2 { width: 80%; }

  /* Contact */
  .contact-split { grid-template-columns: 1fr; gap: 2rem; }
  .contact-social { flex-wrap: wrap; }

  /* Slider — use full viewport height, position images from top on mobile */
  #top { min-height: 100svh; padding-top: 70px; }
  .slide { background-position: center top; }
  .banner-content { padding: 0 1rem; }
  .banner-content h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .slider-dots { bottom: 3.5rem; }
  .slider-arrows { bottom: 3rem; right: 1rem; }
  /* CTA bar — stack vertically with full-width tap targets and clear divider */
  .slider-cta-bar { bottom: 0; }
  .slider-cta-inner {
    width: 100%; margin: 0; padding: 0 !important;
    flex-direction: column; gap: 0;
  }
  .slider-cta-left,
  .slider-cta-right {
    width: 100%; text-align: center;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }
  .slider-cta-left { border-bottom: 1px solid rgba(0,0,0,0.08); }
  /* Reduce Ken Burns scale on mobile to prevent clipping */
  @keyframes kenBurns  { 0% { transform: scale(1.03) translate(0,0); } 100% { transform: scale(1.08) translate(-1%,-1%); } }
  @keyframes kenBurns2 { 0% { transform: scale(1.03) translate(0,0); } 100% { transform: scale(1.08) translate(1%,-0.5%); } }
  @keyframes kenBurns3 { 0% { transform: scale(1.03) translate(0.5%,0); } 100% { transform: scale(1.08) translate(-0.5%,-1%); } }
  .slide { transform: scale(1.03); }

  /* Listings */
  .widget-placeholder { min-height: 180px; }
  .widget-inner iframe { width: 100% !important; height: 200px !important; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 1.2rem; padding: 0 1rem; }
  .footer-remax img { height: 44px; }
  .footer-name-img { height: 48px; }
}

@media (max-width: 400px) {
  .logo img { height: 26px; }
  .logo-remax { height: 26px !important; }
  .markets-grid { grid-template-columns: 1fr; }
  .banner-content h1 { font-size: 1.9rem; }
}





