/* ================================
   KINGDOM LIFE EMBASSY — WORDPRESS THEME
   Tailwind CDN handles utilities; this file provides custom components
   ================================ */

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, sans-serif;
  color: #1a1a1a;
  background-color: #E8E6E1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Container ---- */
.container-section {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1200px;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container-section { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container-section { padding-left: 2rem; padding-right: 2rem; }
}

/* ---- Buttons ---- */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #0c1b2a;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(42,90,122,0.4), 0 0 40px rgba(12,27,42,0.2), 0 4px 16px rgba(12,27,42,0.3);
}
.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(42,90,122,0.6), 0 0 60px rgba(12,27,42,0.4), 0 0 100px rgba(26,58,82,0.2), 0 6px 24px rgba(12,27,42,0.4);
  animation: glow-pulse 2s ease-in-out infinite;
}
.btn-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid #fff;
  background-color: transparent;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(42,90,122,0.3), 0 0 30px rgba(12,27,42,0.15), inset 0 0 15px rgba(42,90,122,0.05);
}
.btn-outline:hover {
  background-color: #fff;
  color: #0c1b2a;
  box-shadow: 0 0 30px rgba(42,90,122,0.5), 0 0 60px rgba(12,27,42,0.3), 0 0 100px rgba(26,58,82,0.15);
  animation: glow-pulse 2s ease-in-out infinite;
}

