/* Custom styles that complement Tailwind CSS */

/* Base styles */
html {
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #f1f5f9;
}

/* Smooth focus visible */
:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
}

/* Custom select dropdown */
select {
    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='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Textarea resize */
textarea {
    min-height: 120px;
}

/* Ensure proper dark mode for map iframe */
iframe[src*="google.com/maps"] {
    background: #0a1830;
}

/* Print styles */
@media print {
    .noise::after { display: none; }
    body { background: white; color: black; }
    .nav-glass { position: static; }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-grid > div:first-child {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    .hero-grid > div:last-child {
        min-height: 300px;
    }
    h1 {
        font-size: 2.5rem !important;
    }
}

/* Large desktops */
@media (min-width: 1400px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .float-animation { animation: none; }
    .pulse-dot { animation: none; }
}
