/* BAW 212 France - Main Stylesheet */

/* CSS Variables */
:root {
    --primary-orange: #DF7000;
    --dark-grey: #333;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --brand-red: #8A1538;
    --nav-grey: #918F90;
    --banner-red: #F8080E;
    --banner-yellow: #E9C74C;
    --light-blue: #add8e6;
    --lightbox-bg: rgba(0, 0, 0, 0.95);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background-color: var(--light-blue);
    color: var(--dark-grey);
    line-height: 1.6;
}

/* Navigation with Logo */
nav {
    background-color: var(--nav-grey);
    display: flex;
    align-items: center;
    padding: 8px 15px;
    flex-wrap: nowrap;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-height: 50px;
    overflow-x: auto;
    overflow-y: hidden;
}

.logo-container {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: end;
    line-height: 1;
    color: var(--brand-red);
    font-weight: bold;
    margin-right: auto;
    gap: 0;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    transition: transform 0.2s ease;
}

.logo-container:hover {
    transform: translateY(-1px);
}

.logo-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    align-self: center;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-sub {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding-left: 6px;
    align-self: end;
    padding-bottom: 2px;
    font-weight: 600;
    color: var(--white);
}

nav a {
    color: var(--white);
    text-decoration: none;
    padding: 8px 12px;
    margin: 0 3px;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

nav a:hover,
nav a:focus {
    color: var(--primary-orange);
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

nav a.active {
    background-color: var(--primary-orange);
    color: var(--white);
}

/* Scrolling Text Banner */
.scrolling-text {
    background: var(--banner-red);
    color: var(--banner-yellow);
    padding: 10px;
    overflow: hidden;
    white-space: nowrap;
}

.scrolling-text span {
    display: inline-block;
    padding-left: 100%;
    animation: scroll 15s linear infinite;
    font-weight: bold;
}

@keyframes scroll {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

/* Gallery Section */
.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
}

/* Slideshow Wrapper */
.slideshow-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.slideshow-wrapper:active {
    transform: scale(0.98);
}

.slideshow-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-grey);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.slideshow-title:hover {
    color: var(--primary-orange);
}

/* Gallery Images, Videos, and Slideshows */
.gallery img,
.gallery video,
.slideshow-container {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery img:hover,
.gallery video:hover,
.slideshow-wrapper:hover .slideshow-container {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    overflow: hidden;
}

.slideshow-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    box-shadow: none;
    border-radius: 0;
    transition: opacity 0.8s ease-in-out;
}

.slideshow-container img.active {
    opacity: 1;
}

/* Main Content */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
}

.description-box {
    background: var(--white);
    border: 3px solid var(--primary-orange);
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 1.6;
}

