/**
 * Express Wholesale Fuels - Custom Stylesheet
 * Built with Bootstrap 5.3
 * 
 * Color Scheme (adjust based on logo):
 * Primary: #1a5276 (Deep Blue - professional, trustworthy)
 * Secondary: #e67e22 (Orange - energy, fuel)
 * Accent: #2c3e50 (Dark Blue-Grey)
 */

:root {
    --ewf-primary: #005b00;
    --ewf-primary-dark: #0a440a;
    --ewf-secondary: #86b701;
    --ewf-secondary-dark: #79a305;
    --ewf-accent: #2c5030;
    --ewf-light: #f8f9fa;
    --ewf-dark: #1a2e1f;
}

/* Override Bootstrap primary color */
.bg-primary {
    background-color: white !important;
}

.btn-primary {
    background-color: var(--ewf-primary);
    border-color: var(--ewf-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--ewf-primary-dark);
    border-color: var(--ewf-primary-dark);
}

.btn-secondary {
    background-color: var(--ewf-secondary);
    border-color: var(--ewf-secondary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--ewf-secondary-dark);
    border-color: var(--ewf-secondary-dark);
}

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

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

/* Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--ewf-accent);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: #333 !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

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

.nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    color: #333 !important;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(0, 91, 0, 0.1);
    border-radius: 0.375rem;
    color: var(--ewf-primary) !important;
}

/* Navbar toggler for mobile */
.navbar-toggler {
    border-color: #333;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51, 51, 51, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--ewf-primary) 0%, var(--ewf-accent) 100%);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-section::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" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.03)" points="0,100 100,0 100,100"/></svg>');
    background-size: cover;
}

.hero-row {
    min-height: 450px;
}

.hero-content {
    padding: 2rem 0;
}

.hero-image-col {
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    height: 120%;
    width: auto;
    max-width: none;
    object-fit: cover;
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 25%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 25%);
}

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

.hero-section h1 {
    color: white;
    font-size: 2.75rem;
    font-weight: 700;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Feature Cards */
.feature-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.feature-card .card-body {
    padding: 2rem;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--ewf-primary) 0%, var(--ewf-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

/* Service Cards */
.service-card {
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--ewf-primary);
    box-shadow: 0 10px 30px rgba(26, 82, 118, 0.15);
}

.service-card .card-header {
    background: linear-gradient(135deg, var(--ewf-primary) 0%, var(--ewf-accent) 100%);
    color: white;
    padding: 1.5rem;
    border: none;
}

.service-card .card-header h3 {
    color: white;
    margin: 0;
}

/* Stats Section */
.stats-section {
    background-color: var(--ewf-light);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--ewf-primary);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--ewf-secondary) 0%, var(--ewf-secondary-dark) 100%);
    color: white;
    padding: 4rem 0;
}

.cta-section h2 {
    color: white;
}

.cta-section .btn-light {
    color: var(--ewf-secondary);
    font-weight: 600;
}

.cta-section .btn-light:hover {
    background-color: #f8f9fa;
    color: var(--ewf-secondary-dark);
}

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

.form-control:focus,
.form-select:focus {
    border-color: var(--ewf-primary);
    box-shadow: 0 0 0 0.25rem rgba(26, 82, 118, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--ewf-accent);
}

/* Contact Info Card */
.contact-info-card {
    background: linear-gradient(135deg, var(--ewf-primary) 0%, var(--ewf-accent) 100%);
    color: white;
    border-radius: 1rem;
    padding: 2.5rem;
}

.contact-info-card h3 {
    color: white;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--ewf-secondary);
}

.contact-info-item a {
    color: white;
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--ewf-dark) !important;
}

footer h2 {
    color: white;
}

footer p,
footer address,
footer li,
footer .text-light-emphasis {
    color: rgba(255, 255, 255, 0.65) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.85) !important;
}

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

footer a:hover {
    color: var(--ewf-secondary) !important;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--ewf-primary) 0%, var(--ewf-accent) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item.active {
    color: white;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.benefits-list li::before {
    content: '\f26a';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--ewf-secondary);
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .contact-form,
    .contact-info-card {
        padding: 1.5rem;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--ewf-secondary);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}
