/* Custom styles and overrides */

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

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #e7cdd7;
    color: #2a0f17;
}

/* Subtle gradient border on cards */
.service-card {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #f3e8ed, #fff4cc) border-box;
    border: 1px solid transparent;
}

.service-card:hover {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #d4a4b5, #ffe999) border-box;
    border: 1px solid transparent;
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    max-height: 320px;
}

/* Scroll reveal - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, .hero-gradient, footer {
        background: white !important;
        color: black !important;
    }
    
    .hero-gradient a {
        color: black !important;
    }
}