/* Content Sections - Hidden by default */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Back to Main Button */
.back-to-main-btn {
    position: fixed;
    top: 120px;
    left: 20px;
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-main-btn:hover {
    background-color: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.back-to-main-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .back-to-main-btn {
        top: 100px;
        left: 10px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f1f1f1;
    padding: 10px 20px;
    box-sizing: border-box;
    font-size: 14px;
    display: none;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    padding: 5px 0;
}

.cookie-content a {
    color: var(--primary-orange);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.btn-accept {
    background: #28a745;
    color: var(--white);
}

.btn-accept:hover {
    background: #218838;
}

.btn-reject {
    background: #dc3545;
    color: var(--white);
}

.btn-reject:hover {
    background: #c82333;
}

.btn-settings {
    background: #6c757d;
    color: var(--white);
}

.btn-settings:hover {
    background: #5a6268;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
}

.modal-content {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    max-width: 550px;
    width: 90%;
    color: var(--dark-grey);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-top: 0;
    color: var(--brand-red);
}

.cookie-option {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    cursor: pointer;
}

.cookie-option p {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 24px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Cookie Settings Trigger Button */
.btn-cookie-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #333333;
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    font-weight: bold;
    font-size: 13px;
    font-family: sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    display: none;
    transition: background 0.2s ease;
}

.btn-cookie-trigger:hover {
    background: #555555;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 6px 10px;
        gap: 5px;
        min-height: 45px;
    }

    .logo-container {
        margin-right: 8px;
    }

    .logo-main {
        font-size: 1.2rem;
        letter-spacing: 0.3px;
    }

    .logo-sub {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
        padding-left: 4px;
    }

    nav a {
        padding: 6px 10px;
        font-size: 11px;
        margin: 0 2px;
    }

    .gallery img,
    .gallery video,
    .slideshow-container {
        width: 280px;
        height: 180px;
    }

    .description-box {
        max-width: 90%;
        padding: 20px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 5px 8px;
        gap: 4px;
        min-height: 40px;
    }

    .logo-container {
        margin-right: 6px;
    }

    .logo-main {
        font-size: 1rem;
        letter-spacing: 0.2px;
    }

    .logo-sub {
        font-size: 0.5rem;
        letter-spacing: 1.2px;
        padding-left: 3px;
    }

    nav a {
        padding: 5px 8px;
        font-size: 10px;
        margin: 0 1px;
    }

    .gallery img,
    .gallery video,
    .slideshow-container {
        width: 100%;
        max-width: 300px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    nav {
        padding: 4px 6px;
        gap: 3px;
        min-height: 38px;
    }

    .logo-main {
        font-size: 0.9rem;
    }

    .logo-sub {
        font-size: 0.45rem;
        letter-spacing: 1px;
        padding-left: 2px;
    }

    nav a {
        padding: 4px 6px;
        font-size: 9px;
        margin: 0;
    }
}

/* Accessibility Improvements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Lightbox Modal for Image Gallery */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lightbox-bg);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.lightbox-image-container {
    position: relative;
    max-width: 90vw;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

/* Lightbox Navigation Buttons */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-orange);
    color: var(--white);
    border: 2px solid var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-nav:hover {
    background: var(--brand-red);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    z-index: 10002;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Image Counter */
.lightbox-counter {
    color: var(--white);
    font-size: 1rem;
    margin-top: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* Thumbnail Navigation */
.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    max-width: 90vw;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-orange) rgba(255, 255, 255, 0.1);
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 4px;
}

.lightbox-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lightbox-thumbnail:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.lightbox-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-orange);
    box-shadow: 0 0 10px var(--primary-orange);
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .lightbox-nav:hover {
        transform: translateY(-50%) scale(1.1);
    }

    .lightbox-nav:active {
        transform: translateY(-50%) scale(0.95);
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-thumbnail {
        width: 60px;
        height: 45px;
    }

    .lightbox-image {
        max-height: 60vh;
    }
}

/* Print Styles */
@media print {
    .cookie-banner,
    .cookie-modal,
    .btn-cookie-trigger,
    .scrolling-text,
    .lightbox-modal {
        display: none !important;
    }
}

/* Made with Bob */


/* Integrated Sections Styles */
.content-section {
    padding: 60px 20px;
    background: var(--white);
    margin: 20px 0;
    display: none; /* Hidden by default */
}

.content-section.active {
    display: block; /* Show when active */
}

.content-section:nth-child(even) {
    background: var(--light-grey);
}

.content-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    color: var(--brand-red);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* BAW Info Section Styles */
.baw-info-images {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.baw-info-images .image-container {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.baw-info-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.specs-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.specs-column {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: left;
}

.specs-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--dark-grey);
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.specs-table {
    border-collapse: collapse;
    font-size: 0.9em;
    width: 100%;
}

.specs-table td {
    padding: 8px 10px 8px 0;
    border: none;
}

.specs-table .label {
    font-weight: bold;
    color: #555;
    width: 50%;
}

.specs-table .value {
    color: #000;
}

/* Card Content Styles */
.card-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

.subtitle-text {
    font-weight: bold;
    color: #0056b3;
    font-size: 1.1em;
    margin-bottom: 20px;
    display: block;
}

.benefits-list {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
    margin: 20px 0;
}

.benefits-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.benefits-list li::before {
    content: '•';
    color: #0056b3;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

.cta-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.email-link,
.cta-button {
    display: inline-block;
    margin-top: 15px;
    padding: 15px 30px;
    background-color: #0056b3;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.email-link:hover,
.cta-button:hover {
    background-color: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-text {
    display: block;
    margin-top: 20px;
    font-style: italic;
    color: #666;
    font-size: 0.9em;
}

/* Contact Section Styles */
.contact-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-group {
    margin-bottom: 30px;
}

.group-title {
    display: block;
    font-weight: bold;
    color: #555;
    margin-bottom: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--dark-grey);
}

.info-list li {
    margin: 8px 0;
    line-height: 1.6;
}

.contact-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #003d7a;
    text-decoration: underline;
}

.icon {
    margin-right: 8px;
    opacity: 0.7;
}

/* Smooth Scrolling for Anchor Links */
html {
    scroll-behavior: smooth;
}

/* Section Anchor Offset (to account for fixed header if any) */
.content-section {
    scroll-margin-top: 20px;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .baw-info-images {
        flex-direction: column;
        align-items: center;
    }

    .specs-container {
        flex-direction: column;
    }

    .card-content,
    .contact-card {
        padding: 30px 20px;
    }

    .benefits-list {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .specs-table {
        font-size: 0.85em;
    }

    .card-content,
    .contact-card {
        padding: 20px 15px;
    }
}

/* Footer Bar Styles */
.footer-bar {
    background-color: var(--nav-grey);
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-bar a {
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.footer-bar a:hover,
.footer-bar a:focus {
    color: var(--primary-orange);
    text-decoration: underline;
}

.footer-separator {
    color: var(--white);
    font-size: 13px;
    opacity: 0.5;
}

@media (max-width: 480px) {
    .footer-bar {
        padding: 12px 15px;
    }
    
    .footer-content {
        gap: 10px;
    }
    
    .footer-bar a {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .footer-separator {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .footer-bar {
        padding: 10px 12px;
    }
    
    .footer-bar a {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .footer-separator {
        font-size: 10px;
    }
}
