/*
Theme Name: AbroadXpress
Theme URI: https://abroadxpress.com/
Description: A clean, professional, and performance-focused theme built on the Genesis Framework. Designed for fast loading and optimized user experience with full support for Elementor.
Author: AbroadXpress Team
Author URI: https://abroadxpress.com/
Template: abroadxpress
Version: 1.0.0
Tags: one-column, two-columns, left-sidebar, right-sidebar, custom-menu, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, accessibility-ready
Text Domain: abroadxpress-theme
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   AbroadXpress Genesis Child Theme
   Performance-focused, clean and professional design
   ========================================================================== */

/* CSS Variables - Brand Colors */
:root {
    --abx-primary: hsl(215, 52%, 25%);
    --abx-secondary: hsl(215, 45%, 95%);
    --abx-accent: hsl(0, 84%, 50%);
    --abx-foreground: hsl(220, 47%, 20%);
    --abx-muted: hsl(215, 30%, 96%);
    --abx-border: hsl(215, 30%, 88%);
    --abx-radius: 0.75rem;

    /* Shadows */
    --abx-shadow-sm: 0 1px 2px 0 hsl(215 30% 20% / .05);
    --abx-shadow-md: 0 4px 6px -1px hsl(215 30% 20% / .1), 0 2px 4px -2px hsl(215 30% 20% / .1);
    --abx-shadow-lg: 0 10px 15px -3px hsl(215 30% 20% / .1), 0 4px 6px -4px hsl(215 30% 20% / .1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--abx-foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {

    text-decoration: none;
    transition: color 0.3s ease;
}


/* ==========================================================================
   Genesis Layout Overrides
   ========================================================================== */

.site-container {
    overflow-x: hidden;
}

.site-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Content Area */
.content-sidebar .content,
.sidebar-content .content {
    width: 65%;
}

.content-sidebar .sidebar,
.sidebar-content .sidebar {
    width: 32%;
}

.full-width-content .content {
    width: 100%;
    max-width: 100%;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--abx-shadow-md);
    padding: 0.5rem 2rem;
}

/* Ensure Header Layout is Horizontal */
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-title a {
    color: var(--abx-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.genesis-nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.genesis-nav-menu a {
    color: var(--abx-foreground);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.genesis-nav-menu a:hover,
.genesis-nav-menu .current-menu-item>a {
    color: var(--abx-accent);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .genesis-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--abx-shadow-lg);
    }

    .genesis-nav-menu.menu-visible {
        display: flex;
    }
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */

.sidebar {
    padding: 2rem;
    background: var(--abx-secondary);
    border-radius: var(--abx-radius);
}

.sidebar .widget {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--abx-border);
}

.sidebar .widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--abx-primary);
    margin-bottom: 1rem;
}

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

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--abx-border);
}

.widget li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Archive & Blog Styles
   ========================================================================== */

.archive-description {
    padding: 2rem;
    background: var(--abx-secondary);
    border-radius: var(--abx-radius);
    margin-bottom: 2rem;
}

.archive-title {
    font-size: 2rem;
    color: var(--abx-primary);
    margin-bottom: 0.5rem;
}

.entry {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--abx-border);
}

.entry:last-child {
    border-bottom: none;
}

.entry-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--abx-foreground);
}

.entry-title a:hover {
    color: var(--abx-accent);
}

.entry-meta {
    font-size: 0.875rem;
    color: hsl(215, 20%, 45%);
    margin-bottom: 1rem;
}

.entry-content {
    line-height: 1.8;
}

/* ==========================================================================
   Single Post & Page Styles
   ========================================================================== */

.single .entry-header,
.page .entry-header {
    margin-bottom: 2rem;
}

.single .entry-title,
.page .entry-title {
    font-size: 2.5rem;
}

/* Featured Image */
.entry-image {
    margin-bottom: 2rem;
    border-radius: var(--abx-radius);
    overflow: hidden;
}

.entry-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--abx-muted);
    border-radius: var(--abx-radius);
}

.comment-author {
    font-weight: 600;
    color: var(--abx-primary);
}

