/* =========================================================================
   PHAROLL - BRANDS PAGE STYLES (#386668 theme)
   ========================================================================= */

/* Hero Section */
.brands-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 10rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.brands-hero-content {
    flex: 1.2;
    max-width: 700px;
}

.brands-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.brands-hero-desc {
    font-size: 1.125rem;
    color: #4a4a4a;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.brands-btn {
    display: inline-block;
    background-color: #386668;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 102, 104, 0.3);
}

.brands-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 102, 104, 0.4);
    background-color: #2a4e50;
}

/* Custom CSS Laptop Mockup */
.brands-hero-image-wrapper {
    flex: 0.9;
    position: relative;
    z-index: 10;
}

.brands-hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(56, 102, 104, 0.8) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    border-radius: 50%;
}

.hero-laptop-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 30px 60px rgba(56, 102, 104, 0.4));
}

/* 3 Steps Section */
.brands-steps {
    padding: 6rem 2rem;
    background: #ffffff;
}

.brands-steps-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
}

.text-center {
    text-align: center;
}

.brands-steps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.brands-steps-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    text-align: left;
}

.step-icon {
    width: 48px;
    height: 48px;
    background-color: #e8f1f1;
    color: #386668;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

.brands-steps-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    object-fit: cover;
}

/* Features Section (Bento Grid) */
.brands-features {
    padding: 6rem 2rem;
    background: #f8fcfb; /* Soft color complementing #386668 */
}

.brands-features-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.brands-features-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 4rem;
}

.features-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-5px);
}

.bento-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bento-icon {
    color: #386668;
    background: #e8f1f1;
    padding: 0.75rem;
    border-radius: 12px;
}

.bento-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
}

.bento-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Specific Bento Placements */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 1;
}

.bento-visual {
    margin-top: 2rem;
    background: #f4f8f7;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-grow: 1;
}

/* Simple CSS Bar Chart */
.bar-chart {
    display: flex;
    gap: 1rem;
    height: 150px;
    align-items: flex-end;
    width: 100%;
    justify-content: center;
}

.bar {
    width: 40px;
    background-color: #386668;
    border-radius: 6px 6px 0 0;
    opacity: 0.8;
    transition: height 1s ease-out, opacity 0.3s;
}

.bar:hover {
    opacity: 1;
}

/* Dark Mode Overrides for Brands Page */
[data-theme="dark"] .brands-hero-title,
[data-theme="dark"] .brands-steps-title,
[data-theme="dark"] .brands-features-title,
[data-theme="dark"] .step-content h3,
[data-theme="dark"] .bento-card h3 {
    color: var(--text-color);
}

[data-theme="dark"] .brands-hero-desc,
[data-theme="dark"] .brands-features-subtitle,
[data-theme="dark"] .step-content p,
[data-theme="dark"] .bento-card p {
    color: var(--text-muted);
}

[data-theme="dark"] .brands-steps {
    background: var(--bg-color);
}

[data-theme="dark"] .brands-features {
    background: #0d1212;
}

[data-theme="dark"] .bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

[data-theme="dark"] .bento-visual {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .step-icon,
[data-theme="dark"] .bento-icon {
    background-color: rgba(56, 102, 104, 0.2);
    color: #5ab1b4;
}

[data-theme="dark"] .brands-steps-image img {
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

[data-theme="dark"] .brands-btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .brands-hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .brands-hero-content {
        max-width: 800px;
    }

    .brands-hero-title, .brands-hero-desc {
        margin-inline: auto;
    }

    .brands-hero-image-wrapper {
        align-self: center;
        margin-top: 4rem;
        margin-bottom: 0rem;
    }

    .brands-steps-container {
        grid-template-columns: 1fr;
    }
    
    .features-bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .bento-large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .features-bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-large {
        grid-column: span 1;
    }
}
