/* ProStruct Builder Custom Theme */
:root {
  --navy: #000080;
  --gold: #FFD700;
  --white: #ffffff;
}

/* Backgrounds */
body, #wrapper, .bg-color, header {
    background-color: var(--navy) !important;
    color: var(--white) !important;
}

/* Headers and Text */
h1, h2, h3, h4, h5, h6, p, span, div, a {
    color: var(--white);
}

.id-color, a:hover, h1.id-color, h2.id-color, h3.id-color, h4.id-color, h5.id-color, h6.id-color, 
.text-slider .text-item, .tiny-border {
    color: var(--gold) !important;
}

.tiny-border {
    background-color: var(--gold) !important;
}

/* Buttons */
.btn-line-black, .btn-line-white {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    background-color: transparent !important;
}

.btn-line-black:hover, .btn-line-white:hover {
    background-color: var(--gold) !important;
    color: var(--navy) !important;
}

.btn, .btn-primary {
    background-color: var(--gold) !important;
    color: var(--navy) !important;
    border: none;
}

/* Footer & specific blocks */
footer {
    background-color: #000033 !important;
    border-top: 3px solid var(--gold);
    color: var(--white);
}

.feature-box-small-icon .icon {
    color: var(--gold) !important;
}

/* Gallery Fixes */
.item .picframe {
    min-height: 200px; /* Fallback height before images load */
    background: #222;
    overflow: hidden;
}

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

/* Ensure visibility if WOW.js is slow */
.wow {
    visibility: visible !important;
}

/* Reveal body if jpreLoader hangs (emergency fallback) */
body {
    display: block !important;
}

/* --- Homepage Layout Coordination --- */

/* 1. Video and Full-Height Fixes */
.full-height {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden;
}

.de-video-container {
    width: 100%;
    height: 100% !important;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.de-video-container video {
    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: 0;
}

.de-video-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.de-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* 2. Section Background Video (Our Process) */
#section-steps {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9; /* Match video aspect ratio */
    min-height: 550px; /* Ensure content fits on mobile */
    display: flex;
    align-items: center;
}

#section-steps .video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#section-steps .color-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 51, 0.6); /* Adjusted tint for better visibility */
    display: flex;
    align-items: center;
}

/* 3. Portfolio Gallery Alignment */
#gallery .item {
    padding: 10px;
}

.picframe {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Ensure consistent aspect ratio across items */
    background: #111;
    overflow: hidden;
    border-radius: 4px;
}

.picframe img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Images fill the container without distortion */
    transition: transform 0.5s ease;
}

.picframe:hover img {
    transform: scale(1.05);
}

/* 4. Testimonial Alignment */
.testimonial-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.testimonial-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.testimonial-img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial-content span {
    display: block;
    font-weight: bold;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 12px;
}
