/* Custom styles to complement Tailwind */

/* Base font smoothing */
html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: #d4a3b8;
    color: #2a1220;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #9a5176;
    outline-offset: 2px;
}

/* Smooth image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Custom underline animation for links */
a:not([class]) {
    position: relative;
}

/* Navbar glass effect fallback */
@media not all and (min-width: 768px) {
    #navbar {
        background: rgba(250, 245, 247, 0.98);
    }
}

/* Hero asymmetric layout adjustments */
@media (min-width: 1024px) {
    #hero {
        align-items: stretch;
    }
    #hero .lg\:col-span-7 {
        justify-content: center;
    }
}

/* Testimonial card hover */
#testimonials .bg-white:hover {
    transform: translateY(-4px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Service card hover glow */
.bg-plum-950 .group:hover {
    box-shadow: 0 0 40px rgba(212, 163, 184, 0.15);
    transition: box-shadow 0.5s ease;
}

/* Prevent layout shift on select */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23d4a3b8' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Mobile menu animations */
.mobile-menu .mobile-link {
    opacity: 0;
    transform: translateY(16px);
}
.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Print styles */
@media print {
    #navbar, #backToTop, .mobile-menu { display: none; }
    body { background: white; }
    section { page-break-inside: avoid; }
}
