/*
Theme Name: Assort Theme
Theme URI: https://assorthousing.com
Author: Zabeer
Author URI: https://zabeer.online
Description: A custom real-estate WordPress theme for Assort Housing & Engineering Ltd., with project listings, news and events, testimonials, team members, and configurable homepage sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: assort
Domain Path: /languages
Tags: real-estate, business, custom-logo, custom-menu, featured-images, responsive-layout
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-gold:       #F57B1E;   
  --color-primary:    #0B132B;   
  --color-foreground: #1C1C1E;
  --color-muted:      #6B7280;
  --color-border:     #E5E7EB;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--color-foreground); }
img  { display: block; max-width: 100%; }

.container-luxe {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.font-display { font-family: var(--font-display); font-weight: 400; }
.font-display.font-bold { font-weight: 700; }

.text-gold            { color: var(--color-gold) !important; }
.bg-gold              { background-color: var(--color-gold) !important; }
.border-gold          { border-color: var(--color-gold) !important; }
.text-primary         { color: var(--color-primary) !important; }
.bg-primary           { background-color: var(--color-primary) !important; }
.text-muted-foreground{ color: var(--color-muted) !important; }
.text-foreground      { color: var(--color-foreground) !important; }

header {
  background-color: transparent !important;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease !important;
  border-bottom: none !important; 
  box-shadow: none !important;
}


header .font-display.text-base {
  color: #ffffff !important;
}

header .text-\[10px\] {
  color: rgba(255, 255, 255, 0.6) !important;
}

#Ats_Header_Logo,
.header-logo-image { border: none !important;}

.header-logo-image {
  transition: opacity 0.25s ease;
}

.header-logo-scrolled {
  opacity: 0;
}

header.scrolled .header-logo-default {
  opacity: 0;
}

header.scrolled .header-logo-scrolled {
  opacity: 1;
}

header nav ul li a,
header nav a {
  color: #ffffff !important;
  font-weight: 400 !important;
  transition: color 0.3s ease;
}

header nav ul li:first-child a, 
header nav ul li.current-menu-item a,
header nav a:hover {
  color: var(--color-gold) !important;
}

header.scrolled {
  background-color: #FDFBF7 !important; 
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

header.scrolled .ats_nav_button {
    color: #000;
}

header.scrolled #open-menu {
  color: var(--color-primary) !important;
}

header.scrolled .font-display.text-base {
  color: var(--color-primary) !important;
}

header.scrolled .text-\[10px\] {
  color: var(--color-muted) !important;
}

header.scrolled nav ul li a,
header.scrolled nav a {
  color: var(--color-primary) !important;
}

header.scrolled nav ul li:first-child a, 
header.scrolled nav ul li.current-menu-item a,
header.scrolled nav a:hover {
  color: var(--color-gold) !important;
}

header .ats-consultation-link,
header.scrolled .ats-consultation-link {
  background-color: var(--color-gold) !important;
  color: #ffffff !important; 
  border: none !important;
  border-radius: 4px !important;
}

header .ats-consultation-link *,
header.scrolled .ats-consultation-link * {
  color: #ffffff !important; 
}

header .ats-consultation-link:hover,
header.scrolled .ats-consultation-link:hover {
  background-color: var(--color-gold) !important;
  color: #ffffff !important;
}

#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: var(--color-primary);
  padding: 6rem 2rem 2rem;
  flex-direction: column;
  gap: 2rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  color: #fff;
  font-size: 1.5rem;
  font-family: var(--font-display);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1rem;
}
#mobile-menu a:hover { color: var(--color-gold); }

.hero-overlay { position: relative; }
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(11, 19, 43, 0.7), rgba(11, 19, 43, 0.8));
  z-index: 1;
}
.hero-overlay > * { position: relative; z-index: 2; }
.hero-slide { will-change: opacity; }

.section-subtitle {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--color-gold);
}
.section-subtitle::before, .section-subtitle::after {
  content: ''; display: block; width: 40px; height: 1px;
  background-color: var(--color-gold); opacity: 0.6;
}

.badge-ongoing, .badge-upcoming {
  background-color: #FDF8F0 !important; color: var(--color-gold) !important;
  text-transform: uppercase; font-size: 0.65rem !important; letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem !important; border-radius: 0 !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important; font-weight: 500;
}
.badge-residential, .badge-commercial {
  background-color: transparent !important; color: var(--color-muted) !important;
  font-size: 0.8rem !important; padding: 0 !important; border: none !important;
}

.filter-tab {
  text-transform: uppercase; font-size: 0.75rem !important; letter-spacing: 0.1em;
  padding: 0.6rem 1.5rem !important; border-radius: 0 !important;
  border: 1px solid var(--color-border) !important; background: transparent !important;
  color: var(--color-foreground) !important; transition: all 0.3s ease;
}
.filter-tab.active, .filter-tab:hover {
  background-color: var(--color-primary) !important; color: #fff !important;
  border-color: var(--color-primary) !important;
}

.page-numbers:hover,
.page-numbers.current {
  background-color: var(--color-gold) !important;
  border-color: var(--color-gold) !important;
  color: #ffffff !important;
}

.page-numbers:hover *,
.page-numbers.current * {
  color: #ffffff !important;
}

.animate-fade-in { animation: fadeInUp 0.8s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.floating-action-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(11, 19, 43, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.floating-action-whatsapp {
  background: linear-gradient(135deg, #2fe36f 0%, #128c4a 100%);
}

.floating-action-messenger {
  background: linear-gradient(135deg, #00b2ff 0%, #006aff 52%, #7b35ff 100%);
}

.floating-action-youtube {
  background: linear-gradient(135deg, #ff3535 0%, #c40000 100%);
}

.floating-action-call {
  background: linear-gradient(135deg, #e7c75a 0%, #b98d17 100%);
}

.floating-action-button:hover {
  transform: translateY(-3px);
  filter: saturate(1.08) brightness(1.05);
  box-shadow: 0 18px 36px rgba(11, 19, 43, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.floating-action-button:active {
  transform: translateY(0) scale(0.94);
}

.project-card { transition: opacity 0.3s ease; }
.project-card[style*="none"] { display: none !important; }

.admin-bar header { top: 32px; }
@media (max-width: 782px) { .admin-bar header { top: 46px; } }

@media (max-width: 768px) {
  h1.font-display { font-size: 2.5rem !important; }
  h2.font-display { font-size: 2rem !important; }
  .container-luxe { padding-left: 1rem; padding-right: 1rem; }
}
