/* ============================================
   McKinnon Real Estate — Main Stylesheet
   ============================================ */

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

:root {
  --green: #4F8A3D;
  --green-dark: #3d6e2f;
  --green-light: #6aab56;
  --charcoal: #222222;
  --off-white: #FAFAF8;
  --light-grey: #F5F5F5;
  --mid-grey: #888888;
  --border: #E8E8E4;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

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

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

.heading-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.heading-md {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
}

.heading-sm {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
}

.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--green);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79,138,61,0.35);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--charcoal);
  transform: translateY(-2px);
}

.btn-green-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}

.btn-green-outline:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

/* Arrow icon */
.btn-arrow::after {
  content: '→';
  transition: transform var(--transition);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}

.nav.transparent,
.nav.scrolled {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-text strong {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.nav-logo-text strong .mc {
  font-size: 0.6em;
  vertical-align: 0.42em;
  margin: 0 0.02em;
}

.nav-logo-text em {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-style: normal;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 3px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.nav-logo-text em i {
  font-style: normal;
}

.nav-logo-text em .re-sp {
  width: 0.3em;
}

@media (max-width: 520px) {
  .nav-logo-text { display: none; }
}

.nav-logo img {
  height: 72px;
  width: auto;
  display: block;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
}

.nav.transparent .nav-links a,
.nav.scrolled .nav-links a {
  color: var(--charcoal);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--green);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--green) !important;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  font-size: 0.88rem;
  font-weight: 600;
  transition: color var(--transition);
}

.nav.transparent .nav-phone {
  color: rgba(255,255,255,0.9);
}

.nav.scrolled .nav-phone {
  color: var(--charcoal);
}

.nav-phone:hover {
  color: var(--green) !important;
}

.nav-btn {
  padding: 11px 24px;
  font-size: 0.85rem;
}

/* Dropdown */
.nav-item {
  position: relative;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 190px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  list-style: none;
}

.nav-dropdown li a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--charcoal) !important;
  transition: background var(--transition);
}

.nav-dropdown li a:hover {
  background: var(--light-grey);
  color: var(--green) !important;
}

.nav-dropdown li a::after {
  display: none;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
  border-radius: 2px;
}

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

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

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

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a2f13 0%, #2d4a22 40%, #1e3318 70%, #111 100%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.28) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  color: var(--green-light);
  margin-bottom: 28px;
}

.hero-label::before {
  background: var(--green-light);
}

.hero-headline {
  color: #fff;
  margin-bottom: 24px;
  max-width: 820px;
}

