/* Custom styles for Penske Truck Rental Real Estate Website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1f2937;
    background-color: #fffcf8;
    line-height: 1.6;
}

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

/* Hero section gradient */
.hero-gradient {
    background: linear-gradient(135deg, #fff5f7 0%, #fce7eb 50%, #fad0d8 100%);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(124, 26, 54, 0.12);
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #7c1d36 0%, #96203d 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #671a30 0%, #7c1d36 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 26, 54, 0.25);
}

/* Secondary button */
.btn-secondary {
    border: 2px solid #7c1d36;
    color: #7c1d36;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-secondary:hover {
    background: #7c1d36;
    color: white;
}

/* Section divider */
.section-divider {
    background: linear-gradient(90deg, transparent 0%, #fce7eb 50%, transparent 100%);
    height: 1px;
}

/* Scroll reveal animations (only when reduced motion is not preferred) */
@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);
    }
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

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

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

::-webkit-scrollbar-thumb {
    background: #fad0d8;
    border-radius: 4px;
}

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

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Form inputs */
input,
select,
textarea {
    font-family: inherit;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, #7c1d36 0%, #96203d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading state for buttons */
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
