/* ========================================
   Calgary Auto Recycling - Main CSS
   ======================================== */

/* ========================================
   CSS Variables (Root Colors)
   ======================================== */
:root {
    /* Primary Brand Colors from Logo */
    --primary-orange: #FF6B35;
    --primary-dark: #1A1A1A;
    --primary-gray: #2D2D2D;
    
    /* Secondary Colors */
    --secondary-orange: #FF8555;
    --accent-orange: #FF9066;
    --light-orange: #FFE5DC;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #4A4A4A;
    --text-gray: #666666;
    
    /* Semantic Colors */
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* ========================================
   Global Resets & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--primary-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-orange);
}

/* ========================================
   Utility Classes - Colors
   ======================================== */
.text-primary { color: var(--primary-orange) !important; }
.text-dark { color: var(--primary-dark) !important; }
.text-gray { color: var(--text-gray) !important; }
.text-white { color: var(--white) !important; }
.text-light { color: var(--light-gray) !important; }

.bg-primary { background-color: var(--primary-orange) !important; }
.bg-dark { background-color: var(--primary-dark) !important; }
.bg-light { background-color: var(--light-gray) !important; }
.bg-white { background-color: var(--white) !important; }
.bg-secondary { background-color: var(--secondary-orange) !important; }

/* ========================================
   Utility Classes - Spacing
   ======================================== */
.section-padding {
    padding: var(--spacing-xxl) 0;
}

.section-padding-sm {
    padding: var(--spacing-xl) 0;
}

.section-padding-lg {
    padding: 5rem 0;
}

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

/* ========================================
   Typography Classes
   ======================================== */
.text-lg {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.8;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.95;
}

/* ========================================
   Button Styles
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-gray);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}

.btn-outline:hover {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* ========================================
   Section Header Styles
   ======================================== */
.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-header.text-center {
    text-align: center;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
    margin-top: var(--spacing-sm);
    border-radius: var(--radius-sm);
}

.title-divider-light {
    background: linear-gradient(90deg, var(--white), var(--light-gray));
}

/* ========================================
   About Page Specific Styles
   ======================================== */

/* Hero Section */
.about-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-gray) 100%);
    background-image: url('https://images.unsplash.com/photo-1486496146582-9ffcd0b2b2b7?w=1200');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
       background: linear-gradient(135deg, rgb(0 0 0 / 85%) 0%, rgba(7, 135, 217, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Image Wrapper */
.img-wrapper {
    position: relative;
}

.rounded-custom {
    border-radius: var(--radius-lg);
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--primary-orange);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.75rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.feature-text {
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* Process Cards */
.process-card {
    text-align: center;
    padding: var(--spacing-xl);
    position: relative;
}

.process-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-orange);
    opacity: 0.2;
    margin-bottom: var(--spacing-md);
    line-height: 1;
}

.process-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.process-text {
    color: var(--light-gray);
    line-height: 1.7;
    margin: 0;
}

/* Contact Form Section */
.contact-form-wrapper {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.form-input {
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

/* Contact Info */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.contact-details p {
    color: var(--text-gray);
    margin: 0;
}

/* ========================================
   Card Styles (Reusable)
   ======================================== */
.card-custom {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ========================================
   Badge Styles
   ======================================== */
.badge-custom {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--primary-orange);
    color: var(--white);
}

.badge-secondary {
    background-color: var(--primary-dark);
    color: var(--white);
}

.badge-outline {
    background-color: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}

/* ========================================
   Alert Styles
   ======================================== */
.alert-custom {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.alert-success {
    background-color: #D4EDDA;
    border-left: 4px solid var(--success);
    color: #155724;
}

.alert-warning {
    background-color: #FFF3CD;
    border-left: 4px solid var(--warning);
    color: #856404;
}

.alert-danger {
    background-color: #F8D7DA;
    border-left: 4px solid var(--danger);
    color: #721C24;
}

.alert-info {
    background-color: #D1ECF1;
    border-left: 4px solid var(--info);
    color: #0C5460;
}

/* ========================================
   Loading Spinner
   ======================================== */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Hover Effects (Reusable)
   ======================================== */
.hover-scale {
    transition: var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* ========================================
   Responsive Typography
   ======================================== */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-hero {
        padding: 80px 0;
    }
    
    .contact-form-wrapper {
        padding: var(--spacing-lg);
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ========================================
   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 styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .btn,
    .navbar,
    .footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}