/*
Theme Name: Yireh Boat Detailing
Theme URI: https://yirehboatdetailingfl.com
Author: Siraj Musawwir
Company: Kinothen.com
Description: Custom theme conversion for Yireh Boat Detailing.
Version: 1.0
Text Domain: yireh
*/

/* --- CUSTOM WHITE HEADER --- */
.custom-main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 10px 20px;
    position: relative;
    z-index: 999;
}

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

.custom-logo img {
    max-width: 280px;
    height: auto;
    display: block;
}

.custom-mobile-toggle {
    display: none;
    font-size: 28px;
    color: #066aab;
    cursor: pointer;
    padding: 5px;
}

/* --- NAVIGATION MENU --- */
.hfe-nav-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hfe-nav-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

.hfe-nav-menu li a {
    color: #066aab !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    display: block;
}

.hfe-nav-menu li a:hover {
    color: #004a80 !important;
}

.hfe-nav-menu__toggle {
    display: none !important;
}

/* --- DESKTOP MENU (Wider than 768px) --- */
@media (min-width: 769px) {
    .hfe-nav-menu {
        display: flex !important;
        flex-direction: row;
        gap: 30px;
        align-items: center;
    }
    .hfe-nav-menu li a {
        padding: 10px 5px;
    }
    .hfe-nav-menu .sub-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #ffffff;
        padding: 10px;
        min-width: 200px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-radius: 5px;
        flex-direction: column;
        gap: 5px;
    }
    .hfe-nav-menu li:hover .sub-menu {
        display: flex !important;
    }
}

/* --- MOBILE MENU (Smaller than 768px) --- */
@media (max-width: 768px) {
    .custom-logo img { max-width: 180px; }
    .custom-mobile-toggle { display: block; }
    .custom-nav-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 2px solid #066aab;
        padding: 15px 20px;
    }
    .custom-nav-wrapper.menu-open { display: block; }
    .hfe-nav-menu {
        display: flex !important;
        flex-direction: column;
        gap: 0;
    }
    .hfe-nav-menu li a {
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .hfe-nav-menu .sub-menu {
        display: flex !important;
        flex-direction: column;
        padding-left: 20px;
        background: #fdfdfd;
        border-radius: 5px;
        margin-top: 5px;
    }
    .hfe-nav-menu .sub-menu li a {
        border-bottom: none;
        padding: 10px 0;
        font-size: 15px;
        color: #555555 !important;
    }
}

/* =========================================
   GLOBAL UTILITY CLASSES (Reusable)
   ========================================= */

/* Edge-to-Edge Blue Banners */
.yireh-blue-banner {
    background-color: #066aab;
    padding: 60px 20px;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 50px;
    box-sizing: border-box;
}

.yireh-blue-banner h1,
.yireh-blue-banner .banner-title {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.yireh-blue-banner .banner-subtitle {
    color: #f4f4f4;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 1px;
}

/* =========================================
   GLOBAL MARQUEE SLIDER (Double Track)
   ========================================= */
.yireh-marquee-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
    display: flex; /* Keeps tracks side-by-side */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    margin-bottom: 80px;
    padding: 15px 0;
}

.yireh-marquee-content {
    display: flex;
    flex-shrink: 0;
    animation: marquee-scroll 30s linear infinite;
}

.yireh-marquee-wrapper:hover .yireh-marquee-content {
    animation-play-state: paused;
}

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

/* Gallery Image Styling inside Marquee */
.yireh-gallery-image {
    width: 450px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
    margin-right: 20px; /* Margin prevents flex-gap math errors */
    transition: transform 0.3s ease;
    display: block;
}

.yireh-gallery-image:hover {
    transform: scale(1.02);
}


/* =========================================
   CONTACT FORM 7 STYLING - FORCED OVERRIDES
   ========================================= */
.yireh-contact-form {
    text-align: left !important;
}

.yireh-contact-form .yireh-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.yireh-contact-form .yireh-form-col {
    flex: 1 1 48%;
    width: 100%;
}

.yireh-contact-form .yireh-form-group {
    margin-bottom: 20px;
}

.yireh-contact-form label {
    display: block !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: #111111 !important;
    margin-bottom: 8px !important;
    font-size: 0.95rem !important;
}

/* Input Fields */
.yireh-contact-form input[type="text"],
.yireh-contact-form input[type="email"],
.yireh-contact-form textarea {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #cccccc !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    margin: 0 !important;
}

.yireh-contact-form input:focus,
.yireh-contact-form textarea:focus {
    border-color: #066aab !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(6, 106, 171, 0.2) !important;
}

.yireh-contact-form textarea {
    height: 150px !important;
    resize: vertical !important;
}

/* Submit Button - Destroying the Pink Theme */
.yireh-contact-form .yireh-submit-group {
    text-align: center !important;
    margin-top: 30px !important;
}

.yireh-contact-form input[type="submit"].yireh-btn {
    background-color: #066aab !important;
    color: #ffffff !important;
    border: none !important;
    padding: 15px 40px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    transition: background-color 0.3s ease !important;
    display: inline-block !important;
    width: auto !important;
    line-height: 1 !important;
}

.yireh-contact-form input[type="submit"].yireh-btn:hover {
    background-color: #045285 !important;
}

/* Fix CF7 Spacing Wrappers */
.wpcf7-form-control-wrap {
    display: block !important;
}

/* --- CUSTOM WHITE HEADER --- */
.custom-main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 15px 20px;
    position: sticky; /* Makes it stick to the top */
    top: 0;
    z-index: 9999;
    transition: all 0.3s ease; /* Smooth animation */
}

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

.custom-logo img {
    max-width: 280px;
    height: auto;
    display: block;
    transition: max-width 0.3s ease; /* Smooth logo shrink */
}

/* --- THE "SCROLLED" SHRINK EFFECT --- */
.custom-main-header.scrolled {
    padding: 5px 20px; /* Shrinks the vertical padding */
    box-shadow: 0 5px 20px rgba(0,0,0,0.15); /* Slightly stronger shadow */
}

.custom-main-header.scrolled .custom-logo img {
    max-width: 180px; /* Shrinks the logo size */
}


/* =========================================
   YIREH SERVICES GRID
   ========================================= */
.yireh-services-section {
    padding: 20px 20px 80px 20px;
    background-color: #ffffff;
}

.yireh-services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.yireh-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Card Styling */
.yireh-service-card {
    background: #ffffff;
    border-radius: 8px; /* Matches your gallery borders */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Matches your gallery shadow */
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.yireh-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(6, 106, 171, 0.15); /* Tinted with your primary blue */
    border-color: #066aab;
}

/* Image Styling */
.yireh-service-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.yireh-service-card:hover .yireh-service-img {
    transform: scale(1.03);
}

/* Content Area */
.yireh-service-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.yireh-service-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
}

.yireh-service-content h3 a {
    color: #111111;
    text-decoration: none;
    transition: color 0.3s ease;
}

.yireh-service-content h3 a:hover {
    color: #066aab;
}

.yireh-service-content p {
    color: #555555; /* Matched to your mobile menu grey */
    line-height: 1.6;
    margin: 0 0 25px 0;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Button - Matched to your Contact Form 7 Button */
.yireh-service-btn {
    background-color: #066aab;
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    display: inline-block;
    border: none;
}

.yireh-service-btn:hover {
    background-color: #045285;
}