/* ============================================
   GOLD SHIELD - CUSTOM STYLES
   Language Toggle Functionality
   ============================================ */

/* Language Visibility Toggle */
body.lang-gr .lang-en,
body:not(.lang-gr):not(.lang-en) .lang-en {
    display: none !important;
}

body.lang-en .lang-gr {
    display: none !important;
}

/* Language Switcher Button Styles */
.lang-switcher-container {
    display: inline-block;
    margin: 0;
}

/* Header right elements container - positions language switcher and hamburger */
.header-right-elements {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher {
    display: inline-block;
    padding: 4px 8px;
    background: transparent;
    color: #ffffff;
    border: 1px solid #C9A84C;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lang-switcher:hover {
    background: #C9A84C;
    color: #ffffff;
}

.lang-switcher.active-lang {
    background: #C9A84C;
    color: #ffffff;
    cursor: default;
}

/* Inactive language - gold text and border */
.lang-switcher:not(.active-lang) {
    background: transparent;
    color: #C9A84C;
    border-color: #C9A84C;
}

.lang-switcher-separator {
    color: #ffffff;
    margin: 0 4px;
    font-weight: 300;
}

/* Hamburger menu icon styling */
.responsive-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    font-size: 24px;
    transition: color 0.3s ease;
}

.responsive-menu-toggle:hover {
    color: #C9A84C;
}

/* Hide hamburger menu on desktop (show full menu instead) - breakpoint at 1240px */
@media only screen and (min-width: 1240px) {
    .responsive-menu-toggle {
        display: none !important;
    }

    /* Hide side menu language switcher on desktop (show only on mobile/tablet) */
    #Side_slide .lang-switcher-container {
        display: none !important;
    }

    /* Show language switcher in header on desktop */
    #Top_bar .lang-switcher-container {
        display: flex !important;
        align-items: center!important;
    }
}

/* Show hamburger menu on mobile and tablet (≤1239px) */
@media only screen and (max-width: 1239px) {
    .responsive-menu-toggle {
        display: flex !important;
    }

    /* Hide language switcher from header on mobile and tablet */
    #Top_bar .lang-switcher-container {
        display: none !important;
    }

    /* Show language switcher in side menu on mobile and tablet */
    #Side_slide .lang-switcher-container {
        display: block !important;
        margin: 20px 0;
        text-align: center;
    }

    #Side_slide .lang-switcher {
        display: inline-block;
        margin: 0 5px;
    }

    #Side_slide .lang-switcher-separator {
        display: inline-block;
    }
}

/* Mobile Responsive */
@media only screen and (max-width: 767px) {
    /* Simple flexbox layout for mobile header - logo left, hamburger right */
    #Top_bar .column.one {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 0;
    }

    /* Logo on left */
    .top_bar_left {
        flex: 0 0 auto;
    }

    /* Hide main navigation menu on mobile */
    .top_bar_left #menu,
    .top_bar_left .menu_wrapper nav {
        display: none !important;
    }

    /* Hamburger icon styling */
    .responsive-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        color: #ffffff !important;
        font-size: 28px !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
    }

    .responsive-menu-toggle:hover {
        color: #C9A84C !important;
    }
}

/* Tablet optimizations */
@media only screen and (min-width: 768px) and (max-width: 959px) {
    .lang-switcher {
        padding: 7px 12px;
        font-size: 12px;
    }

    .header-right-elements {
        gap: 12px;
    }
}

/* Smooth transition when switching languages */
body.lang-gr,
body.lang-en {
    transition: opacity 0.2s ease-in-out;
}

/* ============================================
   ADDITIONAL CUSTOM STYLES
   ============================================ */

