/* American Southwest Color Palette */
:root {
    --orange: #D2691E;
    --orange-dark: #B8860B;
    --sage: #9CAF88;
    --sage-dark: #7A8B6E;
    --terracotta: #CD853F;
    --terracotta-dark: #A0522D;
    --desert-sand: #F4E4BC;
    --deep-blue: #2F4F4F;
    --dark-gray: #1a1a1a;
    --darker: #0f0f0f;
    --light-gray: #b0b0b0;
}

/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--darker);
    color: #ffffff;
    line-height: 1.6;
}

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

/* Color Classes */
.text-orange { color: var(--orange) !important; }
.text-sage { color: var(--sage) !important; }
.text-terracotta { color: var(--terracotta) !important; }
.text-light-gray { color: var(--light-gray) !important; }
.bg-dark-gray { background-color: var(--dark-gray) !important; }
.bg-darker { background-color: var(--darker) !important; }

/* Button Styles */
.btn-orange {
    background-color: var(--orange);
    border-color: var(--orange);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background-color: var(--orange-dark);
    border-color: var(--orange-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.btn-outline-orange {
    border-color: var(--orange);
    color: var(--orange);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-orange:hover {
    background-color: var(--orange);
    border-color: var(--orange);
    color: white !important;
    transform: translateY(-2px);
}

.btn-sage {
    background-color: var(--sage);
    border-color: var(--sage);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-sage:hover {
    background-color: var(--sage-dark);
    border-color: var(--sage-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(156, 175, 136, 0.3);
}

.btn-terracotta {
    background-color: var(--terracotta);
    border-color: var(--terracotta);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-terracotta:hover {
    background-color: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(205, 133, 63, 0.3);
}

.btn-white {
    background-color: white;
    border-color: white;
    color: var(--dark-gray);
    font-weight: 600;
}

.btn-white:hover {
    background-color: var(--desert-sand);
    border-color: var(--desert-sand);
    color: var(--dark-gray);
}

.btn-outline-white {
    border-color: white;
    color: white;
    font-weight: 600;
}

.btn-outline-white:hover {
    background-color: white;
    border-color: white;
    color: var(--dark-gray);
}

/* Navigation */
.navbar {
    background-color: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #008080;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--orange) !important;
}

/* Override nav-link hover for Login/Register button */
.nav-link.btn-outline-orange:hover {
    background-color: var(--orange) !important;
    border-color: var(--orange) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(210, 105, 30, 0.1), 
        rgba(156, 175, 136, 0.1),
        rgba(205, 133, 63, 0.1)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.animate-fade-up.delay-1 {
    animation-delay: 0.2s;
}

.animate-fade-up.delay-2 {
    animation-delay: 0.4s;
}

.animate-fade-up.delay-3 {
    animation-delay: 0.6s;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
    box-shadow: 0 10px 30px rgba(210, 105, 30, 0.2);
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Section */
.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(210, 105, 30, 0.1);
    border-radius: 50%;
}

/* Forms */
.form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.2rem rgba(210, 105, 30, 0.25);
}

.form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.2rem rgba(210, 105, 30, 0.25);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--orange);
}

/* Disabled password fields */
.disabled-field {
    background-color: #2a2a2a !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.disabled-field::placeholder {
    color: #555 !important;
}

.disabled-field:focus {
    border-color: #444 !important;
    box-shadow: none !important;
}

/* Password Toggle Button */
.password-input-wrapper {
    position: relative;
    height: 100%;
}

.password-input-wrapper .form-control {
    padding-right: 3rem !important;
    height: 100%;
}

/* Ensure form-floating with password wrapper maintains proper height */
.form-floating .password-input-wrapper {
    height: calc(3.5rem + 2px);
}

.form-floating .password-input-wrapper .form-control {
    height: calc(3.5rem + 2px);
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: all 0.2s ease;
}

.password-toggle-btn:hover {
    opacity: 0.7;
}

.password-toggle-btn:focus {
    outline: none;
    opacity: 0.8;
}

.password-toggle-btn i {
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover i {
    color: var(--orange) !important;
}

/* Gradients */
.bg-gradient-orange {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}

/* Stats Section */
.stat-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
}

/* Adventure Cards */
.adventure-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.adventure-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Auth Forms */
.auth-toggle .btn-check:checked + .btn {
    background-color: var(--orange);
    border-color: var(--orange);
    color: white;
}

.auth-toggle .btn:hover,
.auth-toggle .btn-outline-orange:hover,
.auth-toggle label.btn:hover {
    background-color: var(--orange) !important;
    border-color: var(--orange) !important;
    color: white !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Utility Classes */
.border-orange {
    border-color: var(--orange) !important;
}

.border-sage {
    border-color: var(--sage) !important;
}

.border-terracotta {
    border-color: var(--terracotta) !important;
}

/* Footer */
footer {
    background-color: var(--dark-gray) !important;
}

footer .social-links a {
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: var(--orange-dark) !important;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

::-webkit-scrollbar-track {
    background: var(--dark-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--orange-dark);
}
