/* Brand fonts - Bison Bold and Gist Rough Medium alternatives */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

/* Custom CSS for Annex Supply Co. */
:root {
    --primary-color: #d36b31;
    --secondary-color: #d60b31;
    --tertiary-color: #f4e4c1;
    --dark-color: #2c2c2c;
    --background-color: #f8f5f1;
    --text-color: #2c2c2c;
    --light-text: #6c757d;
    --border-color: #dee2e6;
}

body {
    font-family: 'Courier Prime', monospace;
    font-weight: 400;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Typography - Bison Bold equivalent */
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-brand {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Gist Rough Medium equivalent styling */
p, .lead, .card-text, .form-control, .btn {
    font-family: 'Courier Prime', monospace;
    font-weight: 400;
}

.btn {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Override Bootstrap primary color */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #b55a24;
    border-color: #b55a24;
}

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

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

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

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

/* Header Styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--tertiary-color) !important;
}

.navbar-dark .navbar-brand {
    color: var(--tertiary-color) !important;
}

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

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--tertiary-color) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--primary-color) !important;
}

.navbar-dark .navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-dark .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='%23f4e4c1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main Content Spacing */
.main-content {
    margin-top: 76px; /* Account for fixed navbar */
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c2c2c 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="%23d36b31" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23d36b31" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23d36b31" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    color: white;
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

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

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

.hero-buttons .btn {
    margin: 0.5rem;
}

/* Page Header */
.page-header {
    background-color: var(--dark-color);
    color: white;
    margin-top: 0;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 2.5rem;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-image {
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-category {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.75rem;
    padding: 4px 8px;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-card .card-text {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.product-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Service Cards */
.service-card {
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-icon i {
    font-size: 2rem;
    color: var(--accent-color);
}

.service-title {
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: bold;
    margin: 1.5rem 0 1rem 0;
    line-height: 1.3;
}

.service-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Process Section */
.process-section {
    background: var(--light-bg);
    color: var(--dark-color);
    position: relative;
}

.process-section .section-title {
    color: var(--primary-color);
}

.process-step-card {
    position: relative;
    padding: 2rem 1.5rem;
}

.process-step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 4px solid white;
}

.process-step-icon {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid var(--primary-color);
}

.process-step-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.process-step-title {
    color: var(--dark-color);
    font-size: 1.3rem;
    font-weight: bold;
    margin: 1.5rem 0 1rem 0;
}

.process-step-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Admin Panel Styles */
.admin-product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.no-image-placeholder {
    width: 50px;
    height: 50px;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #6c757d;
    border-radius: 4px;
}

.nav-tabs .nav-link {
    color: var(--dark-color);
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
}

/* Admin Link Styling */
.admin-link {
    color: #6c757d !important;
    transition: color 0.3s ease;
    text-decoration: none;
}

.admin-link:hover {
    color: var(--primary-color) !important;
}

/* Brand Logo Styling */
.brand-logo {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

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

/* Brand Sticker Styling */
.brand-sticker {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.brand-sticker:hover {
    transform: scale(1.02);
}

/* Contact Form */
.contact-info-card {
    padding: 2rem;
    height: 100%;
}

.contact-info-card i {
    margin-bottom: 1rem;
}

/* Process Steps */
.step-card {
    padding: 2rem;
    height: 100%;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-title {
    color: var(--primary-color);
    margin: 1rem 0;
}

.step-details {
    list-style: none;
    padding: 0;
}

.step-details li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.step-details li:before {
    content: "▸";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Feature Items */
.feature-item,
.feature-card {
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.feature-item i,
.feature-card i {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

/* Service Items */
.service-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.service-item i {
    margin-top: 0.25rem;
    margin-right: 1rem;
    font-size: 1.5rem;
}

/* Process List */
.process-list {
    padding-left: 1rem;
}

.process-list li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

/* Purchase Process */
.process-step {
    padding: 1rem;
}

.process-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

/* CTA Sections */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c2c2c 100%);
    color: white;
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
}

/* Footer */
footer {
    margin-top: auto;
}

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

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Accordion Customization */
.accordion-button {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 500;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(200, 100, 40, 0.25);
}

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

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(200, 100, 40, 0.25);
}

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

.alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .step-card,
    .feature-item,
    .contact-info-card {
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Brand accent areas */
.bg-cream {
    background-color: var(--tertiary-color);
}

.text-rust {
    color: var(--primary-color);
}

.text-red {
    color: var(--secondary-color);
}

.bg-rust {
    background-color: var(--primary-color);
    color: var(--tertiary-color);
}

/* Step numbers with brand colors */
.step-number {
    background-color: var(--primary-color);
}

/* Process icons with brand colors */
.process-icon {
    background-color: var(--primary-color);
}

/* Utility Classes */
.text-industrial {
    color: var(--primary-color);
}

.bg-industrial {
    background-color: var(--primary-color);
}

.border-industrial {
    border-color: var(--primary-color);
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Brand-specific styling enhancements */
.navbar-dark {
    background-color: var(--dark-color) !important;
}

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

/* Enhanced brand integration */
.hero-section .display-2 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.section-title {
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .hero-section,
    .cta-section {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        background-color: white;
        color: black;
    }
}
