/* Custom styles for Carolina Recruitment Staffing Agency */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #022c22;
    color: #fdf9f0;
    overflow-x: hidden;
}

/* Typography */
.font-display {
    font-family: 'Playfair Display', serif;
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Gold gradient text */
.gold-gradient-text {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button styles */
.btn-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #022c22;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.btn-outline-gold {
    border: 2px solid #fbbf24;
    color: #fbbf24;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-gold:hover {
    background: #fbbf24;
    color: #022c22;
}

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

.card-accent {
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover .card-accent {
    transform: scaleX(1);
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* Navigation scroll effect */
.nav-scrolled {
    background: rgba(2, 44, 34, 0.97) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Form styles */
input,
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.3);
}

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

::-webkit-scrollbar-track {
    background: #022c22;
}

::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

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

/* Smooth image loading */
img {
    loading: lazy;
    decoding: async;
}
