/* ============================================
   INDEX.CSS - Scaffolding Depot Homepage
   Refactored for New Design (Phase 3)
   Generated: 2026-02-01
   ============================================ */

/* ----------------------------------------
   1. CSS VARIABLES
   ---------------------------------------- */
:root {
    --white: #ffffff;
    --black: #000000;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --dark-navy: #253041;
    --brand-orange: #F6A000;
    --brand-orange-hover: #C48000;
    --text-color: #333333;
    --text-muted: #666666;
    --font-headline: 'Poppins', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Open Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ----------------------------------------
   2. GLOBAL LAYOUT
   ---------------------------------------- */
body {
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

.homepage {
    width: 100%;
    margin: 0 auto;
    background-color: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ----------------------------------------
   3. HERO PRIMARY (BRAND AUTHORITY)
   Industrial Asymmetric Design
   ---------------------------------------- */
.hero-primary {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    color: var(--dark-navy);
    overflow: visible;
}

.hero-primary-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(245, 245, 245, 0.4) 0%, rgba(255, 255, 255, 1) 100%),
                repeating-linear-gradient(90deg, transparent 0px, transparent 79px, rgba(37, 48, 65, 0.02) 79px, rgba(37, 48, 65, 0.02) 80px);
    z-index: 0;
}

.hero-primary-content {
    position: relative;
    z-index: 1;
    padding: 48px 40px 64px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2.5fr 2fr 1.5fr;
    gap: 40px;
    align-items: start;
}

/* Typography - Heavy Weights & Selective Orange */
.hero-headline {
    font-family: var(--font-headline);
    font-size: 3.25rem;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 28px 0;
    color: var(--dark-navy);
}

.hero-headline .weight-heavy {
    font-weight: 800;
    display: block;
}

.hero-headline .brand-highlight {
    font-weight: 700;
    color: var(--brand-orange);
    display: block;
}

.hero-subheadline {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    margin: 0 0 36px 0;
    font-weight: 400;
    max-width: 540px;
}

.hero-content-main {
    text-align: left;
    padding-right: 20px;
}

/* Expert Toolbox - Industrial Aesthetic */
.expert-value-toolbox {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 3px solid var(--dark-navy);
    border-radius: 2px;
    box-shadow: 8px 8px 0px rgba(37, 48, 65, 0.15);
    overflow: hidden;
    align-self: flex-start; /* Removed center, now aligns to top */
    min-width: 330px;
}

.toolbox-header {
    background-color: var(--dark-navy);
    padding: 12px 24px;
    text-align: center;
}

.toolbox-label {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
}

.toolbox-content {
    padding: 32px 28px 28px;
}

.phone-number-hero {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-headline);
    color: var(--brand-orange);
    text-decoration: none;
    text-align: center;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    transition: color 0.2s ease;
}

.phone-number-hero:hover {
    color: var(--brand-orange-hover);
}

.call-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--dark-navy);
    margin: 0 0 28px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benefit-checklist {
    margin: 0 0 24px 0;
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
}

.benefit-item {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-bottom: 14px;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--brand-orange);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 2px;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dark-navy);
    font-weight: 500;
    padding-top: 2px;
}

.toolbox-qualifier {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    line-height: 1.4;
}

/* Product Visuals Container - Responsive Scaling */
.product-visuals-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin-right: -60px;
    margin-top: -32px;
    transform-origin: top right;
    transition: transform 0.3s ease;
}

/* Scale down proportionally between 1400px and 1120px viewports */
@media (max-width: 1400px) {
    .product-visuals-container {
        transform: scale(0.95);
    }
}

@media (max-width: 1300px) {
    .product-visuals-container {
        transform: scale(0.9);
    }
}

@media (max-width: 1200px) {
    .product-visuals-container {
        transform: scale(0.85);
    }
}

@media (max-width: 1120px) {
    .product-visuals-container {
        transform: scale(0.8);
    }
}

/* Hide images when viewport too small (below 80% threshold) */
@media (max-width: 1050px) {
    .product-visuals-container {
        display: none;
    }
}

