/* Gretna Plating & Polishing - Professional Metal Finishing CSS */

/* Custom Color Variables */
:root {
    --primary-blue: #1e3a8a;
    --secondary-silver: #64748b;
    --metallic-gray: #475569;
    --accent-orange: #ea580c;
    --success-green: #059669;
    --warning-yellow: #d97706;
    --danger-red: #dc2626;
    --light-gray: #f8fafc;
    --dark-gray: #1e293b;
    --text-metallic: #94a3b8;
}

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

/* Custom Bootstrap Color Overrides */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

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

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

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

.text-light-gray {
    color: #94a3b8 !important;
}

/* Navigation Styles */
.surface-nav {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--metallic-gray) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(30, 58, 138, 0.1);
    transition: all 0.3s ease;
}

.surface-nav .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.surface-nav .navbar-brand:hover {
    transform: scale(1.05);
}

.surface-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px !important;
    border-radius: 6px;
}

.surface-nav .nav-link:hover,
.surface-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Hero Section Styles */
.hero-excellence {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--metallic-gray) 50%, var(--dark-gray) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-excellence::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-actions .btn {
    margin: 0.5rem;
    min-width: 180px;
    white-space: nowrap;
}

.pulse-btn {
    animation: pulse 2s infinite;
}

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

.floating-img {
    animation: float 6s ease-in-out infinite;
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

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

/* Page Hero Styles */
.page-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--metallic-gray) 100%);
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.15);
    border-color: var(--primary-blue);
}

.service-detail-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.1);
    overflow: hidden;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.2);
}

.service-detail-card .service-image img {
    transition: all 0.3s ease;
}

.service-detail-card:hover .service-image img {
    transform: scale(1.05);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.price-tag {
    background: linear-gradient(135deg, var(--primary-blue), var(--metallic-gray));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
}

.price-tag span.text-primary {color: #fff !important}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.1);
}

/* Team Cards */
.team-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.15);
}

.team-photo img {
    transition: all 0.3s ease;
    border: 3px solid var(--primary-blue);
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
    border-color: var(--accent-orange);
}

/* Portfolio Styles */
.portfolio-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.2);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.overlay-content {
    color: white;
    text-align: center;
}

.portfolio-image img {
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

/* Process Styles */
.process-step {
    text-align: center;
    padding: 2rem 1rem;
}

.step-number .badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.process-step-detail {
    margin-bottom: 3rem;
}

.process-step-detail .step-number .badge {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

/* Contact Form Styles */
.contact-form-wrapper {
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

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

.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

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

/* FAQ Styles */
.accordion-button {
    background-color: #f8fafc;
    border: 1px solid rgba(30, 58, 138, 0.1);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    background-color: white;
}

/* Thank You Page Styles */
.thank-you-main {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.thank-you-card {
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success-green), #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: checkmark-pop 0.6s ease-out;
}

.checkmark-circle i {
    font-size: 2rem;
    color: white;
}

@keyframes checkmark-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    background: white;
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 20px;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-settings {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.cookie-category {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cookie-category:last-child {
    border-bottom: none;
}

.settings-actions {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #0f172a 100%);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerPattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23footerPattern)"/></svg>');
    opacity: 0.3;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

/* Utility Classes */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.1);
}

.border-custom {
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--metallic-gray) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions .btn {
        min-width: auto;
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .cookie-consent-banner {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 10px;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .settings-actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

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

/* Print Styles */
@media print {
    .surface-nav,
    .cookie-consent-banner,
    .site-footer {
        display: none !important;
    }
    
    .page-hero {
        background: none !important;
        color: black !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}