/* Mesoura Data - Main Stylesheet */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --prussian-blue: #003153;
    --pewter-gray: #BCC6CC;
    --antique-white: #FAEBD7;
    --steel-blue: #4682B4;
    --burnished-copper: #CC7722;
    --light-slate-gray: #778899;
    --sea-foam: #9FE2BF;
    --silver: #C0C0C0;
    --coral: #FF6F61;
    --white: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--antique-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background-color: var(--prussian-blue);
    color: var(--antique-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-top {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-container:hover {
    opacity: 0.8;
}

.logo {
    height: 60px;
    width: auto;
    display: block;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--antique-white);
    letter-spacing: 0.5px;
}

/* Navigation */
nav {
    border-top: 1px solid rgba(188, 198, 204, 0.3);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
}

.nav-links li {
    flex: 1;
}

.nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--antique-white);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-right: 1px solid rgba(188, 198, 204, 0.2);
}

.nav-links li:last-child a {
    border-right: none;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--steel-blue);
    color: var(--white);
}

/* FastDQ tab gets light red hover across all pages */
.nav-links a[href="fastdq.html"]:hover {
    background-color: #E63946;
    color: var(--white);
}

/* FastDQ tab active state */
.nav-links a[href="fastdq.html"].active {
    background-color: #E63946;
    color: var(--white);
}

/* Main Content Area */
main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.content-section {
    background-color: var(--white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-section h1 {
    color: var(--prussian-blue);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--steel-blue);
    padding-bottom: 0.5rem;
}

.content-section h2 {
    color: var(--prussian-blue);
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section h3 {
    color: var(--steel-blue);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.05rem;
}

.content-section ul,
.content-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Buttons and CTAs */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--burnished-copper);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #B36619;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--steel-blue);
}

.btn-secondary:hover {
    background-color: #3A6D99;
}

/* Image Styles */
.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Video Embed */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer Styles */
footer {
    background-color: var(--pewter-gray);
    color: #333;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section h3 {
    color: var(--prussian-blue);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-contact,
.footer-media {
    flex: 1;
    min-width: 250px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--prussian-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--steel-blue);
}

.footer-text {
    color: #555;
    font-size: 0.95rem;
}

/* Mobile Menu Toggle (hidden by default, shown on mobile) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--antique-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .company-name {
        font-size: 1.4rem;
    }

    .logo {
        height: 50px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 500px;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        border-right: none;
        border-bottom: 1px solid rgba(188, 198, 204, 0.2);
        text-align: left;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    main {
        padding: 2rem 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .content-section h1 {
        font-size: 2rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact,
    .footer-media {
        width: 100%;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 1.2rem;
    }

    .logo {
        height: 40px;
    }

    .content-section h1 {
        font-size: 1.75rem;
    }

    .nav-links a {
        padding: 0.875rem 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.highlight {
    background-color: var(--sea-foam);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

/* Animations*/
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeSlideRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-up {
    animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

.animate-fade-left {
    animation: fadeSlideLeft 0.8s ease-out 0.3s both;
}

.animate-fade-right {
    animation: fadeSlideRight 0.8s ease-out 0.3s both;
}
/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxZoomIn 0.3s ease-out;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    background-color: rgba(255, 255, 255, 0.95);
    color: #666;
    padding: 1rem 2rem;
    margin-top: 1rem;
    border-radius: 4px;
    font-style: italic;
    text-align: center;
    max-width: 600px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(70, 130, 180, 0.8);
    border: none;
    color: white;
    font-size: 2.5rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: background-color 0.3s ease;
    line-height: 1;
    font-weight: 300;
}

.lightbox-nav:hover {
    background-color: rgba(70, 130, 180, 1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2.5rem;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav {
        font-size: 2rem;
        padding: 0.75rem 1rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-content img {
        max-height: 70vh;
    }
}