/*
Theme Name: SkyLand Realtors Theme
Theme URI: https://skylandrealtors.com
Author: SkyLand Realtors Advisory
Author URI: https://skylandrealtors.com
Description: Premium real estate advisory theme for SkyLand Realtors. Features a high-contrast dark top fold, clean Alabaster white reading body, CAGR location intelligence boards, and responsive navigation overlays. Ready for WordPress 7+.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-skyland-realtors
Tags: real-estate, premium, clean-layout, custom-theme, typography-focused, widgets, translation-ready

This theme is built to package the static SkyLand Realtors experience inside WordPress, supporting modern theme configurations, dynamic posts enqueues, page templates, and Gutenberg block layouts.
*/

/* Core styles are loaded from styles.css via functions.php enqueue. */

/* Constrain WordPress uploaded Custom Logo height to prevent header bloat */
.custom-logo-link,
.custom-logo-link img,
img.custom-logo {
  max-height: 64px !important;
  height: 64px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block;
}

/* Luxury Editorial Serif Font family */
.font-serif-editorial {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Highlight theme buttons explicitly for WordPress and static consistency */
.btn-gold-highlight,
button.gold-shimmer-btn,
.callback-btn {
  background: linear-gradient(135deg, #C5A880 0%, #9B7C46 100%) !important;
  color: #0C1122 !important; /* Premium dark text on gold background */
  font-weight: 800 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-gold-highlight:hover,
button.gold-shimmer-btn:hover,
.callback-btn:hover {
  background: linear-gradient(135deg, #E5D3B3 0%, #C5A880 100%) !important;
  color: #0C1122 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 20px -5px rgba(197, 168, 128, 0.4) !important;
}

.btn-gold-highlight:active,
button.gold-shimmer-btn:active,
.callback-btn:active {
  transform: translateY(0) !important;
}

/* WordPress Menu Items Alignment and Styling (Identical to local files) */
/* WordPress Menu Items Alignment and Styling (Identical to local files) */
@media (min-width: 768px) {
  #main-header nav.desktop-nav,
  #main-header nav.desktop-nav ul {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important; /* space-x-3 equivalent gap for small viewports */
    font-family: 'Inter', sans-serif !important;
    font-size: 0.75rem !important; /* text-xs */
    font-weight: 600 !important; /* font-semibold */
    letter-spacing: 0.025em !important; /* tracking-wide */
    text-transform: none !important; /* Normal case */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #main-header nav.desktop-nav a,
  #main-header nav.desktop-nav li a {
    color: #D1D5DB !important; /* text-gray-300 */
    transition: color 0.3s ease !important;
    position: relative !important;
    text-decoration: none !important;
    white-space: nowrap !important; /* Forces menu links to stay in a single line */
  }

  #main-header nav.desktop-nav a:hover,
  #main-header nav.desktop-nav li a:hover,
  #main-header nav.desktop-nav li.current-menu-item a,
  #main-header nav.desktop-nav a.active {
    color: #ffffff !important; /* text-white / hover:text-white */
  }

  /* Hover gold underline for WordPress menu list items */
  #main-header nav.desktop-nav a::after,
  #main-header nav.desktop-nav li a::after {
    content: '' !important;
    position: absolute !important;
    width: 0 !important;
    height: 1.5px !important;
    bottom: -4px !important;
    left: 0 !important;
    background-color: #A98C60 !important; /* Bronze gold */
    transition: width 0.3s ease !important;
  }

  #main-header nav.desktop-nav a:hover::after,
  #main-header nav.desktop-nav li a:hover::after,
  #main-header nav.desktop-nav li.current-menu-item a::after {
    width: 100% !important;
  }
}

@media (min-width: 1024px) {
  #main-header nav.desktop-nav,
  #main-header nav.desktop-nav ul {
    gap: 1.5rem !important; /* space-x-6 gap */
    font-size: 0.875rem !important; /* text-sm */
  }
}

@media (min-width: 1280px) {
  #main-header nav.desktop-nav,
  #main-header nav.desktop-nav ul {
    gap: 2rem !important; /* space-x-8 gap */
  }
}

