/**
 * EWT Partners - Custom Styles
 * Additional styles to complement Tailwind CSS
 */

/* Custom Logo Dimensions */
.custom-logo-wrapper {
    display: flex;
    align-items: center;
}

.custom-logo {
    height: 40px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain;
}

/* Navigation Link Styles */
.nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 1280px) {
    .nav-link {
        font-size: 1rem !important;
    }
}

.nav-link:hover {
    color: #F5A623 !important;
}

/* Active Navigation Link */
.current-menu-item>.nav-link,
.current_page_item>.nav-link {
    color: #1E6FFF !important;
    border-bottom: 2px solid #1E6FFF;
    padding-bottom: 2px;
}

.current-menu-item>.nav-link:hover,
.current_page_item>.nav-link:hover {
    color: #F5A623 !important;
    border-bottom-color: #F5A623;
}

/* Remove default WordPress menu styles */
.flex.space-x-8.items-center,
ul.flex.space-x-8.items-center,
.flex.space-x-10.items-center,
ul.flex.space-x-10.items-center,
ul.flex.gap-x-8,
.flex.gap-x-8 {
    list-style: none !important;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.flex.space-x-8.items-center li,
ul.flex.space-x-8.items-center li,
.flex.space-x-10.items-center li,
ul.flex.space-x-10.items-center li,
ul.flex.gap-x-8 li,
.flex.gap-x-8 li {
    list-style: none !important;
    margin: 0;
    padding: 0 1rem;
}

.flex.space-x-8.items-center li a,
ul.flex.space-x-8.items-center li a,
.flex.space-x-10.items-center li a,
ul.flex.space-x-10.items-center li a,
.flex.gap-x-6 li a,
ul.flex.gap-x-6 li a,
.flex.gap-x-8 li a,
ul.flex.gap-x-8 li a,
.flex.gap-x-3 li a,
ul.flex.gap-x-3 li a,
.flex.gap-x-4 li a,
ul.flex.gap-x-4 li a {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    transition: color 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) and (max-width: 1023px) {

    .flex.gap-x-3 li a,
    ul.flex.gap-x-3 li a,
    .flex.gap-x-4 li a,
    ul.flex.gap-x-4 li a {
        font-size: 0.75rem !important;
    }
}

@media (min-width: 1280px) {

    .flex.space-x-8.items-center li a,
    ul.flex.space-x-8.items-center li a,
    .flex.space-x-10.items-center li a,
    ul.flex.space-x-10.items-center li a,
    .flex.gap-x-6 li a,
    ul.flex.gap-x-6 li a,
    .flex.gap-x-8 li a,
    ul.flex.gap-x-8 li a {
        font-size: 1rem !important;
    }

    .flex.gap-x-3 li a,
    ul.flex.gap-x-3 li a,
    .flex.gap-x-4 li a,
    ul.flex.gap-x-4 li a {
        font-size: 0.875rem !important;
    }
}

.flex.space-x-8.items-center li a:hover,
ul.flex.space-x-8.items-center li a:hover,
.flex.space-x-10.items-center li a:hover,
ul.flex.space-x-10.items-center li a:hover,
.flex.gap-x-6 li a:hover,
ul.flex.gap-x-6 li a:hover,
.flex.gap-x-8 li a:hover,
ul.flex.gap-x-8 li a:hover,
.flex.gap-x-3 li a:hover,
ul.flex.gap-x-3 li a:hover,
.flex.gap-x-4 li a:hover,
ul.flex.gap-x-4 li a:hover {
    color: #F5A623 !important;
}

.flex.space-x-8.items-center li.current-menu-item a,
.flex.space-x-8.items-center li.current_page_item a,
.flex.space-x-10.items-center li.current-menu-item a,
.flex.space-x-10.items-center li.current_page_item a,
.flex.gap-x-6 li.current-menu-item a,
.flex.gap-x-6 li.current_page_item a,
.flex.gap-x-8 li.current-menu-item a,
.flex.gap-x-8 li.current_page_item a,
.flex.gap-x-3 li.current-menu-item a,
.flex.gap-x-3 li.current_page_item a,
.flex.gap-x-4 li.current-menu-item a,
.flex.gap-x-4 li.current_page_item a {
    color: #1E6FFF;
    border-bottom: 2px solid #1E6FFF;
    padding-bottom: 2px;
}

/* Footer Menu Links - White with Yellow Hover */
footer .space-y-4 li a,
footer .space-y-4 a {
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    transition: color 0.3s ease;
    text-decoration: none;
}

footer .space-y-4 li a:hover,
footer .space-y-4 a:hover {
    color: #F5A623 !important;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Animations */
.clip-left-to-right {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.4s ease-out;
}

.group:hover .clip-left-to-right {
    clip-path: inset(0 0 0 0);
}

.text-glow {
    text-shadow: 0 0 15px rgba(30, 111, 255, 0.5);
}

/* Marquee Animation */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 40s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Clip Hover Effects */
.clip-hover:hover .clip-overlay {
    clip-path: inset(0 0 0 0);
}

.clip-overlay {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.4s ease-out;
}

.clip-fill-hover {
    position: relative;
    overflow: hidden;
}

.clip-fill-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0A1628;
    transition: left 0.4s ease-out;
    z-index: 10;
}

.clip-fill-hover:hover::before {
    left: 0;
}

/* Image Hover Fill */
.image-hover-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0A1628;
    transition: all 0.4s ease-out;
    z-index: 10;
    opacity: 0.9;
}

