/* Custom CSS for Hey Neighbor Home Buyers */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #FFCBA4, #87CEEB);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #FF9F7D, #4682B4);
}

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #FFCBA4, #87CEEB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom button hover effects */
.btn-primary {
    background: linear-gradient(45deg, #FFCBA4, #FF9F7D);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #FF9F7D, #FFCBA4);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 203, 164, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #87CEEB, #4682B4);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #4682B4, #87CEEB);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(135, 206, 235, 0.4);
}

/* Custom card hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Header backdrop blur effect */
.header-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Parallax effect for hero section */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Custom form styling */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 203, 164, 0.2);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFCBA4;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Intersection Observer animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* Mobile menu animations */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-exit {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Custom tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background: linear-gradient(45deg, #2C3E50, #34495E);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2C3E50 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Responsive design enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .container-mobile {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .page-break {
        page-break-before: always;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-warm-gray {
        background-color: #ffffff;
    }

    .text-gray-600 {
        color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid #FFCBA4;
    outline-offset: 2px;
}

/* Custom selection color */
::selection {
    background: rgba(255, 203, 164, 0.3);
    color: #2C3E50;
}

::-moz-selection {
    background: rgba(255, 203, 164, 0.3);
    color: #2C3E50;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Lazy loading placeholder */
.img-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Property Form Specific Styles */
#property-form {
    position: relative;
    overflow: hidden;
}

#property-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 203, 164, 0.05) 0%, rgba(135, 206, 235, 0.05) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#property-form>* {
    position: relative;
    z-index: 1;
}

/* Form Input Enhancements */
#property-form input,
#property-form select,
#property-form textarea {
    font-size: 16px;
    /* Prevents zoom on iOS */
    transition: all 0.3s ease;
    background-color: white;
    border: 2px solid #e5e7eb;
}

#property-form input:focus,
#property-form select:focus,
#property-form textarea:focus {
    border-color: #FFCBA4;
    box-shadow: 0 0 0 3px rgba(255, 203, 164, 0.1);
    transform: translateY(-1px);
}

#property-form input:hover,
#property-form select:hover,
#property-form textarea:hover {
    border-color: #FFCBA4;
    transform: translateY(-1px);
}

/* Form Labels */
#property-form label {
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 0.5rem;
    display: block;
}

/* Section Headers in Form */
#property-form h3 {
    position: relative;
    padding-bottom: 1rem;
}

#property-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #FFCBA4, #87CEEB);
    border-radius: 2px;
}

/* Error states */
.border-red-500 {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Success states */
.border-green-500 {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Form animations */
#property-form .grid>div {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: backwards;
}

#property-form .grid>div:nth-child(1) {
    animation-delay: 0.1s;
}

#property-form .grid>div:nth-child(2) {
    animation-delay: 0.2s;
}

#property-form .grid>div:nth-child(3) {
    animation-delay: 0.3s;
}

#property-form .grid>div:nth-child(4) {
    animation-delay: 0.4s;
}

#property-form .grid>div:nth-child(5) {
    animation-delay: 0.5s;
}

#property-form .grid>div:nth-child(6) {
    animation-delay: 0.6s;
}

/* Button loading spinner */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Mobile responsiveness for form */
@media (max-width: 768px) {
    #property-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    #property-form input,
    #property-form select,
    #property-form textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
    div.grid.md\:grid-cols-3.gap-8 > div.mx-auto {
    margin: 0;
}
}

/* Form field focus indicators */
@keyframes pulse-peach {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 203, 164, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 203, 164, 0);
    }
}

.focus-indicator:focus {
    animation: pulse-peach 1s infinite;
}



#home {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

#home img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#home .container {
    position: relative;
    z-index: 2;
}

.relative.min-h-screen {
    position: relative;
}


.relative.min-h-screen img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}


.relative.min-h-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}


.relative.min-h-screen .relative {
    position: relative;
    z-index: 2;
}

.relative.min-h-screen h1,
.relative.min-h-screen p,
.relative.min-h-screen .bg-white/10 {
    color: white;
}

.relative.min-h-screen .bg-white/10 {
    background: rgba(255, 255, 255, 0.1);
}

button>svg {
    display: inline-block;
}


html {
    scroll-behavior: smooth;
}


@media (min-width: 1024px) {
    .policy_terms {
         margin-right: 7%;
    }
}