/*
Theme Name: Shreeji Properties
Theme URI: https://shreejiproperties.in
Author: AntiGravity
Author URI: https://shreejiproperties.in
Description: Premium luxury real estate WordPress theme with matte black and gold.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: shreeji
*/

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

:root {
  --radius: 0.375rem;
  --background: #0F0F0F;
  --foreground: #FFFFFF;
  --ink: #FFFFFF;
  --cream: #FFFFFF;
  --gold: #D4AF37;
  --gold-soft: #F3E7C4;
  --card: rgba(20, 20, 20, 0.75);
  --card-foreground: #FFFFFF;
  --popover: #151515;
  --popover-foreground: #FFFFFF;
  --primary: #D4AF37;
  --primary-foreground: #0F0F0F;
  --secondary: #1A1A1A;
  --secondary-foreground: #FFFFFF;
  --muted: #222222;
  --muted-foreground: #A0A0A0;
  --accent: #D4AF37;
  --accent-foreground: #0F0F0F;
  --border: rgba(212, 175, 55, 0.2);
  --input: rgba(255, 255, 255, 0.05);
  --ring: #D4AF37;
  --gradient-gold: linear-gradient(135deg, #F3E7C4 0%, #D4AF37 50%, #A78734 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(15, 15, 15, 0.3) 0%, rgba(15, 15, 15, 0.95) 100%);
  --shadow-gold: 0 15px 45px -15px rgba(212, 175, 55, 0.25);
  --shadow-elevated: 0 30px 80px -25px rgba(0, 0, 0, 0.85);
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--background);
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Outfit", "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container-luxe {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.font-display {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
}

.gradient-text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shadow-gold {
  box-shadow: var(--shadow-gold);
}

.shadow-elevated {
  box-shadow: var(--shadow-elevated);
}

.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

/* Header */
.site-header {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid transparent;
}

.admin-bar .site-header {
  top: 32px;
}

.sticky-header-active {
  background-color: rgba(15, 15, 15, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

.brand-mark {
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.3) 100%);
}

.shreeji-primary-menu,
.shreeji-mobile-menu,
.shreeji-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shreeji-primary-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shreeji-primary-menu > li {
  position: relative;
}

.shreeji-primary-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.shreeji-primary-menu a:hover,
.shreeji-primary-menu .current-menu-item > a,
.shreeji-primary-menu .current-menu-ancestor > a,
.shreeji-footer-menu a:hover,
.shreeji-mobile-menu a:hover {
  color: var(--gold);
}

.shreeji-primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  padding: 0.5rem 0;
  display: none;
  z-index: 50;
}

.shreeji-primary-menu .sub-menu::before {
  content: "";
  display: block;
  height: 0.5rem;
}

.shreeji-primary-menu li:hover > .sub-menu,
.shreeji-primary-menu li:focus-within > .sub-menu {
  display: block;
  animation: navFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shreeji-primary-menu .sub-menu > li {
  display: block;
}

.shreeji-primary-menu .sub-menu > li > a {
  display: block;
  margin-top: 0.125rem;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: #121212;
  padding: 0.85rem 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.shreeji-primary-menu .sub-menu > li > a:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
  color: var(--gold);
  padding-left: 1.5rem;
}

/* Mobile Menu */
.shreeji-mobile-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shreeji-mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.shreeji-mobile-menu .sub-menu {
  padding-left: 1.25rem;
  background: rgba(0, 0, 0, 0.15);
}

.shreeji-mobile-menu .sub-menu a {
  padding: 0.75rem 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.shreeji-footer-menu a {
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.menu-toggle-lines {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 14px;
}

.menu-toggle-lines span,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle-lines span {
  top: 6px;
}

.menu-toggle-lines::before {
  top: 0;
}

.menu-toggle-lines::after {
  bottom: 0;
}

.menu-toggle.is-open .menu-toggle-lines span {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle-lines::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Contact Form 7 Glassmorphic Styling */
.lead-form-wrap .wpcf7-form-control-wrap {
  display: block;
}

.lead-form-wrap label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.lead-form-wrap input[type="text"],
.lead-form-wrap input[type="email"],
.lead-form-wrap input[type="tel"],
.lead-form-wrap textarea,
.lead-form-wrap select {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--foreground);
  padding: 0.85rem 1rem;
  outline: none;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.lead-form-wrap input:focus,
.lead-form-wrap textarea:focus,
.lead-form-wrap select:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.12);
}

.lead-form-wrap .wpcf7-submit {
  width: 100%;
  border: 0;
  background: var(--gradient-gold);
  color: var(--primary-foreground);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 1rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.lead-form-wrap .wpcf7-submit:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-gold);
}

.lead-form-wrap .wpcf7-response-output {
  margin: 1rem 0 0;
  border: 1px solid var(--gold);
  background: rgba(212, 175, 55, 0.05);
  padding: 0.85rem 1rem;
  font-size: 12px;
  color: var(--gold);
}

.lead-form-fallback {
  border: 1px dashed rgba(212, 175, 55, 0.3);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-foreground);
  font-size: 13px;
  border-radius: 2px;
}

/* Entry Content */
.entry-content p {
  line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
}

.post-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.02);
}

