/* ============================================
   MWP REAL ESTATE — Global Stylesheet
   Design inspired by Wild Oak Real Estate
   Colors: Dark charcoal header, white body,
   forest green (#2D4C3B) accent
   Fonts: Playfair Display + Lato
   ============================================ */

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

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

body {
  font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #808080;
  background: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: #2D4C3B;
}

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: #333333;
  font-weight: 300;
  line-height: 1.3;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.text-white {
  color: #ffffff;
}

.bg-white {
  background-color: #ffffff;
}

.bg-dark {
  background-color: #343434;
}

/* --- Decorative Line --- */
.section-divider {
  width: 60px;
  height: 1px;
  background-color: #2D4C3B;
  margin: 20px auto;
}

.section-divider-left {
  width: 60px;
  height: 1px;
  background-color: #2D4C3B;
  margin: 20px 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #2D4C3B;
  border-color: #2D4C3B;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1e3528;
  border-color: #1e3528;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border-color: #2D4C3B;
  color: #2D4C3B;
}

.btn-outline:hover {
  background-color: #2D4C3B;
  color: #ffffff;
}

.btn-outline-white {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: #2D4C3B;
}

.btn-small {
  padding: 10px 24px;
  font-size: 0.75rem;
}

/* ============================================
   TOP UTILITY BAR
   ============================================ */
.utility-bar {
  background-color: #1a1a1a;
  padding: 8px 0;
  font-size: 0.8rem;
}

.utility-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.utility-bar a {
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
}

.utility-bar a:hover {
  color: #ffffff;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  background-color: #222222;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.logo-text span {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 4px;
  color: #999;
  margin-top: 2px;
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Full-width Nav Dropdown */
.nav-dropdown {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(34, 34, 34, 0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.nav-dropdown.active {
  opacity: 1;
  visibility: visible;
}

.nav-menu {
  text-align: center;
}

.nav-menu li {
  margin: 15px 0;
}

.nav-menu > li > a {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 400;
  padding: 8px 0;
  display: inline-block;
  position: relative;
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: #2D4C3B;
  transition: width 0.3s ease;
}

.nav-menu > li > a:hover::after {
  width: 100%;
}

.nav-menu > li > a:hover {
  color: #2D4C3B;
}

/* Submenu */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.submenu.open {
  max-height: 400px;
}

.submenu li a {
  font-size: 0.85rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 0;
  display: inline-block;
}

.submenu li a:hover {
  color: #2D4C3B;
}

.nav-toggle-arrow {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 0 20px;
}

.hero-content h1 {
  color: #ffffff;
  font-size: 3.8rem;
  font-weight: 300;
  margin-bottom: 10px;
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.9);
}

.hero-tagline strong {
  font-weight: 700;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.hero-links a {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.hero-links a:hover {
  border-bottom-color: #ffffff;
  color: #ffffff;
}

/* Hero Search Bar */
.hero-search {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  border: 2px solid rgba(255,255,255,0.6);
}

.hero-search input {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  outline: none;
}

.hero-search input::placeholder {
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

.hero-search button {
  padding: 16px 30px;
  background-color: #2D4C3B;
  border: none;
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-search button:hover {
  background-color: #1e3528;
}

/* Inner Page Hero (shorter) */
.hero-inner {
  height: 50vh;
  min-height: 350px;
  align-items: center;
  padding-bottom: 0;
}

.hero-inner .hero-content h1 {
  font-size: 3rem;
}

/* ============================================
   INTRO / ABOUT SECTION
   ============================================ */
.intro-section {
  padding: 80px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.intro-grid p {
  font-size: 1rem;
  line-height: 1.8;
}

/* ============================================
   AREAS WE SERVE — Grid
   ============================================ */
.areas-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.area-card {
  position: relative;
  height: 280px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.area-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transition: all 0.5s ease;
}

.area-card:hover .area-card-bg {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.area-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  transition: background 0.3s ease;
}

.area-card:hover .area-card-overlay {
  background: rgba(0,0,0,0.3);
}

.area-card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
}

.area-card-content h3 {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 5px;
}

.area-card-content .area-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.8);
}

.area-card-content .card-divider {
  width: 30px;
  height: 1px;
  background: rgba(255,255,255,0.6);
  margin: 10px auto;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  padding: 80px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.testimonial-card {
  padding: 30px;
  border-left: 3px solid #2D4C3B;
}

.testimonial-card .quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-card .author {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #2D4C3B;
}

/* ============================================
   FEATURED LISTINGS
   ============================================ */
.listings-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.listing-card {
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.listing-card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.listing-card-price {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: #2D4C3B;
  color: #ffffff;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 1.1rem;
}

.listing-card-info {
  padding: 20px;
}

.listing-card-info h4 {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.listing-card-info .listing-address {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
}

.listing-card-details {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: #808080;
}

.listing-card-details span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================
   VIDEO CTA SECTION
   ============================================ */
.video-section {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.video-play-btn {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-play-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.1);
}

.video-play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 5px;
}

/* ============================================
   PROCESS STEPS (Buy page)
   ============================================ */
.process-section {
  padding: 80px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.process-step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  border: 2px solid #2D4C3B;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #2D4C3B;
}

.process-step h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 700;
}

.process-step p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   AGENT PROFILE (About page)
   ============================================ */
.agent-section {
  padding: 80px 0;
}

.agent-card {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
  align-items: start;
}

.agent-photo {
  width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center top;
  background-color: #ddd;
}

.agent-info h3 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.agent-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #2D4C3B;
  font-weight: 700;
  margin-bottom: 20px;
}

.agent-info p {
  line-height: 1.8;
}

.agent-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  margin-bottom: 30px;
}

.contact-info-item {
  margin-bottom: 20px;
}

.contact-info-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.contact-info-item .value {
  font-size: 1rem;
  color: #808080;
}

.contact-info-item .value a:hover {
  color: #2D4C3B;
}

.contact-form h3 {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid #ddd;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: #333;
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #2D4C3B;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: #343434;
  padding: 60px 0 30px;
  color: #808080;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-col h4 {
  font-family: 'Lato', sans-serif;
  color: #ffffff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-center {
  text-align: center;
}

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.footer-logo-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #999;
}

.footer-brokerage {
  margin-top: 15px;
  font-size: 0.75rem;
  color: #999;
  font-style: italic;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 0.8rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.footer-social a {
  color: #808080;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-social a:hover {
  color: #ffffff;
}

/* ============================================
   HOME VALUE SECTION
   ============================================ */
.home-value-section {
  padding: 80px 0;
  background: #2D4C3B;
  text-align: center;
  color: #ffffff;
}

.home-value-section h2 {
  color: #ffffff;
  margin-bottom: 15px;
}

.home-value-section p {
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-section {
  padding: 80px 0;
}

.search-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

.search-filters select,
.search-filters input {
  padding: 14px 16px;
  border: 1px solid #ddd;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  color: #333;
  background: #fff;
  outline: none;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  padding: 60px 0;
  background: #222222;
}

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

.stat-item h2 {
  color: #2D4C3B;
  font-size: 3rem;
  margin-bottom: 5px;
}

.stat-item p {
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .hero-content h1 { font-size: 2.8rem; }

  .intro-grid,
  .contact-grid,
  .agent-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-center {
    order: -1;
  }

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

  .search-filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero { min-height: 500px; height: 80vh; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-links { flex-direction: column; gap: 10px; }

  .areas-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .search-filters { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .agent-card { grid-template-columns: 1fr; }
  .agent-photo { height: 300px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .areas-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .hero-search button { width: 100%; }
}
