﻿/* ============================================================
   ECO-ONEBRANDHOMES — Corporate Real Estate Website
   ============================================================ */

/* ── Google Fonts: Cormorant Garamond (luxury serif headings) + Raleway (clean body) ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Raleway:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  /* Logo-matched palette — leaf green + sky blue from EcoOne logo */
  --green-900: #0D2818;
  --green-800: #1B4332;
  --green-700: #2D6A4F;
  --green-600: #3A8C5C;
  --green-500: #45B049;  /* vivid leaf green from logo */
  --green-400: #6FC472;  /* lighter leaf green */
  --green-300: #A8DBA9;
  --green-100: #E6F5E7;
  --logo-blue:  #87CEEB;  /* sky blue — house/roof in logo */
  --logo-blue-dark: #4A9FCC;
  --gold:       #1E9FD4;
  --gold-light: #70BCE8;
  --dark:       #0A1628;
  --dark-2:     #121F33;
  --gray-900:   #1A1A2E;
  --gray-700:   #374151;
  --gray-500:   #6B7280;
  --gray-300:   #D1D5DB;
  --gray-200:   #E5E7EB;
  --gray-100:   #F3F4F6;
  --white:      #FFFFFF;
  --danger:     #DC2626;
  --success:    #16A34A;
  --warning:    #D97706;

  --font: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  --radius-sm:  2px;
  --radius:     4px;
  --radius-lg:  8px;
  --radius-xl:  12px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:     0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.13);
  --shadow-xl:  0 30px 70px rgba(0,0,0,.18);

  --transition: 300ms cubic-bezier(.25,0,.25,1);
  --transition-slow: 600ms cubic-bezier(.25,0,.25,1);

  --container: 1280px;
  --nav-h: 80px;
}

html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, select, textarea { font-family: var(--font); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.15;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 400; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 400; }
h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 500; }
h4 { font-size: 1.35rem; font-weight: 500; }
p  { line-height: 1.8; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-600);
  padding: 0;
  background: none;
  border-radius: 0;
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.section-title { margin-bottom: 1rem; }
.section-sub   { color: var(--gray-500); font-size: 1rem; max-width: 580px; font-family: var(--font); font-weight: 400; line-height: 1.85; }

/* ── Layout ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.section   { padding: 6rem 0; }
.section-sm{ padding: 3rem 0; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2.25rem;
  border-radius: 2px;
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: all var(--transition-slow);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--green-700);
  color: var(--white);
  border: 1px solid var(--green-700);
  box-shadow: 0 2px 12px rgba(45,106,79,.25);
}
.btn-primary:hover  { background: var(--green-800); border-color: var(--green-800); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,106,79,.30); }
.btn-primary:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border: 1px solid var(--gold);
  box-shadow: 0 2px 12px rgba(30,159,212,.25);
}
.btn-gold:hover  { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--green-700);
  color: var(--green-700);
}
.btn-outline:hover { background: var(--green-700); color: var(--white); transform: translateY(-2px); }

.btn-outline-white {
  background: transparent;
  border: 1px solid rgba(255,255,255,.7);
  color: var(--white);
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: var(--white); transform: translateY(-2px); }

.btn-sm { padding: .55rem 1.4rem; font-size: .68rem; }
.btn-lg { padding: 1.1rem 2.75rem; font-size: .78rem; letter-spacing: .16em; }
.btn-block { width: 100%; justify-content: center; }

.btn-bid {
  background: linear-gradient(135deg, var(--gold) 0%, #1278A8 100%);
  color: var(--dark);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(201,168,76,.4);
}
.btn-bid:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.5); }

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: all var(--transition-slow);
  padding: 0 1.5rem;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

#navbar.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,.14);
}

#navbar.transparent { background: var(--white); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;         /* anchor for absolutely-centered nav-links */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;             /* never squash the logo */
  position: relative;
  z-index: 2;
}
.nav-logo-img {
  height: 64px;
  width: auto;
  max-width: none;            /* override global img{max-width:100%} */
  display: block;
  flex-shrink: 0;
  padding: 4px 0;
}
#navbar.scrolled .nav-logo-img {
  height: 64px;
  max-width: none;
  background: transparent;
  padding: 4px 0;
}

