/*
Theme Name: HomeTogether
Theme URI: https://hometogether.in
Description: Premium Elementor Pro-based real estate theme for HomeTogether.in.
Author: OpenCode
Template: hello-elementor
Version: 2.0.0
Text Domain: hometogether
*/

:root {
  --ht-primary: #142D4E;
  --ht-primary-dark: #0f223b;
  --ht-primary-soft: #203D60;
  --ht-secondary: #C7A16A;
  --ht-secondary-light: #d4b487;
  --ht-bg: #FFFFFF;
  --ht-bg-soft: #F7F5F2;
  --ht-text: #1C2B3A;
  --ht-muted: #707B88;
  --ht-border: #E8E8E8;
  --ht-navy: #142D4E;
  --ht-gold: #C7A16A;
  --ht-shadow: 0 12px 40px rgba(20,45,78,.08);
  --ht-radius: 16px;
  --ht-transition: .35s cubic-bezier(.4,0,.2,1);
}
html { scroll-behavior: smooth; }
body { color: var(--ht-text); background: var(--ht-bg); font-family: 'Inter', sans-serif; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: 'Manrope', sans-serif; color: var(--ht-primary); }
a { transition: color var(--ht-transition), opacity var(--ht-transition); }
img { max-width: 100%; height: auto; }

/* ===== Animations ===== */
@keyframes htFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes htFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes htSlideRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes htPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(197,155,85,.45); } 70% { box-shadow: 0 0 0 14px rgba(197,155,85,0); } }
@keyframes htFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.ht-animate { animation: htFadeUp .7s ease both; }
.ht-animate-delay-1 { animation-delay: .1s; }
.ht-animate-delay-2 { animation-delay: .2s; }
.ht-animate-delay-3 { animation-delay: .3s; }

/* ===== Header ===== */
.ht-site-header .elementor-section,
.ht-site-header, .elementor-location-header { transition: background var(--ht-transition), box-shadow var(--ht-transition), padding var(--ht-transition); }
.ht-site-header, .elementor-location-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(229,231,235,.7); }
.ht-site-header.scrolled { box-shadow: 0 4px 24px rgba(24,59,86,.08); }
.ht-site-header .elementor-nav-menu--main .elementor-item { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .01em; position: relative; transition: color var(--ht-transition); }
.ht-site-header .elementor-nav-menu--main .elementor-item::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--ht-secondary); transform: scaleX(0); transform-origin: left; transition: transform var(--ht-transition); border-radius: 2px; }
.ht-site-header .elementor-nav-menu--main .elementor-item:hover::after,
.ht-site-header .elementor-nav-menu--main .elementor-item.elementor-item-active::after { transform: scaleX(1); }
.ht-header-cta .elementor-button { border-radius: 8px !important; font-weight: 600 !important; padding: 12px 24px !important; transition: all var(--ht-transition) !important; box-shadow: 0 4px 14px rgba(197,155,85,.25); }
.ht-header-cta .elementor-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(197,155,85,.35); }
.ht-logo a, .ht-logo h3 { transition: opacity var(--ht-transition); }
.ht-logo a:hover, .ht-logo h3:hover { opacity: .85; }

/* Mobile nav */
@media (max-width: 1024px) {
  .ht-site-header .elementor-nav-menu--dropdown { background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(24,59,86,.12); padding: 8px; margin-top: 8px; border: 1px solid var(--ht-border); }
  .ht-site-header .elementor-nav-menu--dropdown .elementor-item { padding: 12px 16px !important; border-radius: 8px; font-weight: 500; }
  .ht-site-header .elementor-nav-menu--dropdown .elementor-item:hover { background: var(--ht-bg-soft); color: var(--ht-secondary); }
  .ht-site-header .elementor-menu-toggle { color: var(--ht-primary); font-size: 26px; }
  .ht-header-cta .elementor-button { padding: 10px 18px !important; font-size: 14px !important; }
}
@media (max-width: 767px) {
  .ht-site-header .elementor-section { padding-top: 12px !important; padding-bottom: 12px !important; }
  .ht-header-cta { display: flex; justify-content: flex-end; }
  .ht-header-cta .elementor-button { width: auto; }
  .ht-mobile-hide { display: none !important; }
}