/* Primary Product Visual */
.product-visual-primary {
    position: absolute;
    top: 0;
    z-index: 2;
    width: 360px;
    height: auto;
}

.hero-product-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
}

.hero-product-image:hover {
    transform: rotate(0deg) scale(1.05);
}

/* Secondary Product Visual - Positioned Relative to Primary */
.product-visual-secondary {
    position: absolute;
    top: 308px;
    z-index: 1;
    width: 256px;
    height: auto;
}

.hero-product-image-secondary {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
    transform: rotate(3deg);
    transition: transform 0.5s ease;
    opacity: 0.95;
}

.hero-product-image-secondary:hover {
    transform: rotate(0deg) scale(1.05);
    opacity: 1;
}

.hero-ctas {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn-primary-hero {
    background-color: var(--brand-orange);
    color: var(--white);
    padding: 18px 36px;
    border-radius: 2px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    font-family: var(--font-headline);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 4px 4px 0px rgba(246, 160, 0, 0.3);
}

.btn-primary-hero:hover {
    background-color: var(--brand-orange-hover);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(246, 160, 0, 0.3);
}

/* Industrial Trust Bar - Pill-Shaped */
.industrial-trust-bar {
    position: relative;
    padding: 0 40px;
    margin-top: 48px;
}

.trust-bar-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    background: linear-gradient(90deg, 
                rgba(37, 48, 65, 0.95) 0%, 
                rgba(37, 48, 65, 0.98) 50%, 
                rgba(37, 48, 65, 0.95) 100%);
    padding: 24px 40px;
    border-radius: 50px;
    border: 3px solid var(--brand-orange);
}

.trust-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.02rem;
    font-weight: 700;
}

.trust-icon {
    width: 24px;
    height: 24px;
    color: var(--brand-orange);
    flex-shrink: 0;
    stroke-width: 1.5;
}

/* Responsive: Hero Primary */
@media (max-width: 768px) {
    .hero-primary {
        min-height: auto;
    }
    
    .hero-primary-content {
        padding: 40px 20px 60px;
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: center;
    }
    
    .hero-content-main {
        text-align: center;
        padding-right: 0;
    }
    
    .hero-headline {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .hero-headline .weight-heavy,
    .hero-headline .brand-highlight {
        display: inline;
    }
    
    .hero-subheadline {
        font-size: 0.95rem;
        margin-bottom: 28px;
        max-width: 100%;
    }
    
    .expert-value-toolbox {
        order: 2;
        align-self: stretch;
        box-shadow: 6px 6px 0px rgba(37, 48, 65, 0.15);
    }
    
    .phone-number-hero {
        font-size: 1.75rem;
    }
    
    .product-visuals-container {
        display: none;
    }
    
    .industrial-trust-bar {
        padding: 0 20px;
    }
    
    .trust-bar-items {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 16px 20px;
        border-radius: 30px;
    }
    
    .trust-bar-item {
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .trust-icon {
        width: 20px;
        height: 20px;
    }
}

/* ----------------------------------------
   4. HERO SECONDARY (CAROUSEL)
   ---------------------------------------- */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    color: var(--white);
    min-height: 500px;
    padding-top: 60px;
    padding-bottom: 20px;
}

.hero-carousel .section-title {
    margin-bottom: 30px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--dark-navy);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 500px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    visibility: hidden;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Slide Background Image */
.carousel-slide .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    filter: blur(8px) brightness(0.4);
}

/* Slide Content */
.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.slide-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--brand-orange);
    color: var(--white);
    border: 2px solid var(--brand-orange);
}

.btn-primary:hover {
    background-color: var(--brand-orange-hover);
    border-color: var(--brand-orange-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Trust Badges in Hero */
.trust-badges-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.trust-badges-row .badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.trust-badges-row .badge i {
    color: var(--brand-orange);
    font-size: 1.2rem;
}

/* Carousel Controls */
.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--brand-orange);
    transform: scale(1.2);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--brand-orange);
}

.carousel-prev { left: 30px; }
.carousel-next { right: 30px; }