/* Service Cards - Ensure proper hover effect */
.column_hover_color:hover .hover_color_wrapper {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Client Logo Hover Effect */
.client-logo {
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: scale(1.05);
}

/* Stats Section - Number Animation Ready */
.stat-number {
    transition: all 0.3s ease;
}

/* Form Input Focus Styles */
input:focus,
textarea:focus {
    border-color: #C9A84C !important;
    box-shadow: 0 0 5px rgba(201, 168, 76, 0.3) !important;
}

/* Button Hover Enhancements */
a.button_theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Footer Links Enhancement */
footer a {
    transition: color 0.3s ease;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Margins */
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* Display helpers */
.hidden { display: none !important; }
.visible { display: block !important; }

/* ============================================
   CONSISTENT LANGUAGE STYLING
   Ensures both GR and EN have same fonts/sizes
   ============================================ */

/* Language-specific font families */
.lang-gr {
    font-family: 'Roboto Condensed', 'Roboto', 'Lato', sans-serif !important;
}

.lang-en {
    font-family: 'Rajdhani', sans-serif !important;
}

/* Headlines - EN uses Rajdhani, GR uses Roboto Condensed */
h1 .lang-en,
h2 .lang-en,
h3 .lang-en,
h4 .lang-en,
h5 .lang-en,
h6 .lang-en {
    font-family: 'Rajdhani', sans-serif !important;
}

h1 .lang-gr,
h2 .lang-gr,
h3 .lang-gr,
h4 .lang-gr,
h5 .lang-gr,
h6 .lang-gr {
    font-family: 'Roboto Condensed', 'Roboto', sans-serif !important;
}

/* Navigation - Use Roboto for both languages */
#menu .lang-gr,
#menu .lang-en {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-weight: 400 !important;
    font-size: 15px !important;
}

/* Hero Section - Use template sizing (70px) with language-specific fonts */
.tp-caption .lang-en {
    font-size: 70px !important;
    line-height: 70px !important;
    font-weight: 600 !important;
    font-family: 'Rajdhani', sans-serif !important;
}

.tp-caption .lang-gr {
    font-size: 70px !important;
    line-height: 70px !important;
    font-weight: 700 !important;
    font-family: 'Roboto Condensed', 'Roboto', sans-serif !important;
}

/* Service Card Headings - Match template h4 */
.hover_color_wrapper h4 .lang-en {
    font-family: 'Rajdhani', sans-serif !important;
    /* font-weight: inherit !important;
    line-height: inherit !important; */
}

.hover_color_wrapper h4 .lang-gr {
    font-family: 'Roboto Condensed', 'Roboto', sans-serif !important;
    /* font-weight: inherit !important;
    line-height: inherit !important; */
}

/* Stats Section */
.stat-number .lang-en {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 40px !important;
}

.stat-number .lang-gr {
    font-family: 'Roboto Condensed', 'Roboto', sans-serif !important;
    font-size: 40px !important;
}

.stat-label .lang-gr,
.stat-label .lang-en {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* FAQ Questions */
.faq-question .lang-gr,
.faq-question .lang-en {
    /* font-size: inherit !important;
    font-weight: inherit !important; */
    font-family: 'Roboto Condensed', sans-serif !important;
}

/* Footer Headers */
footer h6 .lang-gr,
footer h6 .lang-en {
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Remove line breaks within language spans */
.lang-gr br,
.lang-en br {
    display: inline;
}


/* ============================================
   STAT CARDS - EQUAL HEIGHT & RESPONSIVE
   ============================================ */

/* Desktop and Tablet - Equal height cards */
@media only screen and (min-width: 768px) {
    /* Target the wrapper that contains the stat cards */
    .wrap.mcb-wrap.three-fifth .mcb-wrap-inner {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
    }

    /* Make each stat card column equal height */
    .wrap.mcb-wrap.three-fifth .column.one-third {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Make the card container fill the column height */
    .wrap.mcb-wrap.three-fifth .column.one-third .column_attr {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        min-height: 200px !important;
    }

    /* Ensure content flows properly within the card */
    .wrap.mcb-wrap.three-fifth .column.one-third .column_attr .column.two-fifth,
    .wrap.mcb-wrap.three-fifth .column.one-third .column_attr .column.three-fifth {
        flex-shrink: 0 !important;
    }
}

/* Tablet landscape and portrait */
@media only screen and (max-width: 1240px) and (min-width: 768px) {
    /* Reduce padding on stat cards */
    .section_wrapper.mcb-section-inner .column_attr[style*="background-color:#252A45"] {
        padding: 30px 8% 40px !important;
    }

    /* Adjust stat card inner layout */
    .section_wrapper.mcb-section-inner .column.two-fifth,
    .section_wrapper.mcb-section-inner .column.three-fifth {
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }

    /* Center the stat number */
    .section_wrapper.mcb-section-inner .column.three-fifth h2 {
        text-align: center !important;
        margin-left: 0 !important;
        margin-top: 10px !important;
    }

    /* Center the icon/image */
    .section_wrapper.mcb-section-inner .column.two-fifth .image_frame {
        margin: 0 auto !important;
        text-align: center !important;
    }

    /* Adjust heading size */
    .section_wrapper.mcb-section-inner .column_attr h4 {
        font-size: 16px !important;
        text-align: center !important;
    }
}

/* Small tablet (portrait) */
@media only screen and (max-width: 959px) and (min-width: 768px) {
    /* Further reduce padding for smaller tablets */
    .section_wrapper.mcb-section-inner .column_attr[style*="background-color:#252A45"] {
        padding: 25px 5% 35px !important;
    }

    /* Make stat numbers smaller */
    .section_wrapper.mcb-section-inner .column_attr h2 {
        font-size: 32px !important;
    }
}

/* Responsive adjustments for mobile */
@media only screen and (max-width: 767px) {
    .tp-caption .lang-gr,
    .tp-caption .lang-en {
        font-size: 32px !important;
        line-height: 36px !important;
    }

    .hover_color_wrapper h4 .lang-gr,
    .hover_color_wrapper h4 .lang-en {
        font-size: 14px !important;
    }

    /* Mobile stat cards - minimal padding */
    .section_wrapper.mcb-section-inner .column_attr[style*="background-color:#252A45"] {
        padding: 20px 5% 30px !important;
    }

    /* Stack elements vertically on mobile */
    .section_wrapper.mcb-section-inner .column.two-fifth,
    .section_wrapper.mcb-section-inner .column.three-fifth {
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }

    /* Center align everything on mobile */
    .section_wrapper.mcb-section-inner .column.three-fifth h2 {
        text-align: center !important;
        margin-left: 0 !important;
        margin-top: 10px !important;
        font-size: 28px !important;
    }

    .section_wrapper.mcb-section-inner .column.two-fifth .image_frame {
        margin: 0 auto !important;
        text-align: center !important;
    }

    .section_wrapper.mcb-section-inner .column_attr h4 {
        font-size: 14px !important;
        text-align: center !important;
        margin-top: 5px !important;
    }

    /* Certification cards - Add gaps on mobile */
    .section_wrapper.mcb-section-inner .column.one-third[style*="margin-bottom: 0"] {
        margin-bottom: 20px !important;
    }

    .section_wrapper.mcb-section-inner .column.one-third[style*="margin-bottom: 0"]:last-child {
        margin-bottom: 0 !important;
    }
}

/* ============================================
   SERVICES PAGE - RESPONSIVE GRID
   ============================================ */

/* Desktop - 2x3 grid (default) */
@media only screen and (min-width: 768px) {
    /* Make service grid equal height */
    #Content .wrap.mcb-wrap.one .services-page-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
    }

    /* Make each service card column equal height */
    #Content .column.one-second.column_column {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Make the card container fill the column height */
    #Content .column.one-second.column_column .column_attr[style*="background-color:#fff"] {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        height: 100% !important;
    }

    /* Push button to bottom of card */
    #Content .column.one-second.column_column .column_attr[style*="background-color:#fff"] .button {
        margin-top: auto !important;
        width: fit-content !important;
    }
}

/* ============================================
   RELATED SERVICES GRID (SERVICE DETAIL PAGES)
   ============================================ */

/* Desktop - 6 columns (default) */
@media only screen and (min-width: 1241px) {
    .related-services-grid {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 0 !important;
    }
    .related-services-grid > div {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Tablet - 3 columns */
@media only screen and (max-width: 1240px) and (min-width: 768px) {
    .related-services-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    .related-services-grid > div {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Mobile - 1 column stack */
@media only screen and (max-width: 767px) {
    .related-services-grid {
        display: flex !important;
        flex-direction: column !important;
    }
    .related-services-grid > div {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
}

/* Center content in cards */
.related-services-grid .hover_color_bg {
    display: flex !important;
    justify-content: center !important;
}

/* Gold line turns white on hover for related services */
.related-services-grid .column.one-sixth .hover_color:hover div[style*="background: #C9A84C"] {
    background: #fff !important;
    transition: background 0.3s ease !important;
}

.related-services-grid .column.one-sixth div[style*="background: #C9A84C"] {
    transition: background 0.3s ease !important;
}

/* Mobile - 1x6 stack */
@media only screen and (max-width: 767px) {
    /* Make service cards full width on mobile */
    #Content .column.one-second.column_column {
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }

    /* Adjust service card padding for mobile */
    #Content .column.one-second.column_column .column_attr[style*="background-color:#fff"] {
        padding: 30px 20px !important;
        margin-bottom: 20px !important;
    }

    /* Center service card images on mobile */
    #Content .column.one-second.column_column .image_frame {
        margin: 0 auto !important;
        text-align: center !important;
    }

    /* Adjust service card headings for mobile */
    #Content .column.one-second.column_column h3 {
        font-size: 20px !important;
        text-align: center !important;
    }

    /* Center service card descriptions on mobile */
    #Content .column.one-second.column_column p {
        text-align: center !important;
    }

    /* Center service card buttons on mobile */
    #Content .column.one-second.column_column .button {
        display: block !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
}


/* ============================================
   FOOTER CONTACT SECTION - TABLET OPTIMIZATION
   ============================================ */

/* Footer H4 styling - applies to all screens */
.footer-contact-section .mcb-wrap-inner .column_attr h4 {
    font-size: 20px!important;
    line-height: 30px!important;
    font-weight: 700;
    letter-spacing: 0;
    text-align: start!important;
}

.footer-contact-section.wrap.mcb-wrap.one-fifth {
        padding: 80px 30px 25px !important;
    }
.footer-contact-section .google_font {
    font-family: 'Roboto Condensed', 'Rajdhani', sans-serif !important;
}
    
/* Tablet - Reduce padding in footer contact section */
@media only screen and (max-width: 1240px) and (min-width: 768px) {
    /* Target the footer contact section with phone number */
    .footer-contact-section.wrap.mcb-wrap.one-fifth {
        padding: 40px 25px 20px !important;
        width:28%!important;
    }

    /* Also adjust the right side padding */
    .footer-contact-section.wrap.mcb-wrap.four-fifth {
        padding: 40px 25px 20px !important;
        width: 72%!important;
    }
}

/* Small tablet portrait - Further reduce padding */
@media only screen and (max-width: 959px) and (min-width: 768px) {
    .footer-contact-section.wrap.mcb-wrap.one-fifth {
        padding: 30px 18px 15px !important;
    }

    .footer-contact-section.wrap.mcb-wrap.four-fifth {
        padding: 30px 18px 15px !important;
    }
}

/* Mobile - Minimal padding */
@media only screen and (max-width: 767px) {
    .footer-contact-section.wrap.mcb-wrap.one-fifth {
        padding: 25px 15px 15px !important;
    }

    .footer-contact-section.wrap.mcb-wrap.four-fifth {
        padding: 25px 15px 15px !important;
    }
}

/* ============================================
   CERTIFICATIONS SECTION - 4 CARDS RESPONSIVE
   ============================================ */

/* Desktop - 4 cards in a row (default) */
@media only screen and (min-width: 1241px) {
    /* Certifications grid stays as 4 columns - framework handles this */
}

/* Tablet - 2x2 grid */
@media only screen and (max-width: 1240px) and (min-width: 768px) {
    /* Force 2x2 layout for certification cards */
    .section_wrapper.mcb-section-inner .column.one-fourth.column_column[style*="margin-bottom: 20px"] {
        width: 47% !important;
        margin: 1.5% !important;
        float: left !important;
    }

    /* Clear every 2nd item to create 2x2 grid */
    .section_wrapper.mcb-section-inner .column.one-fourth.column_column[style*="margin-bottom: 20px"]:nth-child(2n+1) {
        clear: both !important;
    }

    /* Ensure cards have proper spacing */
    .section_wrapper.mcb-section-inner .column.one-fourth.column_column[style*="margin-bottom: 20px"] .column_attr {
        margin: 0 !important;
    }
}
