/* ============================================
   DBM WEBSITE - REUSABLE COMPONENTS
   Buttons, cards, badges, and UI elements
   
   Purpose: Reusable UI components used across the site
   Includes: Buttons, product cards, feature cards, badges
   
   File size: ~6 KB
   ============================================ */

/* ============================================
   BUTTONS
   Primary (green), Secondary (blue) buttons
   Two-line format with upper and lower text
   ============================================ */

/* Primary Button - Enterprise Green (Request Quote) */
.btn-primary {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    padding: 14px 32px;
    background: var(--enterprise-green-base);
    color: var(--pure-white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    letter-spacing: 0.3px;
    border: 2px solid var(--enterprise-green-base);
    text-align: center;
}

.btn-line-1 {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
}

.btn-line-2 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: var(--enterprise-green-light);
    border-color: var(--enterprise-green-light);
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green-btn);
}

/* Secondary Button - Material Blue (View Products) */
.btn-secondary {
    background: var(--material-blue-base);
    color: var(--pure-white);
    border: 2px solid var(--material-blue-base);
}

.btn-secondary:hover {
    background: var(--material-blue-light);
    border-color: var(--material-blue-light);
    color: var(--pure-white);
    box-shadow: var(--shadow-blue-btn);
}

/* Button Group - Side by side buttons */
.button-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.button-group .btn-primary {
    flex: 1;
    min-width: 0;
}

/* ============================================
   PRODUCT CARDS
   Used in products section
   White cards with icon, title, description, link
   ============================================ */
.product-card {
    background: var(--pure-white);
    padding: 36px;
    border-radius: var(--radius-md);
    border: 2px solid #e5e5e5;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: var(--bronze);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.product-icon {
    width: 60px;
    height: 60px;
    background: var(--slate-gray);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--pure-white);
}

.product-card h3 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 18px; /* Style Guide v1.3: 18px */
    line-height: 1.4; /* Style Guide v1.3: 1.4 line-height */
    color: var(--charcoal);
    margin-bottom: 14px;
}

.product-card p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.learn-more {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    color: var(--link-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.learn-more:hover {
    color: var(--link-hover);
    gap: 8px;
}

.learn-more::after {
    content: '→';
    margin-left: 6px;
    transition: margin-left 0.3s;
}

/* Text Links - Inline links within content */
.text-link {
    color: var(--link-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--link-hover);
}

/* ============================================
   FEATURE CARDS
   Used in "Why Choose Us" section
   White cards with large circular icon
   ============================================ */
.feature-card {
    text-align: center;
    padding: 30px;
    background: var(--pure-white);
    border-radius: var(--radius-md);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--bronze);
    border-radius: var(--radius-circle);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--pure-white);
}

.feature-card h3 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 18px; /* Style Guide v1.3: 18px */
    line-height: 1.4; /* Style Guide v1.3: 1.4 line-height */
    color: var(--charcoal);
    margin-bottom: 12px;
}

.feature-card p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    color: var(--charcoal);
}

/* ============================================
   PRODUCT CATEGORY CARDS
   Large cards with images, used on homepage
   ============================================ */
.product-category-card {
    background: var(--pure-white);
    border-radius: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-category-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.product-category-card .card-image {
    width: 100%;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    overflow: hidden;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-category-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-category-card .card-heading {
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    font-size: 24px !important;
    color: var(--bronze) !important;
    margin: 20px 0 12px 0 !important;
    padding: 0 28px !important;
    line-height: 1.3 !important;
    text-align: left !important;
    text-indent: 0 !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
}

.product-category-card .card-description {
    font-family: var(--font-primary) !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #555555 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 28px !important;
    flex-grow: 1;
    text-align: left !important;
    text-indent: 0 !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
}

.product-category-card .card-cta-button {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    color: #0D47A1;
    text-decoration: none;
    padding: 14px 28px;
    margin: 0 0 28px 0;
    background: var(--pure-white);
    border: 2px solid #0D47A1;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: center;
}

.product-category-card .card-cta-button::after {
    content: '→';
    font-size: 16px;
    transition: transform 0.3s;
}

.card-cta-button:hover {
    background: #0a3a7f;
    border-color: #0a3a7f;
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue-btn);
}

.card-cta-button:hover::after {
    transform: translateX(4px);
}

/* ============================================
   LABELS & BADGES
   "Since 2007" label, trust badges, etc.
   ============================================ */

/* Hero Label - "Since 2007 • Braham, MN" */
.hero-label {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 24px;
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--bronze);
    border-radius: var(--radius-pill);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 24px;
    align-items: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 14px;
    color: var(--slate-gray);
}

.trust-badge-icon {
    font-size: 18px;
}

/* Circular Trust Badge */
.trust-badge {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.trust-badge-circle {
    width: 110px;
    height: 110px;
    border: 1.5px solid var(--bronze);
    border-radius: var(--radius-circle);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.badge-number {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--bronze);
    line-height: 1;
    margin-bottom: 4px;
}

.badge-text-1 {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-text-2 {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 500;
    color: var(--slate-gray);
    text-align: center;
    margin-top: 2px;
}

/* ============================================
   RESPONSIVE - MOBILE ADJUSTMENTS
   ============================================ */
@media (max-width: 1024px) {
    /* Trust badge - mobile */
    .trust-badge {
        margin-top: 15px;
    }
    
    .trust-badge-circle {
        width: 100px;
        height: 100px;
    }
    
    .badge-number {
        font-size: 24px;
    }
    
    .badge-text-1 {
        font-size: 11px;
    }
    
    .badge-text-2 {
        font-size: 9px;
    }
}