/* ---- Labels & Headings ---- */
.label-tag {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2a5a7a;
}
.heading-section {
  font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.heading-subsection {
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---- Cards ---- */
.card-base {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background-color: rgba(221, 218, 212, 0.8);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 0 30px rgba(42,90,122,0.08), inset 0 1px rgba(255,255,255,0.15);
}
.card-base::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(135deg, rgba(42,90,122,0.3), rgba(12,27,42,0.1), rgba(42,90,122,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card-base:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 40px rgba(42,90,122,0.15), 0 0 80px rgba(12,27,42,0.1), inset 0 1px rgba(255,255,255,0.2);
}

/* ---- Frosted Glass ---- */
.frosted-glass {
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  background: rgba(12, 27, 42, 0.55);
  border: 1px solid rgba(42, 90, 122, 0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 40px rgba(42,90,122,0.1), inset 0 1px rgba(255,255,255,0.08);
}
.player-glass {
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  background: rgba(12, 27, 42, 0.55);
  border: 1px solid rgba(42, 90, 122, 0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 40px rgba(42,90,122,0.1), inset 0 1px rgba(255,255,255,0.08);
}
.frosted-glass-light {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(42, 90, 122, 0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15), 0 0 30px rgba(42,90,122,0.08), inset 0 1px rgba(255,255,255,0.1);
}
.frosted-glass-light::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(135deg, rgba(42,90,122,0.25), rgba(255,255,255,0.05), rgba(42,90,122,0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---- Form ---- */
.form-frosted {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  background: rgba(12, 27, 42, 0.45);
  border: 1px solid rgba(42, 90, 122, 0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 40px rgba(42,90,122,0.1), inset 0 1px rgba(255,255,255,0.08);
}
.input-field {
  position: relative;
  width: 100%;
  border-radius: calc(0.75rem + 4px);
  border: 1px solid rgba(42, 90, 122, 0.3);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.875rem 18px;
  font-size: 1rem;
  color: #1a1a1a;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), inset 0 0 0 rgba(42,90,122,0);
}
.input-field::placeholder { color: rgba(107, 101, 96, 0.5); }
.input-field:focus {
  border-color: #2a5a7a;
  box-shadow: 0 0 0 3px rgba(42,90,122,0.15), 0 0 20px rgba(42,90,122,0.2), 0 4px 12px rgba(0,0,0,0.08);
}

/* ---- Text Glow ---- */
.text-glow {
  text-shadow: 0 0 10px rgba(42,90,122,0.5), 0 0 30px rgba(12,27,42,0.4), 0 0 60px rgba(26,58,82,0.2);
}
.border-glow {
  box-shadow: 0 0 15px rgba(42,90,122,0.3), 0 0 30px rgba(12,27,42,0.2), inset 0 0 20px rgba(42,90,122,0.05);
}

/* ---- Gradients ---- */
.bg-gradient-deep {
  background: linear-gradient(135deg, #16324d, #0c1b2a 40%, #071521);
}
.bg-gradient-ocean {
  background: linear-gradient(180deg, #1a3a52, #0c1b2a 60%, #071521);
}
.bg-gradient-radial-deep {
  background: radial-gradient(ellipse at 30% 20%, #204a6e, #16324d 30%, #0c1b2a 70%, #071521);
}

/* ---- Frosted Texture Overlay ---- */
.frosted-texture { position: relative; }
.frosted-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ---- Animations ---- */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(42,90,122,0.4), 0 0 60px rgba(12,27,42,0.25), 0 6px 24px rgba(12,27,42,0.3); }
  50% { box-shadow: 0 0 50px rgba(42,90,122,0.7), 0 0 100px rgba(12,27,42,0.45), 0 0 150px rgba(26,58,82,0.25), 0 8px 32px rgba(12,27,42,0.35); }
}
@keyframes card-glow-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 40px rgba(42,90,122,0.12), 0 0 80px rgba(12,27,42,0.08), inset 0 1px rgba(255,255,255,0.2); }
  50% { box-shadow: 0 12px 40px rgba(0,0,0,0.16), 0 0 60px rgba(42,90,122,0.25), 0 0 120px rgba(12,27,42,0.15), 0 0 180px rgba(26,58,82,0.08), inset 0 1px rgba(255,255,255,0.25); }
}
@keyframes mesh-orb-1 {
  0% { transform: translate(0) scale(1); }
  100% { transform: translate(30%, 20%) scale(1.1); }
}
@keyframes mesh-orb-2 {
  0% { transform: translate(0) scale(1); }
  100% { transform: translate(-20%, 30%) scale(1.15); }
}
@keyframes mesh-orb-3 {
  0% { transform: translate(0) scale(1); }
  100% { transform: translate(20%, -25%) scale(1.05); }
}
@keyframes bounce-arrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes glow-pulse-dark {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 40px rgba(42,90,122,0.15); }
  50% { box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 60px rgba(42,90,122,0.3), 0 0 100px rgba(12,27,42,0.2); }
}
@keyframes timeline-glow {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 6px rgba(42,90,122,0.5), 0 0 12px rgba(42,90,122,0.3); }
  50% { opacity: 1; box-shadow: 0 0 12px rgba(42,90,122,0.9), 0 0 24px rgba(42,90,122,0.6), 0 0 48px rgba(26,58,82,0.3); }
}
@keyframes dot-pop {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(42,90,122,0.8), 0 0 16px rgba(42,90,122,0.5), 0 0 32px rgba(26,58,82,0.3); }
  50% { transform: scale(1.4); box-shadow: 0 0 12px rgba(42,90,122,1), 0 0 24px rgba(42,90,122,0.8), 0 0 48px rgba(26,58,82,0.5), 0 0 80px rgba(42,90,122,0.2); }
}

.animate-mesh-orb-1 { animation: mesh-orb-1 25s linear infinite alternate; }
.animate-mesh-orb-2 { animation: mesh-orb-2 30s linear infinite alternate; }
.animate-mesh-orb-3 { animation: mesh-orb-3 20s linear infinite alternate; }
.animate-bounce-arrow { animation: bounce-arrow 2s ease-in-out infinite; }
.glow-pulse-dark { animation: glow-pulse-dark 3s ease-in-out infinite; }

/* ---- Scroll Reveal (progressive enhancement) ---- */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].kle-reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
}
[data-reveal].kle-reveal-hidden.kle-reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-variant="scaleIn"].kle-reveal-hidden { opacity: 0; transform: scale(0.92); }
[data-reveal-variant="scaleIn"].kle-reveal-hidden.kle-reveal-visible { opacity: 1; transform: scale(1); }
[data-reveal-variant="slideLeft"].kle-reveal-hidden { opacity: 0; transform: translateX(-60px); }
[data-reveal-variant="slideLeft"].kle-reveal-hidden.kle-reveal-visible { opacity: 1; transform: translateX(0); }
[data-reveal-variant="slideRight"].kle-reveal-hidden { opacity: 0; transform: translateX(60px); }
[data-reveal-variant="slideRight"].kle-reveal-hidden.kle-reveal-visible { opacity: 1; transform: translateX(0); }

/* ---- WordPress Admin Bar Fix ---- */
.admin-bar #kleTopBar { top: 32px; }
.admin-bar #kleMainNav { top: 32px; }
@media (min-width: 768px) { .admin-bar #kleMainNav { top: 72px; } }
@media (max-width: 782px) { .admin-bar #kleTopBar { top: 46px; } .admin-bar #kleMainNav { top: 46px; } }

/* ---- Mobile Menu States ---- */
#kleMobileMenu.open { transform: translateX(0) !important; }
#kleFooterDropdown.open { max-height: 500px !important; opacity: 1 !important; }

/* ---- Scrolled Nav States ---- */
#kleTopBar.scrolled {
  background: rgba(12, 27, 42, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#kleMainNav.scrolled {
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05) !important;
}
#kleMainNav.scrolled .text-white,
#kleMainNav.scrolled #kleHamburger { color: #1a1a1a; }

/* ---- Print ---- */
@media print { #kleTopBar, #kleMainNav, #kleMobileMenu, footer { display: none !important; } }

/* ================================
   HERO CAROUSEL
   ================================ */
.kle-slide {
  animation: kleFadeIn 0.6s ease-out;
}
@keyframes kleFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.kle-dot.active {
  background: #fff !important;
  transform: scale(1.2);
}

/* ================================
   WHATSAPP FLOATING WIDGET
   ================================ */
.kle-wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.kle-wa-panel {
  width: 320px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.kle-wa-widget.open .kle-wa-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.kle-wa-header {
  background: #075e54;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kle-wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
}
.kle-wa-title {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}
.kle-wa-status {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}
.kle-wa-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kle-wa-intro {
  font-size: 13px;
  color: #667781;
  margin-bottom: 4px;
}
.kle-wa-preset {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f0f2f5;
  border: none;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}
.kle-wa-preset:hover {
  background: #e9edef;
  transform: translateX(4px);
}
.kle-wa-preset svg {
  flex-shrink: 0;
  color: #075e54;
}
.kle-wa-custom {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.kle-wa-custom input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 24px;
  border: 1px solid #e9edef;
  background: #f0f2f5;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.kle-wa-custom input:focus {
  border-color: #075e54;
}
.kle-wa-custom button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #075e54;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.kle-wa-custom button:hover {
  background: #054c44;
}
.kle-wa-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
}
.kle-wa-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37,211,102,0.5);
}
.kle-wa-toggle .kle-wa-close {
  display: none;
}
.kle-wa-widget.open .kle-wa-toggle .kle-wa-icon {
  display: none;
}
.kle-wa-widget.open .kle-wa-toggle .kle-wa-close {
  display: block;
}
@media (max-width: 480px) {
  .kle-wa-widget {
    bottom: 16px;
    right: 16px;
  }
  .kle-wa-panel {
    width: calc(100vw - 32px);
  }
}

