/*
Theme Name: The7 Child
Theme URI: https://funwork-io.local
Description: Child theme for The7
Author: Funwork
Author URI: https://funwork-io.local
Template: dt-the7
Version: 1.0.0
Text Domain: dt-the7-child
*/

:root {
    --primary-blue: #0f3a68;
    --secondary-blue: #2563eb;
    --accent-orange: #f97316;
    --bg-light: #f3f4f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

/* Re-implementing The7 Shortcode CSS */
.dt-fancy-title {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: bold;
}
.dt-fancy-title.title-center { justify-content: center; }
.dt-fancy-title.title-left { justify-content: flex-start; }
.dt-fancy-title.title-right { justify-content: flex-end; }
.dt-fancy-title.h1-size { font-size: 48px; }
.dt-fancy-title.h2-size { font-size: 36px; }
.dt-fancy-title.h3-size { font-size: 28px; }
.dt-fancy-title.h4-size { font-size: 22px; }
.dt-fancy-title.h5-size { font-size: 18px; }
.dt-fancy-title.h6-size { font-size: 16px; }
.dt-fancy-title span { padding: 0 20px; }
.dt-fancy-title.accent-title-color { color: var(--primary-blue); }

.shortcode-teaser {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}
.shortcode-teaser:hover { transform: translateY(-5px); }
.shortcode-teaser-img { margin-bottom: 20px; }
.shortcode-teaser-img img { width: 100%; height: auto; border-radius: 4px; }
.shortcode-teaser-content h4 { margin-top: 0; color: var(--primary-blue); }

/* Floating Airplane Animation for Hero Section (Background Style) */
@keyframes floatAirplane {
    0% { transform: translate(var(--mouse-x, 0), var(--mouse-y, 0)) rotate(0deg); }
    50% { transform: translate(calc(var(--mouse-x, 0) - 20px), calc(var(--mouse-y, 0) - 30px)) rotate(-2deg); }
    100% { transform: translate(var(--mouse-x, 0), var(--mouse-y, 0)) rotate(0deg); }
}

.logistics-hero-row {
    position: relative;
    overflow: hidden !important;
}

.logistics-hero-row::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 300px; 
    top: 20%;
    right: 10%;
    z-index: 1;
    pointer-events: none;
    /* background-image: url('/wp-content/uploads/2025/05/airplane.png'); */
    background-size: contain;
    background-repeat: no-repeat;
    animation: floatAirplane 6s ease-in-out infinite;
    opacity: 0.9;
    filter: drop-shadow(5px 15px 15px rgba(0,0,0,0.3));
}

@media (max-width: 768px) {
    .logistics-hero-row::after {
        width: 200px;
        height: 150px;
        top: 10%;
        right: 5%;
    }
}

/* Additional Styles from lotus-home.html */
.core-box {
    padding: 20px;
}
.core-box h3 { color: var(--primary-blue); font-size: 18px; text-align: center; }
.core-box ul { padding-left: 20px; }

.service-list { list-style: none; padding: 0; }
.service-list li { margin-bottom: 15px; }
.service-list strong { color: var(--primary-blue); }

.footer-logos {
    background: white;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 30px;
}
/* Contact Section Styling */
.contact-section-wrapper {
    background-color: #0f3a68 !important;
    color: #ffffff !important;
    padding: 80px 0 !important;
}

.contact-section-wrapper h2, 
.contact-section-wrapper h3, 
.contact-section-wrapper strong {
    color: #ffffff !important;
}

.contact-section-wrapper .vc_column_text {
    color: #ffffff !important;
}

/* Form Styling for Dark Background */
.contact-section-wrapper .wpcf7-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-section-wrapper .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

.contact-section-wrapper input[type="text"],
.contact-section-wrapper input[type="email"],
.contact-section-wrapper input[type="tel"],
.contact-section-wrapper textarea {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    padding: 12px 15px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
}

.contact-section-wrapper input:focus,
.contact-section-wrapper textarea:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--accent-orange) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2) !important;
}

.contact-section-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* Submit Button */
.contact-section-wrapper .wpcf7-submit {
    width: 100%;
    background-color: var(--accent-orange) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 15px 30px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
}

.contact-section-wrapper .wpcf7-submit:hover {
    background-color: #ea580c !important; /* Darker orange */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
}

/* Form Messages */
.contact-section-wrapper .wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 15px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    border: 2px solid transparent !important;
    color: #ffffff !important;
}

.contact-section-wrapper .wpcf7-mail-sent-ok {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: #22c55e !important;
}

.contact-section-wrapper .wpcf7-validation-errors {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
}

/* Contact Info Layout */
.contact-info-box {
    padding-right: 40px;
}

.contact-info-box p {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info-box strong {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

/* Modal / Popup Styles */
.dt-custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dt-custom-modal.is-open {
    display: flex;
}

.dt-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.dt-modal-container {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dt-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dt-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--primary-blue);
}

.dt-modal-close {
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
}

.dt-modal-close:hover {
    color: var(--accent-orange);
}

.dt-modal-content {
    padding: 30px;
    overflow-y: auto;
    color: var(--text-dark);
    line-height: 1.8;
}

.dt-modal-trigger {
    cursor: pointer;
    text-decoration: underline !important;
}

/* Alternating Services Element */
.dt-alternating-services {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dt-alternating-item {
    display: flex;
    min-height: 350px;
}

.dt-alternating-item:nth-child(even) {
    flex-direction: row-reverse;
}

.dt-alternating-content {
    flex: 1;
    background: #173A69; /* Primary Blue from your diagram */
    color: #fff;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dt-alternating-content-inner {
    padding: 0 60px;
}

.dt-alternating-content h3 {
    margin-top: 0;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

.dt-alternating-content p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.dt-alternating-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
}

@media (max-width: 768px) {
    .dt-alternating-item, 
    .dt-alternating-item:nth-child(even) {
        flex-direction: column;
    }
    .dt-alternating-content {
        padding: 40px 20px;
    }
    .dt-alternating-image {
        height: 250px;
    }
}

/* Sticky Header for WP Bakery Content */
.custom-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent; /* Initial transparent state */
    z-index: 999999; /* Increased to avoid being hidden */
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-sticky-header.is-sticky {
    background: #0f3a68; /* Blue background on scroll */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Remove spacer or set to 0 to allow header to overlap first section */
.header-spacer {
    height: 0; 
    display: none;
}

.custom-sticky-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.custom-sticky-header .logo {
    display: flex;
    align-items: center;
    color: #fff; /* Logo text color */
}

.custom-sticky-header .header-logo-img {
    max-height: 75px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1); /* Ensure logo is white when on transparent/blue */
}

.custom-sticky-header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}

.custom-sticky-header nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8); /* Off-white for menu items */
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.custom-sticky-header nav ul li a:hover,
.custom-sticky-header nav ul li a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.custom-sticky-header.is-sticky nav ul li a {
    color: #fff;
}

.core-strengths .vc_column-inner {
    justify-content: normal!important;
}

.funwork-sticky-menu p {
    display: none;
}

.unset-min-height .wpb_column {
    min-height: unset;
}

@media (max-width: 768px) {
    .custom-sticky-header .header-inner {
        flex-direction: column;
        gap: 10px;
    }
    .custom-sticky-header nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Offset for section scrolling */
[id] {
    scroll-margin-top: 80px;
}