.image-hover-fill:hover::after {
    left: 0;
}

.image-hover-fill:hover .card-content {
    opacity: 1;
    transform: translateY(0);
    z-index: 20;
}

.card-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

/* Gradients */
.hero-gradient {
    background: linear-gradient(90deg, #0A1628 0%, rgba(10, 22, 40, 0.8) 35%, transparent 100%);
}

.industrial-gradient {
    background: linear-gradient(90deg, #0A1628 0%, rgba(10, 22, 40, 0.8) 30%, transparent 60%);
}

.diagonal-texture {
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 10px);
}

/* Navigation */
.nav-link {
    transition: color 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    list-style: none !important;
}

@media (min-width: 1280px) {
    .nav-link {
        font-size: 1rem;
    }
}

.nav-link:hover {
    color: #F5A623;
}

/* Buttons */
.btn-radius {
    border-radius: 6px !important;
}

.sharp-edge {
    border-radius: 0px !important;
}

/* Scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Underline Animation */
.hover-underline-animation {
    position: relative;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #1E6FFF;
    transform-origin: bottom left;
    transition: transform 0.3s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
    @apply border-0 border-b-2 border-surface-container-highest bg-surface-container-low px-4 py-4 focus:border-[#1E6FFF] transition-all;
}

/* WordPress Default Styles */
.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin: 0 auto;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin: 0;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
    text-align: center;
    font-size: 0.875em;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: #f0f4fb;
    border-radius: 4px;
    text-decoration: none;
    color: #0A1628;
    font-weight: 500;
}

.pagination .page-numbers.current {
    background: #1E6FFF;
    color: #fff;
}

.pagination .page-numbers:hover {
    background: #1E6FFF;
    color: #fff;
}

/* Widget Styles */
.widget {
    margin-bottom: 2rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    margin-bottom: 0.5rem;
}

.widget ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #F5A623;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(180deg, #0A1628 0%, rgba(10, 22, 40, 0.9) 50%, rgba(10, 22, 40, 0.7) 100%);
    }
}

