/* Gold Coast Mobile Safety Certificates - Custom Styles */

:root {
    --primary-blue: #003366;
    --secondary-blue: #0066cc;
    --gold: #ffd700;
    --light-gold: #fff9e6;
    --dark-gray: #333333;
    --light-gray: #f8f9fa;
    --success-green: #28a745;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

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

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

/* Navigation */
#mainNav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-blue) !important;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    transition: color 0.3s ease;
}

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

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

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, #e3f2fd 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgba(0,51,102,0.05);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,215,0,0.05);stop-opacity:1" /></linearGradient></defs><polygon fill="url(%23grad)" points="0,0 1000,0 1000,800 0,1000"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
}

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

.inspection-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.inspection-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: rotate(-45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(-45deg); }
    100% { transform: translateX(100%) rotate(-45deg); }
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--gold);
}

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

.service-icon {
    text-align: center;
    margin-bottom: 1rem;
}

/* Feature Boxes */
.feature-box {
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    margin-bottom: 1.5rem;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,215,0,0.1)" points="0,0 1000,300 1000,1000 0,700"/></svg>') no-repeat center center;
    background-size: cover;
}

/* Service Detail Cards */
.service-detail-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--gold);
    margin-bottom: 2rem;
}

.pricing-info {
    background: var(--light-gold);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--gold);
}

/* Process Steps */
.process-step {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    top: -10px;
    left: -10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Area Cards */
.area-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--secondary-blue);
    height: 100%;
}

/* About Page Styles */
.about-content {
    position: relative;
}

.about-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--gold);
}

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

.about-card .card-icon {
    position: relative;
    margin-bottom: 1.5rem;
}

.service-overview-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 3px solid var(--primary-blue);
}

.service-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--gold);
}

/* Admin Dashboard Styles */
.stat-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-blue);
    height: 100%;
}

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

.stat-icon {
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--dark-gray);
    font-weight: 500;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.schema-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 100%;
    border-left: 4px solid var(--secondary-blue);
}

.api-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--primary-blue);
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table {
    margin-bottom: 0;
}

.table-dark th {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 51, 102, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
}

/* Login Page Styles */
.login-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 51, 102, 0.1);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--gold));
}

.login-form .form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
}

.login-form .input-group-text {
    background-color: var(--light-gray);
    border: 1px solid #ddd;
    color: var(--primary-blue);
}

.login-form .btn-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.login-form .btn-outline-secondary {
    border-color: #ddd;
    color: var(--dark-gray);
}

.login-form .btn-outline-secondary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* Security indicators */
.security-notice {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.05), rgba(255, 215, 0, 0.05));
    border-left: 4px solid var(--gold);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

/* Alert improvements */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #0f5132;
}

.alert-info {
    background-color: rgba(13, 110, 253, 0.1);
    color: #055160;
}

/* Phone Link Styles */
.phone-link {
    transition: all 0.3s ease;
    font-weight: 500;
}

.phone-link:hover {
    color: var(--gold) !important;
    text-decoration: underline !important;
    transform: scale(1.05);
}

/* Enhanced Button Styles for Phone Links */
.btn-phone {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue)) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
    display: inline-block;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn-phone:hover {
    background: linear-gradient(45deg, var(--secondary-blue), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.4);
    color: white !important;
    text-decoration: none !important;
}

.btn-phone:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.5);
    color: white !important;
    text-decoration: none !important;
}

/* Call to Action Phone Buttons */
.cta-phone-btn {
    background: white !important;
    color: var(--primary-blue) !important;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 2px solid white !important;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    display: inline-block;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.cta-phone-btn:hover {
    background: var(--gold) !important;
    color: var(--primary-blue) !important;
    border-color: var(--gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    text-decoration: none !important;
}

.cta-phone-btn:focus {
    background: var(--gold) !important;
    color: var(--primary-blue) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.5);
    text-decoration: none !important;
}

/* Footer phone link specific styling */
.footer .phone-link {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer .phone-link:hover {
    color: var(--gold) !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Contact page phone button styling */
.contact-phone-btn {
    background: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.contact-phone-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    text-decoration: none;
}

/* Phone icon animation */
.phone-icon {
    transition: transform 0.3s ease;
}

.phone-link:hover .phone-icon,
.btn-phone:hover .phone-icon,
.cta-phone-btn:hover .phone-icon,
.contact-phone-btn:hover .phone-icon {
    transform: rotate(15deg) scale(1.1);
}

/* Mobile-specific phone button styles */
@media (max-width: 768px) {
    .btn-phone,
    .cta-phone-btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .contact-phone-btn {
        font-size: 1.1rem;
        padding: 1rem;
    }
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: all 0.3s ease;
}

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

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

/* Info Card */
.info-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gold);
    position: sticky;
    top: 2rem;
}

/* Service Area Map */
.service-area-map {
    background: var(--light-gray);
    border-radius: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed var(--secondary-blue);
}

.map-placeholder {
    color: var(--secondary-blue);
}

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

.accordion-button:not(.collapsed) {
    background-color: var(--light-gold);
    color: var(--primary-blue);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,215,0,0.1)" points="0,200 1000,0 1000,800 0,1000"/></svg>') no-repeat center center;
    background-size: cover;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, var(--dark-gray) 100%);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--secondary-blue);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--dark-gray) !important;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .service-detail-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        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); }
}

/* Print Styles */
@media print {
    .navbar, .cta-section, footer {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Styles */
.btn:focus,
.nav-link:focus,
.accordion-button:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