.hero-subheadline {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 48px;
  font-family: var(--font-body);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ============================================
   STATS STRIP
   ============================================ */

.stats-strip {
  background: var(--charcoal);
  padding: 72px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 20px 24px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}

.stat-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.stat-icon svg {
  width: 34px;
  height: 34px;
  color: var(--green-light);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-number span {
  color: var(--green-light);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ============================================
   FEATURED PROPERTIES
   ============================================ */

.featured-properties {
  background: var(--off-white);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
}

.section-header-left {
  flex: 1;
}

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

.property-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

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

.property-card-image {
  display: block;
  position: relative;
  height: 260px;
  overflow: hidden;
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.property-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d4e8cf 0%, #b8d6b1 50%, #9ec49a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.property-badge--sale {
  background: var(--green);
  color: #fff;
}

.property-badge--sold {
  background: var(--charcoal);
  color: #fff;
}

.property-badge--open {
  background: #e8a020;
  color: #fff;
}

.property-badge--commercial {
  background: #2b5d86;
  color: #fff;
}

.property-card-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-price {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.property-address {
  font-size: 0.9rem;
  color: var(--mid-grey);
  margin-bottom: 12px;
  line-height: 1.4;
}

.property-card-desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-features {
  display: flex;
  gap: 20px;
  margin-bottom: 22px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.property-feature {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--charcoal);
  font-weight: 600;
}

.property-feature svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
}

.property-card-cta {
  width: 100%;
  justify-content: center;
  padding: 13px 24px;
  font-size: 0.875rem;
}

/* ============================================
   MEET THE TEAM
   ============================================ */

.meet-team {
  background: var(--light-grey);
  overflow: hidden;
}

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

.team-portraits {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.team-portrait {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.team-portrait:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-portrait:first-child {
  margin-bottom: 40px;
}

.team-portrait img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-portrait:hover img {
  transform: scale(1.04);
}

.team-portrait-name {
  padding: 14px 18px;
  background: #fff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.team-portrait-name strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
}

.team-portrait-name span {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 500;
}

.team-content {
  max-width: 520px;
}

.team-content .section-label {
  margin-bottom: 20px;
}

.team-content .heading-lg {
  margin-bottom: 24px;
}

.team-tagline {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--green);
  margin-bottom: 24px;
  line-height: 1.5;
}

.team-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 36px;
}

.team-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.team-badge {
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */

.why-choose {
  background: var(--off-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.why-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

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

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

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

.why-icon {
  width: 56px;
  height: 56px;
  background: #eef5ec;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--green);
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.why-card p {
  font-size: 0.925rem;
  line-height: 1.75;
  color: #666;
}

/* Brand pull-quote */
.brand-quote {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 8px;
}

.brand-quote blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.brand-quote blockquote::before {
  content: '\201C';
  color: var(--green);
}

.brand-quote blockquote::after {
  content: '\201D';
  color: var(--green);
}

/* Static school zone map image */
.school-zone-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Interactive Leaflet zone map */
.zone-map-status{max-width:220px;padding:8px 10px;border-radius:6px;background:#fff;color:#333;box-shadow:0 1px 5px #0003;font:13px/1.5 Arial,sans-serif}.zone-map-status[hidden]{display:none}
#zoneMap {
  width: 100%;
  height: 100%;
  min-height: 460px;
}

.zone-marker span {
  display: block;
  width: 16px;
  height: 16px;
  background: var(--green);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.map-note {
  font-size: 0.78rem !important;
  color: var(--mid-grey) !important;
  line-height: 1.6 !important;
  margin-top: 18px !important;
  margin-bottom: 0 !important;
}

.map-note a {
  color: var(--green);
  font-weight: 500;
}

.map-note a:hover {
  text-decoration: underline;
}

/* ============================================
   RECENT SALES
   ============================================ */

.recent-sales {
  background: var(--charcoal);
  color: #fff;
}

.recent-sales .section-label {
  color: var(--green-light);
}

.recent-sales .section-label::before {
  background: var(--green-light);
}

.recent-sales .section-header {
  margin-bottom: 48px;
}

.sales-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Recent Sales carousel */
.sales-carousel {
  position: relative;
}

.sales-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 14px 6px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.sales-track::-webkit-scrollbar { display: none; }

.sales-track .sale-card {
  flex: 0 0 clamp(240px, 24%, 300px);
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 124px;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--charcoal);
  border: none;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  box-shadow: var(--shadow-md);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--green);
  color: #fff;
}

.carousel-prev { left: -14px; }
.carousel-next { right: -14px; }

/* Featured Properties carousel (taller cards) */
.properties-track .property-card {
  flex: 0 0 clamp(300px, 32%, 380px);
  scroll-snap-align: start;
}

.properties-carousel .carousel-btn {
  top: 144px;
}

@media (max-width: 600px) {
  .sales-track .sale-card { flex: 0 0 78%; }
  .properties-track .property-card { flex: 0 0 82%; }
  .carousel-btn { display: none; }
}

.sale-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sale-card-image {
  height: 220px;
  overflow: hidden;
}

.sale-card-image img, .sale-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sale-card-placeholder {
  background: linear-gradient(135deg, #2a3d26, #1a2a17);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sale-card-body {
  padding: 20px 22px 22px;
}

.sale-tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sale-card-address {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: 14px;
  line-height: 1.35;
}

.sale-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sale-labels .sale-tag { margin-bottom: 0; }
.sale-off-market { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: .75rem; font-weight: 600; }
.sale-off-market svg { width: 16px; height: 16px; flex: none; }

.sale-card .property-features {
  margin: 0;
  padding-top: 14px;
}

/* ============================================
   SCHOOL ZONE
   ============================================ */

.school-zone {
  background: var(--off-white);
}

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

.school-zone-content .heading-lg {
  margin-bottom: 20px;
}

.school-zone-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 24px;
}

.school-zone-features {
  list-style: none;
  margin-bottom: 36px;
}

.school-zone-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.925rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
}

.school-zone-features li:last-child {
  border-bottom: none;
}

.school-zone-features li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.school-zone-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--light-grey);
  aspect-ratio: 1;
  min-height: 460px;
}

.school-zone-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.school-zone-map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--mid-grey);
  background: #eef2ed;
}

/* ============================================
   APPRAISAL CTA
   ============================================ */

.appraisal-cta {
  background: var(--green);
  padding: 100px 0;
  text-align: center;
}

.appraisal-cta .heading-lg {
  color: #fff;
  margin-bottom: 20px;
}

.appraisal-cta p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 40px;
}