.comment-reply-link {
    font-size: 0.875rem;
    color: var(--abx-accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--abx-primary);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
    color: white;
}

/* ==========================================================================
   Buttons
   ========================================================================== */




.button-secondary {
    background: var(--abx-primary);
}

.button-secondary:hover {
    background: hsl(215, 52%, 20%);
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--abx-border);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--abx-primary);
    box-shadow: 0 0 0 3px hsl(215 52% 25% / 0.1);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination .current {
    padding: 0.5rem 1rem;
    border-radius: calc(var(--abx-radius) / 2);
    font-weight: 500;
}

.pagination a {
    background: var(--abx-secondary);
    color: var(--abx-foreground);
}

.pagination a:hover {
    background: var(--abx-primary);
    color: white;
}

.pagination .current {
    background: var(--abx-accent);
    color: white;
}

/* ==========================================================================
   Elementor Compatibility
   ========================================================================== */

.elementor-page .site-inner {
    padding: 0;
    max-width: 100%;
}

.elementor-page .content {
    width: 100%;
    padding: 0;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    .site-inner {
        padding: 1rem;
    }

    .content-sidebar .content,
    .sidebar-content .content,
    .content-sidebar .sidebar,
    .sidebar-content .sidebar {
        width: 100%;
    }

    .sidebar {
        margin-top: 2rem;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .single .entry-title,
    .page .entry-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {

    .site-header,
    .site-footer,
    .sidebar,
    .comments,
    .navigation {
        display: none;
    }

    .content {
        width: 100%;
    }
}

/* ==========================================================================
   AbroadStyle CSS (Merged)
   ========================================================================== */

:root {
    --brand-primary: hsl(215, 52%, 25%);
    --brand-secondary: hsl(215, 45%, 95%);
    --brand-accent: hsl(0, 84%, 50%);
    --brand-foreground: hsl(220, 47%, 20%);
    --brand-muted: hsl(215, 30%, 96%);
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--brand-foreground);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

/* Color Utilities */
.text-brand-primary {
    color: var(--brand-primary) !important;
}

.bg-brand-primary {
    background-color: var(--brand-primary) !important;
}

.text-brand-accent {
    color: var(--brand-accent) !important;
}

.bg-brand-accent {
    background-color: var(--brand-accent) !important;
}

.bg-brand-secondary {
    background-color: var(--brand-secondary) !important;
}

/* Buttons */
.btn-brand-accent {
    background-color: var(--brand-accent);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-brand-accent:hover {
    background-color: hsl(0, 84%, 40%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-brand-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-brand-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Cards */
.hover-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 48, 66, 0.95) 0%, rgba(30, 48, 66, 0.8) 50%, rgba(30, 48, 66, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Navbar */
.navbar-brand img {
    height: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--brand-foreground) !important;
}

.nav-link:hover {
    color: var(--brand-accent) !important;
}

/* Whatsapp Button */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-weight: 600;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

/* Custom Spacing */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-white {
    color: #fff !important;
}

/* Mobile Menu Fixes */
/* Mobile Menu Fixes */
#mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background-color: white;
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

#mobile-menu-drawer:not(.translate-x-full) {
    transform: translateX(0);
}

#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

#mobile-menu-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}


/* Ensure lg:hidden works for desktop */

/* Ensure lg:hidden works for desktop */
@media (min-width: 1025px) {
    .lg\:hidden {
        display: none !important;
    }

    .lg\:flex {
        display: flex !important;
    }
}

/* Force Mobile Menu at 1024px and below */
@media (max-width: 1024px) {

    /* Hide Desktop Menu */
    .lg\:flex {
        display: none !important;
    }

    /* Show Mobile Elements */
    #mobile-menu-btn {
        display: inline-flex !important;
    }

    #mobile-menu-drawer {
        display: flex !important;
    }

    /* Ensure overlay respects hidden class but ignores lg:hidden */
    #mobile-menu-overlay:not(.hidden) {
        display: block !important;
    }

    /* Mobile Bottom Bar */
    .fixed.bottom-0.lg\:hidden {
        display: flex !important;
    }
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
}

.text-foreground\/80 {
    color: #1b2b4bcc !important;
}