/* Phoenix Restorations Custom Styles */

:root {
    --phoenix-orange: #ff6b35;
    --phoenix-red: #d32f2f;
    --phoenix-blue: #1976d2;
    --phoenix-dark-blue: #0d47a1;
    --phoenix-light-gray: #f8f9fa;
    --phoenix-dark-gray: #343a40;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Custom Colors */
.text-phoenix-orange {
    color: var(--phoenix-orange) !important;
}

.text-phoenix-blue {
    color: var(--phoenix-blue) !important;
}

.bg-phoenix-orange {
    background-color: var(--phoenix-orange) !important;
}

.bg-phoenix-blue {
    background-color: var(--phoenix-blue) !important;
}

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

.btn-phoenix-orange:hover {
    background-color: #e55a2b;
    border-color: #e55a2b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

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

.btn-phoenix-blue:hover {
    background-color: var(--phoenix-dark-blue);
    border-color: var(--phoenix-dark-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
}

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

.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 50px;
}

.about-logo {
    height: 120px;
    width: auto;
    max-width: 120px;
    margin-bottom: 1rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--phoenix-orange);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.9), rgba(255, 107, 53, 0.8)),
                url('https://pixabay.com/get/g8d2377a40a3a428ff09001e3fd57ebf83398ae9cd8ea60fcf0b14efd652420a7476d80279b280c1f281902f81a8059fb531b3b0cc09a4a9659f58eb8a92c9c8f_1280.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

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

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--phoenix-orange);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--phoenix-orange), var(--phoenix-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.service-features li:last-child {
    border-bottom: none;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 6rem;
    color: var(--phoenix-orange);
    position: absolute;
    top: -1rem;
    left: 2rem;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.testimonial-author {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: var(--phoenix-orange);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--phoenix-orange);
    border-radius: 50%;
    padding: 20px;
}

.carousel-indicators button {
    background-color: var(--phoenix-orange);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* About Section */
.about-stat h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.team-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--phoenix-orange);
    margin: 0 auto;
    display: block;
}