/* Header responsive refinements (tablet + mobile) */
@media (max-width: 1024px) {
  .elementor-location-header .e-parent { padding-left: 16px !important; padding-right: 16px !important; }
  .elementor-location-header .elementor-widget-image img { width: 105px !important; max-width: 105px !important; }
  .elementor-location-header .elementor-nav-menu--main { display: none !important; }
  .elementor-location-header .elementor-menu-toggle {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 44px; height: 44px; font-size: 22px; border-radius: 10px;
    color: var(--ht-primary); background: var(--ht-bg-soft);
  }
  .elementor-location-header .elementor-nav-menu--dropdown {
    background: #fff; border: 1px solid var(--ht-border); border-radius: 12px;
    box-shadow: 0 16px 36px rgba(20,45,78,.14); padding: 8px; margin-top: 8px;
    z-index: 1001; max-width: 100%;
  }
  .elementor-location-header .elementor-nav-menu--dropdown .elementor-item { padding: 12px 14px !important; border-radius: 8px; }
}
@media (max-width: 767px) {
  .elementor-location-header .e-parent { min-height: 70px; gap: 8px; }
  .elementor-location-header .e-parent > .e-child:first-child { flex: 0 0 auto !important; width: auto !important; }
  .elementor-location-header .e-parent > .e-child:last-child { flex: 1 1 auto !important; width: auto !important; }
  .elementor-location-header .elementor-widget-image img { width: 88px !important; max-width: 88px !important; }
  .elementor-location-header .elementor-widget-nav-menu { display: flex; align-items: center; justify-content: flex-end; width: 100%; }
  .elementor-location-header .elementor-menu-toggle { margin-left: auto; }
  .elementor-location-header .elementor-nav-menu--dropdown { width: 240px !important; min-width: 240px !important; max-width: calc(100vw - 32px) !important; }
}
@media (min-width: 1025px) {
  .elementor-location-header .elementor-menu-toggle,
  .elementor-location-header .elementor-nav-menu--dropdown { display: none !important; }
}