/* ----------------------------------------
   4. CATEGORY GRID SECTION
   ---------------------------------------- */
.category-grid {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.section-title {
    font-family: var(--font-headline);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-navy);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--brand-orange);
    margin: 15px auto 0;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain to show full product */
    padding: 20px;
    background-color: var(--white);
    transition: transform 0.5s ease;
}

.category-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--dark-navy);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    color: var(--brand-orange);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.category-card:hover .card-link {
    color: var(--brand-orange-hover);
    text-decoration: underline;
}

/* ----------------------------------------
   5. TRUST SECTION
   ---------------------------------------- */
.trust-section {
    background-color: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-column {
    text-align: center;
    padding: 20px;
}

.trust-column i {
    font-size: 3rem;
    color: var(--brand-orange);
    margin-bottom: 16px;
}

.trust-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 8px;
}

.trust-column p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ----------------------------------------
   6. FOOTER STYLES (Consolidated)
   ---------------------------------------- */
.site-footer {
    background-color: #f5f5f5;
    padding: 3rem 0 0;
    margin-top: 0;
    border-top: 5px solid var(--brand-orange);
}

.footer-heading {
    text-align: center;
    margin-bottom: 30px;
}

.footer-heading h2 {
    font-family: var(--font-headline);
    font-size: 2.25rem;
    color: var(--dark-navy);
}

.text-orange {
    color: var(--brand-orange);
}

.footer-trust-bar {
    background: linear-gradient(135deg, #F6A000 0%, #F6A000 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 30px;
    margin: 0 auto 40px;
    max-width: 1200px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.safety-badge h3 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
}

.credit-cards-badge img {
    filter: none;
    border-radius: 50%;
    background: #000;
    padding: 10px;
}

/* Contact Bar */
.footer-contact-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-button {
    background-color: var(--dark-navy);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background-color: var(--brand-orange);
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

.contact-button .icon {
    font-size: 1.2rem;
}

/* Footer styles removed - now using global footer from base.css */

/* ----------------------------------------
   7. RESPONSIVE ADJUSTMENTS
   ---------------------------------------- */
@media (max-width: 992px) {
    .slide-content h2 { font-size: 2rem; }
    .footer-trust-bar { flex-direction: column; text-align: center; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .carousel-track, .hero-carousel { min-height: 400px; height: auto; }
    .carousel-track { height: 400px; }
    
    .slide-content {
        padding: 15px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .slide-content h2 { 
        font-size: 1.5rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .slide-content p { 
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .slide-actions {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .slide-actions .btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .trust-badges-row {
        gap: 12px;
        margin-top: 15px;
    }
    
    .trust-badges-row .badge {
        font-size: 0.75rem;
        gap: 6px;
    }
    
    .trust-badges-row .badge i {
        font-size: 1rem;
    }
    
    .carousel-prev, .carousel-next { width: 40px; height: 40px; font-size: 1.5rem; }
    .grid-container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    
    .trust-grid { grid-template-columns: 1fr; }
    .trust-column { display: flex; align-items: center; text-align: left; gap: 20px; padding: 15px; background: #fff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
    .trust-column i { margin-bottom: 0; font-size: 2rem; }
    .trust-column div { flex: 1; }
}

@media (max-width: 480px) {
    .carousel-track, .hero-carousel { min-height: 450px; }
    .carousel-track { height: 450px; }
    
    .slide-content {
        padding: 12px;
    }
    
    .slide-content h2 { 
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .slide-actions .btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .trust-badges-row {
        gap: 8px;
        justify-content: center;
    }
    
    .trust-badges-row .badge {
        font-size: 0.7rem;
        gap: 4px;
    }
    
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .grid-container { grid-template-columns: 1fr; }
    .category-card { flex-direction: row; align-items: center; }
    .card-image { width: 100px; height: 100px; flex-shrink: 0; }
    .card-content { padding: 15px; text-align: left; border-top: none; } 
    .card-content h3 { font-size: 1.1rem; margin-bottom: 5px; }
    .card-content p { display: none; }
    .card-link { margin-top: auto; }
}