/* Counter Animation */
.counter {
    display: inline-block;
    transition: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* -------------------------------------------------------------------------- */
/* CONTACT FORM 7 STYLING - STANDARD MARKUP SUPPORT
/* -------------------------------------------------------------------------- */

.wpcf7-form label {
    display: block !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: #64748b !important;
    text-align: left !important;
}

/* Style the actual inputs inside the labels */
.wpcf7-form label input,
.wpcf7-form label textarea {
    display: block !important;
    margin-top: 0.5rem !important;
    width: 100% !important;
    background: #f0f4fb !important;
    border: none !important;
    border-bottom: 2px solid #dfe2ea !important;
    padding: 1rem 1.25rem !important;
    border-radius: 0 !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    color: #0A1628 !important;
    transition: all 0.3s ease !important;
}

.wpcf7-form label input:focus,
.wpcf7-form label textarea:focus {
    border-bottom-color: #1E6FFF !important;
    background: #fff !important;
    outline: none !important;
}

/* Submit Button Style */
.wpcf7-form .wpcf7-submit {
    background-color: #1E6FFF !important;
    color: #ffffff !important;
    padding: 1.25rem 3.5rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    box-shadow: 0 10px 20px rgba(30, 111, 255, 0.2) !important;
    margin-top: 1rem !important;
}

.wpcf7-form .wpcf7-submit:hover {
    background-color: #F5A623 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(245, 166, 35, 0.3) !important;
}

/* Optional Row Wrapper */
.ewt-contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .ewt-contact-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* -------------------------------------------------------------------------- */
/* GLOBAL MOBILE & TABLET BUTTON OPTIMIZATION
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    /* Scale down all button-like elements */
    button:not(#mobile-menu-toggle), 
    .btn-radius, 
    .wpcf7-submit, 
    [type="submit"], 
    .button,
    a[class*="bg-"], 
    a[class*="border-"] {
        padding: 0.85rem 0.75rem !important;
        font-size: 10px !important;
        letter-spacing: 0.1em !important;
        height: auto !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Force buttons in CTA/Hero sections to stay in one row */
    .flex.flex-col.sm\:flex-row,
    .flex.flex-col.md\:flex-row,
    .flex.flex-col.lg\:flex-row {
        flex-direction: row !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    /* Allow buttons to shrink slightly to prevent clipping on small screens */
    .flex.flex-col.sm\:flex-row > *,
    .flex.flex-col.md\:flex-row > *,
    .flex.flex-col.lg\:flex-row > * {
        flex: 1 !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Specific fix for very small phones (under 380px) */
@media (max-width: 380px) {
    button, .btn-radius, .wpcf7-submit {
        padding: 0.75rem 0.5rem !important;
        font-size: 9px !important;
    }
}

/* -------------------------------------------------------------------------- */
/* GLOBAL TYPOGRAPHY SYSTEM (Locked)
/* -------------------------------------------------------------------------- */

/* Hero Style Heading (H1) */
h1, .h1-display {
    font-family: 'Barlow Condensed', 'Barlow', 'Space Grotesk', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 1.875rem !important; /* Phone: 30px (text-3xl) */
    line-height: 0.9 !important;
    letter-spacing: -0.05em !important;
}

@media (min-width: 640px) {
    h1, .h1-display {
        font-size: 2.25rem !important; /* SM: 36px (text-4xl) */
    }
}

@media (min-width: 768px) {
    h1, .h1-display {
        font-size: 3rem !important; /* MD: 48px (text-5xl) */
    }
}

@media (min-width: 1024px) {
    h1, .h1-display {
        font-size: 4.5rem !important; /* LG: 72px (text-7xl) */
    }
}

/* Section Style Heading (H2) */
h2, .h2-display {
    font-family: 'Barlow Condensed', 'Barlow', 'Space Grotesk', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 1.5rem !important; /* Phone: 24px (text-2xl) */
    line-height: 1.2 !important;
}

@media (min-width: 640px) {
    h2, .h2-display {
        font-size: 1.875rem !important; /* SM: 30px (text-3xl) */
    }
}

@media (min-width: 768px) {
    h2, .h2-display {
        font-size: 2.25rem !important; /* MD: 36px (text-4xl) */
    }
}

/* Component Style Heading (H3) */
h3, .h3-display {
    font-family: 'Barlow Condensed', 'Barlow', 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 1rem !important; /* Phone: 16px (text-base) */
}

@media (min-width: 640px) {
    h3, .h3-display {
        font-size: 1.125rem !important; /* SM: 18px (text-lg) */
    }
}

@media (min-width: 768px) {
    h3, .h3-display {
        font-size: 1.25rem !important; /* MD: 20px (text-xl) */
    }
}