/*
Theme Name: mwp realestate
Theme URI: https://malabarwebpros.com
Author: malabarwebpros
Author URI: https://malabarwebpros.com
Description: A simple real estate theme.
Template: kadence
Version: 1.0
Requires at least: 5.9
Tested up to: 6.0
Requires PHP: 8.0
Text Domain: udemy
*/

/* ============================================================
  HEADER LAYOUT: Classic Solo - Navigation Display by Screen Size
============================================================ */
.classic-header {
  justify-content: space-around;
}

.wp-block-navigation {
  font-weight: 400;
  font-size: 20px;
  gap: 1.5em;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none !important;
}

/* ============================================================
  STICKY HEADER BEHAVIOR
============================================================ */
header.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

/* Sticky on scroll (solid background + shadow) */
body.scrolled header.sticky-header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ============================================================
  OVERLAY HAMBURGER MENU (FULLSCREEN MOBILE NAV)
============================================================ */

/* Ensure overlay nav is above sticky header */
.wp-block-navigation__responsive-container {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  width: 100%;
  height: 100vh !important;
  overflow-y: auto;
  z-index: 99999;
  background-color: #ffffff;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Prevent background scroll when overlay menu is open */
body.has-navigation-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Inside the overlay menu */
.wp-block-navigation__responsive-container ul {
  list-style: none;
  padding: 20px !important;
  margin: 0;
  padding-bottom: 1rem;
}

.wp-block-navigation__responsive-container .wp-block-navigation-item a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 400;
  color: #036837; /* Brand green */
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease-in-out;
}

.wp-block-navigation__responsive-container .wp-block-navigation-item a:hover {
  color: var(--global-palette1); /* Gold accent */
  background: #f9f9f9;
}

/* ============================================================
  RESPONSIVE STYLES (Mobile First Adjustments)
============================================================ */
@media (max-width: 768px) {

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
    align-items: center;
  }

  .site-logo img {
    max-width: 160px !important;
  }

  /* Hamburger Button */
  .wp-block-navigation.mobile-hamburger button {
    background: var(--global-palette1);
    color: var(--global-palette9);
    border: none;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .wp-block-navigation.mobile-hamburger svg {
    width: 20px;
    height: 20px;
  }

  /* Mobile CTA inside menu */
  .menu-cta .wp-block-button__link {
    width: 100%;
    text-align: center;
    font-weight: bold;
  }
}

/* ============================================================
  HIDE HAMBURGER MENU ON DESKTOP
============================================================ */
@media (min-width: 769px) {
  /* Hide hamburger nav and overlay container on desktop */
  .wp-block-navigation.mobile-hamburger,
  .wp-block-navigation__responsive-container {
    display: none !important;
  }

  /* Show desktop menu container */
  .desktop-only {
    display: flex !important;
  }

  /* Reset body scroll lock on desktop */
  body.has-navigation-open {
    overflow: auto !important;
    position: static !important;
    width: auto !important;
  }
}

/* ============================================================
  FOOTER STYLES
============================================================ */
.classic-footer {
  background: var(--global-palette3);
  padding-bottom: 20px !important;
  }

 /* ============================================================
  RESPONSIVE STYLES (Mobile First Adjustments)
============================================================ */
/* Responsive padding fix for footer container on small screens */
@media (max-width: 768px) {
  .footer-res {
    padding-left: 20px !important;
    padding-right: 20px !important;
    
  }
}

/* ============================================================
  REAL ESTATE POST CARD STYLES
============================================================ */
.real-estate-post-card a {
  text-decoration: none;
  color: #036837;
}
.real-estate-post-card a:hover {
  color: #D4AF37;
}
.real-estate-post-card .wp-block-post-excerpt {
  font-size: 15px;
  color: #444;
}

/*=============================================================
  whatsapp floating button
=============================================================*/
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-float img {
  width: 30px;
  height: 30px;
}
/* Show on new tab button */
a.whatsapp-btn {
  target: _blank;
}

