/* Custom CSS for Fair Australia Pty Ltd */

/* Color Variables */
:root {
    --primary-gold: #A98B3A;
    --primary-dark: #332D24;
    --light-cream: #F5F5DC;
    --muted-blue: #8FA0A8;
    --accent-green: #6B8E23;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
}

/* Custom Color Classes */
.bg-primary-gold { background-color: var(--primary-gold) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.bg-light-cream { background-color: var(--light-cream) !important; }
.bg-muted-blue { background-color: var(--muted-blue) !important; }
.bg-accent-green { background-color: var(--accent-green) !important; }

.text-primary-gold { color: var(--primary-gold) !important; }
.text-primary-dark { color: var(--primary-dark) !important; }
.text-light-cream { color: var(--light-cream) !important; }
.text-muted-blue { color: var(--muted-blue) !important; }
.text-accent-green { color: var(--accent-green) !important; }
.text-light-gray { color: #adb5bd !important; }

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

.btn-primary-gold:hover {
    background-color: #8a7530;
    border-color: #8a7530;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(169, 139, 58, 0.3);
}

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

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

.btn-outline-primary-dark {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    font-weight: 600;
}

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

.btn-outline-accent-green {
    border-color: var(--accent-green);
    color: var(--accent-green);
    font-weight: 600;
}

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

.btn-outline-muted-blue {
    border-color: var(--muted-blue);
    color: var(--muted-blue);
    font-weight: 600;
}

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

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation Styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    max-height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

.navbar .logo-img {
    filter: brightness(1.1);
}

.navbar .logo-img:hover {
    opacity: 0.8;
}

footer .logo-img {
    filter: brightness(1.2);
    max-height: 50px;
}

/* Partnership Logo */
.partnership-logo-container {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.partnership-logo-container:hover {
    transform: translateY(-5px);
}

.partnership-logo {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    color: var(--primary-dark) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-gold) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-cream);
    color: var(--primary-dark);
}

/* Dropdown styling for scrolled navbar */
.navbar.scrolled .dropdown-menu {
    background-color: rgba(51, 45, 36, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .dropdown-item {
    color: white !important;
}

.navbar.scrolled .dropdown-item:hover {
    background-color: rgba(169, 139, 58, 0.2) !important;
    color: var(--primary-gold) !important;
}

.navbar.scrolled .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(51, 45, 36, 0.85) 0%, rgba(44, 38, 24, 0.9) 100%), 
                url('../images/hero-background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-icon {
    font-size: 8rem;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hero text enhancement for better visibility */
.hero-section .display-1,
.hero-section .lead,
.hero-section h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Navigation customizations for white background */
.navbar-toggler {
    border-color: var(--primary-dark);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(51, 45, 36, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2851, 45, 36, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar scroll state styling */
.navbar.scrolled {
    background-color: rgba(51, 45, 36, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-nav .nav-link {
    color: white !important;
}

.navbar.scrolled .navbar-nav .nav-link:hover {
    color: var(--primary-gold) !important;
}

.navbar.scrolled .navbar-brand {
    color: white !important;
}

.navbar.scrolled .navbar-toggler {
    border-color: white;
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile optimization for hero background */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        background-position: center right;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

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

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

/* Feature Items */
.feature-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    flex-shrink: 0;
}

/* Stats Cards */
.stat-card {
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.stat-card:hover {
    transform: scale(1.05);
}

/* Testimonial Cards */
.testimonial-card {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.stars i {
    font-size: 0.9rem;
}

/* Contact Form */
.form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(169, 139, 58, 0.25);
}

.form-select:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(169, 139, 58, 0.25);
}

/* Contact Info */
.contact-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
}

.social-link {
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* Quick Contact Cards */
.quick-contact-card {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.quick-contact-card:hover {
    transform: translateY(-5px);
}

/* FAQ Accordion */
.accordion-button {
    font-weight: 600;
    color: var(--primary-dark);
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-cream);
    color: var(--primary-dark);
    border-color: transparent;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(169, 139, 58, 0.25);
    border-color: var(--primary-gold);
}

/* Service Detail Page */
.breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
}

.service-specific-content {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.stat-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tech-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-3px);
}

.benefit-card {
    background-color: white;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Industry Cards */
.industry-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Process Steps */
.step-item {
    position: relative;
    padding-left: 1rem;
}

.step-number {
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 40px;
    min-height: 40px;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-gold) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-icon {
        font-size: 4rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .service-specific-content {
        padding: 1.5rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .contact-item {
        padding: 1rem 0;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-bottom: 1rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8a7530;
}

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

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    .hero-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none !important;
    }
}
