/* Technical Specifications Styling */

.spec-category {
    margin-bottom: 50px;
}

.tech-large {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Urbanist', sans-serif;
    margin-bottom: 64px;
    color: var(--gray-text);
}

.spec-category h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d2d2d7;
    font-family: 'Urbanist', sans-serif;
    
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    font-family: 'Urbanist', sans-serif;
}

.spec-table th,
.spec-table td {
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f7;
    vertical-align: top;
    font-size: 1rem;
    line-height: 1.5;
}

/* Enhanced Story Tab Typography */
#hero .section_heading {
    font-size: 3rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 30px;
    color: #000;
}

#hero .top-text {
    font-size: 1.3rem;
    line-height: 1.7;
    text-align: left;
    max-width: 960px;
    margin: 0 0 40px 0;
    color: #333;
}

.spec-table th {
    width: 35%;
    font-weight: 600;
    text-align: left;
    
}

.spec-table td {
    font-weight: 400;
    color: #1d1d1f;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

/* Technical hero image styling */
.tech-hero-image {
    text-align: center;
    margin: 40px 0;
}

.tech-hero-image img {
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
}

/* Tab Navigation */
.tech-tabs-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: rgba(246, 246, 253, 0.4); /* translucent white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Elevate above header (z-index 100) and other elements */
    z-index: 150;
    padding: 12px 0;
    width: 100%;
    
    margin-left: auto;
    margin-right: auto;
    
}

/* Dynamic background color based on data-color */
body.color-light .tech-tabs-sticky {
    background: rgba(246, 246, 253, 0.4);
    
}

body.color-dark .tech-tabs-sticky,
body.color-black .tech-tabs-sticky {
    background: rgba(0, 0, 0, 0.4);
   
}

/* Tab text colors for different backgrounds */
body.color-dark .tech-tab,
body.color-black .tech-tab {
    color: #f6f6fd;
}

body.color-dark .tech-tab.active,
body.color-black .tech-tab.active {
    color: #f6f6fd;
   
}

body.color-light .tech-tab {
    color: #1d1d1f;
}

body.color-light .tech-tab.active {
    color: #1d1d1f;
    border-bottom-color: #1d1d1f;
}

.tech-tabs {
    display: flex;
    justify-content: left;
    margin: 0;
    position: relative; /* create its own stacking context */
    z-index: 200; /* floats above header/nav overlays */
}

.tech-tab {
    padding: 16px 24px;
    margin: 0 8px;
    background: none;
    border: none;
    font-family: 'Urbanist', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    z-index: 201; /* ensure buttons stay on top */
}

.tech-tab.active {
    color: #1d1d1f;
    border-bottom-color: #000;
}

.tech-tab:hover {
    color: #1d1d1f;
}

/* Hero Section */
.tech-hero-content {
    text-align: left;
    max-width: 960px;
    margin: 0 0 0px 0;
}

.tech-hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Urbanist', sans-serif;
}

.tech-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #6e6e73;
    margin-bottom: 16px;
    font-family: 'Urbanist', sans-serif;
}

.tech-hero-description {
    font-size: 3rem;
    line-height: 1.2;
    color: #818191;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    letter-spacing: -0.8pt;
 
}

/* Technical images grid */
.tech-images-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 300px 200px;
    gap: 20px;
    margin: 60px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tech-grid-item {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.tech-grid-item.large {
    grid-row: 1 / 3;
}

.tech-grid-item img,
.tech-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tech-grid-item:hover img,
.tech-grid-item:hover .tech-placeholder {
    transform: scale(1.02);
}

/* Placeholder styling */
.tech-placeholder {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e6e73;
    font-family: 'Urbanist', sans-serif;
    font-size: 0.9rem;
    text-align: center;
}

/* Tab Content */
.tech-tab-content {
    display: none;
}

.tech-tab-content.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tech-tabs {
        justify-content: center;
    }
    
    .tech-images-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 250px 200px 200px;
        max-width: 960px;
        padding: 0 20px;
    }
    
    .tech-grid-item.large {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
    }
}

@media (max-width: 768px) {
    .spec-table th,
    .spec-table td {
        padding: 12px 0;
        font-size: 0.9rem;
    }
    
    .spec-table th {
        width: 40%;
    }
    
    .spec-category h3 {
        font-size: 1rem;
    }
    
    .tech-hero-title {
        font-size: 2.5rem;
    }
    
    .tech-hero-subtitle {
        font-size: 1.3rem;
    }
    
    .tech-hero-description {
        font-size: 1rem;
    }
    
    .tech-tabs-sticky {
        padding: 15px 0;
    }
    
    .tech-tabs {
        flex-wrap: wrap;
        margin: 0;
        justify-content: center;
    }
    
    .tech-tab {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .tech-images-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 200px);
        gap: 15px;
        margin: 40px 0;
        padding: 0 15px;
    }
    
    .tech-grid-item.large {
        grid-row: auto;
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .spec-table {
        font-size: 0.85rem;
    }
    
    .spec-table th,
    .spec-table td {
        padding: 10px 0;
        font-size: 0.85rem;
    }
    
    .tech-hero-title {
        font-size: 2rem;
    }
    
    .tech-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .tech-hero-description {
        font-size: 0.95rem;
    }
    
    .tech-images-grid {
        grid-template-rows: repeat(4, 180px);
    }
}

/* Specs Highlight Section */
.tech-specs-highlight {
    padding: 60px 0;
    background: #f8f9fa;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 60px 0;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.spec-highlight {
    text-align: left;
    padding: 0;
}

.spec-highlight .stat-divider {
    width: 100%;
    height: 1px;
    background-color: #000;
    margin-bottom: 20px;
}

