/* Brand Showcase Marine - Brand Detail Page Styles */

/* Container */
.bsm-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Brand Detail Page */
.bsm-brand-detail-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100%;
}

/* Hero Section */
.bsm-hero-section {
    padding: 80px 0;
    background: #fff;
}

.bsm-hero-section .bsm-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 500px;
}

.bsm-hero-content {
    padding: 40px 0;
}

.bsm-hero-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.bsm-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

.bsm-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

.bsm-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.bsm-placeholder-content {
    text-align: center;
    color: #6c757d;
}

.bsm-placeholder-content h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0 0 10px 0;
    color: #495057;
}

.bsm-placeholder-content p {
    font-size: 1rem;
    margin: 0;
    color: #6c757d;
}

.bsm-brand-page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
    color: #2c3e50;
    line-height: 1.1;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.bsm-hero-subtitle {
    font-size: 1.6rem;
    font-weight: 400;
    margin: 0 0 30px 0;
    color: #34495e;
}

.bsm-hero-description {
    font-size: 1.1rem;
    margin: 0 0 40px 0;
    color: #5a6c7d;
    line-height: 1.5;
}

.bsm-hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.bsm-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.bsm-btn-primary {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.bsm-btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.bsm-btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.bsm-btn-secondary:hover {
    background: white;
    color: #3498db;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.bsm-btn-cta {
    background: #203f66;
    border-color: #203f66;
    color: white !important;
    font-size: 1.1rem;
    padding: 18px 40px;
}

.bsm-btn-cta:hover {
    background: #32629e;
    border-color: #32629e;
    text-decoration: none;
    color: white;
}

/* Section Styles */
.bsm-why-us-section,
.bsm-gallery-section,
.bsm-cta-section {
    padding: 80px 0;
}

.bsm-why-us-section {
    background: #f8f9fa;
}

.bsm-gallery-section {
    background: white;
}

.bsm-cta-section {
    background: linear-gradient(165deg, #333 0%, #111 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bsm-cta-section.has-background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bsm-cta-section.has-background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.bsm-cta-section.has-background-image .bsm-container {
    position: relative;
    z-index: 2;
}

.bsm-section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin: 0 0 60px 0;
    color: #2c3e50;
    position: relative;
}

.bsm-cta-section .bsm-section-title,
.bsm-cta-section .bsm-cta-title {
    color: white;
}

.bsm-section-title:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3498db;
}

/* Why Us Grid */
.bsm-why-us-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 70px 40px;
    margin-top: 100px;
}

.bsm-why-us-item {
    flex: 0 1 400px;
    max-width: 400px;
    text-align: center;
    padding: 40px 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bsm-why-us-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.bsm-feature-icon {
    width: 80px;
    height: 80px;
    margin: -80px auto 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.bsm-feature-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.bsm-feature-icon-default {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.bsm-icon-checkmark {
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.bsm-feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.bsm-feature-text {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Gallery */
.bsm-image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.bsm-gallery-item {
    flex: 0 1 300px;
    max-width: 400px;
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.bsm-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.bsm-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.bsm-gallery-item:hover .bsm-gallery-image {
    transform: scale(1.1);
}

/* Lightbox Styles */
.bsm-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bsm-lightbox-overlay.bsm-lightbox-active {
    display: flex;
    opacity: 1;
}

.bsm-lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bsm-lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bsm-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bsm-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: #203f66;
    opacity: 0.8;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 25px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10001;
    padding: 0;
}

.bsm-lightbox-close span {
    margin-top: -5px;
}

.bsm-lightbox-close:hover {
    background: #3498db;
}

.bsm-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.bsm-lightbox-prev,
.bsm-lightbox-next {
    background: #203f66;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 25px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    pointer-events: auto;
    opacity: 0.8;
    padding: 0;
}

.bsm-lightbox-prev span,
.bsm-lightbox-next span {
    margin-top: -5px;
}

.bsm-lightbox-prev:hover,
.bsm-lightbox-next:hover {
    background: #3498db;
    opacity: 1;
}

.bsm-lightbox-prev {
    margin-left: -50px;
}

.bsm-lightbox-next {
    margin-right: -50px;
}

.bsm-lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
}

/* Mobile responsiveness for lightbox */
@media (max-width: 768px) {
    .bsm-lightbox-container {
        max-width: 95vw;
        max-height: 95vh;
        margin: 10px;
    }
    
    .bsm-lightbox-image {
        max-height: 70vh;
    }
    
    .bsm-lightbox-close {
        top: -40px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .bsm-lightbox-prev,
    .bsm-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .bsm-lightbox-prev {
        margin-left: -20px;
    }
    
    .bsm-lightbox-next {
        margin-right: -20px;
    }
    
    .bsm-lightbox-counter {
        bottom: -35px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* CTA Section */
.bsm-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.bsm-cta-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bsm-cta-subtitle {
    font-size: 1.2rem;
    margin: 0 0 40px 0;
    color: rgba(255, 255, 255, 0.9);
}





/* Print Styles */
@media print {
    .bsm-hero-section {
        min-height: 40vh;
        page-break-inside: avoid;
    }
    
    .bsm-hero-background {
        display: none;
    }
    
    .bsm-why-us-item,
    .bsm-gallery-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .bsm-btn {
        display: none;
    }
}

/* Accessibility */
.bsm-btn:focus,
.bsm-gallery-item:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Loading States */
.bsm-brand-detail-page.loading {
    opacity: 0.7;
}

.bsm-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.bsm-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: bsm-spin 1s linear infinite;
}

@keyframes bsm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .bsm-hero-section .bsm-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .bsm-hero-media {
        order: -1;
        min-height: 300px;
    }
    
    .bsm-brand-page-title {
        font-size: 2.5rem;
    }
    
    .bsm-hero-subtitle {
        font-size: 1.3rem;
    }
    
    .bsm-hero-description {
        font-size: 1rem;
    }
    
    .bsm-hero-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bsm-hero-section {
        padding: 40px 0;
    }
    
    .bsm-brand-page-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .bsm-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .bsm-hero-media {
        min-height: 250px;
    }
    
    .bsm-hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .bsm-btn {
        width: 100%;
        max-width: 280px;
    }
}