/* ============================================
   EmploySavvy - Custom Styles
   New Zealand & Australia Standard Website
   ============================================ */

/* Root Variables - Based on Logo Colors (Golden Yellow & Black) */
:root {
    --primary-color: #a77a06; /* Golden Bronze from logo */
    --primary-dark: #8a6505;
    --secondary-color: #000000; /* Black from logo */
    --accent-color: #a77a06;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Typography - Improved Readability */
body {
    font-family: 'Poppins', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 76px;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

.display-1 { font-size: 3rem; }
.display-2 { font-size: 2.5rem; }
.display-3 { font-size: 2rem; }
.display-4 { font-size:50px; }
.display-5 { font-size: 1.5rem; }

.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navigation */
.navbar {
    transition: var(--transition);
    padding: 1rem 0;
}

/* Mobile Sidebar Styles */
.offcanvas {
    max-width: 320px;
}

.offcanvas-header {
    padding: 1.5rem;
}

.offcanvas-body {
    padding: 1.5rem;
}

.offcanvas-body .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    color: var(--text-dark);
    font-size: 1.05rem;
}

.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link.active {
    background-color: rgba(167, 122, 6, 0.1);
    color: var(--primary-color);
}

.offcanvas-body .nav-link i {
    width: 20px;
    text-align: center;
}

.navbar-brand .logo-img {
    max-height: 80px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.btn-apply {
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section - Golden Yellow & Black Theme */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a2a 50%, var(--secondary-color) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(167, 122, 6, 0.1) 0%, rgba(167, 122, 6, 0.05) 100%);
    z-index: 1;
}

#threejs-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

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

/* Ensure text is white in hero section */
.hero-section .text-white,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section .lead {
    color: #ffffff !important;
}

.hero-section .text-light {
    color: #f0f0f0 !important;
}

.scroll-indicator {
    z-index: 2;
}

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

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

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

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-in 0.9s both;
}

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

/* Feature Cards */
.feature-card {
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    border-width: 2px;
}

.feature-icon {
    color: var(--primary-color);
}

/* Location Cards */
.location-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

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

.location-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(42, 42, 42, 0.9) 100%);
    opacity: 0;
    transition: var(--transition);
}

.location-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(167, 122, 6, 0.2) 0%, rgba(167, 122, 6, 0.1) 100%);
}

.location-card:hover .location-overlay {
    opacity: 1;
}

.location-overlay {
    z-index: 1;
}

.location-overlay a {
    position: relative;
    z-index: 10;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Blog Styles */
.blog-card {
    transition: var(--transition);
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.blog-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.blog-content h3 {
    color: var(--text-dark);
    margin-top: 2rem;
}

.blog-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-content ul li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.recent-post-item a:hover {
    color: var(--primary-color) !important;
}

.cities-list {
    font-size: 0.95rem;
}

.cities-list p {
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.cities-list i {
    color: var(--primary-color);
}

/* Testimonial Cards */
.testimonial-card {
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Swiper Customization */
.testimonials-swiper {
    padding: 20px 0 60px 0;
}

.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
    background: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.testimonials-swiper .swiper-button-next:after,
.testimonials-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.testimonials-swiper .swiper-button-next:hover,
.testimonials-swiper .swiper-button-prev:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.testimonials-swiper .swiper-pagination-bullet {
    background: #ddd;
    opacity: 1;
    width: 12px;
    height: 12px;
    transition: var(--transition);
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Stats Section */
.stat-item {
    padding: 20px;
}

.stat-item i {
    opacity: 0.9;
}

/* Ensure all elements with primary background have white text */
.bg-primary,
[class*="bg-primary"],
section.bg-primary,
section[class*="bg-primary"] {
    color: #ffffff !important;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-primary p,
.bg-primary span,
.bg-primary div,
.bg-primary i,
.bg-primary *:not(.btn):not(.btn *) {
    color: #ffffff !important;
}

/* Buttons on primary background should have dark text (inverted style) */
.bg-primary .btn-primary {
    color: var(--secondary-color) !important;
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}

.bg-primary .btn-primary:hover {
    background-color: #f0f0f0 !important;
    border-color: #f0f0f0 !important;
    color: var(--secondary-color) !important;
}

/* Step Cards */
.step-card {
    transition: var(--transition);
}

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

.step-number {
    transition: var(--transition);
}

.step-card:hover .step-number {
    transform: scale(1.1);
}

/* Category Cards */
.category-card {
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
}

/* About Page Styles */
.icon-box {
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1);
    background-color: rgba(167, 122, 6, 0.1) !important;
}

.feature-card {
    border-top: 4px solid var(--primary-color) !important;
}

.icon-wrapper {
    transition: var(--transition);
}

.value-card {
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.value-card:hover {
    transform: translateX(5px);
    border-left-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    transition: var(--transition);
}

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

.help-step {
    transition: var(--transition);
}

.help-step:hover {
    transform: translateY(-5px);
}

.step-number-circle {
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(167, 122, 6, 0.3);
}

.help-step:hover .step-number-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(167, 122, 6, 0.5);
}

.testimonial-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Job Cards */
.job-card {
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    border-width: 2px;
}

/* Job Listing Cards */
.job-listing-card {
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.job-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    border-width: 2px;
}

.job-requirements ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Page Header - Golden Yellow & Black Theme */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a2a 100%);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(167, 122, 6, 0.15) 0%, rgba(167, 122, 6, 0.05) 100%);
    z-index: 1;
}

/* Ensure page header text is white */
.page-header,
.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6,
.page-header p,
.page-header .lead,
.page-header .text-white {
    color: #ffffff !important;
    position: relative;
    z-index: 2;
}

/* Breadcrumb Styles */
.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-custom .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: rgba(255, 255, 255, 0.5);
    padding: 0 0.75rem;
    font-size: 0.9rem;
    font-weight: 300;
}

.breadcrumb-custom .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: #ffffff;
    font-weight: 500;
}

/* Pagination Styles */
.pagination-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-custom .page-link {
    color: var(--text-dark);
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.pagination-custom .page-link:hover {
    color: #ffffff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination-custom .page-item.active .page-link {
    color: #ffffff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination-custom .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #ffffff;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Buttons - Golden Yellow Theme */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
}

/* Forms */
.form-control,
.form-select {
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(167, 122, 6, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: #000000 !important;
}

/* Ensure footer text is white */
.footer,
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6,
.footer p,
.footer a,
.footer .text-light,
.footer .text-white {
    color: #ffffff !important;
}

.footer a {
    color: #ffffff !important;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

.social-links a {
    transition: var(--transition);
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--accent-color) !important;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

/* Contact Info Card */
.contact-info-card {
    position: sticky;
    top: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .contact-info-card {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
    
    .location-overlay {
        opacity: 0.9;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }
    
    .navbar-brand .logo-img {
        max-height: 60px;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

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

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a2a 100%);
    color: var(--white);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(167, 122, 6, 0.1) 0%, rgba(167, 122, 6, 0.05) 100%);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

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

.bg-primary {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Ensure text is white when primary color is background */
.bg-primary,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-primary p,
.bg-primary span,
.bg-primary a:not(.btn),
.bg-primary .text-white,
.bg-primary .text-light {
    color: #ffffff !important;
}

.shadow-sm {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    #backToTop,
    .btn {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
}

