/* ============================================================================
   SECTIONS CSS - Combined Tier Spec & Buildsheet Specs
   ============================================================================
   Merged from tier-spec.css and buildsheet-specs.css to eliminate duplicates
   ============================================================================ */

/* ============================================================================
   SHARED CONTAINER AND GRID SYSTEM
   ============================================================================ */

.container {
    position: relative;
    z-index: 1;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .container {
        max-width: 750px;
        width: 100%;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 970px;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
        width: 100%;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    max-width: 100%;
    overflow-x: hidden;
}

.col-xs-12,
.col-sm-5,
.col-sm-7,
.col-sm-12 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Bootstrap-like responsive columns */
@media (min-width: 768px) {
    .col-sm-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
    
    .col-sm-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
    
    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.img-responsive {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ============================================================================
   TIER SPEC SECTION
   ============================================================================ */

.tier-spec {
    background: #0d0d0d;
    color: #fff;
    font-size: 20px;
    padding: 48px 0 24px;
    position: relative;
}

.tier-spec .lines {
    position: absolute;
    right: 0;
    top: 0;
    width: 50vw;
    height: 50vw;
    z-index: 0;
}

.tier-spec .line1 {
    background: var(--ford-red);
    clip-path: polygon(0 0, 5vw 0, 100% calc(100% - 5vw), 100% 100%);
    position: absolute;
    right: 0;
    top: 0;
    width: 50vw;
    height: 50vw;
}

.tier-spec .line2 {
    background: var(--ford-red);
    clip-path: polygon(0 0, 5vw 0, 100% calc(100% - 5vw), 100% 100%);
    position: absolute;
    right: 0;
    top: 0;
    width: 43vw;
    height: 43vw;
}

.tier-spec h3 {
    color: #fff;
    font-family: 'Fjalla One', sans-serif;
    font-size: 42px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 30px;
}

.tier-spec .img-responsive {
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
}

/* Buildsheet Icons Section */
.buildsheet-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.buildsheet-icons .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(25% - 15px);
    background: #1a1d23;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    color: #fff;
}

.buildsheet-icons .item img {
    width: 80px;
    margin-bottom: 15px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(13%) sepia(86%) saturate(7482%) hue-rotate(358deg) brightness(106%) contrast(114%);
}

.buildsheet-icons .item i {
    font-size: 60px;
    color: var(--ford-red);
    margin-bottom: 15px;
}

.buildsheet-icons .item span {
    font-family: 'Fjalla One', sans-serif;
    font-size: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Buildsheet Images Section */
.buildsheet-images-section {
    margin-top: 60px;
    padding-bottom: 40px;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.buildsheet-images-section h3 {
    text-align: center;
    margin-bottom: 40px;
}

.buildsheet-images-section .col-xs-12 {
    padding-bottom: 0;
    overflow: visible;
    max-width: 100%;
}

#buildsheet-images {
    position: relative;
    overflow: visible;
    margin: 0;
    max-width: 100%;
}

.buildsheet-images {
    display: flex;
    gap: 20px;
    padding-bottom: 10px;
    padding-left: 0;
    padding-right: 0;
}

.buildsheet-images .item {
    flex: 0 0 300px;
    text-align: center;
}

.buildsheet-images .item:last-child {
    margin-right: 20px; /* Add space after last item */
}

/* Add padding after content to ensure last item is scrollable */
.buildsheet-images::after {
    content: '';
    display: block;
    min-width: 1px;
    height: 1px;
    padding-right: 20px;
}

.buildsheet-images .item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.buildsheet-images .item p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #fff;
    margin: 0;
    padding: 0 10px;
    text-transform: uppercase;
    line-height: 1.4;
}

/* ============================================================================
   BUILDSHEET SPECS SECTION
   ============================================================================ */

.buildsheet-specs-section {
    background: #0d0d0d;
    padding: var(--spacing-sm) 0;
    position: relative;
    overflow: hidden;
}

.buildsheet-specs-section .line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    top: 0;
}

.buildsheet-specs-section .line:first-child {
    left: 20%;
}

.buildsheet-specs-section .line:last-child {
    right: 20%;
}

/* Car Wrapper */
.car-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xl) 0;
}

.car-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

/* Sheets/Specs Content */
.sheets {
    color: var(--white);
    padding: var(--spacing-xl) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sheets > p {
    font-family: var(--font-family-body);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: var(--spacing-xl);
    letter-spacing: 2px;
}

.sheets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sheets .spec-item {
    display: flex;
    margin-bottom: var(--spacing-md);
    align-items: flex-start;
}

.sheets .spec-category {
    font-family: var(--font-family-body);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    color: var(--ford-red);
    min-width: 140px;
    margin-right: var(--spacing-lg);
    letter-spacing: 1px;
}

.sheets .spec-details {
    font-family: var(--font-family-body);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
    font-weight: 400;
}

/* Partners/Brand Logos */
.partners {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    align-items: center;
    justify-content: flex-end;
    margin-top: var(--spacing-xl);
    max-width: 500px;
    margin-left: auto;
}

.partners img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: var(--transition-base);
    filter: brightness(0) invert(1);
}

.partners img:hover {
    opacity: 1;
}

/* Separator */
.sep-gray {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    margin: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
}

/* Mobile/Desktop visibility */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

/* Buildsheet Specs Item */
.buildsheet-specs-item1 {
}

/* Bottom Section */
.buildsheet-bottom-section {
    margin-top: var(--spacing-4xl);
    padding: var(--spacing-2xl) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-2xl);
}

.buildsheet-bottom-section h4,
.buildsheet-bottom-section h3 {
    color: var(--primary-orange);
    margin: 0;
}

.buildsheet-bottom-section .countdown-wrapper {
    justify-content: flex-end;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

/* Desktop specific styles */
@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
    
    .sheets > p {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .sheets .spec-category {
        font-size: var(--font-size-sm);
    }
    
    .sheets .spec-details {
        font-size: var(--font-size-sm);
    }
    
    .car-image {
        width: 80%;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .tier-spec h3 {
        text-align: center;
    }
    
    .buildsheet-icons .item {
        width: 100%;
    }
    
    .buildsheet-images .item {
        flex: 0 0 280px;
    }
    
    .buildsheet-specs-item1.row {
        justify-content: center;
        align-items: center;
    }
    
    .buildsheet-specs-item1 .car-wrapper,
    .buildsheet-specs-item1 .sheets {
        max-width: 550px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .buildsheet-specs-section .line {
        display: none;
    }
    
    .col-sm-5,
    .col-sm-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .sheets {
        padding: var(--spacing-xl);
    }
    
    .sheets .spec-item {
        flex-direction: column;
        margin-bottom: var(--spacing-lg);
    }
    
    .sheets .spec-category {
        margin-bottom: var(--spacing-xs);
        min-width: auto;
    }
    
    .partners {
        margin-top: var(--spacing-2xl);
        max-width: 100%;
        justify-content: center;
        margin-left: 0;
    }
    
    .buildsheet-bottom-section {
        text-align: center;
    }
    
    .buildsheet-bottom-section > div {
        width: 100%;
    }
    
    .buildsheet-bottom-section .countdown-wrapper {
        justify-content: center;
    }
}