/* Custom CSS — things Tailwind can't handle via utility classes */

/* Hero grid pattern pseudo-element overlay */
.hero-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
}

/* Section card grid pattern overlay */
.card-grid-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    border-radius: inherit;
    pointer-events: none;
}

/* Section card dark overlay */
.card-dark-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: inherit;
    pointer-events: none;
}

/* Hamburger menu span transforms when active */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav: show when active (no media query — hamburger only appears on mobile anyway) */
.main-nav.active {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem !important;
    z-index: 50;
}
.main-nav.active ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
}
.main-nav.active ul li a {
    display: block !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid #f0f0f0;
}
.main-nav.active ul li:last-child a {
    border-bottom: none !important;
}

/* Body scroll lock when menu open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #125699;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0e4377;
}

/* Form validation states */
.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}
.is-invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}
.error-feedback {
    color: #b91c1c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Service features bullet dots */
.service-bullet::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: #30C5FF;
}

/* reCAPTCHA badge hide (required text notice is shown instead) */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* reCAPTCHA privacy notice styling */
.recaptcha-notice {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.75rem;
    line-height: 1.4;
}
.recaptcha-notice a {
    color: #125699;
    text-decoration: underline;
}

/* Story image background */
.story-image-bg {
    background-image: url('../images/orange.png');
    background-size: cover;
    background-position: center;
}

/* Homepage section card backgrounds */
.bg-management {
    background: url('../images/management.png') no-repeat center center / cover;
}
.bg-renting {
    background: url('../images/renting.png') no-repeat center center / cover;
}
.bg-investor {
    background: url('../images/investor.png') no-repeat center center / cover;
}

/* Map section background */
.map-bg {
    background-image: url('../images/map.png');
    background-size: cover;
    background-position: center;
}