/* ================================
   HEART FOR THE HOUSE — IMMERSIVE 3D
   ================================ */
.hfth-page {
  font-family: 'Montserrat', sans-serif;
}
.hfth-page h1, .hfth-page h2, .hfth-page h3, .hfth-page h4 {
  font-family: 'Montserrat', sans-serif;
}

/* ---- Hero ---- */
.hfth-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
}
.hfth-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hfth-hero:hover .hfth-hero-bg {
  transform: scale(1);
}
.hfth-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.7) 60%, rgba(10,10,10,0.95) 100%);
}
.hfth-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}
.hfth-hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(227,33,24,0.5);
  border-radius: 999px;
  color: #e32118;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: hfthFadeInUp 0.8s ease-out 0.3s both;
}
.hfth-hero-title {
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  animation: hfthFadeInUp 0.8s ease-out 0.5s both;
}
.hfth-hero-title .heart {
  color: #e32118;
  text-shadow: 0 0 60px rgba(227,33,24,0.4);
}
.hfth-hero-title .house {
  color: #fff;
}
.hfth-hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  margin-top: 1.5rem;
  animation: hfthFadeInUp 0.8s ease-out 0.7s both;
}
.hfth-hero-verse {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
  animation: hfthFadeInUp 0.8s ease-out 0.9s both;
}
.hfth-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  animation: hfthFadeInUp 0.8s ease-out 1.1s both;
}

