/*
Theme Name: LEC Theme
Theme URI: https://lec.page.gd
Author: Datasense9
Author URI: https://datasense9.com/
Description: A fast, lightweight, Elementor-based WordPress theme designed for professional business websites and landing pages.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lec-theme
Tags: elementor, custom-theme, responsive, business, landing-page
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

*,
*::before,
*::after,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

/* Global font family for all text elements */
body,
h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
textarea,
select,
.elementor-button {
    font-family: 'Roboto', Arial, sans-serif;
}

/* LAYOUT: Header structure to match desktop JSON layout */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0B4C84;
    padding: 8px clamp(20px, 3vw, 40px);
    border-bottom: 1px solid #0B4C84;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: clamp(12px, 1.5vw, 24px);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* LAYOUT: Left section - Logo & Pages */
.header-left {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    flex: 1 1 auto;
    max-width: calc(100% - 120px);
    min-width: 0;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    width: auto;
}

/* LAYOUT: Right section - Buttons */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex: 0 0 auto;
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
}

/* Main navigation */
.menu {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu>li>a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 12px;
    font-size: 15px;
    display: inline-block;
    border-radius: 6px;
}

.menu>li>a:hover,
.menu>li>a:focus {
    background: rgba(255, 255, 255, 0.06);
}

/* LAYOUT: Primary navigation wrapper */
.primary-nav {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: clamp(4px, 0.6vw, 10px);
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.primary-menu>li {
    position: relative;
    flex-shrink: 1;
    min-width: 0;
}

/* LAYOUT FIX: Menu items with children display as flex row */
.menu-item-has-children>a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 12px;
    font-size: 16px;
    border-radius: 6px;
    white-space: nowrap;
}

/* LAYOUT FIX: Add dropdown arrow after menu items with children */
.menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 6px;
    background-image: url('data:image/svg+xml;utf8,<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L5 5L9 1" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
    margin-left: 20px;
}

.primary-menu>li>a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px clamp(4px, 0.5vw, 8px);
    font-size: clamp(12px, 0.85vw, 15px);
    border-radius: 6px;
    display: block;
    white-space: nowrap;
    font-family: 'Roboto', Arial, sans-serif;
}

.primary-menu>li>a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* HOVER FIX: Submenu positioning with no gap to prevent hover break */
.menu-item-has-children>.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #0B4C84;
    border-radius: 6px;
    padding: 6px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 8px;
    list-style: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

/* HOVER FIX: Create invisible bridge between parent and submenu */
.menu-item-has-children>.sub-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

/* HOVER FIX: Show submenu on parent hover with smooth animation */
.menu-item-has-children:hover>.sub-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Parent menu item hover state - theme consistent */
.menu-item-has-children:hover>a {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sub-menu li {
    list-style: none;
}

.sub-menu li a {
    color: #ffffff;
    padding: 8px 16px;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: clamp(12px, 0.85vw, 15px);
    font-weight: 500;
    position: relative;
    font-family: 'Roboto', Arial, sans-serif;
}

.sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* First and last item border radius */
.sub-menu li:first-child a {
    border-radius: 6px 6px 0 0;
}

.sub-menu li:last-child a {
    border-radius: 0 0 6px 6px;
}

.book-appoinment-btn {
    height: 48px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: max-content;
    max-width: 100%;
    padding: 0px clamp(12px, 1.5vw, 20px);
    background-color: #DAA51F;
    color: #222222;
    border-radius: 12px 0;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    line-height: 1.2;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;
    border: none;
    box-sizing: border-box;
    font-family: 'Roboto';
    transition: all 0.2s ease;
}

.book-appoinment-btn img {
    display: block;
    height: 24px;
    width: 24px;
}

/* Consolidated .book-appoinment-outline style: No-wrap, auto-width, high visibility */
.book-appoinment-outline {
    height: 48px !important;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: max-content;
    max-width: 100%;
    height: auto;
    padding: 0px clamp(12px, 1.5vw, 18px);
    background-color: transparent;
    color: #DAA51F;
    border: 1px solid #DAA51F;
    border-radius: 12px 0px;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(12px, 0.9vw, 15px);
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
    flex-shrink: 0;
    font-family: 'Roboto';
    transition: all 0.2s ease;
}

.book-appoinment-outline img {
    display: block;
    height: 24px;
    width: auto;
    flex-shrink: 0;
}


.book-appoinment-outline .call-icon {
    height: 24px;
    width: 24px;
    flex: 0 0 24px;
}

.book-appoinment-outline .call-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    line-height: 1;
}

.book-appoinment-outline .call-number {
    color: #ffffff;
    font-weight: 500;
    font-size: 18px;
    font-family: 'Roboto';
}

.book-appoinment-outline .call-timing {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    font-size: clamp(11px, 0.85vw, 14px);
    margin-top: 2px;
    font-family: 'Roboto';
}

/* Submenu: hidden by default, shown only on parent hover/focus */
.menu li {
    position: relative;
}

/* child submenu (hidden by default) */
.children {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #ffffff;
    color: #0B4C84;
    border-radius: 8px;
    padding: 6px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 1000;
}

/* Show submenu only when hovering or keyboard focusing the parent */
.page_item_has_children:hover>.children,
.page_item_has_children:focus-within>.children {
    display: flex;
    flex-direction: column;
}

.children li {
    display: block;
}

.children li a {
    color: #0B4C84;
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    font-family: 'Roboto', Arial, sans-serif;
}

.children li a:hover,
.children li a:focus {
    background: rgba(11, 76, 132, 0.06);
}

.card-img {
    width: 100%;
    height: auto;
}

.card-img-care {
    width: 100%;
    height: 100%;
}

.card-img-care img {
    height: 100% !important;
}

.card-img-team {
    width: 100%;
    height: 100%;
}

.card-img-team img {
    height: 100% !important;
}

/* Remove border from accordion title when expanded */
.elementor-accordion .plus-accordion-header.active {
    border: none !important;
}

/* ================================
   Elementor Button – Global Fix
   Icon + Text Vertical Center
   SVG icon: 24x24
   Text: 16px
   Padding: 12 16 12 16
================================ */

.elementor-widget-button .elementor-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
}

.elementor-widget-button .elementor-button-content-wrapper {
    display: inline-flex;
    align-items: center;
}

.elementor-widget-button .elementor-button-text {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Icon wrapper */
.elementor-widget-button .elementor-button-icon {
    display: inline-flex;
    align-items: center;
}

/* SVG icon size */
.elementor-widget-button .elementor-button-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}