/* Custom styles for Titan Tax Services */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(255, 107, 74, 0.3);
    color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1d23;
}
::-webkit-scrollbar-thumb {
    background: #3a3d45;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF6B4A;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #FF6B4A 0%, #E85A3A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Ensure all text has proper contrast */
.text-charcoal-300 {
    color: #c0c4cc;
}

.text-charcoal-400 {
    color: #a0a4ac;
}

.text-charcoal-500 {
    color: #80848c;
}

.text-charcoal-600 {
    color: #60646c;
}

.text-charcoal-700 {
    color: #4a4d55;
}

/* Hero image aspect ratio */
#hero img {
    aspect-ratio: 600 / 700;
}

#about img {
    aspect-ratio: 560 / 420;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