.spec-number {
    font-size: 5rem;
    font-weight: 700;
    color: #000;
    line-height: 1;
    margin-bottom: 15px;
    font-family: 'Urbanist', sans-serif;
}

.spec-label {
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    text-transform: lowercase;
}

.spec-detail {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Specs Hero Image */
.specs-hero-image {
    text-align: center;
    margin: 60px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.specs-hero-image img {
    width: 100%;
    height: auto;
}

/* Story Content Styles */
.narrative-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #333;
    margin: 50px 0;
    font-style: italic;
    text-align: left;
    max-width: 900px;
}

.story-highlight {
    margin: 60px 0;
    padding: 0;
    background: none;
    border: none;
    max-width: 900px;
}

.story-highlight h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
    text-align: left;
}

.story-highlight p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
    text-align: left;
}

/* Apple-style Story Sections with Lightbox Images */
.story-section {
    margin: 120px 0;
    max-width: 1400px;
    text-align: left;
}

.story-content {
    margin-bottom: 60px;
}

.story-content p {
    font-size: 2.1rem;
    line-height: 1.3;
    color: var(--gray-text);
    margin: 0;
    max-width: 900px;
    font-weight: 500;
}

.story-content p strong {
    color: #000;
    font-weight: 500;
}

.story-image-lightbox {
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-image-lightbox:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.story-image-lightbox img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Inline Stats */
.inline-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 80px 0 40px 0;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.inline-stats.three-stats {
    grid-template-columns: 1fr 1fr 1fr;
}

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

.stat-divider {
    width: 100%;
    height: 1px;
    background-color: #000;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 5rem;
    font-weight: 700;
    color: #000;
    line-height: 1;
    margin-bottom: 15px;
    font-family: 'Urbanist', sans-serif;
}

.stat-label {
    font-size: 1.4rem;
    color: #333;
    font-weight: 500;
}

/* Image Slideshow Container */
.image-slideshow-container {
    margin: 120px 0;
    max-width: 1400px;
    
    margin-left: auto;
    margin-right: auto;
}

.slideshow-lightbox {
    position: relative;
}

.slideshow-images {
    position: relative;
    overflow: hidden;
}

.slide {
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide:not(.active) {
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slideshow-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slide-btn {
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-btn:hover {
    background: rgba(0,0,0,0.9);
}

.slide-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(0,0,0,0.7);
}

.slide-caption {
    text-align: center;
    margin-top: 15px;
}

.caption-text {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.story-highlight-final {
    margin: 80px 0 60px 0;
    padding: 60px 0;
   
    max-width: 1400px;
   
}

.story-highlight-final h3 {
    font-size: 2rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: #000;
    text-align: left;
}

.story-highlight-final h3:first-child {
    margin-top: 0;
}

.story-highlight-final p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #444;
    margin: 0 0 40px 0;
    text-align: left;
}

.two-column-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
}

.two-column-content p {
    margin: 0;
}

/* Order Content Styles */
.order-content {
    max-width: 1000px;
    margin: 0 auto;
}

.order-intro {
    text-align: center;
    margin-bottom: 50px;
}

.order-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.order-package {
    background: transparent;
    border-radius: 12px;
    padding: 40px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.order-package:hover {
    border-color: #000;
}

.order-package h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #000;
}

.package-includes h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.package-includes ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.package-includes li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
}

.package-includes li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.package-price {
    border-top: 2px solid #e9ecef;
    padding-top: 20px;
}

.package-price p {
    margin: 5px 0;
}

.price-note {
    font-size: 0.9rem;
    color: #666;
}

.order-contact {
    background: #000;
    color: #fff;
    padding: 50px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.order-contact h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.order-contact p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #ccc;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.contact-method h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #fff;
}

.contact-method p {
    font-size: 0.95rem;
    margin: 0;
    color: #ccc;
}

.contact-method a {
    color: #fff;
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.order-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.order-note p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
}

/* Additional Responsive Styles for New Content */
@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        margin: 40px 0;
    }
    
    .spec-number {
        font-size: 3.5rem;
    }
    
    .spec-label {
        font-size: 1.2rem;
    }
    
    .story-highlight {
        margin: 40px 0;
    }
    
    .story-highlight h3 {
        font-size: 1.6rem;
    }
    
    .story-highlight p {
        font-size: 1.1rem;
    }
    
    .narrative-text {
        font-size: 1.2rem;
        margin: 40px 0;
    }
    
    #hero .section_heading {
        font-size: 2.2rem;
    }
    
    #hero .top-text {
        font-size: 1.2rem;
    }
    
    .story-section {
        margin: 80px 0;
    }
    
    .story-content {
        margin-bottom: 40px;
    }
    
    .story-content h3 {
        font-size: 2.5rem;
    }
    
    .story-content p {
        font-size: 1.3rem;
    }
    
    .story-image-lightbox {
        padding: 20px;
        border-radius: 15px;
    }
    
    .image-caption {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .story-highlight-final {
        margin: 60px 0 40px 0;
        padding: 40px 0;
    }
    
    .story-highlight-final h3 {
        font-size: 1.6rem;
    }
    
    .story-highlight-final p {
        font-size: 1.1rem;
    }
    
    .order-options {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .order-package {
        padding: 25px;
    }
    
    .order-contact {
        padding: 30px 20px;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .inline-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .inline-stats.three-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-divider {
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .stat-label {
        font-size: 1.2rem;
    }
    
    .image-slideshow-container {
        margin: 60px 0;
    }
    

    
    .slide-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .slideshow-controls {
        padding: 0 10px;
    }
}

/* Fixed version of tabs (activated via JS) */
.tech-tabs-sticky.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000; /* Highest priority */
}

/* Ensure default state is not sticky when we rely on JS scrolling */
.tech-tabs-sticky:not(.is-fixed) {
    position: relative !important;
    top: auto !important;
}