/* ── Absolutely centered nav-links — logo & buttons never affect it ── */
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .1rem;
  z-index: 1;
  white-space: nowrap;
}
.nav-links a {
  color: var(--gray-700);
  font-family: var(--font);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .5rem .9rem;
  border-radius: 0;
  position: relative;
  transition: color var(--transition);
  background: none;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: .9rem; right: .9rem;
  height: 1px;
  background: var(--green-700);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-slow);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--green-700);
  background: none;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ── Dropdown: About Us → Work In Progress ── */
.nav-has-dropdown { position: relative; }
.nav-caret {
  font-size: .55rem;
  margin-left: .18rem;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  transition: transform .22s ease;
}
.nav-has-dropdown:hover .nav-caret,
.nav-has-dropdown:focus-within .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.09);
  box-shadow: 0 18px 52px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.08);
  min-width: 210px;
  list-style: none;
  padding: .4rem 0;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .24s cubic-bezier(.22,1,.36,1), visibility .22s ease;
  z-index: 500;
}
/* small top notch */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: #ffffff;
  border-left: 1px solid rgba(0,0,0,.09);
  border-top: 1px solid rgba(0,0,0,.09);
  transform: translateX(-50%) rotate(45deg);
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown li { list-style: none; }
.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.2rem;
  color: var(--gray-700);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nav-dropdown li a::after { display: none !important; }
.nav-dropdown li a:hover {
  background: #f0faf4;
  color: var(--green-700);
  border-left-color: var(--green-700);
}
.dropdown-icon { font-size: .85rem; flex-shrink: 0; }

.nav-toggle span { background: var(--dark); }
.btn-outline-white {
  border-color: var(--green-700) !important;
  color: var(--green-700) !important;
}
.btn-outline-white:hover { background: var(--green-700) !important; color: var(--white) !important; }

.nav-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--green-900);
  z-index: 999;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  transform: translateY(-20px);
  opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
}
.mobile-nav.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--green-300); }

/* ── Mobile nav sub-menu (WIP under About Us) ── */
.mobile-nav-sub {
  padding: .1rem 0 .35rem 1.5rem;
  margin-top: -.35rem;
  border-left: 2px solid rgba(255,255,255,.2);
  margin-left: .75rem;
  margin-bottom: .15rem;
}
.mobile-nav-sub-link {
  display: flex !important;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.65) !important;
  font-size: .875rem !important;
  padding: .5rem 0 .5rem .35rem !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
  letter-spacing: .01em;
  transition: color var(--transition) !important;
}
.mobile-nav-sub-link:hover { color: var(--green-300) !important; }

.mobile-nav .nav-cta {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding-top: 1rem;
}
.mobile-nav .nav-cta .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: .85rem 1rem;
  font-size: .75rem;
  letter-spacing: .1em;
  white-space: nowrap;
}

/* ── Nav: tighter spacing on smaller desktops ── */
@media (max-width: 1600px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: .5rem .7rem; letter-spacing: .1em; font-size: .67rem; }
}
@media (max-width: 1440px) {
  .nav-links a { padding: .5rem .55rem; letter-spacing: .09em; font-size: .65rem; }
}

