/*
Theme Name: LHELP
Theme URI: https://lhelp.lt
Author: LHELP Team
Author URI: https://lhelp.lt
Description: A custom theme for LHELP website
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lhelp
Tags: custom, responsive, Lithuanian, clean, white
*/

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

/* CSS Variables */
:root {
    --primary-color: #D90429; /* L-Help Red - Placeholder */
    --secondary-color: #2D3142; /* L-Help Dark Grey/Black - Placeholder */
    --accent-color: #EF233C;    /* Accent Red - Placeholder */
    --text-color: #333333;
    --text-color-light: #ffffff;
    --background-color: #FFFFFF;
    --light-gray-color: #f8f9fa;
    --border-color: #dddddd;
    --font-primary: 'Rubik', sans-serif;
    --header-height: 80px; /* Example header height */
    --header-sticky-height: 70px; /* Corrected variable name */
    --container-max-xl: 1300px; 
    --container-padding: 16px; /* Default side padding for containers */
    --container-padding-sm: 8px; /* Reduced side padding for smaller screens */
}

/* html {
    overflow: hidden;
} */

.visually-hidden,
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Body styles */
body {
    font-family: var(--font-primary);
    color: var(--text-color);
    margin: 0;
    /* Background image setup */
    background-image: url('assets/images/bg.jpg?v5');
    background-size: 100% auto; /* Ensure the image covers the entire background */
    background-position: top center; /* Center the image */
    background-repeat: repeat; /* Do not repeat the image */
    /* overflow-y: scroll; */
    overflow-x: hidden;
    height: 100vh;
}
/* Header Styles - These should be primarily in assets/css/components/header.css */
/*
.site-header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    padding: 0; 
    background-color: var(--background-color); 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
}

.site-header.sticky-header {
    background-color: var(--background-color); 
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: auto; 
}

.site-header.sticky-header .site-branding .site-title a,
.site-header.sticky-header .primary-navigation .menu > li > a,
.site-header.sticky-header .mobile-nav-toggle {
    color: var(--text-color); 
}

.site-header.sticky-header .primary-navigation .menu > li.current-menu-item > a,
.site-header.sticky-header .primary-navigation .menu > li > a:hover {
    color: var(--primary-color);
}
*/

/* General Link Styles */

/* Desktop Navigation */
.primary-navigation .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; /* Vertically center menu items */
}

.primary-navigation .menu > li {
    margin-left: 15px;
    margin-right: 15px;
    position: relative;
}

.primary-navigation .menu > li > a {
    color: var(--text-color); /* Dark text for navigation links */
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.primary-navigation .menu > li.current-menu-item > a,
.primary-navigation .menu > li > a:hover {
    color: var(--primary-color);
}

/* Sub-menu styling (basic) */
.primary-navigation .menu ul.sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.primary-navigation .menu li:hover > ul.sub-menu {
    display: block;
}

.primary-navigation .menu ul.sub-menu li a {
    color: var(--text-color);
    padding: 10px 15px;
    display: block;
    text-decoration: none;
}

.primary-navigation .menu ul.sub-menu li a:hover {
    background-color: var(--light-gray-color);
    color: var(--primary-color);
}

/* Header Right Elements (Button & Hamburger) */
.header-button {
    background-color: var(--primary-color);
    color: var(--text-color-light) !important; /* Ensure text is light */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.header-button:hover {
    background-color: var(--accent-color); /* Darken or use accent */
    color: var(--text-color-light) !important;
}

.hamburger-menu .mobile-nav-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color); /* Dark color for hamburger on white header */
    cursor: pointer;
    padding: 5px;
    margin: 0; /* Ensure no margins */
    display: block; /* Make it block to control dimension */
    line-height: 1; /* Tighter line height for better alignment */
}

/* New CTA Bar Styles */
.header-cta-bar {
    background-color: var(--primary-color);
    padding: 12px 0; /* Increased padding for better vertical balance */
    margin-top: 0; /* No margin, we use py-3 in the row above */
}

.quote-btn-wide .header-button-wide {
    display: block;
    background-color: transparent; /* Button takes color from bar, or define explicitly if bar is white */
    color: var(--text-color-light);
    text-align: center;
    padding: 0; /* No padding, the container provides space */
    font-weight: 500;
    text-decoration: none;
    border-radius: 0; /* No border radius */
    width: 100%;
    line-height: 1.2; /* For better vertical centering */
}

.quote-btn-wide .header-button-wide:hover {
    /* background-color: var(--accent-color); Optional hover for button if bar is not interactive */
    opacity: 0.9;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%; /* Start off-screen */
    width: 100%;
    height: 100vh; /* Use viewport height to ensure full screen */
    background-color: var(--secondary-color);
    z-index: 1010;
    transition: left 0.4s ease-in-out;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    visibility: hidden; /* Start hidden for better transitions */
}

.mobile-menu-overlay.active {
    left: 0;
    visibility: visible; /* Show when active */
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-menu-logo img {
    max-height: 40px; /* Adjust as needed */
}
.mobile-menu-logo .site-title a {
    color: var(--text-color-light);
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
}

.close-mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 30px;
    cursor: pointer;
}

.side-mobile-menu .metismenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-mobile-menu .metismenu li a {
    color: var(--text-color-light);
    padding: 12px 0;
    display: block;
    text-decoration: none;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.3s ease;
}

.side-mobile-menu .metismenu li:last-child a {
    border-bottom: none;
}

.side-mobile-menu .metismenu li a:hover,
.side-mobile-menu .metismenu li.current-menu-item > a {
    color: var(--primary-color);
}

/* Sub-menu in mobile menu */
.side-mobile-menu .metismenu ul.sub-menu {
    list-style: none;
    padding-left: 20px; /* Indent sub-menu */
    margin: 0;
}

.side-mobile-menu .metismenu ul.sub-menu li a {
    font-size: 16px;
    padding: 10px 0;
    border-bottom: none; /* No border for sub-items or adjust styling */
}

/* CTA Button in Mobile Menu */
.mobile-quote-btn-container {
    margin-top: 20px;
    padding: 0 15px; /* Match general padding if needed */
}

.mobile-cta-button {
    display: block;
    background-color: var(--primary-color);
    color: var(--text-color-light) !important;
    text-align: center;
    padding: 12px 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px; /* Slight radius for mobile button */
}

.mobile-cta-button:hover {
    background-color: var(--accent-color);
}

.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Use viewport height */
    background-color: rgba(0,0,0,0.5);
    z-index: 999; /* Below header and mobile menu */
    display: none; /* Initially hidden, controlled by JS */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.body-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) { /* lg breakpoint in Bootstrap */
    .header-button {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 767.98px) { /* md breakpoint */
    /* .quote-btn might be d-none d-md-block. Ensure it is visible if needed */
    /* .header-button styles might need further adjustment if text wraps */
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}

.skip-link:focus {
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    overflow: auto;
    padding: 15px;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    z-index: 100000; /* Above everything */
    text-decoration: none;
}

/* General Button Style (if you have one, like .theme_btn from original Sefu) */
.theme_btn {
    /* This class was on the quote button. Define its base style or ensure .header-button covers it */
    /* Example if .header-button doesn't define everything needed from .theme_btn */
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    user-select: none;    
}