/* Contact Section */
.contact-form-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.form-control:focus {
    border-color: var(--phoenix-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-select:focus {
    border-color: var(--phoenix-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--phoenix-dark-gray), #2c3e50) !important;
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-light-50:hover {
    color: var(--phoenix-orange) !important;
}

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

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

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

/* Section Padding */
section {
    padding-top: 100px;
    padding-bottom: 100px;
}

section:first-of-type {
    padding-top: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .service-card,
    .testimonial-card,
    .contact-form-card {
        padding: 2rem 1.5rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .navbar-logo {
        height: 35px;
        max-width: 35px;
    }
    
    .footer-logo {
        height: 40px;
        max-width: 40px;
    }
    
    .about-logo {
        height: 80px;
        max-width: 80px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .about-stat h3 {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Alert Customization */
.alert-success {
    background-color: #d4edda;
    border-color: var(--phoenix-orange);
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: var(--phoenix-red);
    color: #721c24;
}

/* Form Validation */
.was-validated .form-control:valid {
    border-color: var(--phoenix-orange);
}

.was-validated .form-control:invalid {
    border-color: var(--phoenix-red);
}

/* 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: 0;
}

/* Focus Indicators */
a:focus,
button:focus,
.form-control:focus,
.btn:focus {
    outline: 2px solid var(--phoenix-orange);
    outline-offset: 2px;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Emergency Contact Widget */
.emergency-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    font-family: 'Inter', sans-serif;
}

.emergency-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--phoenix-orange), var(--phoenix-red));
    border: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.emergency-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.7);
    }
    100% {
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    }
}

.emergency-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--phoenix-orange);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.emergency-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.emergency-header {
    background: linear-gradient(135deg, var(--phoenix-orange), var(--phoenix-red));
    color: white;
    padding: 15px 20px;
    border-radius: 13px 13px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close-emergency {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.btn-close-emergency:hover {
    background: rgba(255, 255, 255, 0.2);
}

.emergency-content {
    padding: 20px;
}

.location-status {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--phoenix-dark-gray);
}

.emergency-actions {
    margin-bottom: 15px;
}

.emergency-action-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--phoenix-dark-gray);
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.emergency-action-btn:hover,
.emergency-action-btn:focus {
    background: var(--phoenix-orange);
    color: white;
    text-decoration: none;
    border-color: var(--phoenix-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.emergency-action-btn i {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.emergency-action-btn div {
    flex: 1;
}

.emergency-action-btn strong {
    display: block;
    font-weight: 600;
}

.emergency-action-btn small {
    display: block;
    opacity: 0.8;
    font-size: 0.8rem;
}

.emergency-info {
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 0.85rem;
    color: var(--phoenix-dark-gray);
}

.emergency-info p {
    margin-bottom: 8px;
}

.emergency-info i {
    color: var(--phoenix-orange);
    width: 20px;
    text-align: center;
}

/* Responsive Emergency Widget */
@media (max-width: 768px) {
    .emergency-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .emergency-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .emergency-panel {
        width: 280px;
        bottom: 75px;
    }
    
    .emergency-header {
        padding: 12px 15px;
    }
    
    .emergency-content {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .emergency-panel {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

/* Location Detection Animation */
.location-detecting {
    animation: locationPulse 1.5s infinite;
}

@keyframes locationPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Emergency Modal Customization */
.modal-content {
    border-radius: 15px;
    border: 2px solid var(--phoenix-orange);
}

.modal-header {
    background: linear-gradient(135deg, var(--phoenix-orange), var(--phoenix-red));
    color: white;
    border-radius: 13px 13px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Widget State Indicators */
.emergency-widget.offline .emergency-btn {
    background: #6c757d;
    animation: none;
}

.emergency-widget.connecting .emergency-btn {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.emergency-widget.connected .emergency-btn {
    background: linear-gradient(135deg, var(--phoenix-orange), var(--phoenix-red));
}

/* Careers Section Styling */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--phoenix-orange), var(--phoenix-red));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.job-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.job-header {
    margin-bottom: 1rem;
}

.job-title {
    color: var(--phoenix-dark-gray);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.job-meta {
    margin-bottom: 1rem;
}

.job-details {
    flex: 1;
    margin-bottom: 1.5rem;
}

.job-details p {
    margin-bottom: 0.5rem;
    color: var(--phoenix-dark-gray);
}

.job-description {
    color: #666;
    line-height: 1.6;
}

.job-footer {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.no-jobs {
    padding: 4rem 2rem;
}

.no-jobs i {
    margin-bottom: 1rem;
}

/* Job Detail Page */
.job-detail-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.job-info p {
    margin-bottom: 0.5rem;
}

.job-content h3 {
    color: var(--phoenix-dark-gray);
    border-bottom: 2px solid var(--phoenix-orange);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.job-content div {
    line-height: 1.7;
    color: var(--phoenix-dark-gray);
}

.job-sidebar .card {
    border: 1px solid #eee;
}

.job-sidebar .card-header {
    background: var(--phoenix-light-gray);
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Application Form */
.job-info-summary {
    border: 1px solid #eee;
}

.application-form .card-header {
    background: var(--phoenix-light-gray);
    border-bottom: 1px solid #eee;
}

.form-label {
    font-weight: 500;
    color: var(--phoenix-dark-gray);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--phoenix-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Hero Section Modifications for Careers */
.hero-section.bg-gradient-primary {
    background: linear-gradient(135deg, var(--phoenix-orange), var(--phoenix-red));
    color: white;
    padding: 6rem 0 4rem;
}

.min-vh-50 {
    min-height: 50vh;
}

.stat-item {
    padding: 1rem;
}

.stat-item i {
    margin-bottom: 0.5rem;
}

.stat-item h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Badge Customization */
.badge.bg-phoenix-orange {
    background-color: var(--phoenix-orange) !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
}

/* Button Customization */
.btn-phoenix-orange {
    background-color: var(--phoenix-orange);
    border-color: var(--phoenix-orange);
    color: white;
}

.btn-phoenix-orange:hover,
.btn-phoenix-orange:focus {
    background-color: var(--phoenix-red);
    border-color: var(--phoenix-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-outline-primary {
    border-color: var(--phoenix-orange);
    color: var(--phoenix-orange);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--phoenix-orange);
    border-color: var(--phoenix-orange);
    color: white;
}

/* Responsive Adjustments for Careers */
@media (max-width: 768px) {
    .job-card {
        margin-bottom: 1.5rem;
    }
    
    .job-detail-header h1 {
        font-size: 2rem;
    }
    
    .hero-section.bg-gradient-primary {
        padding: 4rem 0 3rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
}
