/* ============================================
   New Light Properties — Custom Stylesheet
   ============================================ */

/* --- CSS Custom Properties (Theme) --- */
:root {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 45 95% 55%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 45 95% 55%;
  --radius: 0.75rem;
}

/* --- Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Hero Overlays --- */
.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, white 5%, transparent 100%);
  mask-image: linear-gradient(to bottom, white 5%, transparent 100%);
}

.hero-glow {
  background: radial-gradient(circle 400px at 50% 200px, rgba(251, 191, 36, 0.125), transparent);
}

/* --- Page-Load Animations --- */
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-header   { animation: slideDown 0.6s ease-out both; }
.anim-hero-1   { animation: fadeInUp 0.8s ease-out both; }
.anim-hero-2   { animation: fadeInUp 0.8s ease-out 0.2s both; }
.anim-hero-3   { animation: fadeInUp 0.8s ease-out 0.4s both; }
.anim-hero-4   { animation: fadeInUp 0.8s ease-out 0.6s both; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-nav-link { opacity: 0; animation: fadeInDown 0.5s ease-out both; }

/* --- Scroll-Triggered Reveals --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out,
              border-color 0.4s ease, box-shadow 0.4s ease;
}

.reveal-spring {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.4s ease, box-shadow 0.4s ease;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out,
              border-color 0.4s ease, box-shadow 0.4s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out,
              border-color 0.4s ease, box-shadow 0.4s ease;
}

.reveal-left-sm {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out,
              border-color 0.4s ease, box-shadow 0.4s ease;
}

.reveal.visible,
.reveal-spring.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-left-sm.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border: none;
  outline: none;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-outline {
  border: 1px solid hsl(var(--border));
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-lg {
  height: 2.75rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

/* --- Nav Underline Effect --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: hsl(var(--primary));
  transition: width 0.4s;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Mobile Menu --- */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background-color: hsl(var(--background));
  z-index: 40;
  padding-top: 6rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#mobile-menu.open {
  display: flex;
  opacity: 1;
}

@keyframes mobileItemIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

#mobile-menu.open nav > * {
  opacity: 0;
  animation: mobileItemIn 0.4s ease-out both;
}

#mobile-menu.open nav > *:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open nav > *:nth-child(2) { animation-delay: 0.10s; }
#mobile-menu.open nav > *:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open nav > *:nth-child(4) { animation-delay: 0.20s; }
#mobile-menu.open nav > *:nth-child(5) { animation-delay: 0.25s; }
#mobile-menu.open nav > *:nth-child(6) { animation-delay: 0.30s; }
#mobile-menu.open nav > *:nth-child(7) { animation-delay: 0.35s; }

/* --- FAQ Accordion --- */
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: color 0.2s;
}

.faq-trigger:hover {
  color: hsl(var(--primary));
}

.faq-trigger svg {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-trigger svg {
  transform: rotate(180deg);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.faq-content > .faq-answer {
  overflow: hidden;
}

.faq-item.active .faq-content {
  grid-template-rows: 1fr;
  padding-bottom: 1rem;
}

/* --- Toast Notifications --- */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.4s ease-out forwards;
  max-width: 24rem;
  font-size: 0.875rem;
}

.toast.removing {
  animation: toastOut 0.4s ease-in forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100%); }
}

/* --- Form Elements --- */
input,
select,
textarea {
  color: hsl(var(--foreground));
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* --- Owner Service Card Hover Lift --- */
.service-card {
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
}

/* --- Smooth scrolling --- */
html {
  scroll-behavior: smooth;
}

/* ============================================
   Gallery hint on property image
   ============================================ */
.gallery-hint {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.gallery-trigger:hover .gallery-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Gallery Modal
   ============================================ */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.gallery-modal.open {
  opacity: 1;
  pointer-events: all;
}

.gallery-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}
.gallery-close:hover { background: rgba(255,255,255,0.2); }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}
.gallery-arrow:hover { background: rgba(255,255,255,0.2); }
.gallery-prev { left: 1.25rem; }
.gallery-next { right: 1.25rem; }

.gallery-track-wrap {
  width: 100%;
  max-width: min(90vw, 1100px);
  max-height: 80vh;
  overflow: hidden;
  border-radius: 0.75rem;
}