.btn-white {
  background: #fff;
  color: var(--green);
  font-weight: 600;
}

.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn-white-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}

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

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: #fff;
  color: #555;
  padding: 72px 0 40px;
  border-top: 1px solid var(--border);
}

/* Contact page — agents block */
.contact-agents-block { margin-top: 30px; }

.contact-agents-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.contact-agents-block .contact-agent { margin-bottom: 14px; }
.contact-agents-block .contact-agent:last-child { margin-bottom: 0; }

/* Agents contact — sticky button + modal */
.contact-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--green);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 14px 22px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0,0,0,0.24);
  transition: var(--transition);
}

.contact-fab:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.contact-fab svg { width: 18px; height: 18px; }

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal.open { display: flex; }

.contact-modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 36px 36px 30px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--mid-grey);
  cursor: pointer;
}

.contact-modal-close:hover { color: var(--charcoal); }

.contact-modal-box h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.contact-modal-sub {
  font-size: 0.92rem;
  color: #666;
  margin-bottom: 24px;
}

.contact-modal-agents {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-agent {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.contact-agent img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

.contact-agent-info strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
}

.contact-agent-info > span {
  display: block;
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 10px;
}

.contact-agent-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-agent-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--charcoal);
  transition: color var(--transition);
  word-break: break-word;
}

.contact-agent-links a:hover { color: var(--green); }
.contact-agent-links svg { color: var(--green); flex-shrink: 0; }

.contact-modal-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: #666;
}

.contact-modal-foot svg { color: var(--green); flex-shrink: 0; }

@media (max-width: 600px) {
  .contact-fab span { display: none; }
  .contact-fab { padding: 15px; bottom: 18px; right: 18px; }
}

.footer-newsletter {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

.footer-newsletter h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.footer-newsletter p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

.footer-newsletter-form {
  display: flex;
  width: min(440px, 100%);
}
.footer-newsletter .footer-newsletter-form { row-gap: 12px; }
.footer-newsletter .footer-newsletter-form .newsletter-consent { font-size: 12px; line-height: 1.5; color: #555; align-items: flex-start; }
.footer-newsletter .footer-newsletter-form .newsletter-consent input { appearance: auto; flex: 0 0 16px; width: 16px; height: 16px; padding: 0; margin: 2px 0 0; accent-color: var(--green); }
.footer-newsletter .footer-newsletter-form .collection-notice,
.footer-newsletter .footer-newsletter-form .preview-form-notice { font-size: 12px; line-height: 1.5; margin: 0; color: #626262; }
.footer-newsletter .footer-newsletter-form [data-delivery-status] { flex-basis: 100%; font-size: 14px; line-height: 1.5; }

.footer-newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--off-white);
}

.footer-newsletter-form input:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}