/* ---- Scroll Indicator ---- */
.hfth-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: hfthBounce 2s infinite;
}

/* ---- Revolving Doors Section ---- */
.hfth-doors-section {
  background: #f8f8f8;
  padding: 6rem 1.5rem;
  overflow: hidden;
}
.hfth-doors-header {
  text-align: center;
  margin-bottom: 4rem;
}
.hfth-doors-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: -0.03em;
}
.hfth-doors-header p {
  color: #666;
  font-size: 1.05rem;
  max-width: 500px;
  margin: 1rem auto 0;
  line-height: 1.7;
}

/* ---- 3D Carousel ---- */
.hfth-carousel-wrap {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  height: 520px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hfth-carousel {
  position: relative;
  width: 280px;
  height: 380px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hfth-carousel-cell {
  position: absolute;
  width: 260px;
  height: 360px;
  left: 50%;
  top: 50%;
  margin-left: -130px;
  margin-top: -180px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hfth-carousel-cell:hover {
  filter: brightness(1.1);
}
.hfth-carousel-cell:hover .hfth-door-img {
  transform: scale(1.08);
}
.hfth-door-card {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.1);
  background: #1a1a1a;
}
.hfth-door-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hfth-door-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.hfth-door-phase {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #e32118;
  margin-bottom: 0.4rem;
}
.hfth-door-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hfth-door-cost {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-top: 0.3rem;
}
.hfth-door-enter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(227,33,24,0.9);
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}
.hfth-carousel-cell:hover .hfth-door-enter {
  opacity: 1;
  transform: scale(1);
}

/* Carousel Controls */
.hfth-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hfth-carousel-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.hfth-carousel-nav button:hover {
  background: #e32118;
  border-color: #e32118;
  color: #fff;
}
.hfth-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.hfth-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}
.hfth-carousel-dot.active {
  background: #e32118;
  width: 24px;
  border-radius: 4px;
}

/* ---- Project Modal (3D Immersive) ---- */
.hfth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.hfth-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.hfth-modal {
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  background: #fff;
  position: relative;
  transform: perspective(1000px) rotateX(8deg) scale(0.85);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hfth-modal-overlay.active .hfth-modal {
  transform: perspective(1000px) rotateX(0deg) scale(1);
  opacity: 1;
}
.hfth-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.7);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  transition: all 0.2s ease;
}
.hfth-modal-close:hover {
  background: #e32118;
}
.hfth-modal-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}
.hfth-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hfth-modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
}
.hfth-modal-hero-phase {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #e32118;
  margin-bottom: 0.5rem;
}
.hfth-modal-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
}
.hfth-modal-body {
  padding: 2.5rem;
}
.hfth-modal-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  max-width: 700px;
}
.hfth-modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.hfth-modal-stat {
  background: #f8f8f8;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}
.hfth-modal-stat:hover {
  border-color: #e32118;
  transform: translateY(-3px);
}
.hfth-modal-stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #e32118;
}
.hfth-modal-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-top: 0.3rem;
}
.hfth-modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hfth-btn-red {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  background: #e32118;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.hfth-btn-red:hover {
  background: #c41a13;
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(227,33,24,0.3);
}
.hfth-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  background: transparent;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid #1a1a1a;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.hfth-btn-outline:hover {
  background: #1a1a1a;
  color: #fff;
}
.hfth-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  background: #fff;
  color: #e32118;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.hfth-btn-white:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ---- 3D Image Gallery inside Modal ---- */