/* ── Nav: collapse to hamburger ≤1400px ── */
@media (max-width: 1400px) {
  .nav-inner        { display: flex; justify-content: space-between; }
  .nav-links        { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle       { display: flex; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--dark); /* fallback if video fails */
}

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

/* Dark gradient overlay — keeps all text legible over the video */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,22,40,.82) 0%,
    rgba(13,40,24,.70) 45%,
    rgba(27,67,50,.60) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: var(--nav-h);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(82,183,136,.15);
  border: 1px solid rgba(82,183,136,.3);
  color: var(--green-300);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .875rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green-300);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero-title { color: var(--white); margin-bottom: 1.25rem; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-title em { font-style: normal; color: var(--gold); }

.hero-sub { color: rgba(255,255,255,.88); font-size: 1.1rem; margin-bottom: 2rem; max-width: 520px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
/* On dark video background the secondary button must be white outline, not green */
.hero-actions .btn-outline-white {
  border-color: rgba(255,255,255,.75) !important;
  color: var(--white) !important;
  background: rgba(255,255,255,.08) !important;
}
.hero-actions .btn-outline-white:hover {
  background: rgba(255,255,255,.18) !important;
  border-color: var(--white) !important;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
}
.hero-stat-num span { color: var(--gold); }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: .2rem; }

/* Hero Right — Bid Card */
.hero-visual { position: relative; }
.hero-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-property-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.hero-property-img {
  height: 200px;
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.hero-property-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-property-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
  z-index: 1;
}
.hero-property-badge { z-index: 2; }
.hero-property-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--gold);
  color: var(--dark);
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: var(--radius-full);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero-property-body { padding: 1.25rem; }
.hero-property-name { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.hero-property-location { color: rgba(255,255,255,.55); font-size: .82rem; display: flex; align-items: center; gap: .3rem; }
.hero-property-bids {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.bid-info-label { font-size: .7rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; }
.bid-info-value { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-top: .1rem; }
.bid-info-value.gold { color: var(--gold); }

.hero-mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-mini-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-mini-icon {
  width: 40px; height: 40px;
  background: rgba(82,183,136,.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.hero-mini-label { font-size: .75rem; color: rgba(255,255,255,.55); }
.hero-mini-value { font-size: .95rem; font-weight: 700; color: var(--white); margin-top: .1rem; }

/* ── Search Bar ── */
.search-section {
  background: var(--white);
  padding: 0;
  position: relative;
  z-index: 10;
}

.search-bar {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 -4px 0 var(--green-500), var(--shadow-xl);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1.25rem;
  align-items: end;
  margin-top: -2.5rem;
  position: relative;
  border: 1px solid var(--gray-200);
}

.search-field label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .4rem;
}
.search-field select,
.search-field input {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--dark);
  transition: border-color var(--transition);
  appearance: none;
  background: var(--gray-100);
}
.search-field select:focus,
.search-field input:focus {
  outline: none;
  border-color: var(--green-600);
  background: var(--white);
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--dark-2);
  padding: 2.5rem 0;
}

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

.stat-item { padding: .75rem 2rem; }
.stat-divider { border-right: 1px solid rgba(255,255,255,.1); }
.stat-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.01em;
}
.stat-num .accent { color: var(--gold); }
.stat-label {
  font-family: var(--font);
  font-size: .65rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-top: .65rem;
  font-weight: 700;
}

/* ── Property Cards ── */
.properties-section { background: var(--gray-100); }

.filter-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-tab {
  padding: .5rem 1.4rem;
  border-radius: 0;
  font-family: var(--font);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--gray-300);
  color: var(--gray-500);
  transition: all var(--transition-slow);
  cursor: pointer;
  background: var(--white);
}
.filter-tab.active, .filter-tab:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.property-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
}
.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0,0,0,.14);
  border-color: transparent;
}

.property-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Property image emoji icon */
.property-img > span:not(.property-tag):not(.property-wishlist) {
  font-size: 3.5rem;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}
/* Bottom overlay strip on card images */
.property-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
  z-index: 0;
}
.property-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(.25,0,.25,1);
}
.property-card:hover .property-img img { transform: scale(1.08); }
/* Ensure tags and wishlist sit above the overlay */
.property-tag, .property-wishlist { z-index: 2; }

/* Address label at bottom of property image */
.prop-img-label {
  position: absolute;
  bottom: .875rem;
  left: .875rem;
  z-index: 2;
  color: rgba(255,255,255,.85);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.prop-img-label::before {
  content: '📍';
  font-size: .7rem;
}

.property-tag {
  position: absolute;
  top: .875rem; left: .875rem;
  font-size: .7rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tag-bid-open    { background: var(--gold); color: var(--dark); }
.tag-bid-soon    { background: var(--green-600); color: var(--white); }
.tag-sold        { background: var(--gray-700); color: var(--white); }
.tag-luxury      { background: var(--dark); color: var(--gold); border: 1px solid var(--gold); }

.property-wishlist {
  position: absolute;
  top: .875rem; right: .875rem;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.property-wishlist:hover { background: var(--white); transform: scale(1.1); }
.property-wishlist.active { color: #DC2626; }

.property-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.property-county {
  font-size: .72rem;
  font-weight: 700;
  color: var(--green-600);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}
.property-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; color: var(--dark); margin-bottom: .3rem; letter-spacing: .01em; }
.property-type { font-family: var(--font); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 1rem; }

.property-specs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.spec {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  color: var(--gray-500);
}
.spec-icon { font-size: .85rem; }

.property-bid-section {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}
.bid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}
.current-bid-label { font-size: .65rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .12em; }
.current-bid-amount { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500; color: var(--dark); letter-spacing: .01em; }
.bid-count { font-size: .78rem; color: var(--gray-500); }

.bid-timer {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--warning);
  font-weight: 600;
  margin-bottom: .875rem;
}
.bid-timer.urgent { color: var(--danger); animation: urgentPulse 1.5s infinite; }
@keyframes urgentPulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

/* ── How Bidding Works ── */
.how-it-works { background: var(--dark-2); position: relative; overflow: hidden; }
.how-it-works .section-label { background: rgba(82,183,136,.15); color: var(--green-300); }
.how-it-works .section-title { color: var(--white); text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.how-it-works .section-sub   { color: rgba(255,255,255,.75); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.how-it-works .hiw-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.how-it-works .hiw-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,12,24,.88) 0%, rgba(10,30,20,.82) 100%);
  z-index: 1;
}
.how-it-works .container { position: relative; z-index: 2; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 3rem;
}
/* Horizontal connector line sits at the center of the circles (circle top offset + 40px radius = ~40px from step-card top) */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 40px);
  right: calc(12.5% + 40px);
  height: 2px;
  background: linear-gradient(to right, var(--green-600), var(--gold), var(--green-600));
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.75rem;
}
.step-num {
  width: 80px; height: 80px;
  background: var(--green-800);
  border: 3px solid var(--green-600);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 6px rgba(64,145,108,.15);
}
.step-card:nth-child(2) .step-num,
.step-card:nth-child(4) .step-num {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 6px rgba(201,168,76,.12);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: .875rem;
  display: block;
}
.step-title { color: var(--white); font-size: 1.05rem; font-weight: 700; margin-bottom: .625rem; }
.step-desc  { color: rgba(255,255,255,.55); font-size: .875rem; line-height: 1.65; }