.gallery-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-slide img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.75rem;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.gallery-dot.active {
  background: hsl(var(--primary));
  transform: scale(1.3);
}

/* ============================================
   JotForm embed — match site dark theme
   ============================================ */

/* Strip JotForm chrome */
[data-type="control_head"],
.jotform-form .supernova-header { display: none !important; }

.jotform-form .form-all {
  background-color: transparent !important;
  max-width: 100% !important;
  width: 100% !important;
  border-radius: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  color: hsl(var(--foreground)) !important;
  padding: 0 !important;
  margin-top: 0;
}

.jotform-form .form-section,
.jotform-form .page-section {
  background-color: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Field rows */
.jotform-form .form-line {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  padding: 0 !important;
  background-color: transparent !important;
}
.jotform-form .form-line:last-child { margin-bottom: 0 !important; }
.jotform-form .form-line-active { background-color: transparent !important; }

/* Labels */
.jotform-form .form-label,
.jotform-form .form-label-top,
.jotform-form .form-label-left,
.jotform-form .form-label-right {
  color: hsl(var(--foreground)) !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  margin-bottom: 6px !important;
}
.jotform-form .form-sub-label {
  color: hsl(var(--muted-foreground)) !important;
  font-size: 12px !important;
  margin-top: 4px !important;
}
.jotform-form .form-required { color: hsl(var(--primary)) !important; }

/* Inputs, textarea, dropdown */
.jotform-form .form-textbox,
.jotform-form .form-textarea,
.jotform-form .form-dropdown {
  background-color: hsl(var(--background)) !important;
  color: hsl(var(--foreground)) !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: .5rem !important;
  padding: 12px 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  box-shadow: none !important;
}

.jotform-form .form-dropdown {
    height: 52px!important;
}
.jotform-form .form-textbox { height: 52px !important; }
.jotform-form .form-textarea { height: 140px !important; resize: none !important; }

.jotform-form .form-textbox:focus,
.jotform-form .form-textarea:focus,
.jotform-form .form-dropdown:focus {
  border-color: hsl(var(--primary)) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.2) !important;
}

.jotform-form .form-textbox::placeholder,
.jotform-form .form-textarea::placeholder {
  color: hsl(var(--muted-foreground)) !important;
}

/* Force dropdown to be full-width */
.jotform-form [data-type="control_dropdown"] .form-input,
.jotform-form [data-type="control_dropdown"] .form-input-wide,
.jotform-form [data-type="control_dropdown"] .form-dropdown {
  width: 100% !important;
  max-width: 100% !important;
}

/* Date picker calendar icon */
.jotform-form .newDefaultTheme-dateIcon,
.jotform-form .icon-liteMode {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: invert(1) opacity(0.4) !important;
}

/* Error states */
.jotform-form .form-line-error { background-color: transparent !important; }
.jotform-form .form-line-error .form-error-message {
  background-color: hsl(var(--destructive)) !important;
  border-radius: 6px !important;
}
.jotform-form .form-line-error .form-error-message .form-error-arrow {
  border-bottom-color: hsl(var(--destructive)) !important;
}
.jotform-form .form-line-error input:not(#coupon-input),
.jotform-form .form-line-error textarea,
.jotform-form .form-line-error .form-validation-error {
  border-color: hsl(var(--destructive)) !important;
  box-shadow: 0 0 0 3px hsl(var(--destructive) / 0.3) !important;
}

/* Submit button — full width, primary yellow */
.jotform-form #id_8,
.jotform-form [data-type="control_button"] { padding: 0 !important; }

.jotform-form .form-buttons-wrapper {
  display: block !important;
  padding: 0 !important;
  margin-top: 8px !important;
  margin-left: 0;
  margin-right: 0;
  border: none;
}

.jotform-form .submit-button,
.jotform-form .form-submit-button {
  background-color: hsl(var(--primary)) !important;
  background-image: none !important;
  color: hsl(var(--primary-foreground)) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  height: 56px !important;
  width: 100% !important;
  min-width: unset !important;
  border: none !important;
  border-radius: 0.5rem !important;
  box-shadow: none !important;
  text-shadow: none !important;
  cursor: pointer !important;
  margin: 0!important;
  transition: background-color 0.2s !important;
}
.jotform-form .form-submit-button:hover {
  background-color: hsl(45 95% 48%) !important;
}