/* Active tab highlight style */
.cagr-tab-btn.active-tab-gold {
  background-color: #C5A880 !important; /* Brand gold background */
  color: #0F172A !important; /* High contrast brand dark text */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Explicit Subpage Theme Color Enforcement */
.subpage-banner {
  background-color: #0C1122 !important; /* Premium Dark Navy */
}
.subpage-banner h1,
.subpage-banner .text-white {
  color: #ffffff !important; /* High-contrast white for dark backgrounds */
}
.subpage-banner p,
.subpage-banner .text-slate-300 {
  color: #D1D5DB !important; /* High-contrast light gray */
}
.subpage-banner .text-brand-gold {
  color: #C5A880 !important; /* Premium gold */
}

.subpage-content {
  background-color: #FAF9F6 !important; /* Alabaster light background */
}
.subpage-content h2,
.subpage-content h3,
.subpage-content .text-slate-900 {
  color: #0F172A !important; /* High-contrast dark slate-900 for light backgrounds */
}
.subpage-content p,
.subpage-content li,
.subpage-content .text-slate-700,
.subpage-content .text-slate-750 {
  color: #334155 !important; /* High-contrast dark slate-700 */
}
.subpage-content .text-brand-gold {
  color: #A98C60 !important; /* Darker bronze gold for legibility on light background */
}
.subpage-content .bg-white {
  background-color: #ffffff !important;
}
.subpage-content .border-slate-200,
.subpage-content .border-slate-200\/60 {
  border-color: #E2E8F0 !important;
}

/* Explicit Mobile Menu Hamburger Button display and sizing controls */
#mobile-menu-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0.5rem !important; /* p-2 */
  z-index: 50 !important;
  position: relative !important;
}

@media (min-width: 768px) {
  #mobile-menu-btn {
    display: none !important;
  }
}

#mobile-menu-btn svg {
  stroke: #ffffff !important; /* Force white icon stroke color */
  fill: none !important;
  width: 24px !important; /* 1.5rem / w-6 */
  height: 24px !important; /* 1.5rem / h-6 */
  display: block !important;
}

/* Shift fixed header down when WordPress admin bar is visible */
.admin-bar #main-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  .admin-bar #main-header {
    top: 46px !important;
  }
}

/* Fallback display rules if Tailwind CDN fails to load */
.hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .sm\:inline-flex {
    display: inline-flex !important;
  }
}

@media (max-width: 767px) {
  .md\:hidden {
    display: block !important;
  }
  /* Force desktop nav to hide on mobile if Tailwind fails */
  .desktop-nav,
  .hidden.md\:flex,
  nav.desktop-nav {
    display: none !important;
  }
  /* Align search and hamburger controls on the right side of header */
  #main-header .flex.items-center.space-x-4 {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    align-items: center !important;
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex !important;
  }
  .md\:hidden {
    display: none !important;
  }
}

/* High-contrast subtitle rendering for readability */
.hero-subtitle {
  color: #C5A880 !important; /* Premium Gold */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.5) !important;
  letter-spacing: 0.15em !important;
}

/* Dark Footer Style overrides */
footer.bg-\[\#0C1122\] {
  background-color: #0c1122 !important;
  color: #94a3b8 !important; /* slate-400 */
}
footer.bg-\[\#0C1122\] h4 {
  color: #ffffff !important;
}
footer.bg-\[\#0C1122\] a, 
footer.bg-\[\#0C1122\] ul li a,
footer.bg-\[\z0C1122\] ul li, 
footer.bg-\[\#0C1122\] p, 
footer.bg-\[\#0C1122\] span, 
footer.bg-\[\#0C1122\] div {
  color: #94a3b8 !important; /* slate-400 */
}
footer.bg-\[\#0C1122\] a:hover, 
footer.bg-\[\#0C1122\] ul li a:hover {
  color: #ffffff !important;
}
footer.bg-\[\#0C1122\] svg {
  stroke: #C5A880 !important; /* gold stroke */
}
footer.bg-\[\#0C1122\] .border-slate-200,
footer.bg-\[\#0C1122\] .border-t {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
footer.bg-\[\#0C1122\] input[type="email"] {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}