.hfth-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.hfth-gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  transform: perspective(800px) rotateY(-3deg);
  transition: transform 0.5s ease;
}
.hfth-gallery-main:hover {
  transform: perspective(800px) rotateY(0deg);
}
.hfth-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hfth-gallery-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hfth-gallery-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: perspective(600px) rotateY(5deg);
  transition: transform 0.4s ease;
}
.hfth-gallery-thumb:hover {
  transform: perspective(600px) rotateY(0deg) scale(1.02);
}
.hfth-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Banking Section ---- */
.hfth-banking {
  background: #fff;
  padding: 5rem 1.5rem;
}
.hfth-banking-card {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid #eee;
  padding: 2.5rem;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}
.hfth-banking-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.hfth-banking-row:last-child {
  border-bottom: none;
}
.hfth-banking-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
}
.hfth-banking-value {
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a1a;
  text-align: right;
}

/* ---- CTA Section ---- */
.hfth-cta {
  background: #e32118;
  padding: 5rem 1.5rem;
  text-align: center;
}

/* ---- Animations ---- */
@keyframes hfthFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hfthBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Responsive */
@media (max-width: 768px) {
  .hfth-carousel-wrap { height: 420px; }
  .hfth-carousel { width: 220px; height: 300px; }
  .hfth-carousel-cell { width: 200px; height: 280px; margin-left: -100px; margin-top: -140px; }
  .hfth-gallery { grid-template-columns: 1fr; }
  .hfth-gallery-main { transform: none; }
  .hfth-gallery-thumb { transform: none; }
  .hfth-modal-hero { height: 250px; }
  .hfth-modal-body { padding: 1.5rem; }
}


