/* Custom styles for Gestoría Amoedo González */

/* Base & resets */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: #134e4a;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Service card hover */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #14b8a6, #0d9488);
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before {
    height: 100%;
}

/* Navbar transitions */
.nav-scrolled .nav-title-color {
    color: #1e293b;
}

.nav-scrolled .nav-subtitle-color {
    color: #64748b;
}

.nav-scrolled .nav-link {
    color: #475569;
}

.nav-transparent .nav-title-color {
    color: #ffffff;
}

.nav-transparent .nav-subtitle-color {
    color: rgba(255, 255, 255, 0.7);
}

.nav-transparent .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.nav-transparent .nav-scrolled .nav-link {
    color: #475569;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Map overlay gradient */
.map-overlay {
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.05) 0%, rgba(15, 23, 42, 0.1) 100%);
}

/* Subtle hover effects for links */
a {
    text-decoration: none;
}

/* Print styles */
@media print {
    nav, footer, .map-overlay {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
