/* * Theme Name: Pylon Child 
* Description: Adapted for Flask - Zappest East Africa
* Updated: May 2026
*/

/* --- Navigation & Header --- */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #002e5b; /* Professional Dark Blue */
    padding: 10px 5%; /* Adjusted padding for logo height */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 80px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Logo Image Styling */
.site-logo {
    height: 65px; /* Optimal height for the nav bar */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 13px; 
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
    white-space: nowrap; /* Prevents links from breaking into two lines */
}

.nav-links a:hover, .nav-links a.active {
    color: #ff4d4d; /* High-visibility brand red */
}

/* --- Homepage Background Video Hero --- */
.video-hero {
    position: relative;
    width: 100%;
    height: 75vh; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000; /* Fallback background container canvas */
}

/* Forces the background video to cover the section entirely without distorting aspect ratios */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Dark gradient overlay layer to guarantee white text meets high accessibility contrast guidelines */
.video-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.65));
    z-index: 2;
}

/* Positions foreground text layouts cleanly on top of background media elements */
.video-hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
}

.max-w-700 {
    max-width: 700px;
}

/* --- Slider Core Logic --- */
.main-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 85vh; 
    background: #000;
}

.slider-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide-item {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none; /* Controlled by JS */
    align-items: center;
    color: #ffffff;
    transition: opacity 0.8s ease-in-out;
}

/* --- Content Styling --- */
.slider-content {
    background: rgba(0, 0, 0, 0.65);
    padding: 50px;
    border-left: 8px solid #8b0000;
    max-width: 700px;
    margin-left: 8%;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.sub-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff; 
    display: block;
    margin-bottom: 15px;
    font-weight: 300;
}

h2 {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 25px;
}

/* --- Services Classification Layout --- */
.services-container {
    padding: 80px 5%;
    background-color: #f8f9fa;
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* * FIXED UNFORMATTED / CROP BEHAVIOR FOR IMAGES AND VIDEOS:
* Re-configured to let assets render native frames completely without 
* cutting off dimensions or side-cropping the vertical clips.
*/
.service-card img,
.service-card video,
.service-card-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    background-color: #fcfcfc; /* Provides a clear background canvas framing for differing dimensions */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* --- FAQ & News Styling --- */
.faq-item {
    margin-bottom: 15px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #8b0000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* --- Buttons --- */
.btn-primary {
    background-color: #8b0000;
    color: #ffffff !important;
    padding: 16px 35px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: 0.4s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #002e5b;
    transform: scale(1.05);
}

/* Responsive Fixes */
@media (max-width: 992px) {
    .nav-links a { margin-left: 10px; font-size: 11px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } 
    h2 { font-size: 32px; }
    .slider-content { margin: 0 5%; padding: 30px; }
    .site-logo { height: 50px; }
    .video-hero { height: 60vh; } /* Optimizes video presentation on small smartphone viewports */
}