/* HEART FOR THE HOUSE — refined white / red visual system */
.hfth-page { font-family:'Montserrat',sans-serif!important; color:#202020; background:#fff; }
.hfth-page * { box-sizing:border-box; }
.hfth-page p,.hfth-page a,.hfth-page button,.hfth-page input { font-family:'Montserrat',sans-serif; }
.hfth-hero { min-height:min(860px,94vh); background:#fff; }
.hfth-hero-bg { opacity:.76; background-position:center 48%; }
.hfth-hero-overlay { background:linear-gradient(90deg,rgba(15,15,15,.74),rgba(15,15,15,.25) 75%),linear-gradient(0deg,rgba(15,15,15,.58),transparent 65%); }
.hfth-hero-badge { color:#fff; border-color:rgba(255,255,255,.65); background:rgba(227,33,24,.88); letter-spacing:.16em; }
.hfth-hero-title { letter-spacing:-.055em; }
.hfth-hero-title .heart { text-shadow:none; }
.hfth-hero-subtitle { color:#fff; }
.hfth-hero-verse { color:rgba(255,255,255,.78); }
.hfth-doors-section { background:linear-gradient(180deg,#fff 0%,#f7f7f7 100%); padding:clamp(4rem,8vw,7rem) 1.5rem; }
.hfth-doors-header { margin-bottom:2.5rem; }
.hfth-doors-header h2 { font-family:'Montserrat',sans-serif; color:#171717; letter-spacing:-.055em; }
.hfth-doors-header p { color:#666; }
.hfth-carousel-wrap { height:clamp(390px,46vw,540px); perspective:1500px; }
.hfth-carousel { width:290px; height:390px; }
.hfth-carousel-cell { width:260px; height:360px; margin-left:-130px; margin-top:-180px; }
.hfth-door-card { border-radius:8px 8px 14px 14px; border:7px solid #fff; outline:1px solid rgba(227,33,24,.3); box-shadow:0 28px 65px rgba(25,25,25,.2), inset 0 0 0 1px rgba(255,255,255,.7); transform-style:preserve-3d; }
.hfth-door-card:before { content:''; position:absolute; z-index:1; inset:10px; border:1px solid rgba(255,255,255,.52); pointer-events:none; }
.hfth-door-img { filter:saturate(.88); }
.hfth-door-overlay { background:linear-gradient(0deg,rgba(10,10,10,.92) 0%,rgba(10,10,10,.18) 68%,rgba(10,10,10,.02) 100%); padding:1.4rem; }
.hfth-door-phase { color:#ff625a; letter-spacing:.12em; }
.hfth-door-name { font-size:1.12rem; }
.hfth-door-cost { color:rgba(255,255,255,.8); }
.hfth-door-enter { opacity:1; transform:none; background:#e32118; box-shadow:0 8px 24px rgba(227,33,24,.35); }
.hfth-carousel-nav button { border-color:#dedede; }
.hfth-carousel-nav button:hover { background:#e32118; }
.hfth-carousel-dot.active { background:#e32118; }
.hfth-modal-overlay { background:rgba(20,12,12,.84); padding:clamp(.5rem,3vw,2rem); }
.hfth-modal { border-radius:14px; box-shadow:0 40px 100px rgba(0,0,0,.32); }
.hfth-modal-hero { height:clamp(260px,38vw,440px); border-radius:14px 14px 0 0; }
.hfth-modal-hero img { transform:perspective(1000px) rotateY(-2deg) scale(1.02); }
.hfth-modal-hero-overlay { background:linear-gradient(0deg,rgba(10,10,10,.86),rgba(10,10,10,.03) 78%); }
.hfth-modal-hero-phase { color:#ff625a; }
.hfth-modal-body { padding:clamp(1.2rem,4vw,2.5rem); }
.hfth-modal-stat { border-radius:10px; background:#fafafa; }
.hfth-modal-stat-value { color:#d91e18; font-family:'Montserrat',sans-serif; }
.hfth-btn-red { background:#e32118; border-radius:5px; letter-spacing:.08em; }
.hfth-btn-red:hover { background:#b91913; transform:translateY(-2px); }
.hfth-btn-white,.hfth-btn-outline { border-radius:5px; }
.hfth-banking { background:#fff; }
.hfth-cta { background:linear-gradient(135deg,#a91612,#e32118); }
.kle-wa-widget { z-index:100000; }
.kle-wa-toggle { -webkit-tap-highlight-color:transparent; }
.kle-wa-panel { max-height:min(75vh,620px); overflow-y:auto; }
@media (max-width:700px) {
 .hfth-hero { min-height:82vh; }
 .hfth-hero-content { padding:1.5rem 1rem; }
 .hfth-hero-title { font-size:clamp(3.1rem,17vw,6rem); }
 .hfth-doors-section { padding:4rem 1rem; }
 .hfth-carousel-wrap { height:410px; }
 .hfth-carousel { transform:scale(.88); }
 .hfth-modal-overlay { align-items:flex-start; overflow-y:auto; }
 .hfth-modal { max-height:none; margin:auto 0; }
 .hfth-modal-hero { height:270px; }
 .hfth-modal-close { top:.75rem; right:.75rem; }
 .hfth-modal-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
 .hfth-modal-stat { padding:1rem .5rem; }
 .hfth-modal-stat-value { font-size:1.15rem; overflow-wrap:anywhere; }
 .hfth-modal-actions { flex-direction:column; }
 .hfth-modal-actions a { justify-content:center; }
}
@media (prefers-reduced-motion:reduce) {
 .hfth-page *, .kle-wa-widget * { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