/* ── About Section ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
  padding-bottom: 2rem;
}
.about-img-main {
  border-radius: var(--radius-xl);
  height: 480px;
  background: linear-gradient(160deg, var(--green-600) 0%, var(--green-800) 50%, var(--dark) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
}
.about-img-main img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
/* Grid-like pattern overlay — hidden when a real image is present */
.about-img-main::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
/* Bottom gradient overlay — sits above the image */
.about-img-main::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  z-index: 2;
  background: linear-gradient(to top, rgba(13,40,24,.85) 0%, transparent 100%);
}

.about-badge {
  position: absolute;
  bottom: 0; right: -1rem;
  z-index: 10;
  background: var(--gold);
  color: var(--dark);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(201,168,76,.4);
}
.about-badge-num { font-size: 2.25rem; font-weight: 900; line-height: 1; }
.about-badge-text { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-top: .2rem; }

.about-checks { display: flex; flex-direction: column; gap: .75rem; margin: 1.5rem 0 2rem; }
.about-check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  color: var(--gray-700);
}
.about-check-icon {
  width: 22px; height: 22px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ── Services ── */
.services { background: var(--gray-100); }

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: left;
  border: 1.5px solid var(--gray-200);
  transition: all var(--transition-slow);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--green-600);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-slow);
}
.service-card:hover {
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
}
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  width: 56px; height: 56px;
  background: var(--green-100);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: var(--green-700);
}
.service-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.service-desc  { font-size: .875rem; color: var(--gray-500); line-height: 1.7; }

/* ── Eco Protection ── */
.eco-protection {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-900) 100%);
  position: relative;
  overflow: hidden;
}
.eco-protection .eco-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  z-index: 0;
}
.eco-protection .eco-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,25,14,.88) 0%, rgba(10,40,24,.82) 60%, rgba(27,67,50,.78) 100%);
  z-index: 1;
}
.eco-protection .container { position: relative; z-index: 3; }
.eco-protection .section-label { background: rgba(82,183,136,.2); color: var(--green-300); }
.eco-protection .section-title { color: var(--white); }
.eco-protection .section-sub { color: rgba(255,255,255,.65); }

.eco-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.eco-feature {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}
.eco-feature:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.eco-feature-icon { font-size: 2.25rem; margin-bottom: 1rem; }
.eco-feature-title { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.eco-feature-desc { color: rgba(255,255,255,.6); font-size: .85rem; line-height: 1.6; }

/* ── Partners / Alliances – Logo Marquee ── */
.partners { background: var(--white); }

.partner-marquee-wrap {
  overflow: hidden;
  padding: 2rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.partner-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: partnerScroll 30s linear infinite;
}
.partner-marquee-wrap:hover .partner-track { animation-play-state: paused; }
@keyframes partnerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: .5rem 1rem;
  opacity: .55;
  filter: grayscale(100%) contrast(.85);
  transition: opacity var(--transition), filter var(--transition), transform var(--transition);
  text-decoration: none;
}
.partner-logo-item:hover {
  opacity: 1;
  filter: grayscale(0%) contrast(1);
  transform: scale(1.07);
}
.partner-logo-item img {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.partner-logo-text {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-400);
  white-space: nowrap;
  padding: .5rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
}

