@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Jost:wght@200;300;400;500;600;700&display=swap');

:root {
  --red: #d01944;
  --red-dark: #a8133a;
  --black: #1a1a1a;
  --white: #ffffff;
  --cream: #f8f6f3;
  --gray: #666666;
  --gray-light: #e8e5e0;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Jost', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gray-light);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-brand img {
  height: 40px;
}

.navbar-affiliate img {
  height: 22px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.navbar-affiliate img:hover { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.3s;
}

.nav-links > li > a:hover {
  color: var(--red);
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-links > li:hover > a::after {
  transform: scaleX(1);
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border: 1px solid var(--gray-light);
  border-top: 2px solid var(--red);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 100;
}

li:hover > .dropdown-menu {
  display: block;
  animation: dropIn 0.25s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu a {
  display: block;
  padding: 12px 22px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid var(--gray-light);
  transition: all 0.2s;
}

.dropdown-menu li:last-child a { border-bottom: none; }

.dropdown-menu a:hover {
  color: var(--red);
  padding-left: 28px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  height: 75vh;
  min-height: 500px;
  max-height: 700px;
  margin-top: 80px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 100%);
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-dot.active {
  background: var(--red);
  border-color: var(--red);
}

/* ===== AFFILIATE BANNER ===== */
.affiliate-banner {
  padding: 20px 0;
  text-align: center;
  border-bottom: 1px solid var(--gray-light);
}

.affiliate-banner img {
  height: 45px;
  margin: 0 auto;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.affiliate-banner img:hover { opacity: 1; }

/* ===== FEATURED PROPERTIES ===== */
.featured-section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 5px;
}

.section-link {
  text-align: center;
  margin-bottom: 50px;
}

.section-link a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.section-link a:hover {
  border-color: var(--red);
}

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

.property-card {
  text-align: center;
  transition: transform 0.3s;
}

.property-card:hover {
  transform: translateY(-5px);
}

.property-card .property-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 1px solid var(--gray-light);
  margin-bottom: 20px;
}

.property-card .property-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 8px;
}

.property-card .property-address {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 12px;
}

.property-card .property-more {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
}

.property-card .property-more:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--gray-light);
}

.footer-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-light);
}

.footer-badges img {
  height: 50px;
}

.footer-offices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 50px 0;
  border-bottom: 1px solid var(--gray-light);
}

.office {
  text-align: center;
  padding: 0 10px;
}

.office h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.office p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 8px;
}

.office .office-phone {
  color: var(--red);
  font-weight: 500;
  font-size: 14px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gray-light);
  border-radius: 50%;
  color: var(--gray);
  font-size: 16px;
  transition: all 0.3s;
}

.footer-social a:hover {
  border-color: var(--red);
  color: var(--red);
}

.footer-legal {
  text-align: center;
  padding: 25px 0;
  font-size: 11px;
  color: var(--gray);
  line-height: 1.8;
  letter-spacing: 0.5px;
}

/* ===== INNER PAGES ===== */
.page-hero {
  height: 50vh;
  min-height: 350px;
  margin-top: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.page-content {
  padding: 70px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--black);
}

.page-content p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 20px;
}

/* Agents grid */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  padding: 50px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.agent-card {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--gray-light);
  transition: all 0.3s;
}

.agent-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.agent-card .agent-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cream);
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--red);
}

.agent-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.agent-card p {
  font-size: 12px;
  color: var(--gray);
}

/* Offices grid for locations page */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 50px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.location-card {
  padding: 40px 30px;
  border: 1px solid var(--gray-light);
  text-align: center;
  transition: all 0.3s;
}

.location-card:hover {
  border-color: var(--red);
}

.location-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.location-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 10px;
}

.location-card .loc-phone {
  color: var(--red);
  font-weight: 500;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
}

.border-line {
  border-top: 1px solid var(--gray-light);
}

.navbar-brand strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 4px;
  color: var(--red);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .navbar-affiliate { display: none; }

  .mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    z-index: 9998;
    overflow-y: auto;
    padding: 20px 0;
  }

  .mobile-nav.active { display: block; }

  .mobile-nav a {
    display: block;
    padding: 14px 30px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
    border-bottom: 1px solid var(--gray-light);
  }

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

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

  .footer-offices {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-slider { height: 50vh; min-height: 350px; }

  .footer-offices {
    grid-template-columns: 1fr;
  }

  .footer-badges { gap: 30px; }
  .footer-badges img { height: 35px; }
}
