/* XeoSpaces V3 — navigation & global CTA enhancements */

html {
    scroll-behavior: smooth;
}

/* ── Header bar layout ── */
.xs-header-container {
    max-width: 1280px;
    padding-left: 20px;
    padding-right: 20px;
}

.header-area.header-2-area .main-header .main-header-item.xs-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0 20px;
    gap: 16px;
}

.xs-header-left {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}

.header-area.header-2-area .main-header .main-header-item .header-logo {
    margin-right: 20px;
    flex-shrink: 0;
}

.header-area .header-menu {
    flex: 1 1 auto;
    min-width: 0;
}

/* Nav list — single row, no wrap */
.main-header .main-header-item .header-menu ul.xs-nav-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
    padding: 0 0 0 8px;
    margin: 0;
    list-style: none;
}

.main-header .main-header-item .header-menu ul.xs-nav-list > li {
    display: block;
    flex-shrink: 0;
    position: relative;
}

.header-area .main-header-item .header-menu ul.xs-nav-list > li > a {
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
    margin: 0 8px !important;
    padding: 0 2px;
    line-height: 80px;
    font-size: 12.5px;
}

.header-area .main-header-item .header-menu ul.xs-nav-list > li.menu-item-has-children > a::after {
    content: "\f107";
    font-family: FontAwesome;
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.65;
}

.header-area .main-header-item .header-menu ul.xs-nav-list > li .sub-menu {
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    left: 12px;
}

.header-area .main-header-item .header-menu ul.xs-nav-list > li .sub-menu > li > a {
    font-size: 13px;
    padding: 10px 20px;
    margin: 0 !important;
    line-height: 1.4;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.header-area .main-header-item .header-menu ul.xs-nav-list > li .sub-menu > li > a:hover {
    padding-left: 26px;
    color: #FF4332;
}

/* Header actions (phone + Book Now) */
.xs-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-left: 12px;
}

.xs-header-actions .info,
.xs-header-phone {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-right: 0;
    padding-left: 0 !important;
    min-width: 0;
}

.xs-header-actions .info::before,
.xs-header-phone::before {
    left: -18px !important;
    height: 40px !important;
}

.xs-header-phone__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.xs-header-actions .info i,
.xs-header-phone i {
    position: static !important;
    transform: none !important;
    flex-shrink: 0;
    font-size: 26px !important;
    line-height: 1;
}

.xs-header-actions .info .title,
.xs-header-phone .title {
    margin: 0;
    padding: 0;
    line-height: 1.25;
    font-size: 14px !important;
    white-space: nowrap;
}

.xs-header-actions .info .title a,
.xs-header-phone .title a {
    color: #3f3836 !important;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    transition: color 0.25s ease;
}

.xs-header-actions .info .title a:hover,
.xs-header-phone .title a:hover {
    color: #ff4332 !important;
}

.xs-header-actions .info span,
.xs-header-phone span {
    display: block;
    font-size: 11px !important;
    line-height: 1.3;
    letter-spacing: 0.04em;
    color: #817a78;
}

/* Book Now — header & floating */
.xs-book-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #FF4332;
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    padding: 10px 18px;
    border-radius: 50px;
    border: none;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(255, 67, 50, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.xs-book-now-btn:hover {
    background: #e63a2a;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 67, 50, 0.45);
}

.xs-book-now-btn--header {
    padding: 9px 16px;
    font-size: 12px;
}

.xs-book-now-btn--floating {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    padding: 14px 24px;
    animation: xsFloatIn 0.5s ease;
}

.xs-book-now-btn--block {
    width: 100%;
    margin-top: 16px;
}

@keyframes xsFloatIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tighter nav on medium desktops */
@media (min-width: 992px) and (max-width: 1199px) {
    .header-area .main-header-item .header-menu ul.xs-nav-list > li > a {
        margin: 0 8px !important;
        font-size: 12px;
    }

    .xs-header-actions .info {
        display: none !important;
    }

    .header-area.header-2-area .main-header .main-header-item.xs-header-bar {
        padding: 0 16px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .header-area .main-header-item .header-menu ul.xs-nav-list > li > a {
        margin: 0 8px !important;
        font-size: 12.5px;
        letter-spacing: 0.015em;
    }

    .xs-header-actions .info span,
    .xs-header-phone span {
        display: none;
    }

    .xs-header-actions .info,
    .xs-header-phone {
        gap: 10px;
    }

    .xs-header-actions .info .title a,
    .xs-header-phone .title a {
        letter-spacing: 0.05em;
        font-size: 13px;
    }
}

/* Show phone only on very wide screens */
@media (min-width: 1400px) {
    .d-xxl-block {
        display: block !important;
    }
}

@media (max-width: 1399px) {
    .d-xxl-block {
        display: none !important;
    }
}

/* Mobile offcanvas refinements */
.offcanvas_menu_wrapper .offcanvas_main_menu > li > a {
    font-size: 16px;
    font-weight: 500;
}

.offcanvas_menu_wrapper .offcanvas_main_menu .sub-menu > li > a {
    font-size: 14px;
    opacity: 0.85;
}

/* Placeholder landing pages (Step 2/3 will replace content) */
.xs-page-placeholder {
    padding: 80px 0 120px;
    background: #fafafa;
}

.xs-page-placeholder .xs-section-anchor {
    min-height: 60px;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
}

.xs-page-placeholder h2 {
    font-size: 22px;
    color: #393331;
    margin-bottom: 8px;
}

.xs-page-placeholder p {
    color: #777;
    margin: 0;
}

/* Blog (iMarked SEO) */
.xs-blog-section {
    padding: 120px 0 80px;
    background: #faf9f8;
}

.xs-blog-section__header {
    margin-bottom: 2.5rem;
}

#imarked-blog {
    min-height: 240px;
}

@media (max-width: 767px) {
    .xs-blog-section {
        padding: 96px 0 64px;
    }
}

@media (max-width: 991px) {
    .xs-book-now-btn--header {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .xs-book-now-btn--floating {
        bottom: 16px;
        right: 16px;
        padding: 12px 18px;
        font-size: 13px;
    }
}

/* ── Footer — premium dark ── */
footer .footer-area,
.footer-area {
    background-color: #1a1817 !important;
    background: #1a1817 !important;
}

.footer-area .footer-pattern {
    opacity: 0.2;
}

.footer-copyright-area {
    background: transparent;
}

.footer-copyright-area .footer-copyright {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.footer-copyright-area .footer-copyright ul li a {
    background: rgba(255, 255, 255, 0.08) !important;
}

.footer-copyright-area .footer-copyright ul li a:hover {
    background: #FF4332 !important;
}

a:focus-visible,
button:focus-visible,
.xs-btn:focus-visible,
.xs-section-nav__chip:focus-visible,
.canvas_open:focus-visible {
    outline: 2px solid #FF4332;
    outline-offset: 2px;
}
