/* ============================================
   DBM WEBSITE - HOMEPAGE SECTIONS
   Section-specific styles for homepage
   
   Purpose: Styles for hero, products, testimonials, etc.
   Includes: Hero, transitional, products, why choose us, testimonials, CTA
   
   File size: ~10 KB
   ============================================ */

/* ============================================
   COMMON SECTION STYLES
   Container and spacing for all sections
   ============================================ */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-text {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.highlight-box {
    background: var(--pure-white);
    border-left: 4px solid var(--bronze);
    padding: 30px;
    margin-top: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.highlight-box strong {
    color: var(--bronze);
}

/* ============================================
   HERO SECTION
   Background: Pure White
   Layout: Two-column (text left, video right on desktop)
   Contains: H1 headline, body text, two CTAs, embedded video
   ============================================ */
.hero {
    background: var(--pure-white);
    padding: 65px 60px 50px 60px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-top-section {
    display: flex;
    flex-direction: column;
}

.hero-main-content {
    width: 100%;
}

/* Content wrapper for body copy sections and video */
.hero-content-row {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.hero-left-column {
    flex: 1;
    max-width: 600px;
}

.hero-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Three-segment body copy */
.hero-segments {
    margin-bottom: 28px;
}

.segment {
    margin-bottom: 24px;
}

.segment:last-child {
    margin-bottom: 0;
}

.segment-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 17px;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.segment-text {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    color: var(--slate-gray);
    margin-bottom: 0;
}

/* Tagline */
.hero-tagline {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    color: var(--charcoal);
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-buttons .btn-primary {
    flex: 1;
    min-width: 0;
}

/* Video Placeholder */
.hero-video-placeholder {
    width: 560px;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--shadow-video);
    overflow: hidden;
}

.hero-video-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   TRANSITIONAL STATEMENT SECTION
   Simple H2 statement between hero and products
   Background: Warm White
   ============================================ */
.transitional-statement {
    background: var(--warm-white);
    padding: 30px 60px 28px 60px;
}

.transitional-statement-container {
    max-width: 1200px;
    margin: 0 auto;
}

.transitional-statement h2 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 28px;
    line-height: 1.5;
    color: var(--bronze);
    margin: 0;
    text-align: center;
}

/* ============================================
   PRODUCT CARDS SECTION
   Three large product category cards with images
   Background: Warm White
   ============================================ */
.product-cards-section {
    background: var(--warm-white);
    padding: 40px 60px 50px 60px;
}

.product-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   PROBLEM/SOLUTION SECTION
   Background: Warm White
   ============================================ */
.problem-solution {
    background: var(--warm-white);
    padding: 70px 60px;
}

/* ============================================
   PRODUCTS SECTION
   Grid of product cards
   Background: Warm White with White Cards
   ============================================ */
.products-section {
    background: var(--warm-white);
    padding: 70px 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* ============================================
   WHY CHOOSE US SECTION
   Three feature cards in grid
   Background: Pure White
   ============================================ */
.why-choose-us {
    background: var(--pure-white);
    padding: 50px 60px 80px 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

/* ============================================
   TESTIMONIAL SECTION
   Dark background with centered quote
   Background: Charcoal
   ============================================ */
.testimonial-section {
    background: var(--charcoal);
    padding: 70px 60px;
}

.testimonial-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-stars {
    font-size: 24px;
    color: var(--bronze);
    margin-bottom: 24px;
    letter-spacing: 4px;
}

.testimonial-quote {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.6;
    color: var(--pure-white);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-quote::before {
    content: none;
}

.testimonial-author {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    color: var(--pure-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.testimonial-title {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   CTA SECTION
   Final call-to-action section
   Background: Charcoal
   ============================================ */
.cta-section {
    background: var(--charcoal);
    padding: 80px 60px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-section h2 {
    color: var(--pure-white);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE - MOBILE ADJUSTMENTS
   Stack layouts, adjust spacing
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        padding: 50px 30px 40px 30px;
    }
    
    .product-cards-section {
        padding: 30px 30px 40px 30px;
    }
    
    .why-choose-us {
        padding: 40px 30px 60px 30px;
    }
    
    .testimonial-section {
        padding: 50px 30px;
    }
    
    .cta-section {
        padding: 60px 30px;
    }
    
    .hero-content-row {
        flex-direction: column;
    }
    
    .hero-left-column {
        max-width: 100%;
    }
    
    .hero-right-column {
        width: 100%;
    }
    
    .hero-video-placeholder {
        width: 100%;
    }
    
    h1 {
        font-size: 36px;
        max-width: 100%;
    }
    
    /* Transitional statement - mobile */
    .transitional-statement {
        padding: 25px 30px 20px 30px;
    }
    
    .transitional-statement h2 {
        font-size: 22px;
    }
    
    /* Product cards stack on mobile */
    .product-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .products-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 32px;
    }
}

/* ============================================
   HUB PAGE STYLES
   For category hub pages (standard-bushings, bar-plate-stock)
   H1 inherits defaults from base.css (44px, bronze, 32px margin)
   ============================================ */

/* Hero Section - Minimal, centered */
.hub-hero {
    background-color: var(--pure-white);
    padding: 36px 0 40px;
    text-align: center;
}

.hub-hero .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}

/* H1 inherits font-size, color, weight from base.css */
/* Margin matches product page spacing (8px gap to subtitle) */
.hub-hero h1 {
    margin-bottom: 8px;
}

.hub-hero .hub-subtitle {
    color: var(--charcoal);
    font-size: 20px;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Product Cards Section */
.hub-products {
    background-color: var(--warm-white);
    padding: 60px 0 80px;
}

.hub-products .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Section Headers */
.hub-section-header {
    margin-bottom: 24px;
}

.hub-section-header h2 {
    color: var(--charcoal);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bronze);
    display: inline-block;
}

/* Card List - 1 column stacked */
.hub-card-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.hub-card-list:last-child {
    margin-bottom: 0;
}

/* Horizontal Product Card */
.hub-card {
    background: var(--pure-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
}

.hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Image area - Inside white card with vertical divider */
.hub-card-image {
    width: 260px;
    min-width: 260px;
    background-color: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-right: 1px solid #E2E8F0;
}

.hub-card-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.hub-card:hover .hub-card-image img {
    transform: scale(1.03);
}

/* Content area */
.hub-card-content {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.hub-card-content h3 {
    color: var(--bronze);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.3;
}

.hub-card-content p {
    color: var(--slate-gray);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px;
}

/* Card CTA Button - Outline style */
.hub-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--enterprise-green-base);
    border-radius: 6px;
    background: transparent;
    color: var(--enterprise-green-base);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.hub-card-cta:hover {
    background: var(--enterprise-green-base);
    color: var(--pure-white);
}

.hub-card-cta::after {
    content: '→';
    transition: transform 0.3s ease;
}

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

/* Hub Page Responsive Styles */
@media (max-width: 768px) {
    .hub-hero {
        padding: 40px 0 32px;
    }

    .hub-hero .hub-subtitle {
        font-size: 18px;
    }

    .hub-products {
        padding: 40px 0 60px;
    }

    /* Stack cards vertically on mobile */
    .hub-card {
        flex-direction: column;
    }

    .hub-card-image {
        width: 100%;
        min-width: unset;
        padding: 24px 18px;
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
    }

    .hub-card-content {
        padding: 24px;
    }

    .hub-card-content h3 {
        font-size: 20px;
    }

    .hub-card-content p {
        font-size: 14px;
    }
}