/* ── Testimonials ── */
.testimonials { background: var(--gray-100); }

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--green-600);
  transition: all var(--transition-slow);
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: .1em; }
.testimonial-text { font-size: .95rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .875rem; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--white); font-size: 1rem;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: .9rem; color: var(--dark); }
.author-title { font-size: .78rem; color: var(--gray-500); }

/* ── CTA Banner ── */
.cta-section {
  background: var(--dark);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section h2 { color: var(--white); margin-bottom: 1.25rem; font-weight: 300; letter-spacing: .02em; }
.cta-section p  { color: rgba(255,255,255,.65); margin-bottom: 2.5rem; max-width: 560px; margin-left: auto; margin-right: auto; font-family: var(--font); }
/* CTA with bg image — text goes white */
.cta-section.has-bg h2 { color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.cta-section.has-bg p  { color: rgba(255,255,255,.82); text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.cta-section .cta-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
  z-index: 0;
}
.cta-section .cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,12,24,.80) 0%, rgba(10,22,40,.65) 50%, rgba(15,50,30,.60) 100%);
  z-index: 1;
}
.cta-section .cta-inner {
  position: relative;
  z-index: 2;
}

/* ── Footer ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand .nav-logo-img { height: 60px; background: var(--white); padding: 6px 12px; border-radius: var(--radius); }
.footer-desc { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 280px; margin-bottom: 1.5rem; }

.footer-socials { display: flex; gap: .75rem; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
  text-decoration: none;
}
.social-btn:hover { background: var(--green-700); color: var(--white); }

.footer-col h5 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-col a {
  display: block;
  font-family: var(--font);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: .75rem;
  transition: color var(--transition-slow);
}
.footer-col a:hover { color: var(--green-300); }

.footer-contact p {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .5rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.footer-contact p strong { color: rgba(255,255,255,.8); }
.footer-contact a[href^="mailto"] {
  font-size: .75rem;
  white-space: nowrap;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--green-300); }
.footer-license {
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  margin-top: .25rem;
}

/* ── Equal Housing Opportunity bar ── */
.footer-eho {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: .72rem;
  color: rgba(255,255,255,.28);
  text-align: center;
}
.footer-eho-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  opacity: .45;
}
.footer-eho-text {
  line-height: 1.5;
}
.footer-eho-text strong {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: .15rem;
}

/* ── Modal (Bid Modal) ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,.8);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn var(--transition-slow) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 1.75rem 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.modal-close {
  width: 36px; height: 36px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--gray-700);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--gray-300); }

.modal-body { padding: 1.5rem 2rem 2rem; }

.modal-property-preview {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.75rem;
}
.modal-property-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}
.modal-property-info h4 { font-size: 1rem; margin-bottom: .25rem; }
.modal-property-info p  { font-size: .82rem; color: var(--gray-500); }

.bid-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.bid-stat-box {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: .875rem;
  text-align: center;
}
.bid-stat-box .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-500); }
.bid-stat-box .value { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-top: .2rem; }
.bid-stat-box .value.gold { color: var(--gold); }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .5rem;
}
.form-control {
  width: 100%;
  padding: .875rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--dark);
  transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--green-600); }
.form-hint { font-size: .78rem; color: var(--gray-500); margin-top: .4rem; }

.bid-increments {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.bid-inc {
  padding: .4rem .875rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-300);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}
.bid-inc:hover, .bid-inc.active { background: var(--green-700); border-color: var(--green-700); color: var(--white); }

.modal-agree {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}
.modal-agree input { margin-top: .2rem; accent-color: var(--green-700); flex-shrink: 0; }
.modal-agree a { color: var(--green-600); text-decoration: underline; }

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.toast {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow-xl);
  animation: toastIn .3s both;
  max-width: 360px;
  font-size: .9rem;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--gold); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Animations (Intersection Observer) ── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.25,0,.25,1), transform .9s cubic-bezier(.25,0,.25,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(1) { transition-delay: .05s; }
.fade-up:nth-child(2) { transition-delay: .15s; }
.fade-up:nth-child(3) { transition-delay: .25s; }
.fade-up:nth-child(4) { transition-delay: .35s; }
.fade-up:nth-child(5) { transition-delay: .45s; }
.fade-up:nth-child(6) { transition-delay: .55s; }

/* ── Visit Counter Widget (floating) ── */
#visit-counter {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 998;
  background: var(--dark);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 8px 40px rgba(112,188,232,.25), 0 2px 16px rgba(0,0,0,.5);
  min-width: 175px;
  opacity: 0;
  transform: translateY(24px) scale(.95);
  transition: opacity 400ms cubic-bezier(.34,1.56,.64,1), transform 400ms cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