.post-card:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Pagination */
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 0.75rem 1rem;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.pagination .current,
.pagination .page-numbers:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

/* Floating widgets */
.shreeji-whatsapp-float {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 52px !important;
  height: 52px !important;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #FFFFFF !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 25px rgba(18, 140, 126, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.shreeji-whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 15px 30px rgba(18, 140, 126, 0.5) !important;
}

.shreeji-call-float {
  position: fixed !important;
  bottom: 30px !important;
  left: 30px !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 52px !important;
  height: 52px !important;
  background: var(--gradient-gold) !important;
  color: #0F0F0F !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.shreeji-call-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4) !important;
}

/* Premium Utilities */
.glass-panel {
  background: rgba(20, 20, 20, 0.6) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(212, 175, 55, 0.16) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}

.glow-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(212, 175, 55, 0.12);
  background: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(8px);
}

.glow-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 15px 40px -10px rgba(212, 175, 55, 0.15), 0 0 1px 1px rgba(212, 175, 55, 0.1);
  transform: translateY(-5px);
}

.hover-zoom-img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.group:hover .hover-zoom-img {
  transform: scale(1.05) !important;
}

/* Timed / Exit Lead Capture Popup styling */
.luxury-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.luxury-popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.luxury-popup-content {
  width: 90%;
  max-width: 500px;
  background: #121212;
  border: 1px solid var(--gold);
  padding: 2.5rem;
  box-shadow: var(--shadow-elevated);
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.luxury-popup-overlay.show .luxury-popup-content {
  transform: scale(1);
}

/* Sliders & Calculator Inputs */
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  border-radius: 999px;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px var(--gold);
  transition: all 0.2s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* AI Recommendation Widget */
.ai-widget-step {
  display: none;
}
.ai-widget-step.active {
  display: block;
  animation: stepFade 0.4s ease;
}

.ai-option-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-option-btn:hover, .ai-option-btn.selected {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
}

/* Developer marquee carousel */
.infinite-marquee {
  display: flex;
  width: max-content;
  animation: marqueeRun 25s linear infinite;
}

.infinite-marquee:hover {
  animation-play-state: paused;
}

@keyframes marqueeRun {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Sticky Mobile Bottom Bar */
.mobile-bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  z-index: 9998;
  display: flex;
}

.mobile-bottom-cta-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-bottom-cta-item:last-child {
  border-right: none;
}

.mobile-bottom-cta-item:hover,
.mobile-bottom-cta-item:active {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

/* Animations Keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes stepFade {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .container-luxe {
    padding-inline: 2.5rem;
  }
}

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

@media (max-width: 1023px) {
  .shreeji-primary-menu {
    display: none;
  }

  .shreeji-primary-menu .sub-menu {
    position: static;
    min-width: 0;
    padding: 0.5rem 0 0.5rem 1rem;
    display: block;
    transform: none;
    animation: none;
  }

  .shreeji-primary-menu .sub-menu > li > a {
    margin-top: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0.5rem 0;
  }
}

/* Ensure body does not overlap with sticky bottom mobile bar */
@media (max-width: 1023px) {
  body {
    padding-bottom: 60px;
  }
}
