/* Custom Styles for Napa Fiber */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ubuntu', sans-serif;
}

* {
    scroll-behavior: smooth;
}

/* Smooth transitions */
a, button {
    transition: all 0.3s ease;
}

/* Ensure full height layout */
html, body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main, .container {
    flex: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Hover effects for cards */
.group:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

/* Active link styling */
a.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

/* Form styling */
input:focus, textarea:focus, select:focus {
    border-color: #2563eb;
    background-color: #f0f9ff;
}

input::placeholder, textarea::placeholder {
    color: #9ca3af;
}

/* Button hover effects */
button:hover {
    transform: scale(1.02);
}

/* Loading state */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive image */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

/* Pulse animation for CTAs */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

#mobile-menu a {
    text-align: center;
}

/* Mobile current-page link uses a pill-style highlight instead of underline */
#mobile-menu a.border-b-2 {
    border-bottom-width: 0;
    background-color: #dbeafe;
    border-radius: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    nav, footer, button {
        display: none;
    }
}
