/* Custom styles for The Speech Consultancy */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f6;
}
::-webkit-scrollbar-thumb {
    background: #d4a882;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8411e;
}

/* Subtle pattern overlay for hero section */
#top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(212, 86, 42, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(224, 180, 80, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Selection color */
::selection {
    background: #f8c4b0;
    color: #3a130a;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #d4562a;
    outline-offset: 2px;
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Navbar glass effect when scrolled */
#navbar.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fdf9f0 inset !important;
    -webkit-text-fill-color: #4a3831 !important;
    transition: background-color 5s ease-in-out 0s;
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, .reveal-on-scroll {
        display: block !important;
        opacity: 1 !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