/* ===== Footer ===== */
.ht-site-footer, .elementor-location-footer { position: relative; overflow: hidden; }
.ht-site-footer::before, .elementor-location-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--ht-secondary), #e0c27a, var(--ht-secondary)); }
.ht-site-footer a { color: #CBD5E1; text-decoration: none; transition: color var(--ht-transition), transform var(--ht-transition); display: inline-block; }
.ht-site-footer a:hover { color: var(--ht-secondary); transform: translateX(3px); }
.ht-site-footer .ht-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; margin-right: 8px; transition: all var(--ht-transition); transform: none; }
.ht-site-footer .ht-footer-social a:hover { background: var(--ht-secondary); color: #fff; transform: translateY(-3px); }
.ht-footer-heading h4, .ht-footer-heading .elementor-heading-title { letter-spacing: .02em; }

/* ===== Floating WhatsApp & Call Buttons (icon only + hover tooltip) ===== */
.ht-float-wrap { position: fixed; right: 20px; bottom: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.ht-float-action { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border-radius: 50%; color: #fff; text-decoration: none; box-shadow: 0 10px 28px rgba(0,0,0,.18); transition: all var(--ht-transition); animation: htSlideRight .6s ease both; position: relative; }
.ht-float-action:hover, .ht-float-action:focus-visible { color: #fff; transform: translateY(-3px) scale(1.03); }
.ht-float-action .ht-float-icon { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; }
.ht-float-action .ht-float-icon svg { width: 26px; height: 26px; fill: currentColor; }
.ht-float-action::before {
  content: attr(data-tip);
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--ht-primary); color: #fff; padding: 7px 11px;
  border-radius: 8px; font: 700 12px/1 'Manrope', sans-serif;
  white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  box-shadow: 0 6px 18px rgba(20,45,78,.2); z-index: 2;
}
.ht-float-action:hover::before, .ht-float-action:focus-visible::before { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.ht-float-whatsapp { background: linear-gradient(135deg, #25D366, #1ebe57); box-shadow: 0 10px 28px rgba(37,211,102,.35); animation-delay: .4s; }
.ht-float-whatsapp:hover { box-shadow: 0 14px 34px rgba(37,211,102,.45); }
.ht-float-whatsapp::after { content: ''; position: absolute; inset: 0; border-radius: 50%; animation: htPulse 2.4s infinite; z-index: -1; box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
.ht-float-call { background: linear-gradient(135deg, var(--ht-primary), var(--ht-primary-soft)); box-shadow: 0 10px 28px rgba(20,45,78,.35); animation-delay: .55s; }
.ht-float-call:hover { box-shadow: 0 14px 34px rgba(20,45,78,.45); }
@keyframes htPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }
@media (max-width: 767px) {
  .ht-float-wrap { right: 12px; bottom: 14px; gap: 10px; }
  .ht-float-action { width: 48px; height: 48px; }
  .ht-float-action .ht-float-icon, .ht-float-action .ht-float-icon svg { width: 22px; height: 22px; flex: 0 0 22px; }
  .ht-float-action::before { right: calc(100% + 8px); font-size: 11px; padding: 6px 9px; }
}

/* ===== General polish ===== */
.elementor-button { transition: all var(--ht-transition) !important; }
.elementor-button:hover { transform: translateY(-1px); }
.elementor-widget-image img { transition: transform .5s ease; }
.elementor-widget-image:hover img { transform: scale(1.02); }

/* Responsive + Animation */
html { scroll-behavior:smooth; }
img { max-width:100%; height:auto; }
.elementor-widget-image img { height:auto; }
@media (max-width: 1024px){
  .elementor-section.elementor-section-boxed > .elementor-container { padding-left:16px; padding-right:16px; }
}
@media (max-width: 767px){
  body { font-size:15px; }
  h1, .elementor-heading-title.elementor-size-default { word-break:break-word; }
  .elementor-section { padding-left:0; padding-right:0; }
  .elementor-column { width:100% !important; }
  .elementor-widget-button .elementor-button { width:100%; }
  .ht-floating-actions { right:12px; bottom:12px; }
  .ht-floating-actions a { width:48px; height:48px; }
}
.ht-reveal { opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease; }
.ht-reveal.ht-in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .ht-reveal, .ht-reveal.ht-in { opacity:1; transform:none; transition:none; }
}

/* Lead Popup */
.ht-lead-modal{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(20,45,78,.55);backdrop-filter:blur(4px)}
.ht-lead-modal.is-open{display:flex}
.ht-lead-dialog{width:100%;max-width:520px;background:#fff;border-radius:20px;box-shadow:0 24px 60px rgba(20,45,78,.25);overflow:hidden;position:relative;animation:htModalIn .28s ease}
@keyframes htModalIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.ht-lead-head{padding:28px 28px 0}.ht-lead-head h3{margin:0 0 6px;color:#142D4E;font:700 28px/1.2 Manrope,sans-serif}.ht-lead-head p{margin:0;color:#707B88;font-size:14px;line-height:1.6}
.ht-lead-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border:0;border-radius:50%;background:#F7F5F2;color:#142D4E;font-size:22px;line-height:1;cursor:pointer}
.ht-lead-body{padding:22px 28px 28px}.ht-lead-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ht-lead-grid .full{grid-column:1/-1}
.ht-lead-body label{display:block;font-size:12px;font-weight:700;color:#142D4E;margin-bottom:6px}
.ht-lead-body input,.ht-lead-body textarea{width:100%;padding:12px 14px;border:1px solid #E8E8E8;border-radius:10px;font:500 14px/1.4 Inter,sans-serif;color:#142D4E;background:#fff}
.ht-lead-body textarea{min-height:90px;resize:vertical}
.ht-lead-body input:focus,.ht-lead-body textarea:focus{outline:none;border-color:#C7A16A;box-shadow:0 0 0 3px rgba(199,161,106,.15)}
.ht-lead-submit{width:100%;padding:14px 18px;border:0;border-radius:10px;background:#142D4E;color:#fff;font:700 15px/1 Manrope,sans-serif;cursor:pointer}
.ht-lead-submit:hover{background:#C7A16A;color:#142D4E}
.ht-lead-note{margin:10px 0 0;font-size:12px;color:#707B88;text-align:center}
@media(max-width:767px){.ht-lead-dialog{max-width:100%;border-radius:16px}.ht-lead-head{padding:24px 20px 0}.ht-lead-head h3{font-size:24px}.ht-lead-body{padding:18px 20px 24px}.ht-lead-grid{grid-template-columns:1fr}}

/* ===== Property filters ===== */
.ht-property-filter { background: #F7F5F2; border: 1px solid var(--ht-border); border-radius: 16px; padding: 24px; position: sticky; top: 100px; }
.ht-filter-head h3 { margin: 0 0 6px; color: var(--ht-primary); font: 700 20px/1.3 'Manrope', sans-serif; }
.ht-filter-head p { color: var(--ht-muted); font-size: 14px; margin: 0 0 20px; line-height: 1.6; }
.ht-filter-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ht-field label { display: block; font-size: 12px; font-weight: 700; color: var(--ht-primary); margin-bottom: 8px; letter-spacing: .02em; }
.ht-field select, .ht-field input { width: 100%; padding: 11px 12px; border: 1px solid var(--ht-border); border-radius: 10px; background: #fff; color: var(--ht-primary); font: 500 14px/1.4 'Inter', sans-serif; box-sizing: border-box; }
.ht-field select:focus, .ht-field input:focus { outline: none; border-color: var(--ht-secondary); box-shadow: 0 0 0 3px rgba(199,161,106,.15); }
.ht-filter-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.ht-filter-actions button { width: 100%; background: var(--ht-primary); color: #fff; padding: 12px; border: none; border-radius: 10px; font: 700 14px/1 'Manrope', sans-serif; cursor: pointer; transition: background var(--ht-transition), color var(--ht-transition); }
.ht-filter-actions button:hover { background: var(--ht-secondary); color: var(--ht-primary); }
.ht-filter-actions a { display: block; text-align: center; color: var(--ht-muted); padding: 10px; border-radius: 10px; text-decoration: none; font: 600 14px/1 'Inter', sans-serif; }
.ht-filter-actions a:hover { color: var(--ht-primary); background: #fff; }
@media (min-width: 601px) and (max-width: 1024px) {
  .ht-filter-grid { grid-template-columns: repeat(2, 1fr); }
  .ht-filter-actions { flex-direction: row; align-items: center; }
  .ht-filter-actions button { flex: 1; }
  .ht-filter-actions a { flex: 0 0 auto; padding: 12px 18px; }
}
@media (max-width: 1024px) { .ht-property-filter { position: static !important; } }
@media (max-width: 600px) { .ht-property-filter { padding: 18px; } .ht-filter-grid { grid-template-columns: 1fr; } }

/* Force the archive filter/results columns to stack on tablet/mobile.
   Elementor's generated CSS keeps the desktop column width at every breakpoint. */
@media (max-width: 1024px) {
  .elementor-57 .elementor-element.elementor-element-9de7659,
  .elementor-57 .elementor-element.elementor-element-32cadb4 { width: 100% !important; }
}
@media (min-width: 1025px) {
  .elementor-57 .elementor-element.elementor-element-9de7659 { width: 32% !important; }
  .elementor-57 .elementor-element.elementor-element-32cadb4 { width: 68% !important; }
}

/* ===== Footer credit ===== */
.ht-credit a { color: var(--ht-secondary-light); text-decoration: none; font-weight: 700; }
.ht-credit a:hover { color: #fff; text-decoration: underline; }

/* ===== Offcanvas header navigation (tablet + mobile) ===== */
.ht-offcanvas-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(12, 24, 40, .55); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
body.ht-offcanvas-open .ht-offcanvas-overlay { opacity: 1; visibility: visible; pointer-events: auto; }
/* The panel lives inside the header, so lift the whole header above the overlay. */
body.ht-offcanvas-open .elementor-location-header { z-index: 10003 !important; }
@media (max-width: 1024px) {
  .elementor-location-header .elementor-nav-menu--dropdown {
    position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: auto !important;
    display: flex !important; flex-direction: column; gap: 4px;
    width: min(360px, 88vw) !important; min-width: 0 !important; max-width: none !important;
    height: 100vh !important; height: 100dvh !important; max-height: none !important;
    margin: 0 !important; padding: 24px !important;
    background: #fff !important; border: 0 !important; border-radius: 0 !important;
    box-shadow: -14px 0 44px rgba(20,45,78,.2) !important;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(100%) !important; visibility: hidden;
    transition: transform .35s cubic-bezier(.4,0,.2,1), visibility .35s ease;
    z-index: 10002;
  }
  body.ht-offcanvas-open .elementor-location-header .elementor-nav-menu--dropdown { transform: translateX(0) !important; visibility: visible; }
  .ht-offcanvas-close {
    align-self: flex-end; flex: 0 0 auto;
    width: 42px; height: 42px; margin-bottom: 10px;
    border: 1px solid var(--ht-border); border-radius: 10px; background: var(--ht-bg-soft);
    color: var(--ht-primary); font: 400 28px/1 'Manrope', sans-serif; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .ht-offcanvas-close:hover { background: var(--ht-primary); color: #fff; border-color: var(--ht-primary); }
  .elementor-location-header .elementor-nav-menu--dropdown ul.elementor-nav-menu { display: block; width: 100%; }
  .elementor-location-header .elementor-nav-menu--dropdown li { width: 100%; }
  .elementor-location-header .elementor-nav-menu--dropdown .elementor-item {
    display: block; width: 100%; padding: 14px 10px !important;
    border-bottom: 1px solid var(--ht-border); border-radius: 0 !important;
    color: var(--ht-primary); font: 700 16px/1.4 'Manrope', sans-serif;
  }
  .elementor-location-header .elementor-nav-menu--dropdown .elementor-item:hover { color: var(--ht-secondary); background: var(--ht-bg-soft); }
  .elementor-location-header .elementor-nav-menu--dropdown .elementor-item.elementor-item-active,
  .elementor-location-header .elementor-nav-menu--dropdown .elementor-item[aria-current="page"] {
    color: var(--ht-secondary) !important;
    background: rgba(199,161,106,.14) !important;
    border-left: 3px solid var(--ht-secondary) !important;
  }
}