#visit-counter.vc-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#visit-counter.vc-hidden {
  opacity: 0 !important;
  transform: translateY(24px) !important;
  pointer-events: none !important;
}
.vc-close {
  position: absolute;
  top: .45rem; right: .55rem;
  width: 20px; height: 20px;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  line-height: 1;
}
.vc-close:hover { color: var(--white); background: rgba(255,255,255,.12); }
.vc-header {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem; margin-bottom: .85rem;
}
.vc-pulse {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  animation: vcPulse 1.8s ease-in-out infinite;
}
@keyframes vcPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(112,188,232,.5); }
  50%       { opacity: .7; transform: scale(1.3); box-shadow: 0 0 0 5px rgba(112,188,232,.0); }
}
.vc-title {
  font-size: .63rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
}
.vc-count {
  font-size: 2.4rem; font-weight: 900;
  color: var(--white); line-height: 1;
  margin-bottom: .3rem;
  font-variant-numeric: tabular-nums;
}
.vc-sublabel {
  font-size: .68rem; color: rgba(255,255,255,.4);
  letter-spacing: .05em; margin-bottom: .85rem;
}
.vc-today-row {
  display: flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .5rem .75rem;
  background: rgba(112,188,232,.08);
  border-radius: var(--radius); margin-bottom: .75rem;
}
.vc-today-dot {
  width: 6px; height: 6px;
  background: var(--success); border-radius: 50;
  animation: vcPulse 1.8s ease-in-out infinite;
}
.vc-today-label { font-size: .7rem; color: rgba(255,255,255,.5); }
.vc-today-count { font-size: .82rem; font-weight: 700; color: var(--green-300); }
.vc-divider {
  border: none; border-top: 1px solid rgba(255,255,255,.07);
  margin: 0 0 .65rem;
}
.vc-site {
  font-size: .62rem; color: rgba(255,255,255,.22);
  letter-spacing: .03em;
}

/* ── Footer Visit Stats Bar ── */
.footer-visits {
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
}
.footer-visits-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.fv-item { text-align: center; }
.fv-num {
  font-size: 1.6rem; font-weight: 900;
  color: var(--gold); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fv-label {
  font-size: .65rem; text-transform: uppercase;
  letter-spacing: .09em; color: rgba(255,255,255,.35);
  margin-top: .2rem;
}
.fv-divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,.1);
}
.fv-live {
  display: flex; align-items: center; gap: .4rem;
  font-size: .68rem; color: var(--green-300);
  font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
}
.fv-live-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: vcPulse 1.8s ease-in-out infinite;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--green-600); border-radius: 3px; }

/* ── Badges / Tags ── */
.badge {
  display: inline-block;
  padding: .25rem .625rem;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-pending   { background: #FEF3C7; color: #92400E; }
.badge-active    { background: #D1FAE5; color: #065F46; }
.badge-won       { background: #DBEAFE; color: #1E3A8A; }
.badge-outbid    { background: #FEE2E2; color: #991B1B; }
.badge-closed    { background: var(--gray-300); color: var(--gray-700); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; min-height: auto; padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 4rem; }
  .hero-visual { max-width: 580px; margin: 0 auto; width: 100%; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 3.5rem 0; }
  .search-bar { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-badge { position: static; margin-top: 1.5rem; display: inline-block; }
  .eco-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .bid-stats-row { grid-template-columns: 1fr; }
  .modal-body { padding: 1rem 1.25rem 1.5rem; }
  .modal-header { padding: 1.25rem 1.25rem 0; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: .85rem 1.5rem; font-size: .95rem; }
  .hero-mini-cards { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; text-align: left; }
  .stat-divider { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 1.5rem; }
  .partners-grid { flex-direction: column; align-items: stretch; }
  .partner-card { min-width: auto; }
}

/* ── Print / Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