.footer-newsletter-form button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0 24px;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transition: background var(--transition);
}

.footer-newsletter-form button:hover {
  background: var(--green-dark);
}

@media (max-width: 700px) {
  .footer-newsletter {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-newsletter-form {
    width: 100%;
  }
}

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

.footer-brand img {
  height: 80px;
  width: auto;
  margin-bottom: 24px;
  margin-left: -4px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 24px;
  color: #666;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: #666;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--green);
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 11px;
  row-gap: 2px;
  margin-bottom: 16px;
}

.footer-contact-item::before {
  content: '';
  grid-row: 1 / 3;
  grid-column: 1;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.footer-contact-item:nth-of-type(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F8A3D' stroke-width='1.8'%3E%3Cpath d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E");
}

.footer-contact-item:nth-of-type(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F8A3D' stroke-width='1.8'%3E%3Cpath d='M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.footer-contact-item:nth-of-type(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F8A3D' stroke-width='1.8'%3E%3Cpath d='M17.657 16.657L13.414 20.9a2 2 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Ccircle cx='12' cy='11' r='3'/%3E%3C/svg%3E");
}

.footer-contact-item span:first-child {
  grid-column: 2;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-grey);
}

.footer-contact-item a, .footer-contact-item span:last-child {
  grid-column: 2;
  font-size: 0.875rem;
  color: #555;
  transition: color var(--transition);
}

.footer-contact-item a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--mid-grey);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--mid-grey);
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--charcoal);
}

/* ============================================
   ANIMATIONS (Fade-in on scroll)
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #fff;
  font-weight: 500;
  transition: color var(--transition);
}

.mobile-nav a:hover {
  color: var(--green-light);
}

.mobile-nav-close {
  position: absolute;
  top: 28px;
  right: 40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .sales-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  .container, .container--wide {
    padding: 0 24px;
  }

  section {
    padding: 72px 0;
  }

  .nav-links, .nav-cta .btn {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-inner {
    padding: 16px 24px;
  }

  .nav-logo {
    padding: 6px 12px;
  }

  .nav-logo img {
    height: 52px;
  }

  .properties-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .meet-team-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .team-content {
    max-width: 100%;
    order: -1;
  }

  .team-portraits {
    max-width: 440px;
    margin: 0 auto;
  }

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

  .school-zone-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .stat-item:nth-child(1), .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-bottom: 36px;
    margin-bottom: 8px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
  }

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

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

@media (max-width: 600px) {
  .hero-content {
    padding: 0 24px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .sales-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .appraisal-cta {
    padding: 72px 0;
  }
}

/* ============================================
   MOBILE REFINEMENTS
   ============================================ */
html { overflow-x: hidden; }

@media (max-width: 760px) {
  h1, h2, h3, p { overflow-wrap: break-word; }

  /* Stop big headings overflowing / forcing zoom */
  .heading-xl { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .appraisal-cta .heading-lg { font-size: clamp(1.8rem, 8vw, 2.4rem); }

  /* Meet the team — stack portraits full-width & larger */
  .team-portraits {
    flex-direction: column;
    align-items: stretch;
    max-width: 380px;
    margin: 0 auto;
    gap: 16px;
  }
  .meet-team .heading-lg { font-size: clamp(2.3rem, 12vw, 3.1rem); }
  .meet-team .heading-lg br { display: none; }

  /* School zone map — shorter window on mobile */
  .school-zone-map {
    aspect-ratio: auto;
    height: 330px;
    min-height: 0;
  }
  #zoneMap { height: 330px; min-height: 0; }
}

.footer-newsletter-form { flex-wrap:wrap; }
.footer-newsletter-form .newsletter-consent {flex-basis:100%;font-size:12px;display:flex;gap:8px;align-items:flex-start;}
.footer-newsletter-form .newsletter-consent input {flex:none;width:auto;min-width:0;margin-top:3px;}
