/**
 * Homepage Clean Styles
 * Matching the sophisticated profile page design
 * Gray headers, white cards, green accents
 */

/* ============================================
   HERO SECTION - Gray Gradient Header
   ============================================ */
.home-hero {
    background: linear-gradient(135deg, #5a6c7d 0%, #475569 100%);
    padding: 80px 0;
    margin: 0;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.home-hero__inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.home-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: var(--space-5);
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-hero .lead {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-8);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}

.home-hero__ctas {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.home-hero__ctas .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.home-hero__ctas .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.home-hero__ctas .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.home-hero__ctas .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   SECTION STYLING
   ============================================ */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: var(--space-8);
}

/* ============================================
   INDUSTRIES SECTION - Clean White Cards
   ============================================ */
.industries-section {
    background: #f8fafc;
    padding: var(--space-12) 0;
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: var(--space-6);
}

.industry-tile {
    flex: 0 1 170px;
}

.industry-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    min-height: 150px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.industry-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #10b981;
}

.industry-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    padding: 1rem;
    transition: all 0.3s ease;
}

.industry-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.4);
    transition: all 0.3s ease;
}

.industry-tile:hover .industry-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: scale(1.05);
}

.industry-tile:hover .industry-icon img {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

.industry-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    text-align: center;
    line-height: 1.4;
}

.industry-tile:hover .industry-label {
    color: #10b981;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-works {
    background: #ffffff;
    padding: var(--space-12) 0;
}

.how-works__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--space-8);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.how-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.how-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.how-step__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.how-step__icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.4);
    transition: all 0.3s ease;
}

.how-step:hover .how-step__icon {
    background: linear-gradient(135deg, #5a6c7d 0%, #475569 100%);
}

.how-step:hover .how-step__icon img {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

.how-step__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.how-step__text {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* ============================================
   MANUFACTURER PROFILE - Homepage-aligned layout
   ============================================ */
.profile-page {
    background: #f8fafc;
}



.profile-section--breadcrumb {
    padding-top: var(--space-6);
    padding-bottom: 0;
}

.profile-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.profile-card,
.profile-media-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.profile-card__header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.profile-logo {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.profile-logo--fallback {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
}

.profile-title h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.profile-title__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.profile-badge {
    background: #1f2937;
    color: #ffffff;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.profile-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.profile-highlights strong {
    color: #111827;
    font-weight: 600;
}

.profile-summary {
    margin-top: 1.25rem;
    color: #475569;
    line-height: 1.7;
}

.profile-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.profile-body-text {
    color: #475569;
    line-height: 1.8;
    font-size: 0.98rem;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-tags span {
    background: #eff6ff;
    color: #3b82f6;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-certifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.profile-certification {
    background: #f0fdf4;
    border: 1px solid #86efac;
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
}

.profile-certification__icon {
    width: 48px;
    height: 48px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.profile-certification__title {
    font-weight: 600;
    color: #065f46;
}

.profile-certification__meta {
    color: #059669;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.profile-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #f1f5f9;
}

.profile-carousel__track-container {
    overflow: hidden;
    border-radius: 14px;
    user-select: none;
    -webkit-user-drag: none;
}

.profile-carousel__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.profile-carousel__slide {
    min-width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.profile-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
}

.profile-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(8px);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: 1;
    font-size: 0;
    overflow: hidden;
}

.profile-carousel__icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}

.profile-carousel__nav svg {
    width: 20px;
    height: 20px;
    display: block;
}

.profile-carousel__nav:hover {
    transform: translateY(-50%) scale(1.1);
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.profile-carousel__nav:active {
    transform: translateY(-50%) scale(1.05);
}

.profile-carousel__nav--prev {
    left: 16px;
}

.profile-carousel__nav--next {
    right: 16px;
}

/* Indicators (dots) */
.profile-carousel__indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.profile-carousel__indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.profile-carousel__indicator:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: scale(1.2);
}

.profile-carousel__indicator.active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

/* Zoom Modal */
.carousel-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.carousel-zoom-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10000;
}

.carousel-zoom-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.carousel-zoom-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-zoom-close:hover {
    background: #ffffff;
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .profile-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-card,
    .profile-media-card {
        padding: 1.5rem;
    }

    .profile-carousel__nav {
        width: 36px;
        height: 36px;
    }

    .profile-carousel__icon {
        width: 18px;
        height: 18px;
    }

    .profile-carousel__nav--prev {
        left: 8px;
    }

    .profile-carousel__nav--next {
        right: 8px;
    }

    .profile-carousel__indicators {
        bottom: 12px;
    }

    .carousel-zoom-close {
        top: 10px;
        right: 10px;
    }

    .profile-card__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .home-hero {
        padding: 60px 0;
    }
    
    .home-hero h1 {
        font-size: 2rem;
    }
    
    .industries-grid {
        gap: 1rem;
    }
    
    .how-works__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding: 40px 0;
    }
    
    .home-hero h1 {
        font-size: 1.75rem;
    }
    
    .home-hero .lead {
        font-size: 1rem;
    }
    
    .home-hero__ctas {
        flex-direction: column;
    }
    
    .home-hero__ctas .btn-primary,
    .home-hero__ctas .btn-outline {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .industries-grid {
        gap: 0.875rem;
    }
    
    .industry-tile {
        flex: 0 1 150px;
        min-height: 130px;
        padding: 1.25rem 0.75rem;
    }
    
    .industry-icon {
        width: 60px;
        height: 60px;
        padding: 0.75rem;
    }
    
    .industry-icon img {
        width: 28px;
        height: 28px;
    }
    
    .industry-label {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   LOADING SPINNER
   ============================================ */
#loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    align-items: center;
    justify-content: center;
}

.loader {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
