/**
 * POSE Travel Theme Custom Styles
 *
 * @package POSE_Travel_Theme
 * @since 1.0.0
 */

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --pose-primary: #FF6B35;
    --pose-primary-dark: #e55a2b;
    --pose-secondary: #003B5C;
    --pose-secondary-dark: #002940;
    --pose-white: #ffffff;
    --pose-black: #333333;
    --pose-gray: #666666;
    --pose-gray-light: #f7f7f7;
    --pose-border: #e0e0e0;

    --pose-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --pose-font-heading: inherit;

    --pose-transition: all 0.3s ease;
    --pose-shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --pose-shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --pose-shadow-lg: 0 8px 24px rgba(0,0,0,0.2);

    --pose-radius-sm: 0.25rem;
    --pose-radius-md: 0.5rem;
    --pose-radius-lg: 1rem;
}

/* ===================================
   TOP BAR
   =================================== */
.top-bar {
    background-color: var(--pose-secondary);
    color: var(--pose-white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.top-bar .social-link {
    color: var(--pose-white);
    transition: var(--pose-transition);
}

.top-bar .social-link:hover {
    color: var(--pose-primary);
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    background-color: var(--pose-white);
    padding: 1rem 0;
    box-shadow: var(--pose-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pose-secondary);
    margin: 0;
}

.site-logo-text {
    text-decoration: none;
}

.custom-logo-link img {
    max-height: 60px;
    width: auto;
}

/* ===================================
   NAVIGATION
   =================================== */
.main-navigation {
    flex-grow: 1;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.primary-menu li {
    margin: 0;
}

.primary-menu a {
    color: var(--pose-black);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--pose-transition);
    position: relative;
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--pose-primary);
    transition: var(--pose-transition);
}

.primary-menu a:hover,
.primary-menu a:focus {
    color: var(--pose-primary);
}

.primary-menu a:hover::after,
.primary-menu a:focus::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--pose-primary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: var(--pose-radius-md);
    color: var(--pose-primary);
    font-weight: 600;
}

.menu-toggle-icon {
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: currentColor;
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    transition: var(--pose-transition);
}

.menu-toggle-icon::before {
    top: -6px;
}

.menu-toggle-icon::after {
    bottom: -6px;
}

/* Header CTA */
.header-cta {
    flex-shrink: 0;
}

/* ===================================
   BUTTONS
   =================================== */
.btn,
a.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--pose-radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--pose-transition);
    line-height: 1.5;
}

.btn-primary,
a.btn-primary {
    background-color: var(--pose-primary);
    color: var(--pose-white);
}

.btn-primary:hover,
a.btn-primary:hover {
    background-color: var(--pose-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    color: var(--pose-white);
}

.btn-secondary,
a.btn-secondary {
    background-color: var(--pose-secondary);
    color: var(--pose-white);
}

.btn-secondary:hover,
a.btn-secondary:hover {
    background-color: var(--pose-secondary-dark);
    transform: translateY(-2px);
    color: var(--pose-white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--pose-primary);
    color: var(--pose-primary);
}

.btn-outline:hover {
    background-color: var(--pose-primary);
    color: var(--pose-white);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background-color: var(--pose-secondary);
    color: var(--pose-white);
}

.footer-main {
    padding: 3rem 0 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3,
.footer-title {
    color: var(--pose-white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--pose-white);
    transition: var(--pose-transition);
}

.footer-social a:hover {
    background-color: var(--pose-primary);
    transform: translateY(-3px);
}

.footer-social .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: var(--pose-white);
    text-decoration: none;
    opacity: 0.9;
    transition: var(--pose-transition);
}

.footer-menu a:hover {
    opacity: 1;
    color: var(--pose-primary);
    padding-left: 5px;
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact-list .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--pose-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom a {
    color: var(--pose-white);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--pose-primary);
}

/* ===================================
   WHATSAPP FLOATING BUTTON
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float a {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: var(--pose-shadow-lg);
    transition: var(--pose-transition);
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .primary-menu {
        gap: 1rem;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Top Bar */
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Header */
    .header-content {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .header-cta {
        order: 2;
    }

    .main-navigation {
        order: 4;
        flex-basis: 100%;
    }

    .primary-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        background-color: var(--pose-white);
        box-shadow: var(--pose-shadow-md);
        border-radius: var(--pose-radius-md);
        padding: 1rem;
        margin-top: 1rem;
    }

    .primary-menu.active {
        display: flex;
    }

    .primary-menu li {
        border-bottom: 1px solid var(--pose-border);
    }

    .primary-menu li:last-child {
        border-bottom: none;
    }

    .primary-menu a {
        display: block;
        padding: 0.75rem 0;
    }

    /* Footer */
    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-social {
        justify-content: center;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float a {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .btn,
    a.btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .custom-logo-link img {
        max-height: 50px;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ===================================
   404 PAGE
   =================================== */
.error-404-page {
    padding: 4rem 0;
    text-align: center;
}

.error-404 .page-title {
    font-size: 3rem;
    color: var(--pose-primary);
    margin-bottom: 1rem;
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-404-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.error-404-links {
    margin-top: 3rem;
}

.error-404-links h2 {
    margin-bottom: 1rem;
}

.error-404-links ul {
    list-style: none;
    padding: 0;
}

.error-404-links li {
    margin-bottom: 0.5rem;
}

/* ===================================
   ELEMENTOR COMPATIBILITY
   =================================== */
.elementor-section {
    position: relative;
}

.elementor-widget-container {
    word-wrap: break-word;
}

/* Front Page */
.front-page .site-main {
    padding: 0;
}

.front-page .elementor-section {
    margin: 0;
}
