/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Define Gotham fonts with fallbacks - keep these as backup */
@font-face {
    font-family: 'Gotham';
    src: local('Gotham Book'), local('Gotham-Book'), 
         url('../fonts/Gotham-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: local('Gotham Bold'), local('Gotham-Bold'), 
         url('../fonts/Gotham-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Accessibility skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    font-size: 14px;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER SECTION */
.header-section {
    background-color: #fff;
    padding: 180px 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.main-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 70px;
    color: #50638a;
    line-height: 1.2;
    font-weight: bold;
}

.title-line-1,
.title-line-2 {
    display: block;
}

.title-line-2 {
    margin-top: 10px;
}

/* VIDEO SECTION */
.video-section {
    background-color: #50638a;
    padding: 60px 0;
}

.video-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    /* Remove black background from here */
    background-color: transparent !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Force video element to use poster as background when not playing */
.video-player:not([data-playing="true"]) {
    background-color: transparent;
}

.video-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.video-player {
    width: 100%;
    height: auto;
    min-height: 450px;
    border-radius: 16px;
    display: block;
    outline: none;
    background-color: transparent !important; /* Remove black background */
    background-size: cover; /* Ensure poster covers entire area */
    background-position: center center; /* Center the poster */
}

/* Native video controls styling */
.video-player::-webkit-media-controls-panel {
   /* background: transparent !important;*/
    -webkit-transform: translateZ(0); /* Force hardware acceleration */
    border-radius: 0 0 16px 16px;
    padding: 8px;
}

.video-player::-webkit-media-controls-enclosure {
    background-color: transparent;
    border-radius: 16px;
}

.video-player::-webkit-media-controls-play-button,
.video-player::-webkit-media-controls-volume-slider,
.video-player::-webkit-media-controls-mute-button,
.video-player::-webkit-media-controls-timeline {
    filter: brightness(1.2) contrast(1.2);
}

/* Hide download button for better user experience */
.video-player::-webkit-media-controls-download-button {
    display: none;
}

/* Enhanced styling for native controls */
.video-player::-webkit-media-controls-current-time-display,
.video-player::-webkit-media-controls-time-remaining-display {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.video-player::-webkit-media-controls-volume-slider {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Standard controls visible for mouse users */
.video-player:hover::-webkit-media-controls-panel {
    opacity: 1;
}

/* Video captions styling */
.video-player::cue {
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    padding: 4px 8px;
    border-radius: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Enhanced focus styles for keyboard navigation */
.keyboard-navigation .video-player:focus {
    outline: 3px solid #50638a;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(80, 99, 138, 0.3);
}

/* DISCLAIMER SECTION */
.disclaimer-section {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
}

.disclaimer-title {
    font-family: Arial, sans-serif;
    font-size: 22px;
    color: #50638a;
    margin-bottom: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.disclaimer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.disclaimer-content p {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #000;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.warning-section {
    margin-top: 30px;
    padding-top: 0;
    border-top: none;
}

.warning-title {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #000;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.warning-content p {
    margin-bottom: 15px;
}

.company-info {
    margin-top: 20px;
    padding: 0;
    background-color: transparent;
    border-left: none;
    border-radius: 0;
}

.company-info p {
    margin-bottom: 5px;
    text-align: center;
}

/* FOOTER */
.site-footer {
    display: none;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #50638a;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .header-section {
        border-bottom: 2px solid #000;
    }
    
    .video-section {
        background-color: #2d3a4f;
    }
    
    .video-wrapper {
        border: 2px solid #fff;
    }
    
    .warning-section {
        border-top: 3px solid #000;
    }
    
    .company-info {
        border-left: 6px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Style for video poster */
.video-player[poster] {
    background-color: transparent;
    object-fit: cover; /* This makes the poster fill the container */
    background-size: cover;
    background-position: center;
}

/* Loading state for video */
.video-player.loading {
    background: #1a1a1a url('../images/loading-spinner.svg') center center no-repeat;
    background-size: 50px 50px;
}

/* Add transition for poster fade out when video starts */
.video-player {
    transition: opacity 0.3s ease;
}

.video-player.playing {
    opacity: 1;
}

/* Responsive adjustments for poster */
@media screen and (max-width: 767px) {
    .video-player[poster] {
        min-height: 200px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .video-player[poster] {
        min-height: 350px;
    }
}

@media screen and (min-width: 1024px) {
    .video-player[poster] {
        min-height: 450px;
    }
}

/* Print styles */
@media print {
    .skip-link,
    .video-controls {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: 100%;
    }
    
    .header-section,
    .video-section,
    .disclaimer-section {
        background: none !important;
        color: #000 !important;
    }
}